File: no_require_readable-stream.patch

package info (click to toggle)
node-superagent 0.20.0%2Bdfsg-1%2Bdeb9u2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 468 kB
  • sloc: makefile: 36; sh: 2
file content (19 lines) | stat: -rw-r--r-- 532 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: readable-stream is only needed for nodejs 0.8 compat
Author: Leo Iannacone <l3on@ubuntu.com>
Forwarded: not-needed

---
 lib/node/part.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/lib/node/part.js
+++ b/lib/node/part.js
@@ -6,7 +6,7 @@
 var util = require('util');
 var mime = require('mime');
 var FormData = require('form-data');
-var PassThrough = require('readable-stream/passthrough');
+var PassThrough = require('stream').PassThrough;
 
 /**
  * Initialize a new `Part` for the given `req`.