File tree Expand file tree Collapse file tree 4 files changed +4
-15
lines changed
Expand file tree Collapse file tree 4 files changed +4
-15
lines changed Original file line number Diff line number Diff line change 11language : node_js
22node_js :
3+ - " 0.11"
34 - " 0.10"
45 - " 0.8"
56
Original file line number Diff line number Diff line change 22
33module . exports = Entry ;
44
5- var PassThrough = require ( 'stream' ) . PassThrough ;
5+ var PassThrough = require ( 'readable- stream/passthrough' ) ;
66var inherits = require ( 'util' ) . inherits ;
77
8- if ( ! PassThrough ) {
9- PassThrough = require ( 'readable-stream/passthrough' ) ;
10- }
11-
128inherits ( Entry , PassThrough ) ;
139
1410function Entry ( ) {
Original file line number Diff line number Diff line change @@ -4,14 +4,10 @@ module.exports = Extract;
44
55var Parse = require ( "../unzip" ) . Parse ;
66var Writer = require ( "fstream" ) . Writer ;
7- var Writable = require ( 'stream' ) . Writable ;
7+ var Writable = require ( 'readable- stream/writable' ) ;
88var path = require ( 'path' ) ;
99var inherits = require ( 'util' ) . inherits ;
1010
11- if ( ! Writable ) {
12- Writable = require ( 'readable-stream/writable' ) ;
13- }
14-
1511inherits ( Extract , Writable ) ;
1612
1713function Extract ( opts ) {
Original file line number Diff line number Diff line change 33module . exports = Parse . create = Parse ;
44
55require ( "setimmediate" ) ;
6- var Transform = require ( 'stream' ) . Transform ;
6+ var Transform = require ( 'readable- stream/transform' ) ;
77var inherits = require ( 'util' ) . inherits ;
88var zlib = require ( 'zlib' ) ;
99var binary = require ( 'binary' ) ;
1010var PullStream = require ( 'pullstream' ) ;
1111var MatchStream = require ( 'match-stream' ) ;
1212var Entry = require ( './entry' ) ;
1313
14- if ( ! Transform ) {
15- Transform = require ( 'readable-stream/transform' ) ;
16- }
17-
1814inherits ( Parse , Transform ) ;
1915
2016function Parse ( opts ) {
You can’t perform that action at this time.
0 commit comments