pnpm 11.26.0 → 11.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -0
- package/dist/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
- package/dist/node_modules/undici/lib/handler/retry-handler.js +29 -3
- package/dist/node_modules/undici/lib/web/eventsource/eventsource-stream.js +245 -150
- package/dist/node_modules/undici/lib/web/websocket/connection.js +1 -1
- package/dist/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
- package/dist/node_modules/undici/package.json +1 -1
- package/dist/pnpm.mjs +5543 -5392
- package/dist/worker.js +6355 -3192
- package/package.json +1 -1
- package/dist/node_modules/.package-map.json +0 -1
|
@@ -63,7 +63,12 @@ class PerMessageDeflate {
|
|
|
63
63
|
|
|
64
64
|
if (this.#maxPayloadSize > 0 && this.#inflate[kLength] > this.#maxPayloadSize) {
|
|
65
65
|
callback(new MessageSizeExceededError())
|
|
66
|
+
// The inflater may still hold buffered input that can emit a late
|
|
67
|
+
// zlib error. Remove the data listener, then deterministically stop
|
|
68
|
+
// the stream so a subsequent 'error' cannot fire without a listener
|
|
69
|
+
// (which would terminate the process as an unhandled error event).
|
|
66
70
|
this.#inflate.removeAllListeners()
|
|
71
|
+
this.#inflate.destroy()
|
|
67
72
|
this.#inflate = null
|
|
68
73
|
return
|
|
69
74
|
}
|