@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
@@ -1,5 +1,5 @@
1
- import { getCookie, setCookie } from "../../helper/cookie/index.js";
2
1
  import { parseAccept } from "../../utils/accept.js";
2
+ import { getCookie, setCookie } from "../../helper/cookie/index.js";
3
3
  //#region src/middleware/language/language.ts
4
4
  const DEFAULT_OPTIONS = {
5
5
  order: [
@@ -1,10 +1,9 @@
1
+ import { createMountedRequest } from "../../utils/mount.js";
1
2
  import { routePath } from "../../helper/route/index.js";
2
3
  //#region src/middleware/mount/index.ts
3
4
  const defaultReplaceRequest = (c) => {
4
- const pathPrefix = routePath(c).replace(/\/\*$/, "");
5
- const url = new URL(c.req.raw.url);
6
- url.pathname = c.req.path.slice(pathPrefix.length) || "/";
7
- return new Request(url, c.req.raw);
5
+ const path = routePath(c);
6
+ return createMountedRequest(c, path.replace(/\/?\*$/, ""), path);
8
7
  };
9
8
  const defaultGetOptions = (c) => {
10
9
  let executionContext = void 0;
@@ -21,6 +20,7 @@ const defaultGetOptions = (c) => {
21
20
  * @param {Function} applicationHandler - other Request Handler
22
21
  * @param {MountOptions} [options] - options of `mount()`
23
22
  * @returns {MiddlewareHandler} handler to register with `app.all()`
23
+ * @throws {Error} If the route ends with a wildcard inside a segment (e.g. `/assets*`), or automatic request rewriting encounters duplicate path parameter names.
24
24
  *
25
25
  * @example
26
26
  * ```ts
@@ -1,4 +1,5 @@
1
1
  import { tryDecodeURI } from "../../utils/url.js";
2
+ import { parseAccept } from "../../utils/accept.js";
2
3
  import { COMPRESSIBLE_CONTENT_TYPE_REGEX } from "../../utils/compress.js";
3
4
  import { getMimeType } from "../../utils/mime.js";
4
5
  import { defaultJoin } from "./path.js";
@@ -19,6 +20,7 @@ const serveStatic = (options) => {
19
20
  const join = options.join ?? defaultJoin;
20
21
  return async (c, next) => {
21
22
  if (c.finalized) return next();
23
+ if (c.req.method !== "GET" && c.req.method !== "HEAD") return next();
22
24
  let filename;
23
25
  if (options.path) filename = options.path;
24
26
  else try {
@@ -38,7 +40,7 @@ const serveStatic = (options) => {
38
40
  const mimeType = options.mimes && getMimeType(path, options.mimes) || getMimeType(path);
39
41
  c.header("Content-Type", mimeType || "application/octet-stream");
40
42
  if (options.precompressed && (!mimeType || COMPRESSIBLE_CONTENT_TYPE_REGEX.test(mimeType))) {
41
- const acceptEncodingSet = new Set(c.req.header("Accept-Encoding")?.split(",").map((encoding) => encoding.trim()));
43
+ const acceptEncodingSet = new Set(parseAccept(c.req.header("Accept-Encoding") ?? "").filter((encoding) => encoding.q > 0).map((encoding) => encoding.type));
42
44
  for (const encoding of ENCODINGS_ORDERED_KEYS) {
43
45
  if (!acceptEncodingSet.has(encoding)) continue;
44
46
  const compressedContent = await getContent(path + ENCODINGS[encoding], c);
@@ -1,8 +1,8 @@
1
1
  import { createNullObject } from "../utils.js";
2
2
  //#region src/router/reg-exp-router/node.ts
3
3
  const LABEL_REG_EXP_STR = "[^/]+";
4
- const ONLY_WILDCARD_REG_EXP_STR = ".*";
5
- const TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)";
4
+ const ONLY_WILDCARD_REG_EXP_STR = "[^]*";
5
+ const TAIL_WILDCARD_REG_EXP_STR = "(?:|/[^]*)";
6
6
  const PATH_ERROR = Symbol();
7
7
  const regExpMetaChars = /* @__PURE__ */ new Set(".\\+*[^]$()");
8
8
  /**
@@ -15,8 +15,8 @@ const regExpMetaChars = /* @__PURE__ */ new Set(".\\+*[^]$()");
15
15
  function compareKey(a, b) {
16
16
  if (a.length === 1) return b.length === 1 ? a < b ? -1 : 1 : -1;
17
17
  if (b.length === 1) return 1;
18
- if (a === ".*" || a === "(?:|/.*)") return b === "(?:|/.*)" ? -1 : 1;
19
- else if (b === ".*" || b === "(?:|/.*)") return -1;
18
+ if (a === "[^]*" || a === "(?:|/[^]*)") return b === "[^]*" ? -1 : 1;
19
+ else if (b === "[^]*" || b === "(?:|/[^]*)") return -1;
20
20
  if (a === "[^/]+") return 1;
21
21
  else if (b === "[^/]+") return -1;
22
22
  return a.length === b.length ? a < b ? -1 : 1 : b.length - a.length;
@@ -25,14 +25,14 @@ var Node = class Node {
25
25
  #index;
26
26
  #varIndex;
27
27
  #children = createNullObject();
28
- insert(tokens, index, paramMap, context, isStatic) {
28
+ insert(tokens, index, paramMap, context, keys) {
29
29
  let node = this;
30
30
  for (let i = 0, len = tokens.length; i < len; i++) {
31
31
  const token = tokens[i];
32
32
  const pattern = token.length === 1 ? token === "*" ? i === len - 1 ? [
33
33
  "",
34
34
  "",
35
- ".*"
35
+ ONLY_WILDCARD_REG_EXP_STR
36
36
  ] : [
37
37
  "",
38
38
  "",
@@ -47,15 +47,16 @@ var Node = class Node {
47
47
  const name = pattern[1];
48
48
  let regexpStr = pattern[2] || "[^/]+";
49
49
  if (name && pattern[2]) {
50
- if (regexpStr === ".*") throw PATH_ERROR;
50
+ if (new RegExp(regexpStr).test("")) throw PATH_ERROR;
51
51
  regexpStr = regexpStr.replace(/^\((?!\?:)(?=[^)]+\)$)/, "(?:");
52
52
  if (/\((?!\?:)/.test(regexpStr)) throw PATH_ERROR;
53
53
  if (regexpStr.length === 1 && regExpMetaChars.has(regexpStr)) throw PATH_ERROR;
54
54
  }
55
+ keys.push(regexpStr);
55
56
  nextNode = node.#children[regexpStr];
56
57
  if (!nextNode) {
57
- if (regexpStr !== ".*" && regexpStr !== "(?:|/.*)") {
58
- for (const k in node.#children) if ((regexpStr.length > 1 || k.length > 1) && k !== ".*" && k !== "(?:|/.*)") throw PATH_ERROR;
58
+ if (regexpStr !== "[^]*" && regexpStr !== "(?:|/[^]*)") {
59
+ for (const k in node.#children) if ((regexpStr.length > 1 || k.length > 1) && k !== "[^]*" && k !== "(?:|/[^]*)") throw PATH_ERROR;
59
60
  }
60
61
  nextNode = node.#children[regexpStr] = new Node();
61
62
  }
@@ -64,16 +65,17 @@ var Node = class Node {
64
65
  paramMap.push([name, nextNode.#varIndex]);
65
66
  }
66
67
  } else {
68
+ keys.push(token);
67
69
  nextNode = node.#children[token];
68
70
  if (!nextNode) {
69
- for (const k in node.#children) if (k.length > 1 && k !== ".*" && k !== "(?:|/.*)") throw PATH_ERROR;
71
+ for (const k in node.#children) if (k.length > 1 && k !== "[^]*" && k !== "(?:|/[^]*)") throw PATH_ERROR;
70
72
  nextNode = node.#children[token] = new Node();
71
73
  }
72
74
  }
73
75
  node = nextNode;
74
76
  }
75
77
  if (node.#index !== void 0) throw PATH_ERROR;
76
- node.#index = isStatic ? -1 : index;
78
+ node.#index = index;
77
79
  }
78
80
  buildRegExpStr() {
79
81
  const strList = Object.keys(this.#children).sort(compareKey).map((k) => {
@@ -1,5 +1,5 @@
1
1
  import "../../router.js";
2
- import { emptyParam, match } from "./matcher.js";
2
+ import { match } from "./matcher.js";
3
3
  import { RegExpRouter } from "./router.js";
4
4
  //#region src/router/reg-exp-router/prepared-router.ts
5
5
  var PreparedRegExpRouter = class {
@@ -27,7 +27,7 @@ var PreparedRegExpRouter = class {
27
27
  if (!this.#matchers[method]) {
28
28
  const all = this.#matchers["ALL"];
29
29
  const staticMap = {};
30
- for (const key in all[2]) staticMap[key] = [all[2][key][0].slice(), emptyParam];
30
+ for (const key in all[2]) staticMap[key] = [all[2][key][0].slice(), all[2][key][1]];
31
31
  this.#matchers[method] = [
32
32
  all[0],
33
33
  all[1].map((list) => Array.isArray(list) ? list.slice() : 0),
@@ -71,7 +71,7 @@ const buildInitParams = ({ paths }) => {
71
71
  ...map
72
72
  };
73
73
  else relocateMap[path] = [[[], map]];
74
- if (relocateMap[path][0][0].findIndex((j) => j === i) === -1) relocateMap[path][0][0].push(i);
74
+ if (!relocateMap[path][0][0].includes(i)) relocateMap[path][0][0].push(i);
75
75
  }
76
76
  });
77
77
  });
@@ -79,7 +79,7 @@ const buildInitParams = ({ paths }) => {
79
79
  if (p === path) {
80
80
  relocateMap[path] ||= [[[]]];
81
81
  const value = path2 === path ? "" : path2;
82
- if (relocateMap[path][0][0].findIndex((v) => v === value) === -1) relocateMap[path][0][0].push(value);
82
+ if (!relocateMap[path][0][0].includes(value)) relocateMap[path][0][0].push(value);
83
83
  }
84
84
  });
85
85
  }
@@ -88,7 +88,7 @@ const buildInitParams = ({ paths }) => {
88
88
  return [matchers, relocateMap];
89
89
  };
90
90
  const serializeInitParams = ([matchers, relocateMap]) => {
91
- return `[${JSON.stringify(matchers, (_, value) => value instanceof RegExp ? `##${value.toString()}##` : value).replace(/"##(.+?)##"/g, (_, str) => str.replace(/\\\\/g, "\\"))},${JSON.stringify(relocateMap)}]`;
91
+ return `[${JSON.stringify(matchers, (_, value) => value instanceof RegExp || value === void 0 ? `##${value}##` : value).replace(/"##(.+?)##"/g, (_, str) => str.replace(/\\\\/g, "\\"))},${JSON.stringify(relocateMap)}]`;
92
92
  };
93
93
  //#endregion
94
94
  export { PreparedRegExpRouter, buildInitParams, serializeInitParams };
@@ -2,24 +2,24 @@ import { checkOptionalParameter } from "../../utils/url.js";
2
2
  import { MESSAGE_MATCHER_IS_ALREADY_BUILT, UnsupportedPathError } from "../../router.js";
3
3
  import { createNullObject } from "../utils.js";
4
4
  import { emptyParam, match } from "./matcher.js";
5
- import { LABEL_REG_EXP_STR, PATH_ERROR, TAIL_WILDCARD_REG_EXP_STR } from "./node.js";
5
+ import { PATH_ERROR } from "./node.js";
6
6
  import { Trie } from "./trie.js";
7
7
  //#region src/router/reg-exp-router/router.ts
8
- let wildcardRegExpCache = createNullObject();
9
- function buildWildcardRegExp(path) {
10
- return wildcardRegExpCache[path] ??= new RegExp(`^${path.replace(/\/:[^/{}]+(?:\{\[\^\/]\+})?(?=[/{]|$)|\/?\*$|([.\\+*[^\]$()?{}|])/g, (match, metaChar) => metaChar ? `\\${metaChar}` : match === "/*" ? TAIL_WILDCARD_REG_EXP_STR : match === "*" ? ".*" : `/:${LABEL_REG_EXP_STR}`)}$`);
8
+ function endsWithWildcard(keys) {
9
+ const tail = keys[keys.length - 1];
10
+ return tail === "[^]*" || tail === "(?:|/[^]*)";
11
11
  }
12
- function findMiddleware(middleware, path) {
13
- for (const k of Object.keys(middleware).sort((a, b) => b.length - a.length)) if (buildWildcardRegExp(k).test(path)) return [...middleware[k]];
12
+ function covers(wildcard, target) {
13
+ const last = wildcard.length - 1;
14
+ for (let i = 0; i < last; i++) if (wildcard[i] !== target[i]) return false;
15
+ return wildcard[last] === "[^]*" || target.length === last || target[last] === "/";
14
16
  }
15
17
  var RegExpRouter = class {
16
18
  name = "RegExpRouter";
17
- #middleware;
18
- #routes;
19
+ #handlers;
19
20
  #tries;
20
21
  constructor() {
21
- this.#middleware = { ["ALL"]: createNullObject() };
22
- this.#routes = { ["ALL"]: createNullObject() };
22
+ this.#handlers = { ["ALL"]: [] };
23
23
  this.#tries = { ["ALL"]: new Trie() };
24
24
  }
25
25
  #insertPath(method, path) {
@@ -30,65 +30,53 @@ var RegExpRouter = class {
30
30
  }
31
31
  }
32
32
  add(method, path, handler) {
33
- const middleware = this.#middleware;
34
- const routes = this.#routes;
35
- if (!middleware) throw new Error(MESSAGE_MATCHER_IS_ALREADY_BUILT);
36
- if (!middleware[method]) {
37
- this.#tries[method] = new Trie();
38
- for (const handlerMap of [middleware, routes]) {
39
- handlerMap[method] = createNullObject();
40
- for (const p in handlerMap["ALL"]) {
41
- handlerMap[method][p] = [...handlerMap["ALL"][p]];
42
- this.#insertPath(method, p);
43
- }
44
- }
33
+ const handlers = this.#handlers;
34
+ if (!handlers) throw new Error(MESSAGE_MATCHER_IS_ALREADY_BUILT);
35
+ const tries = this.#tries;
36
+ if (!handlers[method]) {
37
+ tries[method] = new Trie();
38
+ handlers[method] = [...handlers["ALL"]];
39
+ for (const p in tries["ALL"].paths) this.#insertPath(method, p);
45
40
  }
46
41
  if (path === "/*") path = "*";
47
- const methods = method === "ALL" ? Object.keys(middleware) : [method];
48
- if (/\*$/.test(path)) {
49
- const re = buildWildcardRegExp(path);
50
- for (const m of methods) if (!middleware[m][path]) {
51
- this.#insertPath(m, path);
52
- middleware[m][path] = findMiddleware(middleware[m], path) || findMiddleware(middleware["ALL"], path) || [];
53
- }
54
- for (const handlerMap of [middleware, routes]) for (const m of methods) for (const p in handlerMap[m]) re.test(p) && handlerMap[m][p].push([handler, path]);
55
- return;
56
- }
42
+ const methods = method === "ALL" ? Object.keys(handlers) : [method];
57
43
  const paths = checkOptionalParameter(path) || [path];
58
44
  for (const path of paths) for (const m of methods) {
59
- if (!routes[m][path]) {
60
- this.#insertPath(m, path);
61
- routes[m][path] = findMiddleware(middleware[m], path) || findMiddleware(middleware["ALL"], path) || [];
62
- }
63
- routes[m][path].push([handler, path]);
45
+ if (!tries[m].paths[path]) this.#insertPath(m, path);
46
+ handlers[m].push([handler, path]);
64
47
  }
65
48
  }
66
49
  match = match;
67
50
  buildAllMatchers() {
68
51
  const matchers = createNullObject();
69
- for (const method of Object.keys(this.#routes)) matchers[method] = this.#buildMatcher(method);
70
- this.#middleware = this.#routes = this.#tries = void 0;
71
- wildcardRegExpCache = createNullObject();
52
+ for (const method of Object.keys(this.#handlers)) matchers[method] = this.#buildMatcher(method);
53
+ this.#handlers = this.#tries = void 0;
72
54
  return matchers;
73
55
  }
74
56
  #buildMatcher(method) {
75
- const middleware = this.#middleware[method];
76
- const routes = this.#routes[method];
57
+ const handlers = this.#handlers[method];
77
58
  const trie = this.#tries[method];
78
59
  const staticMap = createNullObject();
79
60
  const handlerData = [];
80
61
  const [regexp, indexReplacementMap, paramReplacementMap] = trie.buildRegExp();
81
- for (const r of [middleware, routes]) for (const path in r) {
82
- const handlers = r[path];
83
- const pathData = trie.paths[path];
84
- if (!pathData) {
85
- staticMap[path] = [handlers.map(([h]) => [h, createNullObject()]), emptyParam];
86
- continue;
87
- }
88
- handlerData[pathData[0]] = handlers.map(([h, handlerPath]) => [h, trie.paths[handlerPath][1].reduceRight((map, [key], i) => {
89
- map[key] = paramReplacementMap[pathData[1][i][1]];
62
+ const own = createNullObject();
63
+ const entries = handlers.map(([h, p], i) => {
64
+ (own[p] ??= []).push(i);
65
+ return [h, trie.paths[p][1].reduceRight((map, [key, varIndex]) => {
66
+ map[key] = paramReplacementMap[varIndex];
90
67
  return map;
91
- }, createNullObject())]);
68
+ }, createNullObject())];
69
+ });
70
+ const wildcards = Object.keys(own).filter((p) => endsWithWildcard(trie.paths[p][2]));
71
+ for (const path in trie.paths) {
72
+ const [index, , keys] = trie.paths[path];
73
+ const indexes = [...own[path]];
74
+ for (const p of wildcards) if (p !== path && covers(trie.paths[p][2], keys)) indexes.push(...own[p]);
75
+ const data = indexes.sort((a, b) => a - b).map((i) => entries[i]);
76
+ if (index === -1) {
77
+ const last = Math.max(-1, ...data.flatMap(([, map]) => Object.values(map)));
78
+ staticMap[path] = [data, last === -1 ? emptyParam : path.match(regexp).slice(0, last + 1)];
79
+ } else handlerData[index] = data;
92
80
  }
93
81
  return [
94
82
  regexp,
@@ -7,8 +7,14 @@ var Trie = class {
7
7
  #index = 0;
8
8
  paths = createNullObject();
9
9
  insert(path, isStatic) {
10
+ const keys = [];
10
11
  if (isStatic) {
11
- this.#root.insert(path.split(""), 0, [], this.#context, true);
12
+ this.#root.insert(path.split(""), -1, [], this.#context, keys);
13
+ this.paths[path] = [
14
+ -1,
15
+ [],
16
+ keys
17
+ ];
12
18
  return;
13
19
  }
14
20
  const paramAssoc = [];
@@ -16,7 +22,7 @@ var Trie = class {
16
22
  let markedPath = path;
17
23
  for (let i = 0;;) {
18
24
  let replaced = false;
19
- markedPath = markedPath.replace(/\{[^}]+\}/g, (m) => {
25
+ markedPath = markedPath.replace(/\{(?:\{[\d,]+\}|[^}])+\}/g, (m) => {
20
26
  const mark = `@\\${i}`;
21
27
  groups[i] = [mark, m];
22
28
  i++;
@@ -30,7 +36,7 @@ var Trie = class {
30
36
  * - /* wildcard
31
37
  * - character
32
38
  */
33
- const tokens = markedPath.match(/(?::[^\/]+)|(?:\/\*$)|./g) || [];
39
+ const tokens = markedPath.match(/(?::[^\/]+)|(?:\/\*$)|./gs) || [];
34
40
  for (let i = groups.length - 1; i >= 0; i--) {
35
41
  const [mark] = groups[i];
36
42
  for (let j = tokens.length - 1; j >= 0; j--) if (tokens[j].indexOf(mark) !== -1) {
@@ -38,8 +44,12 @@ var Trie = class {
38
44
  break;
39
45
  }
40
46
  }
41
- this.#root.insert(tokens, this.#index, paramAssoc, this.#context, false);
42
- this.paths[path] = [this.#index++, paramAssoc];
47
+ this.#root.insert(tokens, this.#index, paramAssoc, this.#context, keys);
48
+ this.paths[path] = [
49
+ this.#index++,
50
+ paramAssoc,
51
+ keys
52
+ ];
43
53
  }
44
54
  buildRegExp() {
45
55
  let regexp = this.#root.buildRegExpStr();
@@ -97,7 +97,7 @@ var Node = class Node {
97
97
  const restPathString = path.slice(partOffsets[i]);
98
98
  const m = matcher.exec(restPathString);
99
99
  if (m) {
100
- params[name] = m[0];
100
+ if (!Object.hasOwn(params, name)) params[name] = m[0];
101
101
  this.#pushHandlerSets(handlerSets, child, method, node.#params, params);
102
102
  if (m[0].length === restPathString.length && child.#children["*"]) this.#pushHandlerSets(handlerSets, child.#children["*"], method, node.#params, params);
103
103
  for (const _ in child.#children) {
@@ -110,7 +110,7 @@ var Node = class Node {
110
110
  }
111
111
  }
112
112
  if (matcher === true || matcher.test(part)) {
113
- params[name] = part;
113
+ if (!Object.hasOwn(params, name)) params[name] = part;
114
114
  if (isLast) {
115
115
  this.#pushHandlerSets(handlerSets, child, method, params, node.#params);
116
116
  if (child.#children["*"]) this.#pushHandlerSets(handlerSets, child.#children["*"], method, params, node.#params);
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/aws-lambda/conninfo.d.ts
3
3
  /**
4
4
  * Get connection information from AWS Lambda
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/bun/conninfo.d.ts
3
3
  /**
4
4
  * Get ConnInfo with Bun
@@ -1,4 +1,4 @@
1
- import { FileSystemModule, ToSSGAdaptorInterface } from "../../helper/ssg/ssg.js";
1
+ import { FileSystemModule, ToSSGAdaptorInterface } from "../../helper/ssg/index.js";
2
2
  //#region src/adapter/bun/ssg.d.ts
3
3
  /**
4
4
  * @experimental
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/cloudflare-pages/conninfo.d.ts
3
3
  /**
4
4
  * Get connection information from Cloudflare Pages
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/cloudflare-workers/conninfo.d.ts
3
3
  /**
4
4
  * @deprecated `hono/cloudflare-workers` will be removed in v5. Install `@hono/cloudflare-workers` and import from there instead.
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/deno/conninfo.d.ts
3
3
  /**
4
4
  * Get conninfo with Deno
@@ -1,4 +1,4 @@
1
- import { FileSystemModule, ToSSGAdaptorInterface } from "../../helper/ssg/ssg.js";
1
+ import { FileSystemModule, ToSSGAdaptorInterface } from "../../helper/ssg/index.js";
2
2
  //#region src/adapter/deno/ssg.d.ts
3
3
  /**
4
4
  * @experimental
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/lambda-edge/conninfo.d.ts
3
3
  /**
4
4
  * @deprecated `hono/lambda-edge` will be removed in v5. Install `@hono/lambda-edge` and import from there instead.
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/netlify/conninfo.d.ts
3
3
  /**
4
4
  * Get connection information from Netlify
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/vercel/conninfo.d.ts
3
3
  /**
4
4
  * @deprecated `hono/vercel` will be removed in v5. Install `@hono/vercel` and import from there instead.
@@ -2,7 +2,8 @@ import { UnionToIntersection } from "../../utils/types.js";
2
2
  import { Schema } from "../../types.js";
3
3
  import { ExecutionContext } from "../../context.js";
4
4
  import { Hono } from "../../hono.js";
5
- import { Client, ClientRequestOptions } from "../../client/types.js";
5
+ import { ClientRequestOptions } from "../../client/index.js";
6
+ import { Client } from "../../client/types.js";
6
7
  //#region src/helper/testing/index.d.ts
7
8
  type ExtractEnv<T> = T extends Hono<infer E, Schema, string> ? E : never;
8
9
  export declare const testClient: <T extends Hono<any, Schema, string>>(app: T, Env?: ExtractEnv<T>["Bindings"] | {}, executionCtx?: ExecutionContext, options?: Omit<ClientRequestOptions, "fetch">) => UnionToIntersection<Client<T, "http://localhost">>;
@@ -6,14 +6,6 @@ type GetPath<E extends Env> = (request: Request, options?: {
6
6
  env?: E['Bindings'];
7
7
  }) => string;
8
8
  export type HonoOptions<E extends Env> = {
9
- /**
10
- * `strict` option specifies whether to distinguish whether the last path is a directory or not.
11
- *
12
- * @see {@link https://hono.dev/docs/api/hono#strict-mode}
13
- *
14
- * @default true
15
- */
16
- strict?: boolean;
17
9
  /**
18
10
  * `router` option specifies which router to use.
19
11
  *
@@ -25,6 +17,15 @@ export type HonoOptions<E extends Env> = {
25
17
  * ```
26
18
  */
27
19
  router?: Router<[H, RouterRoute]>;
20
+ } & ({
21
+ /**
22
+ * `strict` option specifies whether to distinguish whether the last path is a directory or not.
23
+ *
24
+ * @see {@link https://hono.dev/docs/api/hono#strict-mode}
25
+ *
26
+ * @default true
27
+ */
28
+ strict?: true;
28
29
  /**
29
30
  * `getPath` can handle the host header value.
30
31
  *
@@ -46,7 +47,18 @@ export type HonoOptions<E extends Env> = {
46
47
  * ```
47
48
  */
48
49
  getPath?: GetPath<E>;
49
- };
50
+ } | {
51
+ /**
52
+ * `strict` option specifies whether to distinguish whether the last path is a directory or not.
53
+ * When `strict` is `false`, `getPath` is not used.
54
+ *
55
+ * @see {@link https://hono.dev/docs/api/hono#strict-mode}
56
+ *
57
+ * @default true
58
+ */
59
+ strict: false;
60
+ getPath?: never;
61
+ });
50
62
  type MountOptionHandler = (c: Context) => unknown;
51
63
  type MountReplaceRequest = (originalRequest: Request) => Request;
52
64
  type MountOptions = MountOptionHandler | {
@@ -2,5 +2,5 @@ import { Env, ErrorHandler, Handler, Input, MiddlewareHandler, Next, NotFoundHan
2
2
  import { HonoRequest } from "./request.js";
3
3
  import { Context, ContextRenderer, ContextVariableMap, ExecutionContext } from "./context.js";
4
4
  import { Hono } from "./hono.js";
5
- import { ClientRequestOptions, InferRequestType, InferResponseType } from "./client/types.js";
5
+ import { ClientRequestOptions, InferRequestType, InferResponseType } from "./client/index.js";
6
6
  export { type ClientRequestOptions, Context, type ContextRenderer, type ContextVariableMap, type Env, type ErrorHandler, type ExecutionContext, type Handler, Hono, type HonoRequest, type InferRequestType, type InferResponseType, type Input, type MiddlewareHandler, type Next, type NotFoundHandler, type NotFoundResponse, type Schema, type ToSchema, type TypedResponse, type ValidationTargets };
@@ -1,6 +1,6 @@
1
1
  import { HtmlEscapedString } from "../utils/html.js";
2
- import { PropsWithChildren } from "./types.js";
3
- import { Child, FC } from "./base.js";
2
+ import { PropsWithChildren } from "./index.js";
3
+ import { Child, FC } from "./index.js";
4
4
  //#region src/jsx/components.d.ts
5
5
  export declare const childrenToString: (children: Child[]) => Promise<HtmlEscapedString[]>;
6
6
  export type ErrorHandler = (error: Error) => void;
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from "./types.js";
2
- import { FC } from "./base.js";
1
+ import { PropsWithChildren } from "./index.js";
2
+ import { FC } from "./index.js";
3
3
  //#region src/jsx/context.d.ts
4
4
  export interface Context<T> extends FC<PropsWithChildren<{
5
5
  value: T;
@@ -1,6 +1,6 @@
1
1
  import { ErrorHandler, FallbackRender } from "../components.js";
2
- import { PropsWithChildren } from "../types.js";
3
- import { Child, FC } from "../base.js";
2
+ import { PropsWithChildren } from "../index.js";
3
+ import { Child, FC } from "../index.js";
4
4
  //#region src/jsx/dom/components.d.ts
5
5
  export declare const ErrorBoundary: FC<PropsWithChildren<{
6
6
  fallback?: Child;
@@ -1,6 +1,6 @@
1
1
  import { ClassNameSlug, CssClassName, CssVariableType, OnInvalidSlug, rawCssString } from "../../helper/css/common.js";
2
- import { PropsWithChildren } from "../types.js";
3
- import { FC } from "../base.js";
2
+ import { PropsWithChildren } from "../index.js";
3
+ import { FC } from "../index.js";
4
4
  //#region src/jsx/dom/css.d.ts
5
5
  interface CreateCssJsxDomObjectsType {
6
6
  (args: {
@@ -1,7 +1,8 @@
1
1
  import { HtmlEscapedString } from "../utils/html.js";
2
- import { PropsWithChildren } from "./types.js";
3
- import { Context } from "./context.js";
4
- import { FC, JSXNode } from "./base.js";
2
+ import { PropsWithChildren } from "./index.js";
3
+ import { Context } from "./index.js";
4
+ import { FC } from "./index.js";
5
+ import { JSXNode } from "./base.js";
5
6
  //#region src/jsx/streaming.d.ts
6
7
  /**
7
8
  * Used to specify nonce for scripts generated by `Suspense` and `ErrorBoundary`.
@@ -1,7 +1,8 @@
1
1
  import { Env, MiddlewareHandler } from "../../types.js";
2
2
  import { Context } from "../../context.js";
3
3
  //#region src/middleware/bearer-auth/index.d.ts
4
- type MessageFunction = (c: Context) => string | object | Promise<string | object>;
4
+ type MessageValue = string | object | Response;
5
+ type MessageFunction = (c: Context) => MessageValue | Promise<MessageValue>;
5
6
  type CustomizedErrorResponseOptions = {
6
7
  wwwAuthenticateHeader?: string | object | MessageFunction;
7
8
  message?: string | object | MessageFunction;
@@ -1,6 +1,6 @@
1
- import { MiddlewareHandler } from "../../types.js";
2
- import { Context } from "../../context.js";
3
- import { AddressType, GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { MiddlewareHandler } from "../../index.js";
2
+ import { Context } from "../../index.js";
3
+ import { AddressType, GetConnInfo } from "../../helper/conninfo/index.js";
4
4
  //#region src/middleware/ip-restriction/index.d.ts
5
5
  /**
6
6
  * Function to get IP Address
@@ -1,8 +1,8 @@
1
1
  import { Env, Input, MiddlewareHandler } from "../../types.js";
2
2
  import { Context, PropsForRenderer } from "../../context.js";
3
- import { PropsWithChildren } from "../../jsx/types.js";
4
- import { Context as Context$1 } from "../../jsx/context.js";
5
- import { FC } from "../../jsx/base.js";
3
+ import { PropsWithChildren } from "../../jsx/index.js";
4
+ import { Context as Context$1 } from "../../jsx/index.js";
5
+ import { FC } from "../../jsx/index.js";
6
6
  //#region src/middleware/jsx-renderer/index.d.ts
7
7
  export declare const RequestContext: Context$1<Context<any, any, {}> | null>;
8
8
  type RendererOptions = {
@@ -16,6 +16,7 @@ type MountOptions = MountOptionHandler | {
16
16
  * @param {Function} applicationHandler - other Request Handler
17
17
  * @param {MountOptions} [options] - options of `mount()`
18
18
  * @returns {MiddlewareHandler} handler to register with `app.all()`
19
+ * @throws {Error} If the route ends with a wildcard inside a segment (e.g. `/assets*`), or automatic request rewriting encounters duplicate path parameter names.
19
20
  *
20
21
  * @example
21
22
  * ```ts
@@ -1,7 +1,7 @@
1
1
  //#region src/router/reg-exp-router/node.d.ts
2
2
  export declare const LABEL_REG_EXP_STR = "[^/]+";
3
- export declare const ONLY_WILDCARD_REG_EXP_STR = ".*";
4
- export declare const TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)";
3
+ export declare const ONLY_WILDCARD_REG_EXP_STR = "[^]*";
4
+ export declare const TAIL_WILDCARD_REG_EXP_STR = "(?:|/[^]*)";
5
5
  export declare const PATH_ERROR: unique symbol;
6
6
  export type ParamAssocArray = [string, number][];
7
7
  export interface Context {
@@ -9,7 +9,7 @@ export interface Context {
9
9
  }
10
10
  export declare class Node {
11
11
 
12
- insert(tokens: readonly string[], index: number, paramMap: ParamAssocArray, context: Context, isStatic: boolean): void;
12
+ insert(tokens: readonly string[], index: number, paramMap: ParamAssocArray, context: Context, keys: string[]): void;
13
13
  buildRegExpStr(): string;
14
14
  }
15
15
  //#endregion