@songtonyli/dsh-cli 0.1.36 → 0.1.38

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.
Files changed (90) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@aws-sdk/core/package.json +6 -6
  4. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  5. package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
  6. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  7. package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
  8. package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
  9. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  10. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +6 -6
  11. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  12. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
  13. package/node_modules/@aws-sdk/eventstream-handler-node/package.json +4 -4
  14. package/node_modules/@aws-sdk/middleware-eventstream/package.json +4 -4
  15. package/node_modules/@aws-sdk/middleware-websocket/package.json +7 -7
  16. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +3 -3
  17. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +3 -3
  18. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +3 -3
  19. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +3 -3
  20. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +14 -11
  21. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/schemas/schemas_0.js +2 -2
  22. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +2 -2
  23. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js +2 -2
  24. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +2 -2
  25. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +13 -10
  26. package/node_modules/@aws-sdk/nested-clients/package.json +8 -8
  27. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
  28. package/node_modules/@aws-sdk/types/package.json +2 -2
  29. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  30. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
  31. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +2 -2
  32. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +2 -2
  33. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +3 -3
  34. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +3 -3
  35. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +100 -42
  36. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +22 -37
  37. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +26 -4
  38. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +49 -8
  39. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +12 -7
  40. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +22 -22
  41. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +0 -15
  42. package/node_modules/@smithy/core/dist-es/submodules/client/index.js +1 -1
  43. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/command.js +8 -1
  44. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js +18 -3
  45. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +49 -8
  46. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +12 -7
  47. package/node_modules/@smithy/core/package.json +2 -2
  48. package/node_modules/@smithy/types/package.json +1 -1
  49. package/node_modules/undici/docs/docs/api/Agent.md +8 -8
  50. package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +9 -6
  51. package/node_modules/undici/docs/docs/api/Errors.md +25 -0
  52. package/node_modules/undici/docs/docs/api/Interceptors.md +4 -3
  53. package/node_modules/undici/docs/docs/api/Pool.md +5 -6
  54. package/node_modules/undici/lib/api/readable.js +1 -2
  55. package/node_modules/undici/lib/core/request.js +23 -2
  56. package/node_modules/undici/lib/core/util.js +0 -39
  57. package/node_modules/undici/lib/dispatcher/client-h1.js +11 -4
  58. package/node_modules/undici/lib/dispatcher/client-h2.js +52 -8
  59. package/node_modules/undici/lib/dispatcher/client.js +1 -1
  60. package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -2
  61. package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +21 -6
  62. package/node_modules/undici/lib/dispatcher/pool-base.js +63 -2
  63. package/node_modules/undici/lib/dispatcher/pool.js +90 -7
  64. package/node_modules/undici/lib/dispatcher/proxy-agent.js +16 -3
  65. package/node_modules/undici/lib/handler/deduplication-handler.js +24 -11
  66. package/node_modules/undici/lib/handler/redirect-handler.js +5 -0
  67. package/node_modules/undici/lib/handler/retry-handler.js +72 -13
  68. package/node_modules/undici/lib/interceptor/cache.js +4 -1
  69. package/node_modules/undici/lib/interceptor/decompress.js +236 -69
  70. package/node_modules/undici/lib/web/cache/cache.js +17 -8
  71. package/node_modules/undici/lib/web/cache/cachestorage.js +11 -5
  72. package/node_modules/undici/lib/web/cookies/index.js +19 -7
  73. package/node_modules/undici/lib/web/cookies/util.js +3 -1
  74. package/node_modules/undici/lib/web/eventsource/eventsource.js +25 -1
  75. package/node_modules/undici/lib/web/fetch/body.js +22 -15
  76. package/node_modules/undici/lib/web/fetch/data-url.js +6 -6
  77. package/node_modules/undici/lib/web/fetch/formdata.js +30 -36
  78. package/node_modules/undici/lib/web/fetch/headers.js +34 -31
  79. package/node_modules/undici/lib/web/fetch/index.js +38 -14
  80. package/node_modules/undici/lib/web/fetch/request.js +74 -79
  81. package/node_modules/undici/lib/web/fetch/response.js +43 -44
  82. package/node_modules/undici/lib/web/fetch/util.js +7 -7
  83. package/node_modules/undici/lib/web/infra/index.js +16 -1
  84. package/node_modules/undici/lib/web/webidl/index.js +2 -14
  85. package/node_modules/undici/lib/web/websocket/events.js +43 -26
  86. package/node_modules/undici/lib/web/websocket/receiver.js +5 -0
  87. package/node_modules/undici/lib/web/websocket/stream/websocketerror.js +13 -10
  88. package/node_modules/undici/lib/web/websocket/websocket.js +44 -41
  89. package/node_modules/undici/package.json +1 -1
  90. package/package.json +20 -20
@@ -4,6 +4,8 @@ const { webidl } = require('../webidl')
4
4
  const { kEnumerableProperty } = require('../../core/util')
5
5
  const { kConstruct } = require('../../core/symbols')
6
6
 
7
+ let createFastMessageEvent
8
+
7
9
  /**
8
10
  * @see https://html.spec.whatwg.org/multipage/comms.html#messageevent
9
11
  */
@@ -30,31 +32,31 @@ class MessageEvent extends Event {
30
32
  }
31
33
 
32
34
  get data () {
33
- webidl.brandCheck(this, MessageEvent)
35
+ webidl.brandCheck(this, webidl.is.MessageEvent)
34
36
 
35
37
  return this.#eventInit.data
36
38
  }
37
39
 
38
40
  get origin () {
39
- webidl.brandCheck(this, MessageEvent)
41
+ webidl.brandCheck(this, webidl.is.MessageEvent)
40
42
 
41
43
  return this.#eventInit.origin
42
44
  }
43
45
 
44
46
  get lastEventId () {
45
- webidl.brandCheck(this, MessageEvent)
47
+ webidl.brandCheck(this, webidl.is.MessageEvent)
46
48
 
47
49
  return this.#eventInit.lastEventId
48
50
  }
49
51
 
50
52
  get source () {
51
- webidl.brandCheck(this, MessageEvent)
53
+ webidl.brandCheck(this, webidl.is.MessageEvent)
52
54
 
53
55
  return this.#eventInit.source
54
56
  }
55
57
 
56
58
  get ports () {
57
- webidl.brandCheck(this, MessageEvent)
59
+ webidl.brandCheck(this, webidl.is.MessageEvent)
58
60
 
59
61
  if (!Object.isFrozen(this.#eventInit.ports)) {
60
62
  Object.freeze(this.#eventInit.ports)
@@ -73,7 +75,7 @@ class MessageEvent extends Event {
73
75
  source = null,
74
76
  ports = []
75
77
  ) {
76
- webidl.brandCheck(this, MessageEvent)
78
+ webidl.brandCheck(this, webidl.is.MessageEvent)
77
79
 
78
80
  webidl.argumentLengthCheck(arguments, 1, 'MessageEvent.initMessageEvent')
79
81
 
@@ -82,21 +84,24 @@ class MessageEvent extends Event {
82
84
  })
83
85
  }
84
86
 
85
- static createFastMessageEvent (type, init) {
86
- const messageEvent = new MessageEvent(kConstruct, type, init)
87
- messageEvent.#eventInit = init
88
- messageEvent.#eventInit.data ??= null
89
- messageEvent.#eventInit.origin ??= ''
90
- messageEvent.#eventInit.lastEventId ??= ''
91
- messageEvent.#eventInit.source ??= null
92
- messageEvent.#eventInit.ports ??= []
93
- return messageEvent
87
+ static {
88
+ createFastMessageEvent = (type, init) => {
89
+ const messageEvent = new MessageEvent(kConstruct, type, init)
90
+ messageEvent.#eventInit = init
91
+ messageEvent.#eventInit.data ??= null
92
+ messageEvent.#eventInit.origin ??= ''
93
+ messageEvent.#eventInit.lastEventId ??= ''
94
+ messageEvent.#eventInit.source ??= null
95
+ messageEvent.#eventInit.ports ??= []
96
+ return messageEvent
97
+ }
98
+
99
+ webidl.is.MessageEvent = (arg) => {
100
+ return arg != null && typeof arg === 'object' && #eventInit in arg
101
+ }
94
102
  }
95
103
  }
96
104
 
97
- const { createFastMessageEvent } = MessageEvent
98
- delete MessageEvent.createFastMessageEvent
99
-
100
105
  /**
101
106
  * @see https://websockets.spec.whatwg.org/#the-closeevent-interface
102
107
  */
@@ -117,22 +122,28 @@ class CloseEvent extends Event {
117
122
  }
118
123
 
119
124
  get wasClean () {
120
- webidl.brandCheck(this, CloseEvent)
125
+ webidl.brandCheck(this, webidl.is.CloseEvent)
121
126
 
122
127
  return this.#eventInit.wasClean
123
128
  }
124
129
 
125
130
  get code () {
126
- webidl.brandCheck(this, CloseEvent)
131
+ webidl.brandCheck(this, webidl.is.CloseEvent)
127
132
 
128
133
  return this.#eventInit.code
129
134
  }
130
135
 
131
136
  get reason () {
132
- webidl.brandCheck(this, CloseEvent)
137
+ webidl.brandCheck(this, webidl.is.CloseEvent)
133
138
 
134
139
  return this.#eventInit.reason
135
140
  }
141
+
142
+ static {
143
+ webidl.is.CloseEvent = (arg) => {
144
+ return arg != null && typeof arg === 'object' && #eventInit in arg
145
+ }
146
+ }
136
147
  }
137
148
 
138
149
  // https://html.spec.whatwg.org/multipage/webappapis.html#the-errorevent-interface
@@ -153,34 +164,40 @@ class ErrorEvent extends Event {
153
164
  }
154
165
 
155
166
  get message () {
156
- webidl.brandCheck(this, ErrorEvent)
167
+ webidl.brandCheck(this, webidl.is.ErrorEvent)
157
168
 
158
169
  return this.#eventInit.message
159
170
  }
160
171
 
161
172
  get filename () {
162
- webidl.brandCheck(this, ErrorEvent)
173
+ webidl.brandCheck(this, webidl.is.ErrorEvent)
163
174
 
164
175
  return this.#eventInit.filename
165
176
  }
166
177
 
167
178
  get lineno () {
168
- webidl.brandCheck(this, ErrorEvent)
179
+ webidl.brandCheck(this, webidl.is.ErrorEvent)
169
180
 
170
181
  return this.#eventInit.lineno
171
182
  }
172
183
 
173
184
  get colno () {
174
- webidl.brandCheck(this, ErrorEvent)
185
+ webidl.brandCheck(this, webidl.is.ErrorEvent)
175
186
 
176
187
  return this.#eventInit.colno
177
188
  }
178
189
 
179
190
  get error () {
180
- webidl.brandCheck(this, ErrorEvent)
191
+ webidl.brandCheck(this, webidl.is.ErrorEvent)
181
192
 
182
193
  return this.#eventInit.error
183
194
  }
195
+
196
+ static {
197
+ webidl.is.ErrorEvent = (arg) => {
198
+ return arg != null && typeof arg === 'object' && #eventInit in arg
199
+ }
200
+ }
184
201
  }
185
202
 
186
203
  Object.defineProperties(MessageEvent.prototype, {
@@ -369,6 +369,11 @@ class ByteParser extends Writable {
369
369
  consumeFragments () {
370
370
  const fragments = this.#fragments
371
371
 
372
+ // The compressed flag describes the message that is being completed here.
373
+ // It must not survive into the next message, otherwise a stray
374
+ // continuation frame is accepted instead of failing the connection.
375
+ this.#info.compressed = false
376
+
372
377
  if (fragments.length === 1) {
373
378
  // single fragment
374
379
  this.#fragmentsBytes = 0
@@ -26,6 +26,8 @@ function createInheritableDOMException () {
26
26
  })
27
27
  }
28
28
 
29
+ let createUnvalidatedWebSocketError
30
+
29
31
  class WebSocketError extends createInheritableDOMException() {
30
32
  #closeCode
31
33
  #reason
@@ -77,17 +79,20 @@ class WebSocketError extends createInheritableDOMException() {
77
79
  * @param {number|null} code
78
80
  * @param {string} reason
79
81
  */
80
- static createUnvalidatedWebSocketError (message, code, reason) {
81
- const error = new WebSocketError(message, kConstruct)
82
- error.#closeCode = code
83
- error.#reason = reason
84
- return error
82
+ static {
83
+ createUnvalidatedWebSocketError = (message, code, reason) => {
84
+ const error = new WebSocketError(message, kConstruct)
85
+ error.#closeCode = code
86
+ error.#reason = reason
87
+ return error
88
+ }
89
+
90
+ webidl.is.WebSocketError = (arg) => {
91
+ return arg != null && typeof arg === 'object' && #reason in arg
92
+ }
85
93
  }
86
94
  }
87
95
 
88
- const { createUnvalidatedWebSocketError } = WebSocketError
89
- delete WebSocketError.createUnvalidatedWebSocketError
90
-
91
96
  Object.defineProperties(WebSocketError.prototype, {
92
97
  closeCode: kEnumerableProperty,
93
98
  reason: kEnumerableProperty,
@@ -99,6 +104,4 @@ Object.defineProperties(WebSocketError.prototype, {
99
104
  }
100
105
  })
101
106
 
102
- webidl.is.WebSocketError = webidl.util.MakeTypeAssertion(WebSocketError)
103
-
104
107
  module.exports = { WebSocketError, createUnvalidatedWebSocketError }
@@ -28,6 +28,8 @@ const { channels } = require('../../core/diagnostics')
28
28
  const kRef = Symbol.for('nodejs.ref')
29
29
  const kUnref = Symbol.for('nodejs.unref')
30
30
 
31
+ let ping
32
+
31
33
  function getSocketAddress (socket) {
32
34
  if (typeof socket?.address === 'function') {
33
35
  return socket.address()
@@ -198,16 +200,14 @@ class WebSocket extends EventTarget {
198
200
  this.#binaryType = 'blob'
199
201
  }
200
202
 
203
+ // TODO: remove this
201
204
  [kRef] () {
202
- webidl.brandCheck(this, WebSocket)
203
-
204
205
  this.#refed = true
205
206
  this.#handler.socket?.ref?.()
206
207
  }
207
208
 
209
+ // TODO: remove this
208
210
  [kUnref] () {
209
- webidl.brandCheck(this, WebSocket)
210
-
211
211
  this.#refed = false
212
212
  this.#handler.socket?.unref?.()
213
213
  }
@@ -218,7 +218,7 @@ class WebSocket extends EventTarget {
218
218
  * @param {string|undefined} reason
219
219
  */
220
220
  close (code = undefined, reason = undefined) {
221
- webidl.brandCheck(this, WebSocket)
221
+ webidl.brandCheck(this, webidl.is.WebSocket)
222
222
 
223
223
  const prefix = 'WebSocket.close'
224
224
 
@@ -245,7 +245,7 @@ class WebSocket extends EventTarget {
245
245
  * @param {NodeJS.TypedArray|ArrayBuffer|Blob|string} data
246
246
  */
247
247
  send (data) {
248
- webidl.brandCheck(this, WebSocket)
248
+ webidl.brandCheck(this, webidl.is.WebSocket)
249
249
 
250
250
  const prefix = 'WebSocket.send'
251
251
  webidl.argumentLengthCheck(arguments, 1, prefix)
@@ -339,45 +339,45 @@ class WebSocket extends EventTarget {
339
339
  }
340
340
 
341
341
  get readyState () {
342
- webidl.brandCheck(this, WebSocket)
342
+ webidl.brandCheck(this, webidl.is.WebSocket)
343
343
 
344
344
  // The readyState getter steps are to return this's ready state.
345
345
  return this.#handler.readyState
346
346
  }
347
347
 
348
348
  get bufferedAmount () {
349
- webidl.brandCheck(this, WebSocket)
349
+ webidl.brandCheck(this, webidl.is.WebSocket)
350
350
 
351
351
  return this.#bufferedAmount
352
352
  }
353
353
 
354
354
  get url () {
355
- webidl.brandCheck(this, WebSocket)
355
+ webidl.brandCheck(this, webidl.is.WebSocket)
356
356
 
357
357
  // The url getter steps are to return this's url, serialized.
358
358
  return URLSerializer(this.#url)
359
359
  }
360
360
 
361
361
  get extensions () {
362
- webidl.brandCheck(this, WebSocket)
362
+ webidl.brandCheck(this, webidl.is.WebSocket)
363
363
 
364
364
  return this.#extensions
365
365
  }
366
366
 
367
367
  get protocol () {
368
- webidl.brandCheck(this, WebSocket)
368
+ webidl.brandCheck(this, webidl.is.WebSocket)
369
369
 
370
370
  return this.#protocol
371
371
  }
372
372
 
373
373
  get onopen () {
374
- webidl.brandCheck(this, WebSocket)
374
+ webidl.brandCheck(this, webidl.is.WebSocket)
375
375
 
376
376
  return this.#events.open
377
377
  }
378
378
 
379
379
  set onopen (fn) {
380
- webidl.brandCheck(this, WebSocket)
380
+ webidl.brandCheck(this, webidl.is.WebSocket)
381
381
 
382
382
  if (this.#events.open) {
383
383
  this.removeEventListener('open', this.#events.open)
@@ -394,13 +394,13 @@ class WebSocket extends EventTarget {
394
394
  }
395
395
 
396
396
  get onerror () {
397
- webidl.brandCheck(this, WebSocket)
397
+ webidl.brandCheck(this, webidl.is.WebSocket)
398
398
 
399
399
  return this.#events.error
400
400
  }
401
401
 
402
402
  set onerror (fn) {
403
- webidl.brandCheck(this, WebSocket)
403
+ webidl.brandCheck(this, webidl.is.WebSocket)
404
404
 
405
405
  if (this.#events.error) {
406
406
  this.removeEventListener('error', this.#events.error)
@@ -417,13 +417,13 @@ class WebSocket extends EventTarget {
417
417
  }
418
418
 
419
419
  get onclose () {
420
- webidl.brandCheck(this, WebSocket)
420
+ webidl.brandCheck(this, webidl.is.WebSocket)
421
421
 
422
422
  return this.#events.close
423
423
  }
424
424
 
425
425
  set onclose (fn) {
426
- webidl.brandCheck(this, WebSocket)
426
+ webidl.brandCheck(this, webidl.is.WebSocket)
427
427
 
428
428
  if (this.#events.close) {
429
429
  this.removeEventListener('close', this.#events.close)
@@ -440,13 +440,13 @@ class WebSocket extends EventTarget {
440
440
  }
441
441
 
442
442
  get onmessage () {
443
- webidl.brandCheck(this, WebSocket)
443
+ webidl.brandCheck(this, webidl.is.WebSocket)
444
444
 
445
445
  return this.#events.message
446
446
  }
447
447
 
448
448
  set onmessage (fn) {
449
- webidl.brandCheck(this, WebSocket)
449
+ webidl.brandCheck(this, webidl.is.WebSocket)
450
450
 
451
451
  if (this.#events.message) {
452
452
  this.removeEventListener('message', this.#events.message)
@@ -463,13 +463,13 @@ class WebSocket extends EventTarget {
463
463
  }
464
464
 
465
465
  get binaryType () {
466
- webidl.brandCheck(this, WebSocket)
466
+ webidl.brandCheck(this, webidl.is.WebSocket)
467
467
 
468
468
  return this.#binaryType
469
469
  }
470
470
 
471
471
  set binaryType (type) {
472
- webidl.brandCheck(this, WebSocket)
472
+ webidl.brandCheck(this, webidl.is.WebSocket)
473
473
 
474
474
  if (type !== 'blob' && type !== 'arraybuffer') {
475
475
  this.#binaryType = 'blob'
@@ -654,33 +654,36 @@ class WebSocket extends EventTarget {
654
654
  }
655
655
  }
656
656
 
657
- /**
658
- * @param {WebSocket} ws
659
- * @param {Buffer|undefined} buffer
660
- */
661
- static ping (ws, buffer) {
662
- if (Buffer.isBuffer(buffer)) {
663
- if (buffer.length > 125) {
664
- throw new TypeError('A PING frame cannot have a body larger than 125 bytes.')
657
+ static {
658
+ /**
659
+ * @param {WebSocket} ws
660
+ * @param {Buffer|undefined} buffer
661
+ */
662
+ ping = (ws, buffer) => {
663
+ if (Buffer.isBuffer(buffer)) {
664
+ if (buffer.length > 125) {
665
+ throw new TypeError('A PING frame cannot have a body larger than 125 bytes.')
666
+ }
667
+ } else if (buffer !== undefined) {
668
+ throw new TypeError('Expected buffer payload')
665
669
  }
666
- } else if (buffer !== undefined) {
667
- throw new TypeError('Expected buffer payload')
668
- }
669
670
 
670
- // An endpoint MAY send a Ping frame any time after the connection is
671
- // established and before the connection is closed.
672
- const readyState = ws.#handler.readyState
671
+ // An endpoint MAY send a Ping frame any time after the connection is
672
+ // established and before the connection is closed.
673
+ const readyState = ws.#handler.readyState
673
674
 
674
- if (isEstablished(readyState) && !isClosing(readyState) && !isClosed(readyState)) {
675
- const frame = new WebsocketFrameSend(buffer)
676
- ws.#handler.socket.write(frame.createFrame(opcodes.PING))
675
+ if (isEstablished(readyState) && !isClosing(readyState) && !isClosed(readyState)) {
676
+ const frame = new WebsocketFrameSend(buffer)
677
+ ws.#handler.socket.write(frame.createFrame(opcodes.PING))
678
+ }
679
+ }
680
+
681
+ webidl.is.WebSocket = (arg) => {
682
+ return arg != null && typeof arg === 'object' && #handler in arg
677
683
  }
678
684
  }
679
685
  }
680
686
 
681
- const { ping } = WebSocket
682
- Reflect.deleteProperty(WebSocket, 'ping')
683
-
684
687
  // https://websockets.spec.whatwg.org/#dom-websocket-connecting
685
688
  WebSocket.CONNECTING = WebSocket.prototype.CONNECTING = states.CONNECTING
686
689
  // https://websockets.spec.whatwg.org/#dom-websocket-open
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undici",
3
- "version": "8.10.2",
3
+ "version": "8.11.0",
4
4
  "description": "An HTTP/1.1 client, written from scratch for Node.js",
5
5
  "homepage": "https://undici.nodejs.org",
6
6
  "bugs": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@songtonyli/dsh-cli",
3
- "version": "0.1.36",
3
+ "version": "0.1.38",
4
4
  "description": "The dsh terminal agent: an interactive TUI over the DeepSeek Harness, with its whole Node runtime bundled in one install.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -21,24 +21,24 @@
21
21
  "@aws-crypto/supports-web-crypto": "5.2.0",
22
22
  "@aws-crypto/util": "5.2.0",
23
23
  "@aws-sdk/client-bedrock-runtime": "3.1048.0",
24
- "@aws-sdk/core": "3.978.0",
25
- "@aws-sdk/credential-provider-env": "3.972.71",
26
- "@aws-sdk/credential-provider-http": "3.972.73",
27
- "@aws-sdk/credential-provider-ini": "3.973.16",
28
- "@aws-sdk/credential-provider-login": "3.972.78",
29
- "@aws-sdk/credential-provider-node": "3.972.83",
30
- "@aws-sdk/credential-provider-process": "3.972.71",
31
- "@aws-sdk/credential-provider-sso": "3.973.15",
32
- "@aws-sdk/credential-provider-web-identity": "3.972.77",
33
- "@aws-sdk/eventstream-handler-node": "3.972.34",
34
- "@aws-sdk/middleware-eventstream": "3.972.29",
35
- "@aws-sdk/middleware-websocket": "3.972.53",
36
- "@aws-sdk/nested-clients": "3.997.45",
37
- "@aws-sdk/signature-v4-multi-region": "3.996.46",
24
+ "@aws-sdk/core": "3.978.1",
25
+ "@aws-sdk/credential-provider-env": "3.972.72",
26
+ "@aws-sdk/credential-provider-http": "3.972.74",
27
+ "@aws-sdk/credential-provider-ini": "3.973.17",
28
+ "@aws-sdk/credential-provider-login": "3.972.79",
29
+ "@aws-sdk/credential-provider-node": "3.972.84",
30
+ "@aws-sdk/credential-provider-process": "3.972.72",
31
+ "@aws-sdk/credential-provider-sso": "3.973.16",
32
+ "@aws-sdk/credential-provider-web-identity": "3.972.78",
33
+ "@aws-sdk/eventstream-handler-node": "3.972.35",
34
+ "@aws-sdk/middleware-eventstream": "3.972.30",
35
+ "@aws-sdk/middleware-websocket": "3.972.54",
36
+ "@aws-sdk/nested-clients": "3.997.46",
37
+ "@aws-sdk/signature-v4-multi-region": "3.996.47",
38
38
  "@aws-sdk/token-providers": "3.1048.0",
39
- "@aws-sdk/types": "3.974.5",
39
+ "@aws-sdk/types": "3.974.6",
40
40
  "@aws-sdk/util-locate-window": "3.965.10",
41
- "@aws-sdk/xml-builder": "3.972.40",
41
+ "@aws-sdk/xml-builder": "3.972.41",
42
42
  "@aws/lambda-invoke-store": "0.3.0",
43
43
  "@babel/code-frame": "7.29.7",
44
44
  "@babel/helper-validator-identifier": "7.29.7",
@@ -373,13 +373,13 @@
373
373
  "@shikijs/types": "4.4.3",
374
374
  "@shikijs/vscode-textmate": "10.0.2",
375
375
  "@sindresorhus/merge-streams": "4.0.0",
376
- "@smithy/core": "3.34.1",
376
+ "@smithy/core": "3.35.0",
377
377
  "@smithy/credential-provider-imds": "4.5.2",
378
378
  "@smithy/fetch-http-handler": "5.8.0",
379
379
  "@smithy/is-array-buffer": "2.2.0",
380
380
  "@smithy/node-http-handler": "4.7.3",
381
381
  "@smithy/signature-v4": "5.7.3",
382
- "@smithy/types": "4.18.0",
382
+ "@smithy/types": "4.19.0",
383
383
  "@smithy/util-buffer-from": "2.2.0",
384
384
  "@smithy/util-utf8": "2.3.0",
385
385
  "@stablelib/base64": "1.0.1",
@@ -533,7 +533,7 @@
533
533
  "tslib": "2.8.1",
534
534
  "turndown": "7.2.4",
535
535
  "typebox": "1.3.7",
536
- "undici": "8.10.2",
536
+ "undici": "8.11.0",
537
537
  "undici-types": "6.21.0",
538
538
  "unicode-properties": "1.4.1",
539
539
  "unicode-trie": "2.0.0",