We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00a78bb commit 74ca6a4Copy full SHA for 74ca6a4
2 files changed
package.json
@@ -146,6 +146,6 @@
146
"node": "^20.19.0 || ^22.13.0 || >=24.0.0"
147
},
148
"volta": {
149
- "node": "24.14.1"
+ "node": "24.15.0"
150
}
151
src/types/files/archives/gzip.ts
@@ -138,8 +138,10 @@ export default class Gzip extends Archive {
138
try {
139
await pipelinePromise;
140
} catch (error) {
141
- // The .destroy() calls above can cause ABORT_ERR
142
- if ((error as NodeJS.ErrnoException).code !== 'ABORT_ERR') {
+ // The .destroy() calls above can cause ABORT_ERR on Node.js <24.15, or
+ // ERR_STREAM_PREMATURE_CLOSE on Node.js >=24.15
143
+ const code = (error as NodeJS.ErrnoException).code;
144
+ if (code !== 'ABORT_ERR' && code !== 'ERR_STREAM_PREMATURE_CLOSE') {
145
throw error;
0 commit comments