@psnext/slingcli 3.5.20261007-3 → 3.5.20261019-1

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 (377) hide show
  1. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +12 -3
  2. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +94 -1589
  3. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +12 -3
  4. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -7
  5. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -3
  6. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -3
  7. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +2 -8
  8. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
  9. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
  10. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
  11. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
  12. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +10 -10
  13. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
  14. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
  15. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
  16. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
  17. package/node_modules/@aws-sdk/core/package.json +3 -3
  18. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  19. package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
  20. package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
  21. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  22. package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
  23. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  24. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +37 -19
  25. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +37 -19
  26. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +4 -4
  27. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  28. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  29. package/node_modules/@aws-sdk/eventstream-handler-node/package.json +2 -2
  30. package/node_modules/@aws-sdk/middleware-eventstream/package.json +2 -2
  31. package/node_modules/@aws-sdk/middleware-websocket/package.json +4 -4
  32. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +11 -1
  33. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +6 -1
  34. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +6 -1
  35. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +13 -1
  36. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +9 -1
  37. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +1 -0
  38. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/errors.js +9 -0
  39. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js +1 -0
  40. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js +4 -0
  41. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js +1 -0
  42. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js +4 -0
  43. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js +1 -0
  44. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js +11 -0
  45. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js +1 -0
  46. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js +7 -0
  47. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
  48. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/errors.d.ts +9 -0
  49. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/SigninServiceException.d.ts +1 -0
  50. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +4 -0
  51. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/SSOServiceException.d.ts +1 -0
  52. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/errors.d.ts +4 -0
  53. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
  54. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/errors.d.ts +11 -0
  55. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/STSServiceException.d.ts +1 -0
  56. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +7 -0
  57. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
  58. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +9 -0
  59. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +1 -0
  60. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/errors.d.ts +4 -0
  61. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/SSOServiceException.d.ts +1 -0
  62. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/errors.d.ts +4 -0
  63. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
  64. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +11 -0
  65. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/STSServiceException.d.ts +1 -0
  66. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/errors.d.ts +7 -0
  67. package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  68. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  69. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js +2 -0
  70. package/node_modules/@earendil-works/pi-codemode/dist/runtime/host.js +21 -86
  71. package/node_modules/@earendil-works/pi-codemode/dist/runtime/prelude-source.js +3 -103
  72. package/node_modules/@earendil-works/pi-codemode/package.json +1 -1
  73. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-TFS67BSI.js → chunk-23QDZLZG.js} +20 -14
  74. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-IB6ONE3U.js → chunk-QPFSTNX5.js} +1 -1
  75. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{virtual-modules-P5ROWYIG.js → virtual-modules-GRXGP6ZA.js} +1 -1
  76. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/cli-runtime.js +1 -1
  77. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/index.js +1 -1
  78. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/rpc-entry.js +1 -1
  79. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Agent.md +8 -8
  80. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/CacheStore.md +24 -9
  81. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Client.md +11 -6
  82. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +9 -6
  83. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Dispatcher.md +12 -0
  84. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Errors.md +101 -1
  85. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Fetch.md +10 -0
  86. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/H2CClient.md +3 -2
  87. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Interceptors.md +17 -9
  88. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Pool.md +5 -6
  89. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/RedirectHandler.md +13 -10
  90. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/index.md +22 -13
  91. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/type-map.json +66 -66
  92. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/api/readable.js +1 -2
  93. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/cache/memory-cache-store.js +48 -13
  94. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/cache/sqlite-cache-store.js +83 -5
  95. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/connect.js +10 -4
  96. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/constants.js +12 -1
  97. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/errors.js +38 -1
  98. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/request.js +39 -3
  99. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/symbols.js +2 -0
  100. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/util.js +26 -40
  101. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/agent.js +6 -2
  102. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h1.js +127 -84
  103. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h2.js +97 -21
  104. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client.js +10 -2
  105. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher-base.js +3 -2
  106. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +20 -3
  107. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +21 -6
  108. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/parser-h1.js +1064 -0
  109. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/pool-base.js +117 -19
  110. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/pool.js +99 -13
  111. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/proxy-agent.js +34 -11
  112. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/retry-agent.js +10 -0
  113. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/round-robin-pool.js +15 -5
  114. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/cache-handler.js +153 -15
  115. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/deduplication-handler.js +126 -52
  116. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/redirect-handler.js +31 -6
  117. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/retry-handler.js +116 -24
  118. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/cache.js +15 -4
  119. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/decompress.js +253 -73
  120. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/dns.js +11 -0
  121. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/response-error.js +72 -28
  122. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/milo/LICENSE.md +7 -0
  123. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/milo/no-simd.js +1002 -0
  124. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/milo/simd.js +1002 -0
  125. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-agent.js +11 -0
  126. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/snapshot-recorder.js +3 -2
  127. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/snapshot-utils.js +3 -2
  128. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/util/cache.js +11 -5
  129. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cache/cache.js +17 -8
  130. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cache/cachestorage.js +11 -5
  131. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cookies/index.js +19 -7
  132. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cookies/util.js +21 -2
  133. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource-stream.js +69 -15
  134. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource.js +50 -3
  135. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/body.js +69 -53
  136. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/data-url.js +6 -6
  137. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/formdata-parser.js +12 -4
  138. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/formdata.js +30 -36
  139. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/headers.js +36 -33
  140. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/index.js +54 -29
  141. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/request.js +74 -79
  142. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/response.js +43 -44
  143. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/util.js +7 -7
  144. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/infra/index.js +16 -1
  145. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
  146. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/webidl/index.js +2 -14
  147. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/connection.js +33 -12
  148. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/events.js +43 -26
  149. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/receiver.js +27 -4
  150. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/stream/websocketerror.js +13 -10
  151. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/stream/websocketstream.js +19 -4
  152. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/websocket.js +44 -41
  153. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/package.json +7 -5
  154. package/node_modules/@earendil-works/pi-coding-agent/package.json +2 -2
  155. package/node_modules/@hono/node-server/README.md +2 -0
  156. package/node_modules/@hono/node-server/dist/index.cjs +1 -1
  157. package/node_modules/@hono/node-server/dist/index.mjs +1 -1
  158. package/node_modules/@hono/node-server/dist/serve-static.cjs +2 -1
  159. package/node_modules/@hono/node-server/dist/serve-static.mjs +2 -1
  160. package/node_modules/@hono/node-server/package.json +2 -2
  161. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
  162. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -1
  163. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1695 -3
  164. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/cache/EndpointCache.js +2 -1
  165. package/node_modules/@smithy/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js +6 -0
  166. package/node_modules/@smithy/core/dist-es/submodules/protocols/UnionSerde.js +26 -0
  167. package/node_modules/@smithy/core/dist-es/submodules/protocols/common.js +3 -0
  168. package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +8 -0
  169. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js +102 -0
  170. package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +8 -1
  171. package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +8 -1
  172. package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +13 -2
  173. package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +11 -1
  174. package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/parseJsonBody.js +16 -1
  175. package/node_modules/@smithy/core/dist-es/submodules/protocols/writeKey.js +3 -0
  176. package/node_modules/@smithy/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
  177. package/node_modules/@smithy/core/dist-types/submodules/protocols/UnionSerde.d.ts +24 -0
  178. package/node_modules/@smithy/core/dist-types/submodules/protocols/common.d.ts +2 -0
  179. package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +9 -0
  180. package/node_modules/@smithy/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +13 -0
  181. package/node_modules/@smithy/core/dist-types/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +28 -0
  182. package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +16 -0
  183. package/node_modules/@smithy/core/dist-types/submodules/protocols/writeKey.d.ts +4 -0
  184. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
  185. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +24 -0
  186. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -0
  187. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +9 -0
  188. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +13 -0
  189. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +28 -0
  190. package/node_modules/{@aws-sdk → @smithy}/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +15 -11
  191. package/node_modules/{@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json → @smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1}/JsonSettings.d.ts +7 -4
  192. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +14 -0
  193. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +29 -0
  194. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
  195. package/node_modules/{@aws-sdk → @smithy}/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -9
  196. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +30 -0
  197. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +60 -0
  198. package/node_modules/{@aws-sdk → @smithy}/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -1
  199. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +21 -0
  200. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +15 -0
  201. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +11 -0
  202. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +38 -0
  203. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +4 -0
  204. package/node_modules/@smithy/core/package.json +2 -1
  205. package/node_modules/@types/node/README.md +1 -1
  206. package/node_modules/@types/node/package.json +2 -2
  207. package/node_modules/@types/node/util.d.ts +6 -3
  208. package/node_modules/content-disposition/README.md +105 -35
  209. package/node_modules/content-disposition/dist/index.d.ts +72 -0
  210. package/node_modules/content-disposition/dist/index.js +388 -0
  211. package/node_modules/content-disposition/dist/index.js.map +1 -0
  212. package/node_modules/content-disposition/package.json +31 -19
  213. package/node_modules/express/Readme.md +15 -9
  214. package/node_modules/express/lib/application.js +2 -2
  215. package/node_modules/express/lib/request.js +32 -19
  216. package/node_modules/express/lib/response.js +27 -30
  217. package/node_modules/express/node_modules/content-type/LICENSE +22 -0
  218. package/node_modules/express/node_modules/content-type/README.md +71 -0
  219. package/node_modules/express/node_modules/content-type/dist/index.d.ts +46 -0
  220. package/node_modules/express/node_modules/content-type/dist/index.js +176 -0
  221. package/node_modules/express/node_modules/content-type/dist/index.js.map +1 -0
  222. package/node_modules/express/node_modules/content-type/package.json +52 -0
  223. package/node_modules/express/package.json +10 -10
  224. package/node_modules/fast-uri/.github/workflows/release.yml +35 -0
  225. package/node_modules/fast-uri/README.md +8 -0
  226. package/node_modules/fast-uri/index.js +98 -18
  227. package/node_modules/fast-uri/lib/utils.js +52 -0
  228. package/node_modules/fast-uri/package.json +1 -1
  229. package/node_modules/fast-uri/test/host-delimiter-security.test.js +94 -0
  230. package/node_modules/fast-uri/test/relative-normalization-security.test.js +156 -0
  231. package/node_modules/fast-uri/test/reserved-path-normalization.test.js +32 -4
  232. package/node_modules/fast-uri/test/scheme-validation.test.js +53 -14
  233. package/node_modules/ip-address/README.md +70 -70
  234. package/node_modules/ip-address/dist/ipv6.js +7 -4
  235. package/node_modules/ip-address/dist/ipv6.js.map +1 -1
  236. package/node_modules/ip-address/dist/v6/constants.d.ts +3 -0
  237. package/node_modules/ip-address/dist/v6/constants.js +3 -0
  238. package/node_modules/ip-address/dist/v6/constants.js.map +1 -1
  239. package/node_modules/ip-address/package.json +2 -1
  240. package/node_modules/jose/README.md +2 -2
  241. package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +5 -4
  242. package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +4 -4
  243. package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +5 -4
  244. package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +5 -5
  245. package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +5 -4
  246. package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +5 -5
  247. package/node_modules/jose/dist/types/jws/compact/sign.d.ts +5 -4
  248. package/node_modules/jose/dist/types/jws/compact/verify.d.ts +5 -5
  249. package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +5 -4
  250. package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +6 -5
  251. package/node_modules/jose/dist/types/jws/general/sign.d.ts +9 -6
  252. package/node_modules/jose/dist/types/jws/general/verify.d.ts +7 -5
  253. package/node_modules/jose/dist/types/jwt/decrypt.d.ts +7 -6
  254. package/node_modules/jose/dist/types/jwt/encrypt.d.ts +1 -1
  255. package/node_modules/jose/dist/types/jwt/sign.d.ts +1 -1
  256. package/node_modules/jose/dist/types/jwt/unsecured.d.ts +1 -1
  257. package/node_modules/jose/dist/types/jwt/verify.d.ts +3 -5
  258. package/node_modules/jose/dist/types/key/export.d.ts +1 -1
  259. package/node_modules/jose/dist/types/key/generate_secret.d.ts +1 -1
  260. package/node_modules/jose/dist/types/key/import.d.ts +2 -2
  261. package/node_modules/jose/dist/types/types.d.ts +165 -107
  262. package/node_modules/jose/dist/types/util/decode_jwt.d.ts +2 -2
  263. package/node_modules/jose/dist/types/util/errors.d.ts +1 -1
  264. package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +3 -3
  265. package/node_modules/jose/dist/webapi/jwk/thumbprint.js +8 -8
  266. package/node_modules/jose/dist/webapi/jwks/local.js +2 -1
  267. package/node_modules/jose/dist/webapi/jwks/remote.js +4 -4
  268. package/node_modules/jose/dist/webapi/jws/general/sign.js +3 -3
  269. package/node_modules/jose/dist/webapi/jws/general/verify.js +3 -3
  270. package/node_modules/jose/dist/webapi/jwt/encrypt.js +2 -2
  271. package/node_modules/jose/dist/webapi/jwt/sign.js +2 -2
  272. package/node_modules/jose/dist/webapi/jwt/unsecured.js +3 -3
  273. package/node_modules/jose/dist/webapi/key/generate_secret.js +4 -4
  274. package/node_modules/jose/dist/webapi/lib/asn1.js +2 -2
  275. package/node_modules/jose/dist/webapi/lib/buffer_utils.js +4 -4
  276. package/node_modules/jose/dist/webapi/lib/content_encryption.js +8 -8
  277. package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +14 -14
  278. package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +3 -3
  279. package/node_modules/jose/dist/webapi/lib/jws_algorithms.js +2 -2
  280. package/node_modules/jose/dist/webapi/lib/jws_sign.js +11 -11
  281. package/node_modules/jose/dist/webapi/lib/jws_verify.js +19 -16
  282. package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +44 -43
  283. package/node_modules/jose/dist/webapi/lib/key.js +4 -4
  284. package/node_modules/jose/dist/webapi/lib/key_management.js +17 -17
  285. package/node_modules/jose/dist/webapi/lib/validate.js +10 -10
  286. package/node_modules/jose/dist/webapi/util/decode_jwt.js +12 -12
  287. package/node_modules/jose/dist/webapi/util/decode_protected_header.js +5 -5
  288. package/node_modules/jose/package.json +1 -1
  289. package/node_modules/qs/.github/THREAT_MODEL.md +4 -2
  290. package/node_modules/qs/CHANGELOG.md +38 -14
  291. package/node_modules/qs/README.md +31 -3
  292. package/node_modules/qs/dist/qs.js +20 -20
  293. package/node_modules/qs/lib/parse.js +94 -4
  294. package/node_modules/qs/lib/stringify.js +4 -4
  295. package/node_modules/qs/lib/utils.js +130 -6
  296. package/node_modules/qs/package.json +4 -4
  297. package/node_modules/qs/test/parse.js +174 -0
  298. package/node_modules/qs/test/stringify.js +263 -33
  299. package/node_modules/qs/test/utils.js +184 -0
  300. package/node_modules/undici/docs/docs/api/Client.md +2 -0
  301. package/node_modules/undici/lib/core/connect.js +10 -4
  302. package/node_modules/undici/lib/core/symbols.js +1 -0
  303. package/node_modules/undici/lib/dispatcher/agent.js +6 -2
  304. package/node_modules/undici/lib/dispatcher/client-h1.js +0 -2
  305. package/node_modules/undici/lib/dispatcher/client-h2.js +0 -4
  306. package/node_modules/undici/lib/dispatcher/client.js +3 -2
  307. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +12 -0
  308. package/node_modules/undici/lib/handler/cache-handler.js +48 -0
  309. package/node_modules/undici/lib/handler/deduplication-handler.js +57 -13
  310. package/node_modules/undici/lib/handler/redirect-handler.js +8 -1
  311. package/node_modules/undici/lib/interceptor/decompress.js +15 -5
  312. package/node_modules/undici/lib/web/cookies/index.js +3 -1
  313. package/node_modules/undici/lib/web/cookies/parse.js +138 -137
  314. package/node_modules/undici/lib/web/cookies/util.js +21 -2
  315. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +90 -9
  316. package/node_modules/undici/lib/web/eventsource/eventsource.js +4 -1
  317. package/node_modules/undici/lib/web/fetch/index.js +3 -3
  318. package/node_modules/undici/lib/web/infra/index.js +14 -0
  319. package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
  320. package/node_modules/undici/lib/web/websocket/receiver.js +13 -0
  321. package/node_modules/undici/package.json +1 -1
  322. package/node_modules/undici/types/client.d.ts +14 -0
  323. package/node_modules/zod/package.json +1 -1
  324. package/node_modules/zod/src/v4/classic/tests/array.test.ts +27 -0
  325. package/node_modules/zod/src/v4/classic/tests/map.test.ts +7 -0
  326. package/node_modules/zod/src/v4/classic/tests/set.test.ts +6 -0
  327. package/node_modules/zod/src/v4/core/compile.ts +9 -0
  328. package/node_modules/zod/src/v4/core/schemas.ts +35 -1
  329. package/node_modules/zod/src/v4/core/util.ts +13 -0
  330. package/node_modules/zod/src/v4/core/versions.ts +1 -1
  331. package/node_modules/zod/v4/core/compile.cjs +8 -0
  332. package/node_modules/zod/v4/core/compile.js +8 -0
  333. package/node_modules/zod/v4/core/schemas.cjs +30 -0
  334. package/node_modules/zod/v4/core/schemas.d.cts +3 -1
  335. package/node_modules/zod/v4/core/schemas.d.ts +3 -1
  336. package/node_modules/zod/v4/core/schemas.js +30 -0
  337. package/node_modules/zod/v4/core/util.cjs +15 -0
  338. package/node_modules/zod/v4/core/util.d.cts +2 -0
  339. package/node_modules/zod/v4/core/util.d.ts +2 -0
  340. package/node_modules/zod/v4/core/util.js +14 -0
  341. package/node_modules/zod/v4/core/versions.cjs +1 -1
  342. package/node_modules/zod/v4/core/versions.js +1 -1
  343. package/package.json +5 -4
  344. package/slingshot/index.js +124 -124
  345. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -7
  346. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -4
  347. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -13
  348. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -18
  349. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -27
  350. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -15
  351. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -39
  352. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +0 -7
  353. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +0 -7
  354. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +0 -2
  355. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +0 -14
  356. package/node_modules/content-disposition/index.js +0 -536
  357. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/JsonSettings.js +0 -0
  358. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js +0 -0
  359. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +0 -0
  360. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +0 -0
  361. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +0 -0
  362. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/detectBufferParsing.js +0 -0
  363. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/jsonReplacer.js +0 -0
  364. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/jsonReviver.js +0 -0
  365. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/needsReviver.js +0 -0
  366. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -0
  367. /package/node_modules/{@aws-sdk/core/dist-types/submodules/protocols/json → @smithy/core/dist-types/submodules/protocols/json/codec-v1}/JsonSettings.d.ts +0 -0
  368. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -0
  369. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -0
  370. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -0
  371. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -0
  372. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -0
  373. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -0
  374. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +0 -0
  375. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts +0 -0
  376. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +0 -0
  377. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/needsReviver.d.ts +0 -0
@@ -2,7 +2,6 @@
2
2
 
3
3
  const util = require('../../core/util')
4
4
  const {
5
- ReadableStreamFrom,
6
5
  readableStreamClose,
7
6
  fullyReadBody,
8
7
  extractMimeType
@@ -40,7 +39,6 @@ const streamRegistry = new FinalizationRegistry((weakRef) => {
40
39
  function extractBody (object, keepalive = false) {
41
40
  // 1. Let stream be null.
42
41
  let stream = null
43
- let controller = null
44
42
 
45
43
  // 2. If object is a ReadableStream object, then set stream to object.
46
44
  if (webidl.is.ReadableStream(object)) {
@@ -53,11 +51,44 @@ function extractBody (object, keepalive = false) {
53
51
  // 4. Otherwise, set stream to a new ReadableStream object, and set
54
52
  // up stream with byte reading support.
55
53
  stream = new ReadableStream({
56
- pull () {},
57
- start (c) {
58
- controller = c
54
+ start () {},
55
+ async pull (controller) {
56
+ // 19.1. Run action.
57
+ const result = action()
58
+
59
+ const iterator = result?.[Symbol.asyncIterator]?.()
60
+ if (iterator == null) {
61
+ // 19.2. Whenever one or more bytes are available and stream is not errored,
62
+ // enqueue the result of creating a Uint8Array from the available bytes into stream.
63
+ if (result?.length && !isErrored(stream)) {
64
+ controller.enqueue(typeof result === 'string' ? textEncoder.encode(result) : new Uint8Array(result))
65
+ }
66
+
67
+ // 19.3. When running action is done, close stream.
68
+ queueMicrotask(() => readableStreamClose(controller))
69
+ return
70
+ }
71
+
72
+ while (true) {
73
+ const { value, done } = await iterator.next()
74
+
75
+ // 19.3. When running action is done, close stream.
76
+ if (done) {
77
+ queueMicrotask(() => readableStreamClose(controller))
78
+ return
79
+ }
80
+
81
+ // 19.2. Whenever one or more bytes are available and stream is not errored,
82
+ // enqueue the result of creating a Uint8Array from the available bytes into stream.
83
+ if (value.length && !isErrored(stream)) {
84
+ controller.enqueue(new Uint8Array(value))
85
+ return
86
+ }
87
+ }
88
+ },
89
+ cancel (reason) {
90
+ return action()[Symbol.asyncIterator]?.().return(reason)
59
91
  },
60
- cancel () {},
61
92
  type: 'bytes'
62
93
  })
63
94
  }
@@ -156,7 +187,7 @@ function extractBody (object, keepalive = false) {
156
187
  // Set source to object.
157
188
  source = object
158
189
 
159
- action = async function * () {
190
+ const parts = (async function * () {
160
191
  for (const part of blobParts) {
161
192
  if (part.stream) {
162
193
  yield * part.stream()
@@ -164,7 +195,8 @@ function extractBody (object, keepalive = false) {
164
195
  yield part
165
196
  }
166
197
  }
167
- }
198
+ })()
199
+ action = () => parts
168
200
 
169
201
  // Set type to `multipart/form-data; boundary=`,
170
202
  // followed by the multipart/form-data boundary string generated
@@ -197,49 +229,33 @@ function extractBody (object, keepalive = false) {
197
229
  )
198
230
  }
199
231
 
200
- stream =
201
- webidl.is.ReadableStream(object) ? object : ReadableStreamFrom(object)
232
+ stream = webidl.is.ReadableStream(object)
233
+ ? object
234
+ : ReadableStream.from(object).pipeThrough(new TransformStream({
235
+ transform (chunk, controller) {
236
+ const bytes = isUint8Array(chunk) ? chunk : Buffer.from(chunk)
237
+ if (bytes.byteLength) {
238
+ controller.enqueue(bytes)
239
+ }
240
+ }
241
+ }))
202
242
  }
203
243
 
204
- // 11. If source is a byte sequence, then set action to a
244
+ // 18. If source is a byte sequence, then set action to a
205
245
  // step that returns source and length to source’s length.
206
246
  if (typeof source === 'string' || isUint8Array(source)) {
207
- action = () => {
208
- length = typeof source === 'string' ? Buffer.byteLength(source) : source.length
209
- return source
210
- }
247
+ action = () => source
248
+ length = typeof source === 'string' ? Buffer.byteLength(source) : source.length
211
249
  }
212
250
 
213
- // 12. If action is non-null, then run these steps in parallel:
214
- if (action != null) {
215
- ;(async () => {
216
- // 1. Run action.
217
- const result = action()
218
-
219
- // 2. Whenever one or more bytes are available and stream is not errored,
220
- // enqueue the result of creating a Uint8Array from the available bytes into stream.
221
- const iterator = result?.[Symbol.asyncIterator]?.()
222
- if (iterator) {
223
- for await (const bytes of iterator) {
224
- if (isErrored(stream)) break
225
- if (bytes.length) {
226
- controller.enqueue(new Uint8Array(bytes))
227
- }
228
- }
229
- } else if (result?.length && !isErrored(stream)) {
230
- controller.enqueue(typeof result === 'string' ? textEncoder.encode(result) : new Uint8Array(result))
231
- }
232
-
233
- // 3. When running action is done, close stream.
234
- queueMicrotask(() => readableStreamClose(controller))
235
- })()
236
- }
251
+ // 19. If action is non-null, then run these steps in parallel:
252
+ // Note: this is done in the pull method of the stream created above
237
253
 
238
- // 13. Let body be a body whose stream is stream, source is source,
254
+ // 20. Let body be a body whose stream is stream, source is source,
239
255
  // and length is length.
240
256
  const body = { stream, source, length }
241
257
 
242
- // 14. Return (body, type).
258
+ // 21. Return (body, type).
243
259
  return [body, type]
244
260
  }
245
261
 
@@ -293,7 +309,7 @@ function cloneBody (body) {
293
309
  }
294
310
  }
295
311
 
296
- function bodyMixinMethods (instance, getInternalState) {
312
+ function bodyMixinMethods (brandCheck, getInternalState) {
297
313
  const methods = {
298
314
  blob () {
299
315
  // The blob() method steps are to return the result of
@@ -313,7 +329,7 @@ function bodyMixinMethods (instance, getInternalState) {
313
329
  // Return a Blob whose contents are bytes and type attribute
314
330
  // is mimeType.
315
331
  return new Blob([bytes], { type: mimeType })
316
- }, instance, getInternalState)
332
+ }, brandCheck, getInternalState)
317
333
  },
318
334
 
319
335
  arrayBuffer () {
@@ -323,19 +339,19 @@ function bodyMixinMethods (instance, getInternalState) {
323
339
  // whose contents are bytes.
324
340
  return consumeBody(this, (bytes) => {
325
341
  return new Uint8Array(bytes).buffer
326
- }, instance, getInternalState)
342
+ }, brandCheck, getInternalState)
327
343
  },
328
344
 
329
345
  text () {
330
346
  // The text() method steps are to return the result of running
331
347
  // consume body with this and UTF-8 decode.
332
- return consumeBody(this, utf8DecodeBytes, instance, getInternalState)
348
+ return consumeBody(this, utf8DecodeBytes, brandCheck, getInternalState)
333
349
  },
334
350
 
335
351
  json () {
336
352
  // The json() method steps are to return the result of running
337
353
  // consume body with this and parse JSON from bytes.
338
- return consumeBody(this, parseJSONFromBytes, instance, getInternalState)
354
+ return consumeBody(this, parseJSONFromBytes, brandCheck, getInternalState)
339
355
  },
340
356
 
341
357
  formData () {
@@ -383,7 +399,7 @@ function bodyMixinMethods (instance, getInternalState) {
383
399
  throw new TypeError(
384
400
  'Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".'
385
401
  )
386
- }, instance, getInternalState)
402
+ }, brandCheck, getInternalState)
387
403
  },
388
404
 
389
405
  bytes () {
@@ -392,7 +408,7 @@ function bodyMixinMethods (instance, getInternalState) {
392
408
  // result of creating a Uint8Array from bytes in this’s relevant realm.
393
409
  return consumeBody(this, (bytes) => {
394
410
  return new Uint8Array(bytes)
395
- }, instance, getInternalState)
411
+ }, brandCheck, getInternalState)
396
412
  },
397
413
 
398
414
  textStream () {
@@ -442,20 +458,20 @@ function bodyMixinMethods (instance, getInternalState) {
442
458
  return methods
443
459
  }
444
460
 
445
- function mixinBody (prototype, getInternalState) {
446
- Object.assign(prototype.prototype, bodyMixinMethods(prototype, getInternalState))
461
+ function mixinBody (prototype, getInternalState, brandCheck) {
462
+ Object.assign(prototype.prototype, bodyMixinMethods(brandCheck, getInternalState))
447
463
  }
448
464
 
449
465
  /**
450
466
  * @see https://fetch.spec.whatwg.org/#concept-body-consume-body
451
467
  * @param {any} object internal state
452
468
  * @param {(value: unknown) => unknown} convertBytesToJSValue
453
- * @param {any} instance
469
+ * @param {import('../../../types/webidl').WebidlIsFunction} brandCheck
454
470
  * @param {(target: any) => any} getInternalState
455
471
  */
456
- function consumeBody (object, convertBytesToJSValue, instance, getInternalState) {
472
+ function consumeBody (object, convertBytesToJSValue, brandCheck, getInternalState) {
457
473
  try {
458
- webidl.brandCheck(object, instance)
474
+ webidl.brandCheck(object, brandCheck)
459
475
  } catch (e) {
460
476
  return Promise.reject(e)
461
477
  }
@@ -1,14 +1,14 @@
1
1
  'use strict'
2
2
 
3
3
  const assert = require('node:assert')
4
- const { forgivingBase64, collectASequenceOfCodePoints, collectASequenceOfCodePointsFast, isomorphicDecode, removeASCIIWhitespace, removeChars } = require('../infra')
4
+ const { asciiLowercase, forgivingBase64, collectASequenceOfCodePoints, collectASequenceOfCodePointsFast, isomorphicDecode, removeASCIIWhitespace, removeChars } = require('../infra')
5
5
 
6
6
  const encoder = new TextEncoder()
7
7
 
8
8
  /**
9
9
  * @see https://mimesniff.spec.whatwg.org/#http-token-code-point
10
10
  */
11
- const HTTP_TOKEN_CODEPOINTS = /^[-!#$%&'*+.^_|~A-Za-z0-9]+$/u
11
+ const HTTP_TOKEN_CODEPOINTS = /^[-!#$%&'*+.^_`|~A-Za-z0-9]+$/u
12
12
  const HTTP_WHITESPACE_REGEX = /[\u000A\u000D\u0009\u0020]/u // eslint-disable-line
13
13
 
14
14
  /**
@@ -69,7 +69,7 @@ function dataURLProcessor (dataURL) {
69
69
  // 11. If mimeType ends with U+003B (;), followed by
70
70
  // zero or more U+0020 SPACE, followed by an ASCII
71
71
  // case-insensitive match for "base64", then:
72
- if (/;(?:\u0020*)base64$/ui.test(mimeType)) {
72
+ if (/;\u0020*[Bb][Aa][Ss][Ee]64$/u.test(mimeType)) {
73
73
  // 1. Let stringBody be the isomorphic decode of body.
74
74
  const stringBody = isomorphicDecode(body)
75
75
 
@@ -268,8 +268,8 @@ function parseMIMEType (input) {
268
268
  return 'failure'
269
269
  }
270
270
 
271
- const typeLowercase = type.toLowerCase()
272
- const subtypeLowercase = subtype.toLowerCase()
271
+ const typeLowercase = asciiLowercase(type)
272
+ const subtypeLowercase = asciiLowercase(subtype)
273
273
 
274
274
  // 10. Let mimeType be a new MIME type record whose type
275
275
  // is type, in ASCII lowercase, and subtype is subtype,
@@ -309,7 +309,7 @@ function parseMIMEType (input) {
309
309
 
310
310
  // 4. Set parameterName to parameterName, in ASCII
311
311
  // lowercase.
312
- parameterName = parameterName.toLowerCase()
312
+ parameterName = asciiLowercase(parameterName)
313
313
 
314
314
  // 5. If position is not past the end of input, then:
315
315
  if (position.position < input.length) {
@@ -261,19 +261,27 @@ function parseContentDispositionAttribute (input, position) {
261
261
  position
262
262
  )
263
263
 
264
- // Check for utf-8'' prefix (case insensitive)
264
+ const charsetSeparator = headerValue.indexOf(0x27)
265
+ const languageSeparator = charsetSeparator === -1
266
+ ? -1
267
+ : headerValue.indexOf(0x27, charsetSeparator + 1)
268
+
269
+ if (charsetSeparator === -1 || languageSeparator === -1) {
270
+ throw parsingError('expected charset and language separators in extended value')
271
+ }
272
+
265
273
  if (
274
+ charsetSeparator !== 5 ||
266
275
  (headerValue[0] !== 0x75 && headerValue[0] !== 0x55) || // u or U
267
276
  (headerValue[1] !== 0x74 && headerValue[1] !== 0x54) || // t or T
268
277
  (headerValue[2] !== 0x66 && headerValue[2] !== 0x46) || // f or F
269
278
  headerValue[3] !== 0x2d || // -
270
279
  headerValue[4] !== 0x38 // 8
271
280
  ) {
272
- throw parsingError('unknown encoding, expected utf-8\'\'')
281
+ throw parsingError('unknown charset, expected utf-8')
273
282
  }
274
283
 
275
- // Skip utf-8'' and decode the rest
276
- value = decodeURIComponent(decoder.decode(headerValue.subarray(7)))
284
+ value = decodeURIComponent(decoder.decode(headerValue.subarray(languageSeparator + 1)))
277
285
  } else if (input[position.position] === 0x22 /* " */) {
278
286
  // Quoted string
279
287
  position.position++ // skip opening quote
@@ -10,6 +10,8 @@ const random = runtimeFeatures.has('crypto')
10
10
  ? require('node:crypto').randomInt
11
11
  : (max) => Math.floor(Math.random() * max)
12
12
 
13
+ let getFormDataState, setFormDataState, getFormDataBoundary
14
+
13
15
  // https://xhr.spec.whatwg.org/#formdata
14
16
  class FormData {
15
17
  #state = []
@@ -28,7 +30,7 @@ class FormData {
28
30
  }
29
31
 
30
32
  append (name, value, filename = undefined) {
31
- webidl.brandCheck(this, FormData)
33
+ webidl.brandCheck(this, webidl.is.FormData)
32
34
 
33
35
  const prefix = 'FormData.append'
34
36
  webidl.argumentLengthCheck(arguments, 2, prefix)
@@ -56,7 +58,7 @@ class FormData {
56
58
  }
57
59
 
58
60
  delete (name) {
59
- webidl.brandCheck(this, FormData)
61
+ webidl.brandCheck(this, webidl.is.FormData)
60
62
 
61
63
  const prefix = 'FormData.delete'
62
64
  webidl.argumentLengthCheck(arguments, 1, prefix)
@@ -69,7 +71,7 @@ class FormData {
69
71
  }
70
72
 
71
73
  get (name) {
72
- webidl.brandCheck(this, FormData)
74
+ webidl.brandCheck(this, webidl.is.FormData)
73
75
 
74
76
  const prefix = 'FormData.get'
75
77
  webidl.argumentLengthCheck(arguments, 1, prefix)
@@ -89,7 +91,7 @@ class FormData {
89
91
  }
90
92
 
91
93
  getAll (name) {
92
- webidl.brandCheck(this, FormData)
94
+ webidl.brandCheck(this, webidl.is.FormData)
93
95
 
94
96
  const prefix = 'FormData.getAll'
95
97
  webidl.argumentLengthCheck(arguments, 1, prefix)
@@ -106,7 +108,7 @@ class FormData {
106
108
  }
107
109
 
108
110
  has (name) {
109
- webidl.brandCheck(this, FormData)
111
+ webidl.brandCheck(this, webidl.is.FormData)
110
112
 
111
113
  const prefix = 'FormData.has'
112
114
  webidl.argumentLengthCheck(arguments, 1, prefix)
@@ -119,7 +121,7 @@ class FormData {
119
121
  }
120
122
 
121
123
  set (name, value, filename = undefined) {
122
- webidl.brandCheck(this, FormData)
124
+ webidl.brandCheck(this, webidl.is.FormData)
123
125
 
124
126
  const prefix = 'FormData.set'
125
127
  webidl.argumentLengthCheck(arguments, 2, prefix)
@@ -184,40 +186,34 @@ class FormData {
184
186
  return `FormData ${output.slice(output.indexOf(']') + 2)}`
185
187
  }
186
188
 
187
- /**
188
- * @param {FormData} formData
189
- */
190
- static getFormDataState (formData) {
191
- return formData.#state
192
- }
189
+ static {
190
+ /** @param {FormData} formData */
191
+ getFormDataState = (formData) => formData.#state
193
192
 
194
- /**
195
- * @param {FormData} formData
196
- * @param {any[]} newState
197
- */
198
- static setFormDataState (formData, newState) {
199
- formData.#state = newState
200
- }
193
+ /**
194
+ * @param {FormData} formData
195
+ * @param {any[]} newState
196
+ */
197
+ setFormDataState = (formData, newState) => {
198
+ formData.#state = newState
199
+ }
201
200
 
202
- /**
203
- * @param {FormData} formData
204
- * @returns {string | null}
205
- */
206
- static getFormDataBoundary (formData) {
207
- const boundary = formData.#boundary
208
- if (boundary != null) return boundary
201
+ /**
202
+ * @param {FormData} formData
203
+ * @returns {string | null}
204
+ */
205
+ getFormDataBoundary = (formData) => {
206
+ // eslint-disable-next-line no-return-assign
207
+ return formData.#boundary ??= `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
208
+ }
209
209
 
210
- // eslint-disable-next-line no-return-assign
211
- return formData.#boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
210
+ webidl.is.FormData = (arg) => {
211
+ return arg != null && typeof arg === 'object' && #state in arg
212
+ }
212
213
  }
213
214
  }
214
215
 
215
- const { getFormDataState, setFormDataState, getFormDataBoundary } = FormData
216
- Reflect.deleteProperty(FormData, 'getFormDataState')
217
- Reflect.deleteProperty(FormData, 'setFormDataState')
218
- Reflect.deleteProperty(FormData, 'getFormDataBoundary')
219
-
220
- iteratorMixin('FormData', FormData, getFormDataState, 'name', 'value')
216
+ iteratorMixin('FormData', FormData, getFormDataState, 'name', 'value', webidl.is.FormData)
221
217
 
222
218
  Object.defineProperties(FormData.prototype, {
223
219
  append: kEnumerableProperty,
@@ -273,6 +269,4 @@ function makeEntry (name, value, filename) {
273
269
  return { name, value }
274
270
  }
275
271
 
276
- webidl.is.FormData = webidl.util.MakeTypeAssertion(FormData)
277
-
278
272
  module.exports = { FormData, makeEntry, setFormDataState, getFormDataBoundary }
@@ -3,7 +3,7 @@
3
3
  'use strict'
4
4
 
5
5
  const { kConstruct } = require('../../core/symbols')
6
- const { kEnumerableProperty } = require('../../core/util')
6
+ const { kEnumerableProperty, setHeader } = require('../../core/util')
7
7
  const {
8
8
  iteratorMixin,
9
9
  isValidHeaderName,
@@ -320,7 +320,7 @@ class HeadersList {
320
320
 
321
321
  if (this.headersMap.size !== 0) {
322
322
  for (const { name, value } of this.headersMap.values()) {
323
- headers[name] = value
323
+ setHeader(headers, name, value)
324
324
  }
325
325
  }
326
326
 
@@ -423,6 +423,8 @@ class HeadersList {
423
423
  }
424
424
  }
425
425
 
426
+ let getHeadersGuard, setHeadersGuard, getHeadersList, setHeadersList
427
+
426
428
  // https://fetch.spec.whatwg.org/#headers-class
427
429
  class Headers {
428
430
  #guard
@@ -458,7 +460,7 @@ class Headers {
458
460
 
459
461
  // https://fetch.spec.whatwg.org/#dom-headers-append
460
462
  append (name, value) {
461
- webidl.brandCheck(this, Headers)
463
+ webidl.brandCheck(this, webidl.is.Headers)
462
464
 
463
465
  webidl.argumentLengthCheck(arguments, 2, 'Headers.append')
464
466
 
@@ -471,7 +473,7 @@ class Headers {
471
473
 
472
474
  // https://fetch.spec.whatwg.org/#dom-headers-delete
473
475
  delete (name) {
474
- webidl.brandCheck(this, Headers)
476
+ webidl.brandCheck(this, webidl.is.Headers)
475
477
 
476
478
  webidl.argumentLengthCheck(arguments, 1, 'Headers.delete')
477
479
 
@@ -515,7 +517,7 @@ class Headers {
515
517
 
516
518
  // https://fetch.spec.whatwg.org/#dom-headers-get
517
519
  get (name) {
518
- webidl.brandCheck(this, Headers)
520
+ webidl.brandCheck(this, webidl.is.Headers)
519
521
 
520
522
  webidl.argumentLengthCheck(arguments, 1, 'Headers.get')
521
523
 
@@ -538,7 +540,7 @@ class Headers {
538
540
 
539
541
  // https://fetch.spec.whatwg.org/#dom-headers-has
540
542
  has (name) {
541
- webidl.brandCheck(this, Headers)
543
+ webidl.brandCheck(this, webidl.is.Headers)
542
544
 
543
545
  webidl.argumentLengthCheck(arguments, 1, 'Headers.has')
544
546
 
@@ -561,7 +563,7 @@ class Headers {
561
563
 
562
564
  // https://fetch.spec.whatwg.org/#dom-headers-set
563
565
  set (name, value) {
564
- webidl.brandCheck(this, Headers)
566
+ webidl.brandCheck(this, webidl.is.Headers)
565
567
 
566
568
  webidl.argumentLengthCheck(arguments, 2, 'Headers.set')
567
569
 
@@ -609,7 +611,7 @@ class Headers {
609
611
 
610
612
  // https://fetch.spec.whatwg.org/#dom-headers-getsetcookie
611
613
  getSetCookie () {
612
- webidl.brandCheck(this, Headers)
614
+ webidl.brandCheck(this, webidl.is.Headers)
613
615
 
614
616
  // 1. If this’s header list does not contain `Set-Cookie`, then return « ».
615
617
  // 2. Return the values of all headers in this’s header list whose name is
@@ -630,37 +632,38 @@ class Headers {
630
632
  return `Headers ${util.formatWithOptions(options, this.#headersList.entries)}`
631
633
  }
632
634
 
633
- static getHeadersGuard (o) {
634
- return o.#guard
635
- }
635
+ static {
636
+ /** @param {Headers} headers */
637
+ getHeadersGuard = (headers) => headers.#guard
636
638
 
637
- static setHeadersGuard (o, guard) {
638
- o.#guard = guard
639
- }
639
+ /**
640
+ * @param {Headers} headers
641
+ * @param {string} guard
642
+ */
643
+ setHeadersGuard = (headers, guard) => {
644
+ headers.#guard = guard
645
+ }
640
646
 
641
- /**
642
- * @param {Headers} o
643
- */
644
- static getHeadersList (o) {
645
- return o.#headersList
646
- }
647
+ /**
648
+ * @param {Headers} headers
649
+ */
650
+ getHeadersList = (headers) => headers.#headersList
651
+
652
+ /**
653
+ * @param {Headers} target
654
+ * @param {HeadersList} list
655
+ */
656
+ setHeadersList = (target, list) => {
657
+ target.#headersList = list
658
+ }
647
659
 
648
- /**
649
- * @param {Headers} target
650
- * @param {HeadersList} list
651
- */
652
- static setHeadersList (target, list) {
653
- target.#headersList = list
660
+ webidl.is.Headers = (arg) => {
661
+ return arg != null && typeof arg === 'object' && #guard in arg
662
+ }
654
663
  }
655
664
  }
656
665
 
657
- const { getHeadersGuard, setHeadersGuard, getHeadersList, setHeadersList } = Headers
658
- Reflect.deleteProperty(Headers, 'getHeadersGuard')
659
- Reflect.deleteProperty(Headers, 'setHeadersGuard')
660
- Reflect.deleteProperty(Headers, 'getHeadersList')
661
- Reflect.deleteProperty(Headers, 'setHeadersList')
662
-
663
- iteratorMixin('Headers', Headers, headersListSortAndCombine, 0, 1)
666
+ iteratorMixin('Headers', Headers, headersListSortAndCombine, 0, 1, webidl.is.Headers)
664
667
 
665
668
  Object.defineProperties(Headers.prototype, {
666
669
  append: kEnumerableProperty,