Skip to content

Commit

Permalink
deps: minipass@4.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Mar 23, 2023
1 parent b174c90 commit 74c80f5
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
5 changes: 5 additions & 0 deletions node_modules/minipass/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,18 +593,21 @@ class Minipass extends Stream {
const onerr = er => {
this.removeListener('data', ondata)
this.removeListener('end', onend)
this.removeListener(DESTROYED, ondestroy)
stop()
reject(er)
}
const ondata = value => {
this.removeListener('error', onerr)
this.removeListener('end', onend)
this.removeListener(DESTROYED, ondestroy)
this.pause()
resolve({ value: value, done: !!this[EOF] })
}
const onend = () => {
this.removeListener('error', onerr)
this.removeListener('data', ondata)
this.removeListener(DESTROYED, ondestroy)
stop()
resolve({ done: true })
}
Expand Down Expand Up @@ -635,6 +638,7 @@ class Minipass extends Stream {
const stop = () => {
this.pause()
this.removeListener(ERROR, stop)
this.removeListener(DESTROYED, stop)
this.removeListener('end', stop)
stopped = true
return { done: true }
Expand All @@ -647,6 +651,7 @@ class Minipass extends Stream {
}
this.once('end', stop)
this.once(ERROR, stop)
this.once(DESTROYED, stop)

return {
next,
Expand Down
5 changes: 5 additions & 0 deletions node_modules/minipass/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -593,18 +593,21 @@ class Minipass extends Stream {
const onerr = er => {
this.removeListener('data', ondata)
this.removeListener('end', onend)
this.removeListener(DESTROYED, ondestroy)
stop()
reject(er)
}
const ondata = value => {
this.removeListener('error', onerr)
this.removeListener('end', onend)
this.removeListener(DESTROYED, ondestroy)
this.pause()
resolve({ value: value, done: !!this[EOF] })
}
const onend = () => {
this.removeListener('error', onerr)
this.removeListener('data', ondata)
this.removeListener(DESTROYED, ondestroy)
stop()
resolve({ done: true })
}
Expand Down Expand Up @@ -635,6 +638,7 @@ class Minipass extends Stream {
const stop = () => {
this.pause()
this.removeListener(ERROR, stop)
this.removeListener(DESTROYED, stop)
this.removeListener('end', stop)
stopped = true
return { done: true }
Expand All @@ -647,6 +651,7 @@ class Minipass extends Stream {
}
this.once('end', stop)
this.once(ERROR, stop)
this.once(DESTROYED, stop)

return {
next,
Expand Down
2 changes: 1 addition & 1 deletion node_modules/minipass/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "minipass",
"version": "4.2.4",
"version": "4.2.5",
"description": "minimal implementation of a PassThrough stream",
"main": "./index.js",
"module": "./index.mjs",
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"libnpmversion": "^4.0.2",
"make-fetch-happen": "^11.0.3",
"minimatch": "^6.2.0",
"minipass": "^4.2.4",
"minipass": "^4.2.5",
"minipass-pipeline": "^1.2.4",
"ms": "^2.1.2",
"node-gyp": "^9.3.1",
Expand Down Expand Up @@ -8572,9 +8572,9 @@
}
},
"node_modules/minipass": {
"version": "4.2.4",
"resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.4.tgz",
"integrity": "sha512-lwycX3cBMTvcejsHITUgYj6Gy6A7Nh4Q6h9NP4sTHY1ccJlC7yKzDmiShEHsJ16Jf1nKGDEaiHxiltsJEvk0nQ==",
"version": "4.2.5",
"resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.5.tgz",
"integrity": "sha512-+yQl7SX3bIT83Lhb4BVorMAHVuqsskxRdlmO9kTpyukp8vsm2Sn/fUOV9xlnG8/a5JsypJzap21lz/y3FBMJ8Q==",
"inBundle": true,
"engines": {
"node": ">=8"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"libnpmversion": "^4.0.2",
"make-fetch-happen": "^11.0.3",
"minimatch": "^6.2.0",
"minipass": "^4.2.4",
"minipass": "^4.2.5",
"minipass-pipeline": "^1.2.4",
"ms": "^2.1.2",
"node-gyp": "^9.3.1",
Expand Down

0 comments on commit 74c80f5

Please sign in to comment.