[Pkg-javascript-commits] [node-stream-http] 134/208: use readable-stream

Bastien Roucariès rouca at moszumanska.debian.org
Sun Aug 13 13:39:36 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-stream-http.

commit 0552e1e4f5ecf91909cebd9b6747ad93daf9bdba
Author: Feross Aboukhadijeh <feross at feross.org>
Date:   Thu Apr 28 00:55:58 2016 +0200

    use readable-stream
    
    For a consistent version of the stream package.
    
    Also, I believe this will help fix
    https://github.com/feross/webtorrent/issues/771
---
 lib/request.js  | 2 +-
 lib/response.js | 2 +-
 package.json    | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/request.js b/lib/request.js
index 1dafc64..bda5a24 100644
--- a/lib/request.js
+++ b/lib/request.js
@@ -2,7 +2,7 @@
 var capability = require('./capability')
 var inherits = require('inherits')
 var response = require('./response')
-var stream = require('stream')
+var stream = require('readable-stream')
 var toArrayBuffer = require('to-arraybuffer')
 
 var IncomingMessage = response.IncomingMessage
diff --git a/lib/response.js b/lib/response.js
index 5483d91..7525bc1 100644
--- a/lib/response.js
+++ b/lib/response.js
@@ -1,6 +1,6 @@
 var capability = require('./capability')
 var inherits = require('inherits')
-var stream = require('stream')
+var stream = require('readable-stream')
 
 var rStates = exports.readyStates = {
 	UNSENT: 0,
diff --git a/package.json b/package.json
index 529c629..aff0965 100644
--- a/package.json
+++ b/package.json
@@ -29,6 +29,7 @@
   "dependencies": {
     "builtin-status-codes": "^2.0.0",
     "inherits": "^2.0.1",
+    "readable-stream": "^2.1.0",
     "to-arraybuffer": "^1.0.0",
     "xtend": "^4.0.0"
   },

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-stream-http.git



More information about the Pkg-javascript-commits mailing list