aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node_modules/undici/lib/core/errors.js
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-03-14 12:19:48 +0100
committerEgor Tensin <egor@tensin.name>2026-03-14 12:19:48 +0100
commit5736345440e43ac7f8d72c748c6b959bee5f8aa8 (patch)
tree367b7d90a8d2e199b70a196a1a91c2aa267c5633 /node_modules/undici/lib/core/errors.js
parentMerge pull request #8 from egor-tensin/dependabot/npm_and_yarn/undici-6.24.1 (diff)
downloadcleanup-path-5736345440e43ac7f8d72c748c6b959bee5f8aa8.tar.gz
cleanup-path-5736345440e43ac7f8d72c748c6b959bee5f8aa8.zip
wait, what the hell? doesn't Dependabot update node_modules as well?
Diffstat (limited to 'node_modules/undici/lib/core/errors.js')
-rw-r--r--node_modules/undici/lib/core/errors.js21
1 files changed, 20 insertions, 1 deletions
diff --git a/node_modules/undici/lib/core/errors.js b/node_modules/undici/lib/core/errors.js
index 535c733..2028801 100644
--- a/node_modules/undici/lib/core/errors.js
+++ b/node_modules/undici/lib/core/errors.js
@@ -379,6 +379,24 @@ class SecureProxyConnectionError extends UndiciError {
[kSecureProxyConnectionError] = true
}
+const kMessageSizeExceededError = Symbol.for('undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED')
+class MessageSizeExceededError extends UndiciError {
+ constructor (message) {
+ super(message)
+ this.name = 'MessageSizeExceededError'
+ this.message = message || 'Max decompressed message size exceeded'
+ this.code = 'UND_ERR_WS_MESSAGE_SIZE_EXCEEDED'
+ }
+
+ static [Symbol.hasInstance] (instance) {
+ return instance && instance[kMessageSizeExceededError] === true
+ }
+
+ get [kMessageSizeExceededError] () {
+ return true
+ }
+}
+
module.exports = {
AbortError,
HTTPParserError,
@@ -402,5 +420,6 @@ module.exports = {
ResponseExceededMaxSizeError,
RequestRetryError,
ResponseError,
- SecureProxyConnectionError
+ SecureProxyConnectionError,
+ MessageSizeExceededError
}