@cdk8s/awscdk-resolver 0.0.100 → 0.0.102

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 (226) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +40 -40
  4. package/node_modules/@aws-sdk/client-sso/package.json +36 -36
  5. package/node_modules/@aws-sdk/client-sso-oidc/package.json +38 -38
  6. package/node_modules/@aws-sdk/client-sts/package.json +38 -38
  7. package/node_modules/@aws-sdk/core/README.md +35 -1
  8. package/node_modules/@aws-sdk/core/client.js +5 -0
  9. package/node_modules/@aws-sdk/core/dist-cjs/index.js +5 -437
  10. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +38 -0
  11. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +226 -0
  12. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +228 -0
  13. package/node_modules/@aws-sdk/core/dist-es/index.js +3 -3
  14. package/node_modules/@aws-sdk/core/dist-types/index.d.ts +22 -3
  15. package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +3 -3
  16. package/node_modules/@aws-sdk/core/httpAuthSchemes.js +5 -0
  17. package/node_modules/@aws-sdk/core/package.json +44 -7
  18. package/node_modules/@aws-sdk/core/protocols.js +5 -0
  19. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +1 -0
  20. package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
  21. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +2 -3
  22. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +8 -9
  23. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +1 -2
  24. package/node_modules/@aws-sdk/credential-provider-http/package.json +9 -9
  25. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  26. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  27. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  28. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  29. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +4 -5
  30. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +2 -3
  31. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +1 -0
  32. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
  33. package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +1 -0
  34. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  35. package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +1 -0
  36. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  37. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +1 -0
  38. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  39. package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
  40. package/node_modules/@aws-sdk/region-config-resolver/package.json +6 -6
  41. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  42. package/node_modules/@aws-sdk/types/dist-cjs/index.js +1 -0
  43. package/node_modules/@aws-sdk/types/package.json +2 -2
  44. package/node_modules/@aws-sdk/util-endpoints/package.json +4 -4
  45. package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.js +3 -4
  46. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  47. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +1 -0
  48. package/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -4
  49. package/node_modules/@smithy/abort-controller/package.json +3 -4
  50. package/node_modules/@smithy/config-resolver/package.json +6 -7
  51. package/node_modules/@smithy/core/package.json +10 -10
  52. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -0
  53. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/httpRequest.d.ts +1 -0
  54. package/node_modules/@smithy/credential-provider-imds/package.json +7 -8
  55. package/node_modules/@smithy/fetch-http-handler/README.md +7 -0
  56. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +21 -9
  57. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +10 -3
  58. package/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +11 -6
  59. package/node_modules/@smithy/fetch-http-handler/package.json +8 -25
  60. package/node_modules/@smithy/hash-node/package.json +6 -7
  61. package/node_modules/@smithy/invalid-dependency/package.json +2 -3
  62. package/node_modules/@smithy/is-array-buffer/package.json +2 -3
  63. package/node_modules/@smithy/middleware-content-length/package.json +5 -6
  64. package/node_modules/@smithy/middleware-endpoint/package.json +8 -9
  65. package/node_modules/@smithy/middleware-retry/package.json +10 -11
  66. package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +1 -1
  67. package/node_modules/@smithy/middleware-serde/dist-es/deserializerMiddleware.js +1 -1
  68. package/node_modules/@smithy/middleware-serde/package.json +4 -5
  69. package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +7 -4
  70. package/node_modules/@smithy/middleware-stack/package.json +3 -4
  71. package/node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js +2 -1
  72. package/node_modules/@smithy/node-config-provider/package.json +6 -7
  73. package/node_modules/@smithy/node-http-handler/README.md +5 -0
  74. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +46 -15
  75. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +2 -1
  76. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +39 -12
  77. package/node_modules/@smithy/node-http-handler/package.json +7 -8
  78. package/node_modules/@smithy/property-provider/package.json +3 -4
  79. package/node_modules/@smithy/protocol-http/package.json +3 -4
  80. package/node_modules/@smithy/querystring-builder/package.json +4 -5
  81. package/node_modules/@smithy/querystring-parser/package.json +3 -4
  82. package/node_modules/@smithy/service-error-classification/package.json +3 -4
  83. package/node_modules/@smithy/shared-ini-file-loader/package.json +4 -5
  84. package/node_modules/@smithy/signature-v4/package.json +9 -10
  85. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +1 -1
  86. package/node_modules/@smithy/smithy-client/dist-es/emitWarningIfUnsupportedVersion.js +1 -1
  87. package/node_modules/@smithy/smithy-client/package.json +8 -9
  88. package/node_modules/@smithy/types/dist-types/client.d.ts +12 -0
  89. package/node_modules/@smithy/types/dist-types/http.d.ts +1 -1
  90. package/node_modules/@smithy/types/dist-types/transform/no-undefined.d.ts +5 -5
  91. package/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +12 -0
  92. package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +1 -1
  93. package/node_modules/@smithy/types/dist-types/ts3.4/transform/no-undefined.d.ts +9 -1
  94. package/node_modules/@smithy/types/package.json +2 -3
  95. package/node_modules/@smithy/url-parser/package.json +3 -4
  96. package/node_modules/@smithy/util-base64/package.json +5 -6
  97. package/node_modules/@smithy/util-body-length-browser/package.json +1 -2
  98. package/node_modules/@smithy/util-body-length-node/package.json +3 -4
  99. package/node_modules/@smithy/util-buffer-from/package.json +4 -5
  100. package/node_modules/@smithy/util-config-provider/package.json +3 -4
  101. package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -6
  102. package/node_modules/@smithy/util-defaults-mode-node/package.json +8 -9
  103. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +3 -3
  104. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js +1 -1
  105. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js +1 -1
  106. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js +1 -1
  107. package/node_modules/@smithy/util-endpoints/package.json +5 -6
  108. package/node_modules/@smithy/util-hex-encoding/package.json +2 -3
  109. package/node_modules/@smithy/util-middleware/package.json +4 -5
  110. package/node_modules/@smithy/util-retry/dist-cjs/index.js +1 -0
  111. package/node_modules/@smithy/util-retry/package.json +5 -6
  112. package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +8 -2
  113. package/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.js +8 -2
  114. package/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.d.ts +1 -1
  115. package/node_modules/@smithy/util-stream/dist-types/ts3.4/sdk-stream-mixin.d.ts +1 -1
  116. package/node_modules/@smithy/util-stream/package.json +13 -29
  117. package/node_modules/@smithy/util-uri-escape/package.json +2 -3
  118. package/node_modules/@smithy/util-utf8/package.json +3 -4
  119. package/node_modules/@smithy/util-waiter/package.json +4 -5
  120. package/package.json +4 -4
  121. package/node_modules/@aws-sdk/core/CHANGELOG.md +0 -315
  122. package/node_modules/@aws-sdk/core/api-extractor.json +0 -4
  123. package/node_modules/@aws-sdk/core/dist-cjs/client/emitWarningIfUnsupportedVersion.js +0 -1
  124. package/node_modules/@aws-sdk/core/dist-cjs/client/index.js +0 -1
  125. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +0 -1
  126. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/aws_sdk/index.js +0 -1
  127. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +0 -1
  128. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/index.js +0 -1
  129. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/getDateHeader.js +0 -1
  130. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/getSkewCorrectedDate.js +0 -1
  131. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +0 -1
  132. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/index.js +0 -1
  133. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/isClockSkewed.js +0 -1
  134. package/node_modules/@aws-sdk/core/dist-cjs/protocols/coercing-serializers.js +0 -1
  135. package/node_modules/@aws-sdk/core/dist-cjs/protocols/common.js +0 -1
  136. package/node_modules/@aws-sdk/core/dist-cjs/protocols/index.js +0 -1
  137. package/node_modules/@aws-sdk/core/dist-cjs/protocols/json/awsExpectUnion.js +0 -1
  138. package/node_modules/@aws-sdk/core/dist-cjs/protocols/json/parseJsonBody.js +0 -1
  139. package/node_modules/@aws-sdk/core/dist-cjs/protocols/xml/parseXmlBody.js +0 -1
  140. package/node_modules/@aws-sdk/core/integ/request-handlers/request-handlers.integ.spec.ts +0 -158
  141. package/node_modules/@aws-sdk/core/jest.config.integ.js +0 -4
  142. package/node_modules/@aws-sdk/core/jest.config.js +0 -6
  143. package/node_modules/@aws-sdk/core/scripts/lint.js +0 -24
  144. package/node_modules/@aws-sdk/core/src/client/emitWarningIfUnsupportedVersion.spec.ts +0 -70
  145. package/node_modules/@aws-sdk/core/src/client/emitWarningIfUnsupportedVersion.ts +0 -26
  146. package/node_modules/@aws-sdk/core/src/client/index.ts +0 -1
  147. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.spec.ts +0 -30
  148. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.ts +0 -134
  149. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/index.ts +0 -2
  150. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.ts +0 -244
  151. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/index.ts +0 -1
  152. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getDateHeader.ts +0 -7
  153. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getSkewCorrectedDate.spec.ts +0 -17
  154. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getSkewCorrectedDate.ts +0 -8
  155. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getUpdatedSystemClockOffset.spec.ts +0 -37
  156. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getUpdatedSystemClockOffset.ts +0 -18
  157. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/index.ts +0 -3
  158. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/isClockSkewed.spec.ts +0 -32
  159. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/isClockSkewed.ts +0 -12
  160. package/node_modules/@aws-sdk/core/src/index.ts +0 -3
  161. package/node_modules/@aws-sdk/core/src/protocols/coercing-serializers.spec.ts +0 -76
  162. package/node_modules/@aws-sdk/core/src/protocols/coercing-serializers.ts +0 -72
  163. package/node_modules/@aws-sdk/core/src/protocols/common.ts +0 -5
  164. package/node_modules/@aws-sdk/core/src/protocols/index.ts +0 -4
  165. package/node_modules/@aws-sdk/core/src/protocols/json/awsExpectUnion.spec.ts +0 -30
  166. package/node_modules/@aws-sdk/core/src/protocols/json/awsExpectUnion.ts +0 -17
  167. package/node_modules/@aws-sdk/core/src/protocols/json/parseJsonBody.ts +0 -60
  168. package/node_modules/@aws-sdk/core/src/protocols/xml/parseXmlBody.spec.ts +0 -60
  169. package/node_modules/@aws-sdk/core/src/protocols/xml/parseXmlBody.ts +0 -64
  170. package/node_modules/@aws-sdk/core/tsconfig.cjs.json +0 -9
  171. package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +0 -1
  172. package/node_modules/@aws-sdk/core/tsconfig.es.json +0 -9
  173. package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +0 -1
  174. package/node_modules/@aws-sdk/core/tsconfig.types.json +0 -9
  175. package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +0 -1
  176. /package/node_modules/@aws-sdk/core/dist-es/{client → submodules/client}/emitWarningIfUnsupportedVersion.js +0 -0
  177. /package/node_modules/@aws-sdk/core/dist-es/{client → submodules/client}/index.js +0 -0
  178. /package/node_modules/@aws-sdk/core/dist-es/{httpAuthSchemes → submodules/httpAuthSchemes}/aws_sdk/AwsSdkSigV4Signer.js +0 -0
  179. /package/node_modules/@aws-sdk/core/dist-es/{httpAuthSchemes → submodules/httpAuthSchemes}/aws_sdk/index.js +0 -0
  180. /package/node_modules/@aws-sdk/core/dist-es/{httpAuthSchemes → submodules/httpAuthSchemes}/aws_sdk/resolveAwsSdkSigV4Config.js +0 -0
  181. /package/node_modules/@aws-sdk/core/dist-es/{httpAuthSchemes → submodules/httpAuthSchemes}/index.js +0 -0
  182. /package/node_modules/@aws-sdk/core/dist-es/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/getDateHeader.js +0 -0
  183. /package/node_modules/@aws-sdk/core/dist-es/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/getSkewCorrectedDate.js +0 -0
  184. /package/node_modules/@aws-sdk/core/dist-es/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/getUpdatedSystemClockOffset.js +0 -0
  185. /package/node_modules/@aws-sdk/core/dist-es/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/index.js +0 -0
  186. /package/node_modules/@aws-sdk/core/dist-es/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/isClockSkewed.js +0 -0
  187. /package/node_modules/@aws-sdk/core/dist-es/{protocols → submodules/protocols}/coercing-serializers.js +0 -0
  188. /package/node_modules/@aws-sdk/core/dist-es/{protocols → submodules/protocols}/common.js +0 -0
  189. /package/node_modules/@aws-sdk/core/dist-es/{protocols → submodules/protocols}/index.js +0 -0
  190. /package/node_modules/@aws-sdk/core/dist-es/{protocols → submodules/protocols}/json/awsExpectUnion.js +0 -0
  191. /package/node_modules/@aws-sdk/core/dist-es/{protocols → submodules/protocols}/json/parseJsonBody.js +0 -0
  192. /package/node_modules/@aws-sdk/core/dist-es/{protocols → submodules/protocols}/xml/parseXmlBody.js +0 -0
  193. /package/node_modules/@aws-sdk/core/dist-types/{client → submodules/client}/emitWarningIfUnsupportedVersion.d.ts +0 -0
  194. /package/node_modules/@aws-sdk/core/dist-types/{client → submodules/client}/index.d.ts +0 -0
  195. /package/node_modules/@aws-sdk/core/dist-types/{httpAuthSchemes → submodules/httpAuthSchemes}/aws_sdk/AwsSdkSigV4Signer.d.ts +0 -0
  196. /package/node_modules/@aws-sdk/core/dist-types/{httpAuthSchemes → submodules/httpAuthSchemes}/aws_sdk/index.d.ts +0 -0
  197. /package/node_modules/@aws-sdk/core/dist-types/{httpAuthSchemes → submodules/httpAuthSchemes}/aws_sdk/resolveAwsSdkSigV4Config.d.ts +0 -0
  198. /package/node_modules/@aws-sdk/core/dist-types/{httpAuthSchemes → submodules/httpAuthSchemes}/index.d.ts +0 -0
  199. /package/node_modules/@aws-sdk/core/dist-types/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/getDateHeader.d.ts +0 -0
  200. /package/node_modules/@aws-sdk/core/dist-types/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/getSkewCorrectedDate.d.ts +0 -0
  201. /package/node_modules/@aws-sdk/core/dist-types/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/getUpdatedSystemClockOffset.d.ts +0 -0
  202. /package/node_modules/@aws-sdk/core/dist-types/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/index.d.ts +0 -0
  203. /package/node_modules/@aws-sdk/core/dist-types/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/isClockSkewed.d.ts +0 -0
  204. /package/node_modules/@aws-sdk/core/dist-types/{protocols → submodules/protocols}/coercing-serializers.d.ts +0 -0
  205. /package/node_modules/@aws-sdk/core/dist-types/{protocols → submodules/protocols}/common.d.ts +0 -0
  206. /package/node_modules/@aws-sdk/core/dist-types/{protocols → submodules/protocols}/index.d.ts +0 -0
  207. /package/node_modules/@aws-sdk/core/dist-types/{protocols → submodules/protocols}/json/awsExpectUnion.d.ts +0 -0
  208. /package/node_modules/@aws-sdk/core/dist-types/{protocols → submodules/protocols}/json/parseJsonBody.d.ts +0 -0
  209. /package/node_modules/@aws-sdk/core/dist-types/{protocols → submodules/protocols}/xml/parseXmlBody.d.ts +0 -0
  210. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{client → submodules/client}/emitWarningIfUnsupportedVersion.d.ts +0 -0
  211. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{client → submodules/client}/index.d.ts +0 -0
  212. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{httpAuthSchemes → submodules/httpAuthSchemes}/aws_sdk/AwsSdkSigV4Signer.d.ts +0 -0
  213. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{httpAuthSchemes → submodules/httpAuthSchemes}/aws_sdk/index.d.ts +0 -0
  214. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{httpAuthSchemes → submodules/httpAuthSchemes}/aws_sdk/resolveAwsSdkSigV4Config.d.ts +0 -0
  215. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{httpAuthSchemes → submodules/httpAuthSchemes}/index.d.ts +0 -0
  216. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/getDateHeader.d.ts +0 -0
  217. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/getSkewCorrectedDate.d.ts +0 -0
  218. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/getUpdatedSystemClockOffset.d.ts +0 -0
  219. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/index.d.ts +0 -0
  220. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/isClockSkewed.d.ts +0 -0
  221. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{protocols → submodules/protocols}/coercing-serializers.d.ts +0 -0
  222. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{protocols → submodules/protocols}/common.d.ts +0 -0
  223. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{protocols → submodules/protocols}/index.d.ts +0 -0
  224. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{protocols → submodules/protocols}/json/awsExpectUnion.d.ts +0 -0
  225. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{protocols → submodules/protocols}/json/parseJsonBody.d.ts +0 -0
  226. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{protocols → submodules/protocols}/xml/parseXmlBody.d.ts +0 -0
@@ -1,438 +1,6 @@
1
1
  "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var src_exports = {};
23
- __export(src_exports, {
24
- AWSSDKSigV4Signer: () => AWSSDKSigV4Signer,
25
- AwsSdkSigV4Signer: () => AwsSdkSigV4Signer,
26
- _toBool: () => _toBool,
27
- _toNum: () => _toNum,
28
- _toStr: () => _toStr,
29
- awsExpectUnion: () => awsExpectUnion,
30
- emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion,
31
- loadRestJsonErrorCode: () => loadRestJsonErrorCode,
32
- loadRestXmlErrorCode: () => loadRestXmlErrorCode,
33
- parseJsonBody: () => parseJsonBody,
34
- parseJsonErrorBody: () => parseJsonErrorBody,
35
- parseXmlBody: () => parseXmlBody,
36
- parseXmlErrorBody: () => parseXmlErrorBody,
37
- resolveAWSSDKSigV4Config: () => resolveAWSSDKSigV4Config,
38
- resolveAwsSdkSigV4Config: () => resolveAwsSdkSigV4Config
39
- });
40
- module.exports = __toCommonJS(src_exports);
41
-
42
- // src/client/emitWarningIfUnsupportedVersion.ts
43
- var warningEmitted = false;
44
- var emitWarningIfUnsupportedVersion = /* @__PURE__ */ __name((version) => {
45
- if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) {
46
- warningEmitted = true;
47
- }
48
- }, "emitWarningIfUnsupportedVersion");
49
-
50
- // src/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.ts
51
-
52
-
53
- // src/httpAuthSchemes/utils/getDateHeader.ts
54
- var import_protocol_http = require("@smithy/protocol-http");
55
- var getDateHeader = /* @__PURE__ */ __name((response) => {
56
- var _a, _b;
57
- return import_protocol_http.HttpResponse.isInstance(response) ? ((_a = response.headers) == null ? void 0 : _a.date) ?? ((_b = response.headers) == null ? void 0 : _b.Date) : void 0;
58
- }, "getDateHeader");
59
-
60
- // src/httpAuthSchemes/utils/getSkewCorrectedDate.ts
61
- var getSkewCorrectedDate = /* @__PURE__ */ __name((systemClockOffset) => new Date(Date.now() + systemClockOffset), "getSkewCorrectedDate");
62
-
63
- // src/httpAuthSchemes/utils/isClockSkewed.ts
64
- var isClockSkewed = /* @__PURE__ */ __name((clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 3e5, "isClockSkewed");
65
-
66
- // src/httpAuthSchemes/utils/getUpdatedSystemClockOffset.ts
67
- var getUpdatedSystemClockOffset = /* @__PURE__ */ __name((clockTime, currentSystemClockOffset) => {
68
- const clockTimeInMs = Date.parse(clockTime);
69
- if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {
70
- return clockTimeInMs - Date.now();
71
- }
72
- return currentSystemClockOffset;
73
- }, "getUpdatedSystemClockOffset");
74
-
75
- // src/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.ts
76
- var throwSigningPropertyError = /* @__PURE__ */ __name((name, property) => {
77
- if (!property) {
78
- throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);
79
- }
80
- return property;
81
- }, "throwSigningPropertyError");
82
- var validateSigningProperties = /* @__PURE__ */ __name(async (signingProperties) => {
83
- var _a, _b, _c;
84
- const context = throwSigningPropertyError(
85
- "context",
86
- signingProperties.context
87
- );
88
- const config = throwSigningPropertyError("config", signingProperties.config);
89
- const authScheme = (_c = (_b = (_a = context.endpointV2) == null ? void 0 : _a.properties) == null ? void 0 : _b.authSchemes) == null ? void 0 : _c[0];
90
- const signerFunction = throwSigningPropertyError(
91
- "signer",
92
- config.signer
93
- );
94
- const signer = await signerFunction(authScheme);
95
- const signingRegion = signingProperties == null ? void 0 : signingProperties.signingRegion;
96
- const signingName = signingProperties == null ? void 0 : signingProperties.signingName;
97
- return {
98
- config,
99
- signer,
100
- signingRegion,
101
- signingName
102
- };
103
- }, "validateSigningProperties");
104
- var _AwsSdkSigV4Signer = class _AwsSdkSigV4Signer {
105
- async sign(httpRequest, identity, signingProperties) {
106
- if (!import_protocol_http.HttpRequest.isInstance(httpRequest)) {
107
- throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
108
- }
109
- const { config, signer, signingRegion, signingName } = await validateSigningProperties(signingProperties);
110
- const signedRequest = await signer.sign(httpRequest, {
111
- signingDate: getSkewCorrectedDate(config.systemClockOffset),
112
- signingRegion,
113
- signingService: signingName
114
- });
115
- return signedRequest;
116
- }
117
- errorHandler(signingProperties) {
118
- return (error) => {
119
- const serverTime = error.ServerTime ?? getDateHeader(error.$response);
120
- if (serverTime) {
121
- const config = throwSigningPropertyError("config", signingProperties.config);
122
- const initialSystemClockOffset = config.systemClockOffset;
123
- config.systemClockOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset);
124
- const clockSkewCorrected = config.systemClockOffset !== initialSystemClockOffset;
125
- if (clockSkewCorrected && error.$metadata) {
126
- error.$metadata.clockSkewCorrected = true;
127
- }
128
- }
129
- throw error;
130
- };
131
- }
132
- successHandler(httpResponse, signingProperties) {
133
- const dateHeader = getDateHeader(httpResponse);
134
- if (dateHeader) {
135
- const config = throwSigningPropertyError("config", signingProperties.config);
136
- config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset);
137
- }
138
- }
139
- };
140
- __name(_AwsSdkSigV4Signer, "AwsSdkSigV4Signer");
141
- var AwsSdkSigV4Signer = _AwsSdkSigV4Signer;
142
- var AWSSDKSigV4Signer = AwsSdkSigV4Signer;
143
-
144
- // src/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.ts
145
- var import_core = require("@smithy/core");
146
- var import_signature_v4 = require("@smithy/signature-v4");
147
- var resolveAwsSdkSigV4Config = /* @__PURE__ */ __name((config) => {
148
- let normalizedCreds;
149
- if (config.credentials) {
150
- normalizedCreds = (0, import_core.memoizeIdentityProvider)(config.credentials, import_core.isIdentityExpired, import_core.doesIdentityRequireRefresh);
151
- }
152
- if (!normalizedCreds) {
153
- if (config.credentialDefaultProvider) {
154
- normalizedCreds = (0, import_core.normalizeProvider)(
155
- config.credentialDefaultProvider(
156
- Object.assign({}, config, {
157
- parentClientConfig: config
158
- })
159
- )
160
- );
161
- } else {
162
- normalizedCreds = /* @__PURE__ */ __name(async () => {
163
- throw new Error("`credentials` is missing");
164
- }, "normalizedCreds");
165
- }
166
- }
167
- const {
168
- // Default for signingEscapePath
169
- signingEscapePath = true,
170
- // Default for systemClockOffset
171
- systemClockOffset = config.systemClockOffset || 0,
172
- // No default for sha256 since it is platform dependent
173
- sha256
174
- } = config;
175
- let signer;
176
- if (config.signer) {
177
- signer = (0, import_core.normalizeProvider)(config.signer);
178
- } else if (config.regionInfoProvider) {
179
- signer = /* @__PURE__ */ __name(() => (0, import_core.normalizeProvider)(config.region)().then(
180
- async (region) => [
181
- await config.regionInfoProvider(region, {
182
- useFipsEndpoint: await config.useFipsEndpoint(),
183
- useDualstackEndpoint: await config.useDualstackEndpoint()
184
- }) || {},
185
- region
186
- ]
187
- ).then(([regionInfo, region]) => {
188
- const { signingRegion, signingService } = regionInfo;
189
- config.signingRegion = config.signingRegion || signingRegion || region;
190
- config.signingName = config.signingName || signingService || config.serviceId;
191
- const params = {
192
- ...config,
193
- credentials: normalizedCreds,
194
- region: config.signingRegion,
195
- service: config.signingName,
196
- sha256,
197
- uriEscapePath: signingEscapePath
198
- };
199
- const SignerCtor = config.signerConstructor || import_signature_v4.SignatureV4;
200
- return new SignerCtor(params);
201
- }), "signer");
202
- } else {
203
- signer = /* @__PURE__ */ __name(async (authScheme) => {
204
- authScheme = Object.assign(
205
- {},
206
- {
207
- name: "sigv4",
208
- signingName: config.signingName || config.defaultSigningName,
209
- signingRegion: await (0, import_core.normalizeProvider)(config.region)(),
210
- properties: {}
211
- },
212
- authScheme
213
- );
214
- const signingRegion = authScheme.signingRegion;
215
- const signingService = authScheme.signingName;
216
- config.signingRegion = config.signingRegion || signingRegion;
217
- config.signingName = config.signingName || signingService || config.serviceId;
218
- const params = {
219
- ...config,
220
- credentials: normalizedCreds,
221
- region: config.signingRegion,
222
- service: config.signingName,
223
- sha256,
224
- uriEscapePath: signingEscapePath
225
- };
226
- const SignerCtor = config.signerConstructor || import_signature_v4.SignatureV4;
227
- return new SignerCtor(params);
228
- }, "signer");
229
- }
230
- return {
231
- ...config,
232
- systemClockOffset,
233
- signingEscapePath,
234
- credentials: normalizedCreds,
235
- signer
236
- };
237
- }, "resolveAwsSdkSigV4Config");
238
- var resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;
239
-
240
- // src/protocols/coercing-serializers.ts
241
- var _toStr = /* @__PURE__ */ __name((val) => {
242
- if (val == null) {
243
- return val;
244
- }
245
- if (typeof val === "number" || typeof val === "bigint") {
246
- const warning = new Error(`Received number ${val} where a string was expected.`);
247
- warning.name = "Warning";
248
- console.warn(warning);
249
- return String(val);
250
- }
251
- if (typeof val === "boolean") {
252
- const warning = new Error(`Received boolean ${val} where a string was expected.`);
253
- warning.name = "Warning";
254
- console.warn(warning);
255
- return String(val);
256
- }
257
- return val;
258
- }, "_toStr");
259
- var _toBool = /* @__PURE__ */ __name((val) => {
260
- if (val == null) {
261
- return val;
262
- }
263
- if (typeof val === "number") {
264
- }
265
- if (typeof val === "string") {
266
- const lowercase = val.toLowerCase();
267
- if (val !== "" && lowercase !== "false" && lowercase !== "true") {
268
- const warning = new Error(`Received string "${val}" where a boolean was expected.`);
269
- warning.name = "Warning";
270
- console.warn(warning);
271
- }
272
- return val !== "" && lowercase !== "false";
273
- }
274
- return val;
275
- }, "_toBool");
276
- var _toNum = /* @__PURE__ */ __name((val) => {
277
- if (val == null) {
278
- return val;
279
- }
280
- if (typeof val === "boolean") {
281
- }
282
- if (typeof val === "string") {
283
- const num = Number(val);
284
- if (num.toString() !== val) {
285
- const warning = new Error(`Received string "${val}" where a number was expected.`);
286
- warning.name = "Warning";
287
- console.warn(warning);
288
- return val;
289
- }
290
- return num;
291
- }
292
- return val;
293
- }, "_toNum");
294
-
295
- // src/protocols/json/awsExpectUnion.ts
296
- var import_smithy_client = require("@smithy/smithy-client");
297
- var awsExpectUnion = /* @__PURE__ */ __name((value) => {
298
- if (value == null) {
299
- return void 0;
300
- }
301
- if (typeof value === "object" && "__type" in value) {
302
- delete value.__type;
303
- }
304
- return (0, import_smithy_client.expectUnion)(value);
305
- }, "awsExpectUnion");
306
-
307
- // src/protocols/common.ts
308
-
309
- var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
310
-
311
- // src/protocols/json/parseJsonBody.ts
312
- var parseJsonBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
313
- if (encoded.length) {
314
- try {
315
- return JSON.parse(encoded);
316
- } catch (e) {
317
- if ((e == null ? void 0 : e.name) === "SyntaxError") {
318
- Object.defineProperty(e, "$responseBodyText", {
319
- value: encoded
320
- });
321
- }
322
- throw e;
323
- }
324
- }
325
- return {};
326
- }), "parseJsonBody");
327
- var parseJsonErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
328
- const value = await parseJsonBody(errorBody, context);
329
- value.message = value.message ?? value.Message;
330
- return value;
331
- }, "parseJsonErrorBody");
332
- var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
333
- const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
334
- const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
335
- let cleanValue = rawValue;
336
- if (typeof cleanValue === "number") {
337
- cleanValue = cleanValue.toString();
338
- }
339
- if (cleanValue.indexOf(",") >= 0) {
340
- cleanValue = cleanValue.split(",")[0];
341
- }
342
- if (cleanValue.indexOf(":") >= 0) {
343
- cleanValue = cleanValue.split(":")[0];
344
- }
345
- if (cleanValue.indexOf("#") >= 0) {
346
- cleanValue = cleanValue.split("#")[1];
347
- }
348
- return cleanValue;
349
- }, "sanitizeErrorCode");
350
- const headerKey = findKey(output.headers, "x-amzn-errortype");
351
- if (headerKey !== void 0) {
352
- return sanitizeErrorCode(output.headers[headerKey]);
353
- }
354
- if (data.code !== void 0) {
355
- return sanitizeErrorCode(data.code);
356
- }
357
- if (data["__type"] !== void 0) {
358
- return sanitizeErrorCode(data["__type"]);
359
- }
360
- }, "loadRestJsonErrorCode");
361
-
362
- // src/protocols/xml/parseXmlBody.ts
363
-
364
- var import_fast_xml_parser = require("fast-xml-parser");
365
- var parseXmlBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
366
- if (encoded.length) {
367
- const parser = new import_fast_xml_parser.XMLParser({
368
- attributeNamePrefix: "",
369
- htmlEntities: true,
370
- ignoreAttributes: false,
371
- ignoreDeclaration: true,
372
- parseTagValue: false,
373
- trimValues: false,
374
- tagValueProcessor: (_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0
375
- });
376
- parser.addEntity("#xD", "\r");
377
- parser.addEntity("#10", "\n");
378
- let parsedObj;
379
- try {
380
- parsedObj = parser.parse(encoded, true);
381
- } catch (e) {
382
- if (e && typeof e === "object") {
383
- Object.defineProperty(e, "$responseBodyText", {
384
- value: encoded
385
- });
386
- }
387
- throw e;
388
- }
389
- const textNodeName = "#text";
390
- const key = Object.keys(parsedObj)[0];
391
- const parsedObjToReturn = parsedObj[key];
392
- if (parsedObjToReturn[textNodeName]) {
393
- parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
394
- delete parsedObjToReturn[textNodeName];
395
- }
396
- return (0, import_smithy_client.getValueFromTextNode)(parsedObjToReturn);
397
- }
398
- return {};
399
- }), "parseXmlBody");
400
- var parseXmlErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
401
- const value = await parseXmlBody(errorBody, context);
402
- if (value.Error) {
403
- value.Error.message = value.Error.message ?? value.Error.Message;
404
- }
405
- return value;
406
- }, "parseXmlErrorBody");
407
- var loadRestXmlErrorCode = /* @__PURE__ */ __name((output, data) => {
408
- var _a;
409
- if (((_a = data == null ? void 0 : data.Error) == null ? void 0 : _a.Code) !== void 0) {
410
- return data.Error.Code;
411
- }
412
- if ((data == null ? void 0 : data.Code) !== void 0) {
413
- return data.Code;
414
- }
415
- if (output.statusCode == 404) {
416
- return "NotFound";
417
- }
418
- }, "loadRestXmlErrorCode");
419
- // Annotate the CommonJS export names for ESM import in node:
420
-
421
- 0 && (module.exports = {
422
- emitWarningIfUnsupportedVersion,
423
- AwsSdkSigV4Signer,
424
- AWSSDKSigV4Signer,
425
- resolveAwsSdkSigV4Config,
426
- resolveAWSSDKSigV4Config,
427
- _toStr,
428
- _toBool,
429
- _toNum,
430
- awsExpectUnion,
431
- parseJsonBody,
432
- parseJsonErrorBody,
433
- loadRestJsonErrorCode,
434
- parseXmlBody,
435
- parseXmlErrorBody,
436
- loadRestXmlErrorCode
437
- });
438
-
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./submodules/client/index"), exports);
5
+ tslib_1.__exportStar(require("./submodules/httpAuthSchemes/index"), exports);
6
+ tslib_1.__exportStar(require("./submodules/protocols/index"), exports);
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/submodules/client/index.ts
22
+ var client_exports = {};
23
+ __export(client_exports, {
24
+ emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion
25
+ });
26
+ module.exports = __toCommonJS(client_exports);
27
+
28
+ // src/submodules/client/emitWarningIfUnsupportedVersion.ts
29
+ var warningEmitted = false;
30
+ var emitWarningIfUnsupportedVersion = /* @__PURE__ */ __name((version) => {
31
+ if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) {
32
+ warningEmitted = true;
33
+ }
34
+ }, "emitWarningIfUnsupportedVersion");
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ emitWarningIfUnsupportedVersion
38
+ });