Skip to content

Commit 74c80f5

Browse files
committed
1 parent b174c90 commit 74c80f5

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

node_modules/minipass/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,18 +593,21 @@ class Minipass extends Stream {
593593
const onerr = er => {
594594
this.removeListener('data', ondata)
595595
this.removeListener('end', onend)
596+
this.removeListener(DESTROYED, ondestroy)
596597
stop()
597598
reject(er)
598599
}
599600
const ondata = value => {
600601
this.removeListener('error', onerr)
601602
this.removeListener('end', onend)
603+
this.removeListener(DESTROYED, ondestroy)
602604
this.pause()
603605
resolve({ value: value, done: !!this[EOF] })
604606
}
605607
const onend = () => {
606608
this.removeListener('error', onerr)
607609
this.removeListener('data', ondata)
610+
this.removeListener(DESTROYED, ondestroy)
608611
stop()
609612
resolve({ done: true })
610613
}
@@ -635,6 +638,7 @@ class Minipass extends Stream {
635638
const stop = () => {
636639
this.pause()
637640
this.removeListener(ERROR, stop)
641+
this.removeListener(DESTROYED, stop)
638642
this.removeListener('end', stop)
639643
stopped = true
640644
return { done: true }
@@ -647,6 +651,7 @@ class Minipass extends Stream {
647651
}
648652
this.once('end', stop)
649653
this.once(ERROR, stop)
654+
this.once(DESTROYED, stop)
650655

651656
return {
652657
next,

node_modules/minipass/index.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,18 +593,21 @@ class Minipass extends Stream {
593593
const onerr = er => {
594594
this.removeListener('data', ondata)
595595
this.removeListener('end', onend)
596+
this.removeListener(DESTROYED, ondestroy)
596597
stop()
597598
reject(er)
598599
}
599600
const ondata = value => {
600601
this.removeListener('error', onerr)
601602
this.removeListener('end', onend)
603+
this.removeListener(DESTROYED, ondestroy)
602604
this.pause()
603605
resolve({ value: value, done: !!this[EOF] })
604606
}
605607
const onend = () => {
606608
this.removeListener('error', onerr)
607609
this.removeListener('data', ondata)
610+
this.removeListener(DESTROYED, ondestroy)
608611
stop()
609612
resolve({ done: true })
610613
}
@@ -635,6 +638,7 @@ class Minipass extends Stream {
635638
const stop = () => {
636639
this.pause()
637640
this.removeListener(ERROR, stop)
641+
this.removeListener(DESTROYED, stop)
638642
this.removeListener('end', stop)
639643
stopped = true
640644
return { done: true }
@@ -647,6 +651,7 @@ class Minipass extends Stream {
647651
}
648652
this.once('end', stop)
649653
this.once(ERROR, stop)
654+
this.once(DESTROYED, stop)
650655

651656
return {
652657
next,

node_modules/minipass/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "minipass",
3-
"version": "4.2.4",
3+
"version": "4.2.5",
44
"description": "minimal implementation of a PassThrough stream",
55
"main": "./index.js",
66
"module": "./index.mjs",

package-lock.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
"libnpmversion": "^4.0.2",
120120
"make-fetch-happen": "^11.0.3",
121121
"minimatch": "^6.2.0",
122-
"minipass": "^4.2.4",
122+
"minipass": "^4.2.5",
123123
"minipass-pipeline": "^1.2.4",
124124
"ms": "^2.1.2",
125125
"node-gyp": "^9.3.1",
@@ -8572,9 +8572,9 @@
85728572
}
85738573
},
85748574
"node_modules/minipass": {
8575-
"version": "4.2.4",
8576-
"resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.4.tgz",
8577-
"integrity": "sha512-lwycX3cBMTvcejsHITUgYj6Gy6A7Nh4Q6h9NP4sTHY1ccJlC7yKzDmiShEHsJ16Jf1nKGDEaiHxiltsJEvk0nQ==",
8575+
"version": "4.2.5",
8576+
"resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.5.tgz",
8577+
"integrity": "sha512-+yQl7SX3bIT83Lhb4BVorMAHVuqsskxRdlmO9kTpyukp8vsm2Sn/fUOV9xlnG8/a5JsypJzap21lz/y3FBMJ8Q==",
85788578
"inBundle": true,
85798579
"engines": {
85808580
"node": ">=8"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"libnpmversion": "^4.0.2",
8989
"make-fetch-happen": "^11.0.3",
9090
"minimatch": "^6.2.0",
91-
"minipass": "^4.2.4",
91+
"minipass": "^4.2.5",
9292
"minipass-pipeline": "^1.2.4",
9393
"ms": "^2.1.2",
9494
"node-gyp": "^9.3.1",

0 commit comments

Comments
 (0)