File tree Expand file tree Collapse file tree 4 files changed +15
-10
lines changed Expand file tree Collapse file tree 4 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,12 @@ module.exports = class Minipass extends Stream {
165
165
// because we're mid-write, so that'd be bad.
166
166
if ( this [ BUFFERLENGTH ] !== 0 )
167
167
this [ FLUSH ] ( true )
168
- this . emit ( 'data' , chunk )
168
+
169
+ // if we are still flowing after flushing the buffer we can emit the
170
+ // chunk otherwise we have to buffer it.
171
+ this . flowing
172
+ ? this . emit ( 'data' , chunk )
173
+ : this [ BUFFERPUSH ] ( chunk )
169
174
} else
170
175
this [ BUFFERPUSH ] ( chunk )
171
176
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " minipass" ,
3
- "version" : " 3.1.5 " ,
3
+ "version" : " 3.1.6 " ,
4
4
"description" : " minimal implementation of a PassThrough stream" ,
5
5
"main" : " index.js" ,
6
6
"dependencies" : {
Original file line number Diff line number Diff line change 123
123
"libnpmteam": "^2.0.3",
124
124
"libnpmversion": "^2.0.1",
125
125
"make-fetch-happen": "^9.1.0",
126
- "minipass": "^3.1.3 ",
126
+ "minipass": "^3.1.6 ",
127
127
"minipass-pipeline": "^1.2.4",
128
128
"mkdirp": "^1.0.4",
129
129
"mkdirp-infer-owner": "^2.0.0",
5074
5074
"dev": true
5075
5075
},
5076
5076
"node_modules/minipass": {
5077
- "version": "3.1.5 ",
5078
- "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.5 .tgz",
5079
- "integrity": "sha512-+8NzxD82XQoNKNrl1d/FSi+X8wAEWR+sbYAfIvub4Nz0d22plFG72CEVVaufV8PNf4qSslFTD8VMOxNVhHCjTw ==",
5077
+ "version": "3.1.6 ",
5078
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.6 .tgz",
5079
+ "integrity": "sha512-rty5kpw9/z8SX9dmxblFA6edItUmwJgMeYDZRrwlIVN27i8gysGbznJwUggw2V/FVqFSDdWy040ZPS811DYAqQ ==",
5080
5080
"inBundle": true,
5081
5081
"dependencies": {
5082
5082
"yallist": "^4.0.0"
13819
13819
"dev": true
13820
13820
},
13821
13821
"minipass": {
13822
- "version": "3.1.5 ",
13823
- "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.5 .tgz",
13824
- "integrity": "sha512-+8NzxD82XQoNKNrl1d/FSi+X8wAEWR+sbYAfIvub4Nz0d22plFG72CEVVaufV8PNf4qSslFTD8VMOxNVhHCjTw ==",
13822
+ "version": "3.1.6 ",
13823
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.6 .tgz",
13824
+ "integrity": "sha512-rty5kpw9/z8SX9dmxblFA6edItUmwJgMeYDZRrwlIVN27i8gysGbznJwUggw2V/FVqFSDdWy040ZPS811DYAqQ ==",
13825
13825
"requires": {
13826
13826
"yallist": "^4.0.0"
13827
13827
}
Original file line number Diff line number Diff line change 91
91
"libnpmteam" : " ^2.0.3" ,
92
92
"libnpmversion" : " ^2.0.1" ,
93
93
"make-fetch-happen" : " ^9.1.0" ,
94
- "minipass" : " ^3.1.3 " ,
94
+ "minipass" : " ^3.1.6 " ,
95
95
"minipass-pipeline" : " ^1.2.4" ,
96
96
"mkdirp" : " ^1.0.4" ,
97
97
"mkdirp-infer-owner" : " ^2.0.0" ,
You can’t perform that action at this time.
0 commit comments