@psnext/slingcli 3.5.20261019-1 → 3.6.20261105-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 (539) hide show
  1. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +38 -13
  2. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +7 -7
  3. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +51 -1
  4. package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -1
  5. package/node_modules/@aws-sdk/core/dist-es/submodules/client/getDefaultSocketTimeout.js +10 -0
  6. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.browser.js +1 -0
  7. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +1 -0
  8. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.native.js +1 -0
  9. package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js +4 -2
  10. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js +4 -2
  11. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js +18 -9
  12. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js +6 -3
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +1 -4
  14. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -0
  15. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.js +51 -0
  16. package/node_modules/@aws-sdk/core/dist-es/submodules/util/util-arn-parser/arn.js +2 -1
  17. package/node_modules/@aws-sdk/core/dist-types/submodules/client/getDefaultSocketTimeout.d.ts +11 -0
  18. package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.browser.d.ts +1 -0
  19. package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.d.ts +1 -0
  20. package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.native.d.ts +1 -0
  21. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +3 -7
  22. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +1 -0
  23. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.d.ts +25 -0
  24. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/getDefaultSocketTimeout.d.ts +4 -0
  25. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +1 -0
  26. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -0
  27. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +1 -0
  28. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
  29. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.d.ts +36 -0
  30. package/node_modules/@aws-sdk/core/package.json +5 -5
  31. package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
  32. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/LICENSE +201 -0
  33. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/README.md +9 -0
  34. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +914 -0
  35. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +19 -0
  36. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/constants.js +1 -0
  37. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +13 -0
  38. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +51 -0
  39. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -0
  40. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +263 -0
  41. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +135 -0
  42. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +46 -0
  43. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +204 -0
  44. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +2 -0
  45. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-https.js +2 -0
  46. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/resolve-default-socket-timeout.js +4 -0
  47. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +36 -0
  48. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
  49. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +22 -0
  50. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +38 -0
  51. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/timing.js +4 -0
  52. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +63 -0
  53. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +10 -0
  54. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts +5 -0
  55. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +4 -0
  56. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/http2/ClientHttp2SessionRef.d.ts +46 -0
  57. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -0
  58. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +47 -0
  59. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +46 -0
  60. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +36 -0
  61. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +76 -0
  62. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2.d.ts +2 -0
  63. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-https.d.ts +2 -0
  64. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/resolve-default-socket-timeout.d.ts +4 -0
  65. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +2 -0
  66. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
  67. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +6 -0
  68. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +11 -0
  69. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +9 -0
  70. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +10 -0
  71. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts +5 -0
  72. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +4 -0
  73. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/http2/ClientHttp2SessionRef.d.ts +46 -0
  74. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts +3 -0
  75. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +47 -0
  76. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +46 -0
  77. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +36 -0
  78. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +76 -0
  79. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2.d.ts +2 -0
  80. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-https.d.ts +2 -0
  81. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/resolve-default-socket-timeout.d.ts +4 -0
  82. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +2 -0
  83. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
  84. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +6 -0
  85. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +11 -0
  86. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +9 -0
  87. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +12 -0
  88. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +12 -0
  89. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +56 -0
  90. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  91. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  92. package/node_modules/@aws-sdk/credential-provider-login/package.json +5 -5
  93. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  94. package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
  95. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +5 -5
  96. package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
  97. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
  98. package/node_modules/@aws-sdk/eventstream-handler-node/package.json +3 -3
  99. package/node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js +4 -2
  100. package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHandlingMiddleware.js +2 -1
  101. package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHeaderMiddleware.js +2 -1
  102. package/node_modules/@aws-sdk/middleware-eventstream/package.json +3 -3
  103. package/node_modules/@aws-sdk/middleware-websocket/package.json +5 -5
  104. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +3 -2
  105. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +10 -2
  106. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +3 -2
  107. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +3 -2
  108. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +3 -2
  109. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +2 -1
  110. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +7 -0
  111. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +2 -1
  112. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +2 -1
  113. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +2 -1
  114. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +2 -1
  115. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentityClient.d.ts +2 -1
  116. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +1 -0
  117. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +1 -2
  118. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +3 -3
  119. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +5 -59
  120. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +5 -33
  121. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/index.d.ts +1 -2
  122. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +16 -9
  123. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +8 -39
  124. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts +36 -48
  125. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +1 -0
  126. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/SSOClient.d.ts +2 -1
  127. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +1 -0
  128. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +2 -1
  129. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
  130. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STSClient.d.ts +2 -1
  131. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +1 -0
  132. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +1 -0
  133. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +7 -0
  134. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +1 -0
  135. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +1 -0
  136. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
  137. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +1 -0
  138. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/LICENSE +201 -0
  139. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/README.md +9 -0
  140. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +914 -0
  141. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +19 -0
  142. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/constants.js +1 -0
  143. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +13 -0
  144. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +51 -0
  145. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -0
  146. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +263 -0
  147. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +135 -0
  148. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +46 -0
  149. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +204 -0
  150. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +2 -0
  151. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-https.js +2 -0
  152. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/resolve-default-socket-timeout.js +4 -0
  153. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +36 -0
  154. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
  155. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +22 -0
  156. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +38 -0
  157. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/timing.js +4 -0
  158. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +63 -0
  159. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +10 -0
  160. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts +5 -0
  161. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +4 -0
  162. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/http2/ClientHttp2SessionRef.d.ts +46 -0
  163. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -0
  164. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +47 -0
  165. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +46 -0
  166. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +36 -0
  167. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +76 -0
  168. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2.d.ts +2 -0
  169. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-https.d.ts +2 -0
  170. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/resolve-default-socket-timeout.d.ts +4 -0
  171. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +2 -0
  172. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
  173. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +6 -0
  174. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +11 -0
  175. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +9 -0
  176. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +10 -0
  177. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts +5 -0
  178. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +4 -0
  179. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/http2/ClientHttp2SessionRef.d.ts +46 -0
  180. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts +3 -0
  181. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +47 -0
  182. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +46 -0
  183. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +36 -0
  184. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +76 -0
  185. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2.d.ts +2 -0
  186. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-https.d.ts +2 -0
  187. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/resolve-default-socket-timeout.d.ts +4 -0
  188. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +2 -0
  189. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
  190. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +6 -0
  191. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +11 -0
  192. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +9 -0
  193. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +12 -0
  194. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +12 -0
  195. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +56 -0
  196. package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
  197. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
  198. package/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +3 -0
  199. package/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +3 -0
  200. package/node_modules/@aws-sdk/types/package.json +1 -1
  201. package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
  202. package/node_modules/@babel/runtime/helpers/asyncIterator.js +1 -1
  203. package/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +1 -1
  204. package/node_modules/@babel/runtime/package.json +1 -1
  205. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/LICENSE +15 -0
  206. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/bin/semver.js +195 -0
  207. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/classes/comparator.js +143 -0
  208. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/classes/index.js +7 -0
  209. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/classes/range.js +577 -0
  210. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/classes/semver.js +350 -0
  211. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/clean.js +8 -0
  212. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/cmp.js +54 -0
  213. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/coerce.js +62 -0
  214. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/compare-build.js +9 -0
  215. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/compare-loose.js +5 -0
  216. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/compare.js +7 -0
  217. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/diff.js +60 -0
  218. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/eq.js +5 -0
  219. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/gt.js +5 -0
  220. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/gte.js +5 -0
  221. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/inc.js +21 -0
  222. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/lt.js +5 -0
  223. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/lte.js +5 -0
  224. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/major.js +5 -0
  225. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/minor.js +5 -0
  226. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/neq.js +5 -0
  227. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/parse.js +18 -0
  228. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/patch.js +5 -0
  229. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/prerelease.js +8 -0
  230. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/rcompare.js +5 -0
  231. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/rsort.js +5 -0
  232. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/satisfies.js +12 -0
  233. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/sort.js +5 -0
  234. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/truncate.js +48 -0
  235. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/functions/valid.js +8 -0
  236. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/index.js +93 -0
  237. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/internal/constants.js +37 -0
  238. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/internal/debug.js +11 -0
  239. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/internal/identifiers.js +29 -0
  240. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/internal/lrucache.js +42 -0
  241. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/internal/parse-options.js +17 -0
  242. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/internal/re.js +223 -0
  243. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/package.json +78 -0
  244. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/preload.js +4 -0
  245. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/range.bnf +17 -0
  246. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/ranges/gtr.js +6 -0
  247. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/ranges/intersects.js +9 -0
  248. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/ranges/ltr.js +6 -0
  249. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/ranges/max-satisfying.js +27 -0
  250. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/ranges/min-satisfying.js +26 -0
  251. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/ranges/min-version.js +63 -0
  252. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/ranges/outside.js +82 -0
  253. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/ranges/simplify.js +49 -0
  254. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/ranges/subset.js +249 -0
  255. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/ranges/to-comparators.js +10 -0
  256. package/node_modules/@earendil-works/pi-coding-agent/node_modules/semver/ranges/valid.js +13 -0
  257. package/node_modules/@hono/node-server/dist/index.cjs +31 -6
  258. package/node_modules/@hono/node-server/dist/index.mjs +31 -6
  259. package/node_modules/@hono/node-server/package.json +1 -1
  260. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts.map +1 -1
  261. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js +10 -0
  262. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js.map +1 -1
  263. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts +8 -8
  264. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts.map +1 -1
  265. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts.map +1 -1
  266. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +10 -0
  267. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js.map +1 -1
  268. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts +8 -8
  269. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts.map +1 -1
  270. package/node_modules/@modelcontextprotocol/sdk/package.json +1 -1
  271. package/node_modules/@smithy/core/dist-cjs/index.js +4 -2
  272. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +45 -53
  273. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +52 -19
  274. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +8 -4
  275. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +16 -8
  276. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +8 -4
  277. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
  278. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +10 -5
  279. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +28 -9
  280. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +28 -9
  281. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +91 -58
  282. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +53 -15
  283. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +57 -17
  284. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +13 -4
  285. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +7 -1
  286. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +13 -4
  287. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +6 -3
  288. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
  289. package/node_modules/@smithy/core/dist-es/normalizeProvider.js +2 -1
  290. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +12 -37
  291. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +8 -4
  292. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +6 -3
  293. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +12 -6
  294. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +4 -2
  295. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +2 -1
  296. package/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js +10 -5
  297. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/command.js +17 -2
  298. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js +2 -1
  299. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js +4 -2
  300. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +2 -1
  301. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +2 -1
  302. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +4 -2
  303. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/schemaLogFilter.js +10 -4
  304. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +2 -1
  305. package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js +8 -4
  306. package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js +6 -3
  307. package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/numberSelector.js +2 -1
  308. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +8 -4
  309. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +2 -1
  310. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +6 -3
  311. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +12 -1
  312. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js +2 -1
  313. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js +2 -1
  314. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js +2 -1
  315. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js +4 -2
  316. package/node_modules/@smithy/core/dist-es/submodules/protocols/AbstractRpcV2Protocol.js +35 -0
  317. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +8 -4
  318. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -2
  319. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +6 -2
  320. package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +1 -0
  321. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js +8 -31
  322. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +7 -5
  323. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +7 -5
  324. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +7 -5
  325. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +11 -8
  326. package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +3 -0
  327. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +4 -2
  328. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +2 -1
  329. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +6 -3
  330. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +17 -8
  331. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js +6 -3
  332. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/race.js +22 -0
  333. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
  334. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  335. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
  336. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +2 -1
  337. package/node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.browser.js +6 -3
  338. package/node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js +2 -1
  339. package/node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js +2 -1
  340. package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +2 -1
  341. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
  342. package/node_modules/@smithy/core/dist-types/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
  343. package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +12 -0
  344. package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +1 -0
  345. package/node_modules/@smithy/core/dist-types/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +5 -14
  346. package/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +1 -0
  347. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/race.d.ts +3 -0
  348. package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +1 -0
  349. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
  350. package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +1 -0
  351. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
  352. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
  353. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +12 -0
  354. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
  355. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +5 -14
  356. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +1 -0
  357. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/race.d.ts +3 -0
  358. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.browser.d.ts +1 -0
  359. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
  360. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.native.d.ts +1 -0
  361. package/node_modules/@smithy/core/package.json +2 -2
  362. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +10 -4
  363. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +6 -2
  364. package/node_modules/@smithy/fetch-http-handler/dist-es/request-timeout.js +4 -2
  365. package/node_modules/@smithy/fetch-http-handler/dist-types/request-timeout.d.ts +12 -1
  366. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/request-timeout.d.ts +12 -1
  367. package/node_modules/@smithy/fetch-http-handler/package.json +3 -3
  368. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +23 -11
  369. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -2
  370. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +4 -2
  371. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js +5 -1
  372. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +2 -1
  373. package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +2 -1
  374. package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +6 -3
  375. package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +2 -1
  376. package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +2 -1
  377. package/node_modules/@smithy/signature-v4/package.json +2 -2
  378. package/node_modules/@smithy/types/dist-types/middleware.d.ts +6 -0
  379. package/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +6 -0
  380. package/node_modules/@smithy/types/package.json +1 -1
  381. package/node_modules/@types/node/README.md +1 -1
  382. package/node_modules/@types/node/package.json +2 -2
  383. package/node_modules/@types/node/zlib.d.ts +752 -0
  384. package/node_modules/body-parser/README.md +17 -13
  385. package/node_modules/body-parser/lib/read.js +74 -57
  386. package/node_modules/body-parser/lib/types/json.js +11 -11
  387. package/node_modules/body-parser/lib/types/urlencoded.js +5 -5
  388. package/node_modules/body-parser/lib/utils.js +0 -15
  389. package/node_modules/body-parser/package.json +7 -12
  390. package/node_modules/bowser/README.md +26 -3
  391. package/node_modules/bowser/bowser.mjs +2225 -0
  392. package/node_modules/bowser/bundled.js +14 -1
  393. package/node_modules/bowser/es5.js +14 -1
  394. package/node_modules/bowser/index.d.mts +45 -0
  395. package/node_modules/bowser/package.json +90 -31
  396. package/node_modules/bowser/src/bowser.js +9 -1
  397. package/node_modules/bowser/src/constants.js +7 -0
  398. package/node_modules/bowser/src/parser-browsers.js +73 -7
  399. package/node_modules/bowser/src/parser-engines.js +12 -0
  400. package/node_modules/bowser/src/parser-os.js +3 -1
  401. package/node_modules/bowser/src/parser-platforms.js +3 -1
  402. package/node_modules/bowser/src/parser.js +22 -5
  403. package/node_modules/bowser/src/utils.js +16 -0
  404. package/node_modules/encodeurl/README.md +14 -0
  405. package/node_modules/encodeurl/index.js +5 -10
  406. package/node_modules/encodeurl/package.json +10 -6
  407. package/node_modules/express-rate-limit/dist/index.cjs +7 -3
  408. package/node_modules/express-rate-limit/dist/index.mjs +7 -3
  409. package/node_modules/express-rate-limit/package.json +10 -10
  410. package/node_modules/hono/README.md +2 -3
  411. package/node_modules/hono/dist/cjs/adapter/bun/serve-static.js +1 -1
  412. package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +1 -1
  413. package/node_modules/hono/dist/cjs/context.js +1 -1
  414. package/node_modules/hono/dist/cjs/helper/css/common.js +11 -8
  415. package/node_modules/hono/dist/cjs/helper/css/index.js +1 -1
  416. package/node_modules/hono/dist/cjs/helper/route/index.js +3 -1
  417. package/node_modules/hono/dist/cjs/hono-base.js +4 -10
  418. package/node_modules/hono/dist/cjs/hono.js +0 -1
  419. package/node_modules/hono/dist/cjs/jsx/base.js +1 -1
  420. package/node_modules/hono/dist/cjs/middleware/basic-auth/index.js +1 -1
  421. package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +9 -1
  422. package/node_modules/hono/dist/cjs/middleware/csrf/index.js +2 -2
  423. package/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +2 -2
  424. package/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +2 -2
  425. package/node_modules/hono/dist/cjs/middleware/mount/index.js +4 -4
  426. package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +3 -1
  427. package/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +13 -11
  428. package/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js +4 -4
  429. package/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +39 -51
  430. package/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +15 -5
  431. package/node_modules/hono/dist/cjs/router/trie-router/node.js +2 -2
  432. package/node_modules/hono/dist/cjs/utils/jwt/jwt.js +2 -1
  433. package/node_modules/hono/dist/cjs/utils/mount.js +35 -0
  434. package/node_modules/hono/dist/cjs/utils/url.js +21 -6
  435. package/node_modules/hono/dist/cjs/validator/validator.js +1 -1
  436. package/node_modules/hono/dist/context.js +1 -1
  437. package/node_modules/hono/dist/helper/css/common.js +11 -8
  438. package/node_modules/hono/dist/helper/css/index.js +1 -1
  439. package/node_modules/hono/dist/helper/route/index.js +3 -1
  440. package/node_modules/hono/dist/hono-base.js +4 -10
  441. package/node_modules/hono/dist/hono.js +0 -1
  442. package/node_modules/hono/dist/jsx/base.js +1 -1
  443. package/node_modules/hono/dist/middleware/basic-auth/index.js +1 -1
  444. package/node_modules/hono/dist/middleware/bearer-auth/index.js +9 -1
  445. package/node_modules/hono/dist/middleware/csrf/index.js +2 -2
  446. package/node_modules/hono/dist/middleware/jwk/jwk.js +2 -2
  447. package/node_modules/hono/dist/middleware/jwt/jwt.js +2 -2
  448. package/node_modules/hono/dist/middleware/language/language.js +1 -1
  449. package/node_modules/hono/dist/middleware/mount/index.js +4 -4
  450. package/node_modules/hono/dist/middleware/serve-static/index.js +3 -1
  451. package/node_modules/hono/dist/router/reg-exp-router/node.js +13 -11
  452. package/node_modules/hono/dist/router/reg-exp-router/prepared-router.js +5 -5
  453. package/node_modules/hono/dist/router/reg-exp-router/router.js +40 -52
  454. package/node_modules/hono/dist/router/reg-exp-router/trie.js +15 -5
  455. package/node_modules/hono/dist/router/trie-router/node.js +2 -2
  456. package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +1 -1
  457. package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +1 -1
  458. package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +1 -1
  459. package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +1 -1
  460. package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +1 -1
  461. package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +1 -1
  462. package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +1 -1
  463. package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +1 -1
  464. package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +1 -1
  465. package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +1 -1
  466. package/node_modules/hono/dist/types/helper/testing/index.d.ts +2 -1
  467. package/node_modules/hono/dist/types/hono-base.d.ts +21 -9
  468. package/node_modules/hono/dist/types/index.d.ts +1 -1
  469. package/node_modules/hono/dist/types/jsx/components.d.ts +2 -2
  470. package/node_modules/hono/dist/types/jsx/context.d.ts +2 -2
  471. package/node_modules/hono/dist/types/jsx/dom/components.d.ts +2 -2
  472. package/node_modules/hono/dist/types/jsx/dom/css.d.ts +2 -2
  473. package/node_modules/hono/dist/types/jsx/streaming.d.ts +4 -3
  474. package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +2 -1
  475. package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +3 -3
  476. package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +3 -3
  477. package/node_modules/hono/dist/types/middleware/mount/index.d.ts +1 -0
  478. package/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +3 -3
  479. package/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +1 -1
  480. package/node_modules/hono/dist/types/utils/ipaddr.d.ts +1 -1
  481. package/node_modules/hono/dist/types/utils/mount.d.ts +4 -0
  482. package/node_modules/hono/dist/types/utils/url.d.ts +1 -0
  483. package/node_modules/hono/dist/utils/jwt/jwt.js +2 -1
  484. package/node_modules/hono/dist/utils/mount.js +34 -0
  485. package/node_modules/hono/dist/utils/url.js +21 -7
  486. package/node_modules/hono/dist/validator/validator.js +1 -1
  487. package/node_modules/hono/package.json +1 -1
  488. package/node_modules/ip-address/README.md +39 -39
  489. package/node_modules/ip-address/dist/common.js +2 -2
  490. package/node_modules/ip-address/dist/common.js.map +1 -1
  491. package/node_modules/ip-address/dist/ipv6.js +1 -1
  492. package/node_modules/ip-address/dist/ipv6.js.map +1 -1
  493. package/node_modules/ip-address/package.json +2 -2
  494. package/node_modules/jose/dist/types/jwt/decrypt.d.ts +3 -0
  495. package/node_modules/jose/dist/types/jwt/unsecured.d.ts +2 -0
  496. package/node_modules/jose/dist/types/jwt/verify.d.ts +3 -0
  497. package/node_modules/jose/dist/types/types.d.ts +8 -0
  498. package/node_modules/jose/dist/types/util/decode_jwt.d.ts +1 -0
  499. package/node_modules/jose/dist/webapi/jwks/remote.js +3 -1
  500. package/node_modules/jose/dist/webapi/lib/deflate.js +2 -1
  501. package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +2 -1
  502. package/node_modules/jose/package.json +1 -1
  503. package/node_modules/on-finished/index.js +14 -2
  504. package/node_modules/on-finished/package.json +11 -7
  505. package/node_modules/qs/.editorconfig +1 -1
  506. package/node_modules/qs/CHANGELOG.md +87 -22
  507. package/node_modules/qs/README.md +63 -10
  508. package/node_modules/qs/dist/qs.js +17 -17
  509. package/node_modules/qs/eslint.config.mjs +61 -50
  510. package/node_modules/qs/lib/formats.js +7 -2
  511. package/node_modules/qs/lib/parse.js +29 -10
  512. package/node_modules/qs/lib/stringify.js +5 -3
  513. package/node_modules/qs/lib/utils.js +28 -9
  514. package/node_modules/qs/package.json +6 -6
  515. package/node_modules/qs/test/parse.js +335 -2
  516. package/node_modules/qs/test/stringify.js +222 -0
  517. package/node_modules/qs/test/utils.js +61 -3
  518. package/node_modules/semver/classes/range.js +2 -2
  519. package/node_modules/semver/internal/constants.js +30 -0
  520. package/node_modules/semver/internal/trim-comparator-whitespace.js +438 -0
  521. package/node_modules/semver/package.json +1 -1
  522. package/node_modules/tslib/README.md +3 -8
  523. package/node_modules/tslib/package.json +1 -1
  524. package/node_modules/tslib/tslib.d.ts +4 -2
  525. package/node_modules/tslib/tslib.es6.js +10 -1
  526. package/node_modules/tslib/tslib.es6.mjs +10 -1
  527. package/node_modules/tslib/tslib.js +10 -1
  528. package/node_modules/ws/README.md +21 -29
  529. package/node_modules/ws/lib/buffer-util.js +13 -2
  530. package/node_modules/ws/lib/sender.js +4 -1
  531. package/node_modules/ws/lib/websocket.js +8 -3
  532. package/node_modules/ws/package.json +1 -1
  533. package/package.json +14 -14
  534. package/sling-default-packages.json +3 -2
  535. package/slingshot/index.js +2 -2
  536. package/node_modules/on-finished/HISTORY.md +0 -98
  537. /package/node_modules/@smithy/core/dist-es/submodules/{protocols → serde}/writeKey.js +0 -0
  538. /package/node_modules/@smithy/core/dist-types/submodules/{protocols → serde}/writeKey.d.ts +0 -0
  539. /package/node_modules/@smithy/core/dist-types/ts3.4/submodules/{protocols → serde}/writeKey.d.ts +0 -0
@@ -5,6 +5,7 @@ var qs = require('../');
5
5
  var utils = require('../lib/utils');
6
6
  var iconv = require('iconv-lite');
7
7
  var SaferBuffer = require('safer-buffer').Buffer;
8
+ var url = require('url');
8
9
  var hasSymbols = require('has-symbols');
9
10
  var mockProperty = require('mock-property');
10
11
  var emptyTestCases = require('./empty-keys-cases').emptyTestCases;
@@ -24,6 +25,28 @@ test('stringify()', function (t) {
24
25
  st.end();
25
26
  });
26
27
 
28
+ t.test('stringifies lone surrogates as U+FFFD', function (st) {
29
+ st.equal(qs.stringify({ a: '\uD800x' }), 'a=%EF%BF%BDx', 'lone high surrogate does not swallow the next character');
30
+ st.equal(qs.stringify({ a: '\uDC00x' }), 'a=%EF%BF%BDx', 'lone low surrogate does not swallow the next character');
31
+ st.equal(qs.stringify({ '\uD800': 'b' }), '%EF%BF%BD=b', 'lone surrogate in a key');
32
+ st.deepEqual(qs.parse(qs.stringify({ a: 'x\uD800y' })), { a: 'x\uFFFDy' }, 'parses back with U+FFFD in place of the lone surrogate');
33
+ st.equal(qs.stringify({ '\uDC00': 'b' }), '%EF%BF%BD=b', 'lone low surrogate in a key');
34
+ st.equal(qs.stringify({ a: { 'b\uD800': 'c' } }), 'a%5Bb%EF%BF%BD%5D=c', 'lone surrogate in a nested key does not swallow the closing bracket');
35
+ st.equal(qs.stringify({ a: '\uD800 x' }, { format: 'RFC1738' }), 'a=%EF%BF%BD+x', 'lone surrogate does not swallow a space in RFC1738');
36
+ st.equal(
37
+ qs.stringify({ 'a\uD800': { b: 'c' } }, { allowDots: true, encodeDotInKeys: true }),
38
+ 'a%EF%BF%BD.b=c',
39
+ 'lone surrogate does not swallow a dot separator'
40
+ );
41
+ st.equal(qs.stringify({ a: ['x\uD800', 'y'] }, { arrayFormat: 'comma' }), 'a=x%EF%BF%BD%2Cy', 'lone surrogate does not swallow a comma');
42
+ st.equal(
43
+ qs.stringify({ a: ['x\uD800', 'y'] }, { arrayFormat: 'comma', encodeValuesOnly: true }),
44
+ 'a=x%EF%BF%BD,y',
45
+ 'lone surrogate at the end of a comma-joined element encodes as U+FFFD'
46
+ );
47
+ st.end();
48
+ });
49
+
27
50
  t.test('stringifies falsy values', function (st) {
28
51
  st.equal(qs.stringify(undefined), '');
29
52
  st.equal(qs.stringify(null), '');
@@ -520,6 +543,24 @@ test('stringify()', function (t) {
520
543
  st.end();
521
544
  });
522
545
 
546
+ t.test('allowEmptyArrays keys that need no encoding', function (st) {
547
+ st.equal(qs.stringify({ foo: [] }, { allowEmptyArrays: true, format: 'RFC1738' }), 'foo[]', 'a top-level key in RFC1738');
548
+ st.equal(
549
+ qs.stringify({ a: { b: [] }, c: 'd e' }, { allowEmptyArrays: true, encodeValuesOnly: true }),
550
+ 'a[b][]&c=d%20e',
551
+ 'a nested key with encodeValuesOnly'
552
+ );
553
+ st.equal(qs.stringify({ a: { b: [] } }, { allowEmptyArrays: true, encode: false }), 'a[b][]', 'a nested key with encode: false');
554
+ st.equal(qs.stringify({ a: { b: [] } }, { allowEmptyArrays: true, allowDots: true }), 'a.b[]', 'a nested key with allowDots');
555
+ st.equal(
556
+ qs.stringify({ a: { b: [] } }, { allowEmptyArrays: true, allowDots: true, format: 'RFC1738' }),
557
+ 'a.b[]',
558
+ 'a nested key with allowDots in RFC1738'
559
+ );
560
+
561
+ st.end();
562
+ });
563
+
523
564
  t.test('allowEmptyArrays + strictNullHandling', function (st) {
524
565
  st.equal(
525
566
  qs.stringify(
@@ -565,6 +606,62 @@ test('stringify()', function (t) {
565
606
  st.end();
566
607
  });
567
608
 
609
+ t.test('should encode the key of an empty array when allowEmptyArrays is set', function (st) {
610
+ st.equal(
611
+ qs.stringify({ 'a b': [] }, { allowEmptyArrays: true }),
612
+ 'a%20b[]',
613
+ 'default (RFC3986) percent-encodes the space in the key'
614
+ );
615
+ st.equal(
616
+ qs.stringify({ 'a b': [] }, { allowEmptyArrays: true, format: 'RFC1738' }),
617
+ 'a+b[]',
618
+ 'RFC1738 encodes the space in the key as a plus'
619
+ );
620
+ st.equal(
621
+ qs.stringify({ 'a b': [] }, { allowEmptyArrays: true, encodeValuesOnly: true }),
622
+ 'a b[]',
623
+ 'encodeValuesOnly leaves the key unencoded'
624
+ );
625
+ st.equal(
626
+ qs.stringify({ 'a b': [] }, { allowEmptyArrays: true, encode: false }),
627
+ 'a b[]',
628
+ 'encode: false leaves the key unencoded'
629
+ );
630
+
631
+ st.deepEqual(
632
+ qs.parse(qs.stringify({ 'a b': [], 'a&b=c': [] }, { allowEmptyArrays: true }), { allowEmptyArrays: true }),
633
+ { 'a b': [], 'a&b=c': [] },
634
+ 'the encoded keys round-trip back to the original, including `&` and `=`'
635
+ );
636
+ st.equal(
637
+ qs.stringify({ 'a b': ['x'] }, { allowEmptyArrays: true, arrayFormat: 'brackets' }),
638
+ 'a%20b%5B%5D=x',
639
+ 'the same key with a value encodes the key prefix identically'
640
+ );
641
+ st.equal(
642
+ qs.stringify({ a: { 'b c': [] } }, { allowEmptyArrays: true }),
643
+ 'a%5Bb%20c%5D[]',
644
+ 'a nested key prefix is encoded like the value path encodes it'
645
+ );
646
+ st.equal(
647
+ qs.stringify({ a: { b: [] } }, { allowEmptyArrays: true }),
648
+ 'a%5Bb%5D[]',
649
+ 'a nested key that needs no encoding still has its brackets encoded'
650
+ );
651
+ st.equal(
652
+ qs.stringify({ 'a.b': [] }, { allowEmptyArrays: true, allowDots: true, encodeDotInKeys: true }),
653
+ 'a%252Eb[]',
654
+ 'encodeDotInKeys double-encodes the dot, as on the value path'
655
+ );
656
+ st.deepEqual(
657
+ qs.parse('a%252Eb[]', { allowEmptyArrays: true, allowDots: true, decodeDotInKeys: true }),
658
+ { 'a.b': [] },
659
+ 'the encodeDotInKeys output round-trips'
660
+ );
661
+
662
+ st.end();
663
+ });
664
+
568
665
  t.test('stringifies an array value with one item vs multiple items', function (st) {
569
666
  st.test('non-array item', function (s2t) {
570
667
  s2t.equal(qs.stringify({ a: 'c' }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a=c');
@@ -1314,6 +1411,53 @@ test('stringify()', function (t) {
1314
1411
  st.end();
1315
1412
  });
1316
1413
 
1414
+ t.test('applies sort to nested keys selected by filter=array', function (st) {
1415
+ var asc = function (a, b) { return a.localeCompare(b); };
1416
+ var desc = function (a, b) { return b.localeCompare(a); };
1417
+
1418
+ st.equal(
1419
+ qs.stringify({ a: { c: 1, b: 2 }, z: 3 }, { filter: ['z', 'a', 'c', 'b'], sort: asc, encode: false }),
1420
+ 'a[b]=2&a[c]=1&z=3',
1421
+ 'nested keys are sorted, not left in filter order'
1422
+ );
1423
+ st.equal(
1424
+ qs.stringify({ a: { c: 1, b: 2 }, z: 3 }, { filter: ['z', 'b', 'a', 'c'], sort: desc, encode: false }),
1425
+ 'z=3&a[c]=1&a[b]=2',
1426
+ 'nested keys follow a descending sort'
1427
+ );
1428
+ st.equal(
1429
+ qs.stringify({ a: [{ y: 1, x: 2 }] }, { filter: ['a', '0', 'y', 'x'], sort: asc, encode: false }),
1430
+ 'a[0][x]=2&a[0][y]=1',
1431
+ 'keys of objects nested in arrays are sorted'
1432
+ );
1433
+ st.equal(
1434
+ qs.stringify({ a: { c: 1, b: 2 }, z: 3 }, { filter: ['z', 'a', 'c', 'b'], encode: false }),
1435
+ 'z=3&a[c]=1&a[b]=2',
1436
+ 'without sort, keys keep filter order at every level'
1437
+ );
1438
+
1439
+ st.end();
1440
+ });
1441
+
1442
+ t.test('does not reorder the caller\'s filter array when sorting', function (st) {
1443
+ var filter = ['z', 'a', 'c', 'b'];
1444
+ var asc = function (a, b) { return a.localeCompare(b); };
1445
+
1446
+ st.equal(
1447
+ qs.stringify({ a: { c: 1, b: 2 }, z: 3 }, { filter: filter, sort: asc, encode: false }),
1448
+ 'a[b]=2&a[c]=1&z=3',
1449
+ 'keys are sorted at every level'
1450
+ );
1451
+ st.deepEqual(filter, ['z', 'a', 'c', 'b'], 'filter array is not mutated');
1452
+ st.equal(
1453
+ qs.stringify({ a: { c: 1, b: 2 }, z: 3 }, { filter: filter, encode: false }),
1454
+ 'z=3&a[c]=1&a[b]=2',
1455
+ 'reusing the filter without sort keeps its own order'
1456
+ );
1457
+
1458
+ st.end();
1459
+ });
1460
+
1317
1461
  t.test('supports custom representations when filter=function', function (st) {
1318
1462
  var calls = 0;
1319
1463
  var obj = { a: 'b', c: 'd', e: { f: new Date(1257894000000) } };
@@ -1564,6 +1708,7 @@ test('stringify()', function (t) {
1564
1708
  st.equal(qs.stringify({ 'a b': SaferBuffer.from('a b') }, { format: qs.formats.RFC1738 }), 'a+b=a+b');
1565
1709
 
1566
1710
  st.equal(qs.stringify({ 'foo(ref)': 'bar' }, { format: qs.formats.RFC1738 }), 'foo(ref)=bar');
1711
+ st.equal(qs.stringify({ 'a~*': '~*()' }, { format: qs.formats.RFC1738 }), 'a~%2A=~%2A()', 'leaves `~` unencoded and encodes `*`');
1567
1712
 
1568
1713
  st.end();
1569
1714
  });
@@ -1572,6 +1717,83 @@ test('stringify()', function (t) {
1572
1717
  st.equal(qs.stringify({ a: 'b c' }, { format: qs.formats.RFC3986 }), 'a=b%20c');
1573
1718
  st.equal(qs.stringify({ 'a b': 'c d' }, { format: qs.formats.RFC3986 }), 'a%20b=c%20d');
1574
1719
  st.equal(qs.stringify({ 'a b': SaferBuffer.from('a b') }, { format: qs.formats.RFC3986 }), 'a%20b=a%20b');
1720
+ st.equal(qs.stringify({ 'a~*': '~*()' }, { format: qs.formats.RFC3986 }), 'a~%2A=~%2A%28%29', 'leaves `~` unencoded, and encodes `*` and parens');
1721
+
1722
+ st.end();
1723
+ });
1724
+
1725
+ t.test('WHATWG serialization', function (st) {
1726
+ st.equal(qs.formats.WHATWG, 'WHATWG', 'is exported');
1727
+ st.equal(qs.stringify({ a: 'b c' }, { format: qs.formats.WHATWG }), 'a=b+c');
1728
+ st.equal(qs.stringify({ 'a b': 'c d' }, { format: qs.formats.WHATWG }), 'a+b=c+d');
1729
+ st.equal(qs.stringify({ 'a b': SaferBuffer.from('a b') }, { format: qs.formats.WHATWG }), 'a+b=a+b');
1730
+
1731
+ st.equal(qs.stringify({ a: '~' }, { format: qs.formats.WHATWG }), 'a=%7E', 'encodes `~`');
1732
+ st.equal(qs.stringify({ a: '*' }, { format: qs.formats.WHATWG }), 'a=*', 'does not encode `*`');
1733
+ st.equal(qs.stringify({ 'foo(ref)': 'bar' }, { format: qs.formats.WHATWG }), 'foo%28ref%29=bar', 'encodes parentheses');
1734
+ st.equal(qs.stringify({ a: '-._' }, { format: qs.formats.WHATWG }), 'a=-._');
1735
+ st.equal(qs.stringify({ a: '+&=' }, { format: qs.formats.WHATWG }), 'a=%2B%26%3D');
1736
+ st.equal(qs.stringify({ a: { b: 'c d' } }, { format: qs.formats.WHATWG }), 'a%5Bb%5D=c+d');
1737
+ st.equal(qs.stringify({ a: 'b c' }, { format: qs.formats.WHATWG, encode: false }), 'a=b c', 'encode: false leaves the value alone');
1738
+
1739
+ st.equal(
1740
+ qs.stringify({ 'a~b*': { 'c d': '~* ' } }, { format: qs.formats.WHATWG, encodeValuesOnly: true }),
1741
+ 'a~b*[c d]=%7E*+',
1742
+ 'encodeValuesOnly: leaves keys alone'
1743
+ );
1744
+ st.equal(
1745
+ qs.stringify({ a: '~*\u00e9 ' }, { format: qs.formats.WHATWG, charset: 'iso-8859-1' }),
1746
+ 'a=%7E*%E9+',
1747
+ 'charset iso-8859-1'
1748
+ );
1749
+ st.equal(
1750
+ qs.stringify({ a: '~* ' }, {
1751
+ format: qs.formats.WHATWG,
1752
+ encoder: function (str, defaultEncoder, charset, type, format) {
1753
+ return defaultEncoder(str, defaultEncoder, charset, type, format);
1754
+ }
1755
+ }),
1756
+ 'a=%7E*+',
1757
+ 'an encoder wrapping the default encoder'
1758
+ );
1759
+ st.equal(
1760
+ qs.stringify({ a: ['~ x', '*'] }, { format: qs.formats.WHATWG, arrayFormat: 'comma' }),
1761
+ 'a=%7E+x%2C*',
1762
+ 'arrayFormat comma'
1763
+ );
1764
+
1765
+ st.end();
1766
+ });
1767
+
1768
+ var USP = typeof URLSearchParams === 'function' ? URLSearchParams : url.URLSearchParams;
1769
+
1770
+ t.test('WHATWG serialization matches URLSearchParams', { skip: typeof USP !== 'function' }, function (st) {
1771
+ var chars = [];
1772
+ for (var c = 0; c < 0x80; c++) {
1773
+ chars[chars.length] = String.fromCharCode(c);
1774
+ }
1775
+ chars.push('\u00e9', '\u20ac', '\uFFFF', '\uD83D\uDCA9', 'a b~c*d(e)f', '\uD800', '\uDC00', 'x\uDC00y');
1776
+
1777
+ for (var i = 0; i < chars.length; i++) {
1778
+ var key = {};
1779
+ key[chars[i]] = 'v';
1780
+ st.equal(
1781
+ qs.stringify({ k: chars[i] }, { format: qs.formats.WHATWG }),
1782
+ new USP([['k', chars[i]]]).toString(),
1783
+ 'value ' + JSON.stringify(chars[i])
1784
+ );
1785
+ st.equal(
1786
+ qs.stringify(key, { format: qs.formats.WHATWG }),
1787
+ new USP([[chars[i], 'v']]).toString(),
1788
+ 'key ' + JSON.stringify(chars[i])
1789
+ );
1790
+ }
1791
+
1792
+ st.equal(
1793
+ qs.stringify({ a: { 'b~': 'c d' } }, { format: qs.formats.WHATWG }),
1794
+ new USP([['a[b~]', 'c d']]).toString(),
1795
+ 'nested key'
1796
+ );
1575
1797
 
1576
1798
  st.end();
1577
1799
  });
@@ -742,7 +742,7 @@ test('encode', function (t) {
742
742
  loneExpected += 'a';
743
743
  }
744
744
  loneBoundary += '\uD83DX';
745
- loneExpected += '%F0%9F%91%98';
745
+ loneExpected += '%EF%BF%BDX';
746
746
 
747
747
  t.equal(
748
748
  utils.encode(loneBoundary),
@@ -750,6 +750,17 @@ test('encode', function (t) {
750
750
  'a lone high surrogate at a chunk boundary encodes the same as mid-chunk'
751
751
  );
752
752
 
753
+ t.equal(
754
+ utils.encode(loneBoundary.slice(0, 1023) + '\uDC00X'),
755
+ loneExpected.slice(0, 1023) + '%EF%BF%BDX',
756
+ 'a lone low surrogate at a chunk boundary does not consume the next character'
757
+ );
758
+ t.equal(
759
+ utils.encode(loneBoundary.slice(0, 1024)),
760
+ loneExpected.slice(0, 1023) + '%EF%BF%BD',
761
+ 'a lone high surrogate ending a string of exactly one chunk encodes as U+FFFD'
762
+ );
763
+
753
764
  t.equal(
754
765
  utils.encode('\x28\x29'),
755
766
  '%28%29',
@@ -761,8 +772,30 @@ test('encode', function (t) {
761
772
  'does not encode parens in RFC1738'
762
773
  );
763
774
 
775
+ t.equal(
776
+ utils.encode('~*()'),
777
+ '~%2A%28%29',
778
+ 'leaves `~` unencoded, and encodes `*` and parens, by default'
779
+ );
780
+ t.equal(
781
+ utils.encode('~*()', null, null, null, 'RFC3986'),
782
+ '~%2A%28%29',
783
+ 'leaves `~` unencoded, and encodes `*` and parens, in RFC3986'
784
+ );
785
+ t.equal(
786
+ utils.encode('~*() ', null, null, null, 'RFC1738'),
787
+ '~%2A()%20',
788
+ 'leaves `~` and parens unencoded, and encodes `*` and spaces, in RFC1738'
789
+ );
790
+
764
791
  // todo RFC1738 format
765
792
 
793
+ t.equal(
794
+ utils.encode('~*()', null, null, null, 'WHATWG'),
795
+ '%7E*%28%29',
796
+ 'encodes `~` and parens, but not `*`, in WHATWG'
797
+ );
798
+
766
799
  t.equal(
767
800
  utils.encode('Āက豈'),
768
801
  '%C4%80%E1%80%80%EF%A4%80',
@@ -771,8 +804,33 @@ test('encode', function (t) {
771
804
 
772
805
  t.equal(
773
806
  utils.encode('\uD83D \uDCA9'),
774
- '%F0%9F%90%A0%F0%BA%90%80',
775
- 'encodes lone surrogates'
807
+ '%EF%BF%BD%20%EF%BF%BD',
808
+ 'encodes lone surrogates as U+FFFD, without consuming the next character'
809
+ );
810
+ t.equal(
811
+ utils.encode('\uDCA9\uD83D'),
812
+ '%EF%BF%BD%EF%BF%BD',
813
+ 'encodes a reversed surrogate pair as two U+FFFD'
814
+ );
815
+ t.equal(
816
+ utils.encode('x\uD83D'),
817
+ 'x%EF%BF%BD',
818
+ 'encodes a trailing lone high surrogate as U+FFFD'
819
+ );
820
+ t.equal(
821
+ utils.encode('\uD83D\uD83D\uDCA9'),
822
+ '%EF%BF%BD%F0%9F%92%A9',
823
+ 'a lone high surrogate does not prevent the following pair from encoding'
824
+ );
825
+ t.equal(
826
+ utils.encode('\uD83D\uE000'),
827
+ '%EF%BF%BD%EE%80%80',
828
+ 'a high surrogate followed by a code unit above the low surrogate range is not combined'
829
+ );
830
+ t.equal(
831
+ utils.encode('\uDC00\uDC00'),
832
+ '%EF%BF%BD%EF%BF%BD',
833
+ 'a low surrogate followed by a low surrogate is not combined'
776
834
  );
777
835
 
778
836
  t.end();
@@ -119,7 +119,7 @@ class Range {
119
119
  debug('hyphen replace', range)
120
120
 
121
121
  // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
122
- range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)
122
+ range = trimComparatorWhitespace(range)
123
123
  debug('comparator trim', range)
124
124
 
125
125
  // `~ 1.2.3` => `~1.2.3`
@@ -224,11 +224,11 @@ const parseOptions = require('../internal/parse-options')
224
224
  const Comparator = require('./comparator')
225
225
  const debug = require('../internal/debug')
226
226
  const SemVer = require('./semver')
227
+ const trimComparatorWhitespace = require('../internal/trim-comparator-whitespace')
227
228
  const {
228
229
  safeRe: re,
229
230
  src,
230
231
  t,
231
- comparatorTrimReplace,
232
232
  tildeTrimReplace,
233
233
  caretTrimReplace,
234
234
  } = require('../internal/re')
@@ -15,6 +15,35 @@ const MAX_SAFE_COMPONENT_LENGTH = 16
15
15
  // the shortest version with a build 0.0.0+BUILD.
16
16
  const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6
17
17
 
18
+ // ECMAScript whitespace and line terminators matched by \s.
19
+ const WHITESPACE_CHARACTERS = [
20
+ '\t',
21
+ '\n',
22
+ '\v',
23
+ '\f',
24
+ '\r',
25
+ ' ',
26
+ '\u00a0',
27
+ '\u1680',
28
+ '\u2000',
29
+ '\u2001',
30
+ '\u2002',
31
+ '\u2003',
32
+ '\u2004',
33
+ '\u2005',
34
+ '\u2006',
35
+ '\u2007',
36
+ '\u2008',
37
+ '\u2009',
38
+ '\u200a',
39
+ '\u2028',
40
+ '\u2029',
41
+ '\u202f',
42
+ '\u205f',
43
+ '\u3000',
44
+ '\ufeff',
45
+ ]
46
+
18
47
  const RELEASE_TYPES = [
19
48
  'major',
20
49
  'premajor',
@@ -30,6 +59,7 @@ module.exports = {
30
59
  MAX_SAFE_COMPONENT_LENGTH,
31
60
  MAX_SAFE_BUILD_LENGTH,
32
61
  MAX_SAFE_INTEGER,
62
+ WHITESPACE_CHARACTERS,
33
63
  RELEASE_TYPES,
34
64
  SEMVER_SPEC_VERSION,
35
65
  FLAG_INCLUDE_PRERELEASE: 0b001,