@cdklabs/cdk-construct-connect-datalake 0.0.12 → 0.0.14

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 (235) hide show
  1. package/.jsii +11 -11
  2. package/.jsii.tabl.json +1 -1
  3. package/lib/index.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/README.md +1 -1
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +1 -1
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +1 -1
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/index.d.ts +1 -1
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +1 -1
  9. package/node_modules/@aws-sdk/client-cloudformation/package.json +10 -10
  10. package/node_modules/@aws-sdk/client-connect/README.md +11 -6
  11. package/node_modules/@aws-sdk/client-connect/dist-cjs/schemas/schemas_0.js +74 -47
  12. package/node_modules/@aws-sdk/client-connect/dist-es/schemas/schemas_0.js +43 -16
  13. package/node_modules/@aws-sdk/client-connect/dist-types/Connect.d.ts +12 -7
  14. package/node_modules/@aws-sdk/client-connect/dist-types/ConnectClient.d.ts +12 -7
  15. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateVocabularyCommand.d.ts +2 -1
  16. package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetMetricDataV2Command.d.ts +2 -1
  17. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchContactsCommand.d.ts +17 -0
  18. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchPromptsCommand.d.ts +1 -2
  19. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchQueuesCommand.d.ts +1 -2
  20. package/node_modules/@aws-sdk/client-connect/dist-types/index.d.ts +12 -7
  21. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_0.d.ts +40 -37
  22. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_1.d.ts +152 -59
  23. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +69 -63
  24. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_3.d.ts +72 -16
  25. package/node_modules/@aws-sdk/client-connect/dist-types/schemas/schemas_0.d.ts +3 -0
  26. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateVocabularyCommand.d.ts +2 -4
  27. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetMetricDataV2Command.d.ts +2 -4
  28. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchPromptsCommand.d.ts +4 -2
  29. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchQueuesCommand.d.ts +1 -2
  30. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_0.d.ts +9 -10
  31. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_1.d.ts +9 -10
  32. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_2.d.ts +19 -15
  33. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_3.d.ts +17 -1
  34. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/schemas/schemas_0.d.ts +3 -0
  35. package/node_modules/@aws-sdk/client-connect/package.json +10 -10
  36. package/node_modules/@aws-sdk/client-glue/README.md +14 -0
  37. package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +44 -4
  38. package/node_modules/@aws-sdk/client-glue/dist-cjs/models/errors.js +16 -1
  39. package/node_modules/@aws-sdk/client-glue/dist-cjs/schemas/schemas_0.js +133 -51
  40. package/node_modules/@aws-sdk/client-glue/dist-es/Glue.js +4 -0
  41. package/node_modules/@aws-sdk/client-glue/dist-es/commands/GetDashboardUrlCommand.js +16 -0
  42. package/node_modules/@aws-sdk/client-glue/dist-es/commands/GetSessionEndpointCommand.js +16 -0
  43. package/node_modules/@aws-sdk/client-glue/dist-es/commands/index.js +2 -0
  44. package/node_modules/@aws-sdk/client-glue/dist-es/models/enums.js +14 -4
  45. package/node_modules/@aws-sdk/client-glue/dist-es/models/errors.js +14 -0
  46. package/node_modules/@aws-sdk/client-glue/dist-es/schemas/schemas_0.js +108 -26
  47. package/node_modules/@aws-sdk/client-glue/dist-types/Glue.d.ts +14 -0
  48. package/node_modules/@aws-sdk/client-glue/dist-types/GlueClient.d.ts +4 -2
  49. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateSessionCommand.d.ts +5 -0
  50. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDashboardUrlCommand.d.ts +93 -0
  51. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetMLTaskRunCommand.d.ts +1 -2
  52. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetSessionCommand.d.ts +1 -0
  53. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetSessionEndpointCommand.d.ts +101 -0
  54. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTableCommand.d.ts +121 -0
  55. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTableVersionCommand.d.ts +118 -0
  56. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTableVersionsCommand.d.ts +118 -0
  57. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTablesCommand.d.ts +119 -1
  58. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetUnfilteredTableMetadataCommand.d.ts +118 -0
  59. package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListSessionsCommand.d.ts +1 -0
  60. package/node_modules/@aws-sdk/client-glue/dist-types/commands/RunStatementCommand.d.ts +6 -0
  61. package/node_modules/@aws-sdk/client-glue/dist-types/commands/SearchTablesCommand.d.ts +118 -0
  62. package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateCrawlerScheduleCommand.d.ts +2 -1
  63. package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateDataQualityRulesetCommand.d.ts +1 -1
  64. package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateDatabaseCommand.d.ts +1 -1
  65. package/node_modules/@aws-sdk/client-glue/dist-types/commands/index.d.ts +2 -0
  66. package/node_modules/@aws-sdk/client-glue/dist-types/models/enums.d.ts +38 -12
  67. package/node_modules/@aws-sdk/client-glue/dist-types/models/errors.d.ts +17 -0
  68. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_1.d.ts +41 -28
  69. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_2.d.ts +156 -102
  70. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_3.d.ts +107 -2
  71. package/node_modules/@aws-sdk/client-glue/dist-types/schemas/schemas_0.d.ts +9 -0
  72. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/Glue.d.ts +34 -0
  73. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/GlueClient.d.ts +12 -0
  74. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDashboardUrlCommand.d.ts +52 -0
  75. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetMLTaskRunCommand.d.ts +1 -2
  76. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetSessionEndpointCommand.d.ts +53 -0
  77. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateCrawlerScheduleCommand.d.ts +2 -4
  78. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateDataQualityRulesetCommand.d.ts +1 -1
  79. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateDatabaseCommand.d.ts +1 -1
  80. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/index.d.ts +2 -0
  81. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/enums.d.ts +19 -6
  82. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/errors.d.ts +8 -0
  83. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_1.d.ts +12 -7
  84. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_2.d.ts +36 -23
  85. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_3.d.ts +24 -1
  86. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
  87. package/node_modules/@aws-sdk/client-glue/package.json +10 -10
  88. package/node_modules/@aws-sdk/client-lakeformation/package.json +10 -10
  89. package/node_modules/@aws-sdk/client-ram/package.json +10 -10
  90. package/node_modules/@aws-sdk/client-sts/package.json +12 -12
  91. package/node_modules/@aws-sdk/core/dist-cjs/index.js +47 -2291
  92. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +12 -6
  93. package/node_modules/@aws-sdk/core/dist-es/index.js +3 -3
  94. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +1 -0
  95. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +11 -6
  96. package/node_modules/@aws-sdk/core/dist-types/index.d.ts +5 -5
  97. package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +5 -5
  98. package/node_modules/@aws-sdk/core/package.json +12 -12
  99. package/node_modules/@aws-sdk/credential-provider-env/package.json +7 -7
  100. package/node_modules/@aws-sdk/credential-provider-http/package.json +11 -10
  101. package/node_modules/@aws-sdk/credential-provider-ini/package.json +15 -15
  102. package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
  103. package/node_modules/@aws-sdk/credential-provider-node/package.json +13 -13
  104. package/node_modules/@aws-sdk/credential-provider-process/package.json +7 -7
  105. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +4 -1
  106. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +4 -1
  107. package/node_modules/@aws-sdk/credential-provider-sso/package.json +12 -10
  108. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +8 -8
  109. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +99 -106
  110. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +62 -120
  111. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +55 -86
  112. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +73 -104
  113. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +102 -185
  114. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +4 -5
  115. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/bdd.js +21 -57
  116. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +1 -2
  117. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +2 -4
  118. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/schemas/schemas_0.js +73 -41
  119. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +4 -5
  120. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +20 -52
  121. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +1 -2
  122. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +2 -4
  123. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +36 -59
  124. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +4 -5
  125. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js +17 -45
  126. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +1 -2
  127. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +2 -4
  128. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js +32 -32
  129. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +4 -5
  130. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js +17 -45
  131. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +1 -2
  132. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +2 -4
  133. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +50 -50
  134. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +4 -5
  135. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js +1 -1
  136. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js +34 -96
  137. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js +1 -2
  138. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +3 -6
  139. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +63 -80
  140. package/node_modules/@aws-sdk/nested-clients/package.json +11 -11
  141. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +10 -9
  142. package/node_modules/@aws-sdk/token-providers/package.json +8 -8
  143. package/node_modules/@aws-sdk/types/package.json +4 -4
  144. package/node_modules/@aws-sdk/util-locate-window/package.json +3 -3
  145. package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/CHANGELOG.md +8 -0
  146. package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/README.md +9 -0
  147. package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/package.json +4 -1
  148. package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/strnum.js +9 -1
  149. package/node_modules/@aws-sdk/xml-builder/package.json +4 -4
  150. package/node_modules/@nodable/entities/package.json +4 -1
  151. package/node_modules/@nodable/entities/src/EntityDecoder.js +104 -3
  152. package/node_modules/@nodable/entities/src/index.d.ts +77 -0
  153. package/node_modules/@nodable/entities/src/index.js +1 -1
  154. package/node_modules/@smithy/core/dist-cjs/index.js +13 -15
  155. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +29 -31
  156. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +2 -4
  157. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +7 -9
  158. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +3 -5
  159. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +22 -23
  160. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +10 -11
  161. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +38 -39
  162. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +10 -11
  163. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +14 -17
  164. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +20 -23
  165. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +9 -11
  166. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +11 -13
  167. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +59 -60
  168. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +26 -27
  169. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +28 -29
  170. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +5 -7
  171. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -6
  172. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +23 -25
  173. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -6
  174. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +2 -4
  175. package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +1 -1
  176. package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/httpSigningMiddleware.js +1 -1
  177. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -1
  178. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/endpointMiddleware.js +1 -1
  179. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +2 -2
  180. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRateLimiter.js +1 -1
  181. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
  182. package/node_modules/@smithy/core/package.json +18 -17
  183. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +23 -24
  184. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js +2 -2
  185. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/node-http.js +2 -0
  186. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -1
  187. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/node-http.d.ts +2 -0
  188. package/node_modules/@smithy/credential-provider-imds/package.json +7 -7
  189. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +6 -8
  190. package/node_modules/@smithy/fetch-http-handler/package.json +10 -10
  191. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +15 -15
  192. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +7 -6
  193. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +2 -1
  194. package/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +2 -0
  195. package/node_modules/@smithy/node-http-handler/dist-es/node-https.js +2 -0
  196. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +2 -2
  197. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
  198. package/node_modules/@smithy/node-http-handler/dist-types/node-http2.d.ts +2 -0
  199. package/node_modules/@smithy/node-http-handler/dist-types/node-https.d.ts +2 -0
  200. package/node_modules/@smithy/node-http-handler/package.json +8 -8
  201. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +27 -29
  202. package/node_modules/@smithy/signature-v4/package.json +7 -7
  203. package/node_modules/@smithy/types/dist-cjs/index.js +23 -18
  204. package/node_modules/@smithy/types/package.json +10 -10
  205. package/node_modules/@types/aws-lambda/README.md +1 -1
  206. package/node_modules/@types/aws-lambda/package.json +3 -3
  207. package/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.ts +2 -0
  208. package/node_modules/anynum/LICENSE +21 -0
  209. package/node_modules/anynum/README.md +142 -0
  210. package/node_modules/anynum/anynum.js +135 -0
  211. package/node_modules/anynum/digitTable.js +116 -0
  212. package/node_modules/anynum/package.json +42 -0
  213. package/node_modules/watchpack/README.md +9 -0
  214. package/node_modules/watchpack/lib/DirectoryWatcher.js +182 -25
  215. package/node_modules/watchpack/lib/index.js +55 -15
  216. package/node_modules/watchpack/lib/reducePlan.js +56 -35
  217. package/node_modules/watchpack/lib/util/globToRegExp.js +142 -0
  218. package/node_modules/watchpack/lib/watchEventSource.js +18 -10
  219. package/node_modules/watchpack/package.json +17 -23
  220. package/node_modules/watchpack/types/DirectoryWatcher.d.ts +2 -0
  221. package/node_modules/watchpack/types/index.d.ts +121 -113
  222. package/node_modules/watchpack/types/util/globToRegExp.d.ts +2 -0
  223. package/node_modules/watchpack/types/watchpack.d.ts +1 -1
  224. package/node_modules/which-typed-array/CHANGELOG.md +7 -0
  225. package/node_modules/which-typed-array/eslint.config.mjs +1 -0
  226. package/node_modules/which-typed-array/index.d.ts +22 -31
  227. package/node_modules/which-typed-array/index.js +36 -23
  228. package/node_modules/which-typed-array/package.json +4 -7
  229. package/package.json +14 -14
  230. package/node_modules/glob-to-regexp/.travis.yml +0 -4
  231. package/node_modules/glob-to-regexp/README.md +0 -75
  232. package/node_modules/glob-to-regexp/index.js +0 -130
  233. package/node_modules/glob-to-regexp/package.json +0 -23
  234. package/node_modules/glob-to-regexp/test.js +0 -235
  235. /package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/LICENSE +0 -0
@@ -1,8 +1,6 @@
1
- 'use strict';
2
-
3
- var config = require('@smithy/core/config');
4
- var node_http = require('node:http');
5
- var protocols = require('@smithy/core/protocols');
1
+ const { ProviderError, CredentialsProviderError, loadConfig } = require("@smithy/core/config");
2
+ const node_http = require("node:http");
3
+ const { parseUrl } = require("@smithy/core/protocols");
6
4
 
7
5
  const isImdsCredentials = (arg) => Boolean(arg) &&
8
6
  typeof arg === "object" &&
@@ -30,17 +28,17 @@ function httpRequest(options) {
30
28
  hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1"),
31
29
  });
32
30
  req.on("error", (err) => {
33
- reject(Object.assign(new config.ProviderError("Unable to connect to instance metadata service"), err));
31
+ reject(Object.assign(new ProviderError("Unable to connect to instance metadata service"), err));
34
32
  req.destroy();
35
33
  });
36
34
  req.on("timeout", () => {
37
- reject(new config.ProviderError("TimeoutError from instance metadata service"));
35
+ reject(new ProviderError("TimeoutError from instance metadata service"));
38
36
  req.destroy();
39
37
  });
40
38
  req.on("response", (res) => {
41
39
  const { statusCode = 400 } = res;
42
40
  if (statusCode < 200 || 300 <= statusCode) {
43
- reject(Object.assign(new config.ProviderError("Error response received from instance metadata service"), { statusCode }));
41
+ reject(Object.assign(new ProviderError("Error response received from instance metadata service"), { statusCode }));
44
42
  req.destroy();
45
43
  }
46
44
  const chunks = [];
@@ -73,7 +71,7 @@ const fromContainerMetadata = (init = {}) => {
73
71
  const requestOptions = await getCmdsUri({ logger: init.logger });
74
72
  const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions));
75
73
  if (!isImdsCredentials(credsResponse)) {
76
- throw new config.CredentialsProviderError("Invalid response received from instance metadata service.", {
74
+ throw new CredentialsProviderError("Invalid response received from instance metadata service.", {
77
75
  logger: init.logger,
78
76
  });
79
77
  }
@@ -109,16 +107,16 @@ const getCmdsUri = async ({ logger }) => {
109
107
  parsed = new URL(process.env[ENV_CMDS_FULL_URI]);
110
108
  }
111
109
  catch {
112
- throw new config.CredentialsProviderError(`${process.env[ENV_CMDS_FULL_URI]} is not a valid container metadata service URL`, { tryNextLink: false, logger });
110
+ throw new CredentialsProviderError(`${process.env[ENV_CMDS_FULL_URI]} is not a valid container metadata service URL`, { tryNextLink: false, logger });
113
111
  }
114
112
  if (!parsed.hostname || !GREENGRASS_HOSTS.has(parsed.hostname)) {
115
- throw new config.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
113
+ throw new CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
116
114
  tryNextLink: false,
117
115
  logger,
118
116
  });
119
117
  }
120
118
  if (!parsed.protocol || !GREENGRASS_PROTOCOLS.has(parsed.protocol)) {
121
- throw new config.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
119
+ throw new CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
122
120
  tryNextLink: false,
123
121
  logger,
124
122
  });
@@ -130,7 +128,7 @@ const getCmdsUri = async ({ logger }) => {
130
128
  port: parsed.port ? parseInt(parsed.port, 10) : undefined,
131
129
  };
132
130
  }
133
- throw new config.CredentialsProviderError("The container metadata credential provider cannot be used unless" +
131
+ throw new CredentialsProviderError("The container metadata credential provider cannot be used unless" +
134
132
  ` the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment` +
135
133
  " variable is set", {
136
134
  tryNextLink: false,
@@ -138,7 +136,7 @@ const getCmdsUri = async ({ logger }) => {
138
136
  });
139
137
  };
140
138
 
141
- class InstanceMetadataV1FallbackError extends config.CredentialsProviderError {
139
+ class InstanceMetadataV1FallbackError extends CredentialsProviderError {
142
140
  tryNextLink;
143
141
  name = "InstanceMetadataV1FallbackError";
144
142
  constructor(message, tryNextLink = true) {
@@ -148,11 +146,11 @@ class InstanceMetadataV1FallbackError extends config.CredentialsProviderError {
148
146
  }
149
147
  }
150
148
 
151
- exports.Endpoint = void 0;
149
+ var Endpoint;
152
150
  (function (Endpoint) {
153
151
  Endpoint["IPv4"] = "http://169.254.169.254";
154
152
  Endpoint["IPv6"] = "http://[fd00:ec2::254]";
155
- })(exports.Endpoint || (exports.Endpoint = {}));
153
+ })(Endpoint || (Endpoint = {}));
156
154
 
157
155
  const ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
158
156
  const CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint";
@@ -176,15 +174,15 @@ const ENDPOINT_MODE_CONFIG_OPTIONS = {
176
174
  default: EndpointMode.IPv4,
177
175
  };
178
176
 
179
- const getInstanceMetadataEndpoint = async () => protocols.parseUrl((await getFromEndpointConfig()) || (await getFromEndpointModeConfig()));
180
- const getFromEndpointConfig = async () => config.loadConfig(ENDPOINT_CONFIG_OPTIONS)();
177
+ const getInstanceMetadataEndpoint = async () => parseUrl((await getFromEndpointConfig()) || (await getFromEndpointModeConfig()));
178
+ const getFromEndpointConfig = async () => loadConfig(ENDPOINT_CONFIG_OPTIONS)();
181
179
  const getFromEndpointModeConfig = async () => {
182
- const endpointMode = await config.loadConfig(ENDPOINT_MODE_CONFIG_OPTIONS)();
180
+ const endpointMode = await loadConfig(ENDPOINT_MODE_CONFIG_OPTIONS)();
183
181
  switch (endpointMode) {
184
182
  case EndpointMode.IPv4:
185
- return exports.Endpoint.IPv4;
183
+ return Endpoint.IPv4;
186
184
  case EndpointMode.IPv6:
187
- return exports.Endpoint.IPv6;
185
+ return Endpoint.IPv6;
188
186
  default:
189
187
  throw new Error(`Unsupported endpoint mode: ${endpointMode}.` + ` Select from ${Object.values(EndpointMode)}`);
190
188
  }
@@ -248,12 +246,12 @@ const getInstanceMetadataProvider = (init = {}) => {
248
246
  if (isImdsV1Fallback) {
249
247
  let fallbackBlockedFromProfile = false;
250
248
  let fallbackBlockedFromProcessEnv = false;
251
- const configValue = await config.loadConfig({
249
+ const configValue = await loadConfig({
252
250
  environmentVariableSelector: (env) => {
253
251
  const envValue = env[AWS_EC2_METADATA_V1_DISABLED];
254
252
  fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
255
253
  if (envValue === undefined) {
256
- throw new config.CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
254
+ throw new CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
257
255
  }
258
256
  return fallbackBlockedFromProcessEnv;
259
257
  },
@@ -352,7 +350,7 @@ const getCredentialsFromProfile = async (profile, options, init) => {
352
350
  path: IMDS_PATH + profile,
353
351
  })).toString());
354
352
  if (!isImdsCredentials(credentialsResponse)) {
355
- throw new config.CredentialsProviderError("Invalid response received from instance metadata service.", {
353
+ throw new CredentialsProviderError("Invalid response received from instance metadata service.", {
356
354
  logger: init.logger,
357
355
  });
358
356
  }
@@ -364,6 +362,7 @@ exports.DEFAULT_TIMEOUT = DEFAULT_TIMEOUT;
364
362
  exports.ENV_CMDS_AUTH_TOKEN = ENV_CMDS_AUTH_TOKEN;
365
363
  exports.ENV_CMDS_FULL_URI = ENV_CMDS_FULL_URI;
366
364
  exports.ENV_CMDS_RELATIVE_URI = ENV_CMDS_RELATIVE_URI;
365
+ exports.Endpoint = Endpoint;
367
366
  exports.fromContainerMetadata = fromContainerMetadata;
368
367
  exports.fromInstanceMetadata = fromInstanceMetadata;
369
368
  exports.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint;
@@ -1,8 +1,8 @@
1
- import { request } from "node:http";
2
1
  import { ProviderError } from "@smithy/core/config";
2
+ import { node_http } from "./node-http";
3
3
  export function httpRequest(options) {
4
4
  return new Promise((resolve, reject) => {
5
- const req = request({
5
+ const req = node_http.request({
6
6
  method: "GET",
7
7
  ...options,
8
8
  hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1"),
@@ -0,0 +1,2 @@
1
+ import node_http from "node:http";
2
+ export { node_http };
@@ -1,4 +1,4 @@
1
- import { type RequestOptions } from "node:http";
1
+ import type { RequestOptions } from "node:http";
2
2
  /**
3
3
  * @internal
4
4
  */
@@ -0,0 +1,2 @@
1
+ import node_http from "node:http";
2
+ export { node_http };
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "4.3.7",
3
+ "version": "4.4.0",
4
4
  "description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
7
7
  "scripts": {
8
8
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
9
- "build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline credential-provider-imds",
10
- "build:types": "yarn g:tsc -p tsconfig.types.json",
9
+ "build:es:cjs": "premove dist-es && yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline",
10
+ "build:types": "premove dist-types && yarn g:tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
12
+ "clean": "premove dist-cjs dist-es dist-types",
13
13
  "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
14
14
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
15
15
  "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
@@ -22,13 +22,13 @@
22
22
  ],
23
23
  "author": {
24
24
  "name": "AWS SDK for JavaScript Team",
25
- "url": "https://aws.amazon.com/javascript/"
25
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "sideEffects": false,
29
29
  "dependencies": {
30
- "@smithy/core": "^3.24.6",
31
- "@smithy/types": "^4.14.3",
30
+ "@smithy/core": "^3.25.0",
31
+ "@smithy/types": "^4.15.0",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
@@ -1,7 +1,5 @@
1
- 'use strict';
2
-
3
- var protocols = require('@smithy/core/protocols');
4
- var serde = require('@smithy/core/serde');
1
+ const { buildQueryString, HttpResponse } = require("@smithy/core/protocols");
2
+ const { fromBase64 } = require("@smithy/core/serde");
5
3
 
6
4
  function createRequest(url, requestOptions) {
7
5
  return new Request(url, requestOptions);
@@ -57,7 +55,7 @@ class FetchHttpHandler {
57
55
  return Promise.reject(abortError);
58
56
  }
59
57
  let path = request.path;
60
- const queryString = protocols.buildQueryString(request.query || {});
58
+ const queryString = buildQueryString(request.query || {});
61
59
  if (queryString) {
62
60
  path += `?${queryString}`;
63
61
  }
@@ -106,7 +104,7 @@ class FetchHttpHandler {
106
104
  const hasReadableStream = response.body != undefined;
107
105
  if (!hasReadableStream) {
108
106
  return response.blob().then((body) => ({
109
- response: new protocols.HttpResponse({
107
+ response: new HttpResponse({
110
108
  headers: transformedHeaders,
111
109
  reason: response.statusText,
112
110
  statusCode: response.status,
@@ -115,7 +113,7 @@ class FetchHttpHandler {
115
113
  }));
116
114
  }
117
115
  return {
118
- response: new protocols.HttpResponse({
116
+ response: new HttpResponse({
119
117
  headers: transformedHeaders,
120
118
  reason: response.statusText,
121
119
  statusCode: response.status,
@@ -185,7 +183,7 @@ const streamCollector = async (stream) => {
185
183
  };
186
184
  async function collectBlob(blob) {
187
185
  const base64 = await readToBase64(blob);
188
- const arrayBuffer = serde.fromBase64(base64);
186
+ const arrayBuffer = fromBase64(base64);
189
187
  return new Uint8Array(arrayBuffer);
190
188
  }
191
189
  async function collectStream(stream) {
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "5.4.6",
3
+ "version": "5.5.0",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
7
- "build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline fetch-http-handler",
8
- "build:types": "yarn g:tsc -p tsconfig.types.json",
7
+ "build:es:cjs": "premove dist-es && yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline",
8
+ "build:types": "premove dist-types && yarn g:tsc -p tsconfig.types.json",
9
9
  "build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
10
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
10
+ "clean": "premove dist-cjs dist-es dist-types",
11
11
  "extract:docs": "api-extractor run --local",
12
12
  "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
13
13
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
14
14
  "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
15
15
  "test": "yarn g:vitest run && yarn test:browser",
16
+ "test:watch": "yarn g:vitest watch",
16
17
  "test:browser": "yarn g:vitest run -c vitest.config.browser.mts",
17
- "test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.mts",
18
- "test:watch": "yarn g:vitest watch"
18
+ "test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.mts"
19
19
  },
20
20
  "author": {
21
21
  "name": "AWS SDK for JavaScript Team",
22
- "url": "https://aws.amazon.com/javascript/"
22
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
@@ -27,12 +27,12 @@
27
27
  "module": "./dist-es/index.js",
28
28
  "types": "./dist-types/index.d.ts",
29
29
  "dependencies": {
30
- "@smithy/core": "^3.24.6",
31
- "@smithy/types": "^4.14.3",
30
+ "@smithy/core": "^3.25.0",
31
+ "@smithy/types": "^4.15.0",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
35
- "@smithy/abort-controller": "^4.2.16",
35
+ "@smithy/abort-controller": "^4.3.0",
36
36
  "concurrently": "7.0.0",
37
37
  "downlevel-dts": "0.10.1",
38
38
  "premove": "4.0.0",
@@ -1,9 +1,7 @@
1
- 'use strict';
2
-
3
- var node_https = require('node:https');
4
- var protocols = require('@smithy/core/protocols');
5
- var node_stream = require('node:stream');
6
- var http2 = require('node:http2');
1
+ const { buildQueryString, HttpResponse } = require("@smithy/core/protocols");
2
+ const node_https = require("node:https");
3
+ const { Readable, Writable } = require("node:stream");
4
+ const http2 = require("node:http2");
7
5
 
8
6
  function buildAbortError(abortSignal) {
9
7
  const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal
@@ -175,7 +173,7 @@ async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN
175
173
  }
176
174
  }
177
175
  function writeBody(httpRequest, body) {
178
- if (body instanceof node_stream.Readable) {
176
+ if (body instanceof Readable) {
179
177
  body.pipe(httpRequest);
180
178
  return;
181
179
  }
@@ -311,7 +309,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
311
309
  socketWarningTimeoutId = timing.setTimeout(() => {
312
310
  this.socketWarningTimestamp = NodeHttpHandler.checkSocketUsage(agent, this.socketWarningTimestamp, config.logger);
313
311
  }, config.socketAcquisitionWarningTimeout ?? (config.requestTimeout ?? 2000) + (config.connectionTimeout ?? 1000));
314
- const queryString = request.query ? protocols.buildQueryString(request.query) : "";
312
+ const queryString = request.query ? buildQueryString(request.query) : "";
315
313
  let auth = undefined;
316
314
  if (request.username != null || request.password != null) {
317
315
  const username = request.username ?? "";
@@ -343,7 +341,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
343
341
  };
344
342
  const requestFunc = isSSL ? node_https.request : hRequest;
345
343
  const req = requestFunc(nodeHttpsOptions, (res) => {
346
- const httpResponse = new protocols.HttpResponse({
344
+ const httpResponse = new HttpResponse({
347
345
  statusCode: res.statusCode || -1,
348
346
  reason: res.statusMessage,
349
347
  headers: getTransformedHeaders(res.headers),
@@ -414,7 +412,8 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
414
412
  socketAcquisitionWarningTimeout,
415
413
  throwOnRequestTimeout,
416
414
  httpAgentProvider: async () => {
417
- const { Agent, request } = await import('node:http');
415
+ const node_http = require('node:http');
416
+ const { Agent, request } = node_http.default ?? node_http;
418
417
  hRequest = request;
419
418
  hAgent = Agent;
420
419
  if (httpAgent instanceof hAgent || typeof httpAgent?.destroy === "function") {
@@ -666,6 +665,7 @@ class NodeHttp2ConnectionManager {
666
665
  }
667
666
  }
668
667
 
668
+ const { constants } = http2;
669
669
  class NodeHttp2Handler {
670
670
  config;
671
671
  configProvider;
@@ -750,7 +750,7 @@ class NodeHttp2Handler {
750
750
  fulfilled = true;
751
751
  reject(err);
752
752
  };
753
- const queryString = query ? protocols.buildQueryString(query) : "";
753
+ const queryString = query ? buildQueryString(query) : "";
754
754
  let path = request.path;
755
755
  if (queryString) {
756
756
  path += `?${queryString}`;
@@ -760,8 +760,8 @@ class NodeHttp2Handler {
760
760
  }
761
761
  const clientHttp2Stream = session.request({
762
762
  ...request.headers,
763
- [http2.constants.HTTP2_HEADER_PATH]: path,
764
- [http2.constants.HTTP2_HEADER_METHOD]: method,
763
+ [constants.HTTP2_HEADER_PATH]: path,
764
+ [constants.HTTP2_HEADER_METHOD]: method,
765
765
  });
766
766
  if (effectiveRequestTimeout) {
767
767
  clientHttp2Stream.setTimeout(effectiveRequestTimeout, () => {
@@ -794,7 +794,7 @@ class NodeHttp2Handler {
794
794
  rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${clientHttp2Stream.rstCode}.`));
795
795
  });
796
796
  clientHttp2Stream.on("response", (headers) => {
797
- const httpResponse = new protocols.HttpResponse({
797
+ const httpResponse = new HttpResponse({
798
798
  statusCode: headers[":status"] ?? -1,
799
799
  headers: getTransformedHeaders(headers),
800
800
  body: clientHttp2Stream,
@@ -833,7 +833,7 @@ class NodeHttp2Handler {
833
833
  }
834
834
  }
835
835
 
836
- class Collector extends node_stream.Writable {
836
+ class Collector extends Writable {
837
837
  bufferedBytes = [];
838
838
  _write(chunk, encoding, callback) {
839
839
  this.bufferedBytes.push(chunk);
@@ -1,8 +1,8 @@
1
- import { Agent as hsAgent, request as hsRequest } from "node:https";
2
1
  import { HttpResponse, buildQueryString } from "@smithy/core/protocols";
3
2
  import { buildAbortError } from "./build-abort-error";
4
3
  import { NODEJS_TIMEOUT_ERROR_CODES } from "./constants";
5
4
  import { getTransformedHeaders } from "./get-transformed-headers";
5
+ import { node_https } from "./node-https";
6
6
  import { setConnectionTimeout } from "./set-connection-timeout";
7
7
  import { setRequestTimeout } from "./set-request-timeout";
8
8
  import { setSocketKeepAlive } from "./set-socket-keep-alive";
@@ -107,7 +107,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
107
107
  const expectContinue = headers ? (headers.Expect ?? headers.expect) === "100-continue" : false;
108
108
  let agent = isSSL ? config.httpsAgent : config.httpAgent;
109
109
  if (expectContinue && !this.externalAgent) {
110
- agent = new (isSSL ? hsAgent : hAgent)({
110
+ agent = new (isSSL ? node_https.Agent : hAgent)({
111
111
  keepAlive: false,
112
112
  maxSockets: Infinity,
113
113
  });
@@ -145,7 +145,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
145
145
  agent,
146
146
  auth,
147
147
  };
148
- const requestFunc = isSSL ? hsRequest : hRequest;
148
+ const requestFunc = isSSL ? node_https.request : hRequest;
149
149
  const req = requestFunc(nodeHttpsOptions, (res) => {
150
150
  const httpResponse = new HttpResponse({
151
151
  statusCode: res.statusCode || -1,
@@ -218,7 +218,8 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
218
218
  socketAcquisitionWarningTimeout,
219
219
  throwOnRequestTimeout,
220
220
  httpAgentProvider: async () => {
221
- const { Agent, request } = await import("node:http");
221
+ const node_http = await import("node:http");
222
+ const { Agent, request } = node_http.default ?? node_http;
222
223
  hRequest = request;
223
224
  hAgent = Agent;
224
225
  if (httpAgent instanceof hAgent || typeof httpAgent?.destroy === "function") {
@@ -228,11 +229,11 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
228
229
  return new hAgent({ keepAlive, maxSockets, ...httpAgent });
229
230
  },
230
231
  httpsAgent: (() => {
231
- if (httpsAgent instanceof hsAgent || typeof httpsAgent?.destroy === "function") {
232
+ if (httpsAgent instanceof node_https.Agent || typeof httpsAgent?.destroy === "function") {
232
233
  this.externalAgent = true;
233
234
  return httpsAgent;
234
235
  }
235
- return new hsAgent({ keepAlive, maxSockets, ...httpsAgent });
236
+ return new node_https.Agent({ keepAlive, maxSockets, ...httpsAgent });
236
237
  })(),
237
238
  logger,
238
239
  };
@@ -1,9 +1,10 @@
1
- import { constants } from "node:http2";
2
1
  import { HttpResponse, buildQueryString } from "@smithy/core/protocols";
3
2
  import { buildAbortError } from "./build-abort-error";
4
3
  import { getTransformedHeaders } from "./get-transformed-headers";
4
+ import { node_http2 } from "./node-http2";
5
5
  import { NodeHttp2ConnectionManager } from "./node-http2-connection-manager";
6
6
  import { writeRequestBody } from "./write-request-body";
7
+ const { constants } = node_http2;
7
8
  export class NodeHttp2Handler {
8
9
  config;
9
10
  configProvider;
@@ -0,0 +1,2 @@
1
+ import node_http2 from "node:http2";
2
+ export { node_http2 };
@@ -0,0 +1,2 @@
1
+ import node_https from "node:https";
2
+ export { node_https };
@@ -1,5 +1,5 @@
1
1
  import type { Agent as hAgentType } from "node:http";
2
- import { Agent as hsAgent } from "node:https";
2
+ import type { Agent as hsAgentType } from "node:https";
3
3
  import { HttpResponse, type HttpHandler, type HttpRequest } from "@smithy/core/protocols";
4
4
  import type { HttpHandlerOptions, Logger, NodeHttpHandlerOptions, Provider } from "@smithy/types";
5
5
  export { NodeHttpHandlerOptions };
@@ -35,7 +35,7 @@ export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptio
35
35
  * @param logger - channel for the warning.
36
36
  * @returns timestamp of last emitted warning.
37
37
  */
38
- static checkSocketUsage(agent: hAgentType | hsAgent, socketWarningTimestamp: number, logger?: Logger): number;
38
+ static checkSocketUsage(agent: hAgentType | hsAgentType, socketWarningTimestamp: number, logger?: Logger): number;
39
39
  constructor(options?: NodeHttpHandlerOptions | Provider<NodeHttpHandlerOptions | void>);
40
40
  destroy(): void;
41
41
  handle(request: HttpRequest, { abortSignal, requestTimeout }?: HttpHandlerOptions): Promise<{
@@ -1,4 +1,4 @@
1
- import { type ClientSessionOptions, type SecureClientSessionOptions } from "node:http2";
1
+ import type { ClientSessionOptions, SecureClientSessionOptions } from "node:http2";
2
2
  import { HttpResponse, type HttpHandler, type HttpRequest } from "@smithy/core/protocols";
3
3
  import type { HttpHandlerOptions, Provider } from "@smithy/types";
4
4
  /**
@@ -0,0 +1,2 @@
1
+ import node_http2 from "node:http2";
2
+ export { node_http2 };
@@ -0,0 +1,2 @@
1
+ import node_https from "node:https";
2
+ export { node_https };
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.7.6",
3
+ "version": "4.8.0",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
7
- "build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline node-http-handler",
8
- "build:types": "yarn g:tsc -p tsconfig.types.json",
7
+ "build:es:cjs": "premove dist-es && yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline",
8
+ "build:types": "premove dist-types && yarn g:tsc -p tsconfig.types.json",
9
9
  "build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
10
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
10
+ "clean": "premove dist-cjs dist-es dist-types",
11
11
  "extract:docs": "api-extractor run --local",
12
12
  "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
13
13
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
@@ -18,7 +18,7 @@
18
18
  "author": {
19
19
  "name": "AWS SDK for JavaScript Team",
20
20
  "email": "",
21
- "url": "https://aws.amazon.com/javascript/"
21
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "sideEffects": false,
@@ -26,12 +26,12 @@
26
26
  "module": "./dist-es/index.js",
27
27
  "types": "./dist-types/index.d.ts",
28
28
  "dependencies": {
29
- "@smithy/core": "^3.24.6",
30
- "@smithy/types": "^4.14.3",
29
+ "@smithy/core": "^3.25.0",
30
+ "@smithy/types": "^4.15.0",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {
34
- "@smithy/abort-controller": "^4.2.16",
34
+ "@smithy/abort-controller": "^4.3.0",
35
35
  "@types/node": "^18.11.9",
36
36
  "concurrently": "7.0.0",
37
37
  "downlevel-dts": "0.10.1",