Git Product home page Git Product logo

fluture-node's People

Contributors

avaq avatar dicearr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fluture-node's Issues

Tests fail on node 13

โœ– request                                      
inequivalent (/node_modules/fluture/test/assertions.js:55:18)
assertInnerEqual (/node_modules/fluture/test/assertions.js:47:15)
/node_modules/fluture/test/assertions.js:76:28
Computation$rej$cont (/node_modules/fluture/src/future.js:150:9)
Computation$rej (/node_modules/fluture/src/future.js:153:9)
/index.js:290:36
internal/util.js:392:14
finish (internal/streams/pipeline.js:174:7)
internal/streams/pipeline.js:180:7
internal/util.js:392:14

    chain (body => {
  const location = new URL (url);
  const makeRequest = lib => Future ((rej, res) => {
    const req = lib.request (location, options);
    req.once ('response', res);
    pipeline (body, req, e => e && rej (e));
    return () => {
      req.removeListener ('response', res);
      req.abort ();
    };
  });
  return chain (makeRequest) (getRequestModule (location.protocol));
}) (encase (buf => new Readable ({
  highWaterMark: buf.byteLength,
  read: function() {
    if (this._pushed || this.push (buf)) { this.push (null); }
    this._pushed = true;
  },
})) ()) :: Future({ <rejected> new Error ("connect ECONNREFUSED 127.0.0.1:443") })
    is not equivalent to:
    reject (new Error ("connect ECONNREFUSED 127.0.0.1:443")) :: Future({ <rejected> new Error ("connect ECONNREFUSED 127.0.0.1:443") })

The inner values are not equal: Expected values to be strictly deep-equal:
+ actual - expected

  [Error: connect ECONNREFUSED 127.0.0.1:443] {
    address: '127.0.0.1',
    code: 'ECONNREFUSED',
+   errno: -111,
-   errno: 'ECONNREFUSED',
    port: 443,
    syscall: 'connect'
  }

feature request

tcp socket readable and writeable future-stream-futures that correctly communicate backpressure

http/2 use cases including exceedingly large get and post sizes and the effect on the rate of multiplexed small-sized get and post requests

might be useful to divide the domain into streams, network and protocol; possible that some namespaces could be aligned with nodejs api module names

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.