mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2026-08-11 02:46:21 -06:00
node_modules: update (#146)
Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
+8
-22
@@ -44,9 +44,6 @@ class WebSocket extends EventTarget {
|
||||
/** @type {SendQueue} */
|
||||
#sendQueue
|
||||
|
||||
/** @type {{ maxDecompressedMessageSize?: number }} */
|
||||
#options
|
||||
|
||||
/**
|
||||
* @param {string} url
|
||||
* @param {string|string[]} protocols
|
||||
@@ -120,11 +117,6 @@ class WebSocket extends EventTarget {
|
||||
// 10. Set this's url to urlRecord.
|
||||
this[kWebSocketURL] = new URL(urlRecord.href)
|
||||
|
||||
// Store options for later use (e.g., maxDecompressedMessageSize)
|
||||
this.#options = {
|
||||
maxDecompressedMessageSize: options.maxDecompressedMessageSize
|
||||
}
|
||||
|
||||
// 11. Let client be this's relevant settings object.
|
||||
const client = environmentSettingsObject.settingsObject
|
||||
|
||||
@@ -443,7 +435,14 @@ class WebSocket extends EventTarget {
|
||||
// once this happens, the connection is open
|
||||
this[kResponse] = response
|
||||
|
||||
const parser = new ByteParser(this, parsedExtensions, this.#options)
|
||||
const webSocketOptions = this[kController]?.dispatcher?.webSocketOptions
|
||||
const maxFragments = webSocketOptions?.maxFragments
|
||||
const maxPayloadSize = webSocketOptions?.maxPayloadSize
|
||||
|
||||
const parser = new ByteParser(this, parsedExtensions, {
|
||||
maxFragments,
|
||||
maxPayloadSize
|
||||
})
|
||||
parser.on('drain', onParserDrain)
|
||||
parser.on('error', onParserError.bind(this))
|
||||
|
||||
@@ -546,19 +545,6 @@ webidl.converters.WebSocketInit = webidl.dictionaryConverter([
|
||||
{
|
||||
key: 'headers',
|
||||
converter: webidl.nullableConverter(webidl.converters.HeadersInit)
|
||||
},
|
||||
{
|
||||
key: 'maxDecompressedMessageSize',
|
||||
converter: webidl.nullableConverter((V) => {
|
||||
V = webidl.converters['unsigned long long'](V)
|
||||
if (V <= 0) {
|
||||
throw webidl.errors.exception({
|
||||
header: 'WebSocket constructor',
|
||||
message: 'maxDecompressedMessageSize must be greater than 0'
|
||||
})
|
||||
}
|
||||
return V
|
||||
})
|
||||
}
|
||||
])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user