From 74c80f54a7e6345f6751732dc4cb2c2923947343 Mon Sep 17 00:00:00 2001 From: Gar Date: Mon, 20 Mar 2023 13:19:02 -0700 Subject: [PATCH] deps: minipass@4.2.5 --- node_modules/minipass/index.js | 5 +++++ node_modules/minipass/index.mjs | 5 +++++ node_modules/minipass/package.json | 2 +- package-lock.json | 8 ++++---- package.json | 2 +- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/node_modules/minipass/index.js b/node_modules/minipass/index.js index 97b23068c9527..5e192c2824586 100644 --- a/node_modules/minipass/index.js +++ b/node_modules/minipass/index.js @@ -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 }) } @@ -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 } @@ -647,6 +651,7 @@ class Minipass extends Stream { } this.once('end', stop) this.once(ERROR, stop) + this.once(DESTROYED, stop) return { next, diff --git a/node_modules/minipass/index.mjs b/node_modules/minipass/index.mjs index a6694036642b5..d5c58fc9814c0 100644 --- a/node_modules/minipass/index.mjs +++ b/node_modules/minipass/index.mjs @@ -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 }) } @@ -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 } @@ -647,6 +651,7 @@ class Minipass extends Stream { } this.once('end', stop) this.once(ERROR, stop) + this.once(DESTROYED, stop) return { next, diff --git a/node_modules/minipass/package.json b/node_modules/minipass/package.json index 4a6246df54aa4..1286b88ed5d8f 100644 --- a/node_modules/minipass/package.json +++ b/node_modules/minipass/package.json @@ -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", diff --git a/package-lock.json b/package-lock.json index d794d96efd7b6..44b7b1d5f10e6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", @@ -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" diff --git a/package.json b/package.json index 92b63e760bc23..71e070b303b07 100644 --- a/package.json +++ b/package.json @@ -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",