@cdk8s/awscdk-resolver 0.0.117 → 0.0.119

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 (343) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-crypto/sha256-browser/CHANGELOG.md +30 -0
  4. package/node_modules/@aws-crypto/sha256-browser/build/main/constants.js.map +1 -0
  5. package/node_modules/@aws-crypto/sha256-browser/build/{crossPlatformSha256.js → main/crossPlatformSha256.js} +0 -5
  6. package/node_modules/@aws-crypto/sha256-browser/build/main/crossPlatformSha256.js.map +1 -0
  7. package/node_modules/@aws-crypto/sha256-browser/build/{index.d.ts → main/index.d.ts} +0 -1
  8. package/node_modules/@aws-crypto/sha256-browser/build/{index.js → main/index.js} +1 -3
  9. package/node_modules/@aws-crypto/sha256-browser/build/main/index.js.map +1 -0
  10. package/node_modules/@aws-crypto/sha256-browser/build/main/isEmptyData.js.map +1 -0
  11. package/node_modules/@aws-crypto/sha256-browser/build/main/webCryptoSha256.js.map +1 -0
  12. package/node_modules/@aws-crypto/sha256-browser/build/module/constants.d.ts +10 -0
  13. package/node_modules/@aws-crypto/sha256-browser/build/module/constants.js +40 -0
  14. package/node_modules/@aws-crypto/sha256-browser/build/module/constants.js.map +1 -0
  15. package/node_modules/@aws-crypto/sha256-browser/build/module/crossPlatformSha256.d.ts +8 -0
  16. package/node_modules/@aws-crypto/sha256-browser/build/module/crossPlatformSha256.js +27 -0
  17. package/node_modules/@aws-crypto/sha256-browser/build/module/crossPlatformSha256.js.map +1 -0
  18. package/node_modules/@aws-crypto/sha256-browser/build/module/index.d.ts +2 -0
  19. package/node_modules/@aws-crypto/sha256-browser/build/module/index.js +3 -0
  20. package/node_modules/@aws-crypto/sha256-browser/build/module/index.js.map +1 -0
  21. package/node_modules/@aws-crypto/sha256-browser/build/module/isEmptyData.js +7 -0
  22. package/node_modules/@aws-crypto/sha256-browser/build/module/isEmptyData.js.map +1 -0
  23. package/node_modules/@aws-crypto/sha256-browser/build/{ie11Sha256.d.ts → module/webCryptoSha256.d.ts} +3 -2
  24. package/node_modules/@aws-crypto/sha256-browser/build/module/webCryptoSha256.js +53 -0
  25. package/node_modules/@aws-crypto/sha256-browser/build/module/webCryptoSha256.js.map +1 -0
  26. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/README.md +10 -0
  27. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +32 -0
  28. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  29. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/dist-types/index.d.ts +4 -0
  30. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/dist-types/ts3.4/index.d.ts +4 -0
  31. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/package.json +60 -0
  32. package/node_modules/@aws-crypto/{ie11-detection → sha256-browser/node_modules/@smithy/util-buffer-from}/LICENSE +4 -5
  33. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/README.md +10 -0
  34. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +47 -0
  35. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  36. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/dist-types/index.d.ts +13 -0
  37. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/dist-types/ts3.4/index.d.ts +13 -0
  38. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/package.json +61 -0
  39. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/LICENSE +201 -0
  40. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/README.md +4 -0
  41. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +1 -0
  42. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +1 -0
  43. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-cjs/index.js +65 -0
  44. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +1 -0
  45. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +1 -0
  46. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +1 -0
  47. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +1 -0
  48. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +5 -0
  49. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-es/index.js +3 -0
  50. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js +10 -0
  51. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +9 -0
  52. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +10 -0
  53. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-types/fromUtf8.browser.d.ts +1 -0
  54. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-types/fromUtf8.d.ts +1 -0
  55. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-types/index.d.ts +3 -0
  56. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-types/toUint8Array.d.ts +1 -0
  57. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts +7 -0
  58. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts +7 -0
  59. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.browser.d.ts +1 -0
  60. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.d.ts +1 -0
  61. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-types/ts3.4/index.d.ts +3 -0
  62. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUint8Array.d.ts +1 -0
  63. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts +7 -0
  64. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts +7 -0
  65. package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/package.json +66 -0
  66. package/node_modules/@aws-crypto/sha256-browser/package.json +11 -11
  67. package/node_modules/@aws-crypto/sha256-browser/src/crossPlatformSha256.ts +0 -4
  68. package/node_modules/@aws-crypto/sha256-browser/src/index.ts +0 -1
  69. package/node_modules/@aws-crypto/sha256-browser/tsconfig.json +3 -15
  70. package/node_modules/@aws-crypto/sha256-browser/tsconfig.module.json +7 -0
  71. package/node_modules/@aws-crypto/sha256-js/CHANGELOG.md +20 -0
  72. package/node_modules/@aws-crypto/sha256-js/build/main/RawSha256.js.map +1 -0
  73. package/node_modules/@aws-crypto/sha256-js/build/main/constants.js.map +1 -0
  74. package/node_modules/@aws-crypto/sha256-js/build/main/index.js.map +1 -0
  75. package/node_modules/@aws-crypto/sha256-js/build/main/jsSha256.js.map +1 -0
  76. package/node_modules/@aws-crypto/sha256-js/build/main/knownHashes.fixture.js.map +1 -0
  77. package/node_modules/@aws-crypto/sha256-js/build/module/RawSha256.d.ts +17 -0
  78. package/node_modules/@aws-crypto/sha256-js/build/module/RawSha256.js +121 -0
  79. package/node_modules/@aws-crypto/sha256-js/build/module/RawSha256.js.map +1 -0
  80. package/node_modules/@aws-crypto/sha256-js/build/module/constants.d.ts +20 -0
  81. package/node_modules/@aws-crypto/sha256-js/build/module/constants.js +95 -0
  82. package/node_modules/@aws-crypto/sha256-js/build/{constants.js.map → module/constants.js.map} +1 -1
  83. package/node_modules/@aws-crypto/sha256-js/build/module/index.d.ts +1 -0
  84. package/node_modules/@aws-crypto/sha256-js/build/module/index.js +2 -0
  85. package/node_modules/@aws-crypto/sha256-js/build/module/index.js.map +1 -0
  86. package/node_modules/@aws-crypto/sha256-js/build/module/jsSha256.d.ts +12 -0
  87. package/node_modules/@aws-crypto/sha256-js/build/module/jsSha256.js +82 -0
  88. package/node_modules/@aws-crypto/sha256-js/build/module/jsSha256.js.map +1 -0
  89. package/node_modules/@aws-crypto/sha256-js/build/module/knownHashes.fixture.d.ts +5 -0
  90. package/node_modules/@aws-crypto/sha256-js/build/module/knownHashes.fixture.js +319 -0
  91. package/node_modules/@aws-crypto/sha256-js/build/module/knownHashes.fixture.js.map +1 -0
  92. package/node_modules/@aws-crypto/sha256-js/package.json +11 -7
  93. package/node_modules/@aws-crypto/sha256-js/tsconfig.json +3 -10
  94. package/node_modules/@aws-crypto/sha256-js/tsconfig.module.json +7 -0
  95. package/node_modules/@aws-crypto/supports-web-crypto/CHANGELOG.md +20 -0
  96. package/node_modules/@aws-crypto/supports-web-crypto/build/main/index.js +5 -0
  97. package/node_modules/@aws-crypto/supports-web-crypto/build/main/index.js.map +1 -0
  98. package/node_modules/@aws-crypto/supports-web-crypto/build/main/supportsWebCrypto.js +69 -0
  99. package/node_modules/@aws-crypto/supports-web-crypto/build/main/supportsWebCrypto.js.map +1 -0
  100. package/node_modules/@aws-crypto/supports-web-crypto/build/module/index.d.ts +1 -0
  101. package/node_modules/@aws-crypto/supports-web-crypto/build/module/index.js +2 -0
  102. package/node_modules/@aws-crypto/supports-web-crypto/build/module/index.js.map +1 -0
  103. package/node_modules/@aws-crypto/supports-web-crypto/build/module/supportsWebCrypto.d.ts +4 -0
  104. package/node_modules/@aws-crypto/supports-web-crypto/build/module/supportsWebCrypto.js +62 -0
  105. package/node_modules/@aws-crypto/supports-web-crypto/build/module/supportsWebCrypto.js.map +1 -0
  106. package/node_modules/@aws-crypto/supports-web-crypto/package.json +7 -5
  107. package/node_modules/@aws-crypto/supports-web-crypto/tsconfig.json +3 -9
  108. package/node_modules/@aws-crypto/supports-web-crypto/tsconfig.module.json +7 -0
  109. package/node_modules/@aws-crypto/util/CHANGELOG.md +24 -0
  110. package/node_modules/@aws-crypto/util/build/{convertToBuffer.js → main/convertToBuffer.js} +2 -2
  111. package/node_modules/@aws-crypto/util/build/main/convertToBuffer.js.map +1 -0
  112. package/node_modules/@aws-crypto/util/build/main/index.js.map +1 -0
  113. package/node_modules/@aws-crypto/util/build/main/isEmptyData.d.ts +2 -0
  114. package/node_modules/@aws-crypto/util/build/main/isEmptyData.js.map +1 -0
  115. package/node_modules/@aws-crypto/util/build/main/numToUint8.js.map +1 -0
  116. package/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.js.map +1 -0
  117. package/node_modules/@aws-crypto/util/build/module/convertToBuffer.d.ts +2 -0
  118. package/node_modules/@aws-crypto/util/build/module/convertToBuffer.js +20 -0
  119. package/node_modules/@aws-crypto/util/build/module/convertToBuffer.js.map +1 -0
  120. package/node_modules/@aws-crypto/util/build/module/index.d.ts +4 -0
  121. package/node_modules/@aws-crypto/util/build/module/index.js +7 -0
  122. package/node_modules/@aws-crypto/util/build/module/index.js.map +1 -0
  123. package/node_modules/@aws-crypto/util/build/module/isEmptyData.d.ts +2 -0
  124. package/node_modules/@aws-crypto/util/build/module/isEmptyData.js +9 -0
  125. package/node_modules/@aws-crypto/util/build/module/isEmptyData.js.map +1 -0
  126. package/node_modules/@aws-crypto/util/build/module/numToUint8.d.ts +1 -0
  127. package/node_modules/@aws-crypto/util/build/module/numToUint8.js +11 -0
  128. package/node_modules/@aws-crypto/util/build/module/numToUint8.js.map +1 -0
  129. package/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.d.ts +1 -0
  130. package/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js +16 -0
  131. package/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js.map +1 -0
  132. package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  133. package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/README.md +10 -0
  134. package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +32 -0
  135. package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  136. package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/dist-types/index.d.ts +4 -0
  137. package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/dist-types/ts3.4/index.d.ts +4 -0
  138. package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/package.json +60 -0
  139. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  140. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/README.md +10 -0
  141. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +47 -0
  142. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  143. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/dist-types/index.d.ts +13 -0
  144. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/dist-types/ts3.4/index.d.ts +13 -0
  145. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/package.json +61 -0
  146. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/LICENSE +201 -0
  147. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/README.md +4 -0
  148. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +1 -0
  149. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +1 -0
  150. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/index.js +65 -0
  151. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +1 -0
  152. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +1 -0
  153. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +1 -0
  154. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +1 -0
  155. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +5 -0
  156. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/index.js +3 -0
  157. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js +10 -0
  158. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +9 -0
  159. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +10 -0
  160. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-types/fromUtf8.browser.d.ts +1 -0
  161. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-types/fromUtf8.d.ts +1 -0
  162. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-types/index.d.ts +3 -0
  163. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-types/toUint8Array.d.ts +1 -0
  164. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts +7 -0
  165. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts +7 -0
  166. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.browser.d.ts +1 -0
  167. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.d.ts +1 -0
  168. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-types/ts3.4/index.d.ts +3 -0
  169. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUint8Array.d.ts +1 -0
  170. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts +7 -0
  171. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts +7 -0
  172. package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/package.json +66 -0
  173. package/node_modules/@aws-crypto/util/package.json +8 -7
  174. package/node_modules/@aws-crypto/util/src/convertToBuffer.ts +1 -1
  175. package/node_modules/@aws-crypto/util/tsconfig.json +2 -16
  176. package/node_modules/@aws-crypto/util/tsconfig.module.json +7 -0
  177. package/node_modules/@aws-sdk/client-cloudformation/package.json +38 -38
  178. package/node_modules/@aws-sdk/client-sso/package.json +34 -34
  179. package/node_modules/@aws-sdk/client-sso-oidc/package.json +36 -36
  180. package/node_modules/@aws-sdk/client-sts/package.json +36 -36
  181. package/node_modules/@aws-sdk/core/package.json +6 -6
  182. package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
  183. package/node_modules/@aws-sdk/credential-provider-http/package.json +9 -9
  184. package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
  185. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  186. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  187. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  188. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
  189. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  190. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  191. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  192. package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
  193. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  194. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  195. package/node_modules/@aws-sdk/types/package.json +2 -2
  196. package/node_modules/@aws-sdk/util-endpoints/package.json +4 -4
  197. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  198. package/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -4
  199. package/node_modules/@smithy/signature-v4/package.json +2 -2
  200. package/package.json +7 -7
  201. package/node_modules/@aws-crypto/ie11-detection/CHANGELOG.md +0 -46
  202. package/node_modules/@aws-crypto/ie11-detection/README.md +0 -20
  203. package/node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.d.ts +0 -19
  204. package/node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.js +0 -3
  205. package/node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.js.map +0 -1
  206. package/node_modules/@aws-crypto/ie11-detection/build/Key.d.ts +0 -12
  207. package/node_modules/@aws-crypto/ie11-detection/build/Key.js +0 -3
  208. package/node_modules/@aws-crypto/ie11-detection/build/Key.js.map +0 -1
  209. package/node_modules/@aws-crypto/ie11-detection/build/KeyOperation.d.ts +0 -12
  210. package/node_modules/@aws-crypto/ie11-detection/build/KeyOperation.js +0 -3
  211. package/node_modules/@aws-crypto/ie11-detection/build/KeyOperation.js.map +0 -1
  212. package/node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.d.ts +0 -33
  213. package/node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.js +0 -3
  214. package/node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.js.map +0 -1
  215. package/node_modules/@aws-crypto/ie11-detection/build/MsWindow.d.ts +0 -21
  216. package/node_modules/@aws-crypto/ie11-detection/build/MsWindow.js +0 -32
  217. package/node_modules/@aws-crypto/ie11-detection/build/MsWindow.js.map +0 -1
  218. package/node_modules/@aws-crypto/ie11-detection/build/index.d.ts +0 -5
  219. package/node_modules/@aws-crypto/ie11-detection/build/index.js +0 -9
  220. package/node_modules/@aws-crypto/ie11-detection/build/index.js.map +0 -1
  221. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/CopyrightNotice.txt +0 -15
  222. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/LICENSE.txt +0 -12
  223. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/README.md +0 -142
  224. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/modules/index.js +0 -51
  225. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/modules/package.json +0 -3
  226. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/package.json +0 -37
  227. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +0 -23
  228. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +0 -6
  229. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.d.ts +0 -37
  230. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.es6.html +0 -1
  231. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.es6.js +0 -218
  232. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.html +0 -1
  233. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.js +0 -284
  234. package/node_modules/@aws-crypto/ie11-detection/package.json +0 -26
  235. package/node_modules/@aws-crypto/ie11-detection/src/CryptoOperation.ts +0 -21
  236. package/node_modules/@aws-crypto/ie11-detection/src/Key.ts +0 -12
  237. package/node_modules/@aws-crypto/ie11-detection/src/KeyOperation.ts +0 -13
  238. package/node_modules/@aws-crypto/ie11-detection/src/MsSubtleCrypto.ts +0 -88
  239. package/node_modules/@aws-crypto/ie11-detection/src/MsWindow.ts +0 -59
  240. package/node_modules/@aws-crypto/ie11-detection/src/index.ts +0 -5
  241. package/node_modules/@aws-crypto/ie11-detection/tsconfig.json +0 -17
  242. package/node_modules/@aws-crypto/sha256-browser/build/constants.js.map +0 -1
  243. package/node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.js.map +0 -1
  244. package/node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.js +0 -80
  245. package/node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.js.map +0 -1
  246. package/node_modules/@aws-crypto/sha256-browser/build/index.js.map +0 -1
  247. package/node_modules/@aws-crypto/sha256-browser/build/isEmptyData.js.map +0 -1
  248. package/node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.js.map +0 -1
  249. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/CopyrightNotice.txt +0 -15
  250. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/LICENSE.txt +0 -12
  251. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/README.md +0 -142
  252. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/modules/index.js +0 -51
  253. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/modules/package.json +0 -3
  254. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/package.json +0 -37
  255. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +0 -23
  256. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +0 -6
  257. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.d.ts +0 -37
  258. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.es6.html +0 -1
  259. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.es6.js +0 -218
  260. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.html +0 -1
  261. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.js +0 -284
  262. package/node_modules/@aws-crypto/sha256-browser/src/ie11Sha256.ts +0 -108
  263. package/node_modules/@aws-crypto/sha256-js/build/RawSha256.js.map +0 -1
  264. package/node_modules/@aws-crypto/sha256-js/build/index.js.map +0 -1
  265. package/node_modules/@aws-crypto/sha256-js/build/jsSha256.js.map +0 -1
  266. package/node_modules/@aws-crypto/sha256-js/build/knownHashes.fixture.js.map +0 -1
  267. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/CopyrightNotice.txt +0 -15
  268. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/LICENSE.txt +0 -12
  269. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/README.md +0 -142
  270. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/modules/index.js +0 -51
  271. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/modules/package.json +0 -3
  272. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/package.json +0 -37
  273. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +0 -23
  274. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +0 -6
  275. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.d.ts +0 -37
  276. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.es6.html +0 -1
  277. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.es6.js +0 -218
  278. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.html +0 -1
  279. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.js +0 -284
  280. package/node_modules/@aws-crypto/supports-web-crypto/build/index.js +0 -5
  281. package/node_modules/@aws-crypto/supports-web-crypto/build/supportsWebCrypto.js +0 -69
  282. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/CopyrightNotice.txt +0 -15
  283. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/LICENSE.txt +0 -12
  284. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/README.md +0 -142
  285. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/modules/index.js +0 -51
  286. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/modules/package.json +0 -3
  287. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/package.json +0 -37
  288. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +0 -23
  289. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +0 -6
  290. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.d.ts +0 -37
  291. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.es6.html +0 -1
  292. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.es6.js +0 -218
  293. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.html +0 -1
  294. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.js +0 -284
  295. package/node_modules/@aws-crypto/util/build/convertToBuffer.js.map +0 -1
  296. package/node_modules/@aws-crypto/util/build/index.js.map +0 -1
  297. package/node_modules/@aws-crypto/util/build/isEmptyData.js.map +0 -1
  298. package/node_modules/@aws-crypto/util/build/numToUint8.js.map +0 -1
  299. package/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js.map +0 -1
  300. package/node_modules/@aws-crypto/util/node_modules/tslib/CopyrightNotice.txt +0 -15
  301. package/node_modules/@aws-crypto/util/node_modules/tslib/LICENSE.txt +0 -12
  302. package/node_modules/@aws-crypto/util/node_modules/tslib/README.md +0 -142
  303. package/node_modules/@aws-crypto/util/node_modules/tslib/modules/index.js +0 -51
  304. package/node_modules/@aws-crypto/util/node_modules/tslib/modules/package.json +0 -3
  305. package/node_modules/@aws-crypto/util/node_modules/tslib/package.json +0 -37
  306. package/node_modules/@aws-crypto/util/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +0 -23
  307. package/node_modules/@aws-crypto/util/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +0 -6
  308. package/node_modules/@aws-crypto/util/node_modules/tslib/tslib.d.ts +0 -37
  309. package/node_modules/@aws-crypto/util/node_modules/tslib/tslib.es6.html +0 -1
  310. package/node_modules/@aws-crypto/util/node_modules/tslib/tslib.es6.js +0 -218
  311. package/node_modules/@aws-crypto/util/node_modules/tslib/tslib.html +0 -1
  312. package/node_modules/@aws-crypto/util/node_modules/tslib/tslib.js +0 -284
  313. package/node_modules/@aws-sdk/util-utf8-browser/README.md +0 -8
  314. package/node_modules/@aws-sdk/util-utf8-browser/package.json +0 -50
  315. /package/node_modules/@aws-crypto/sha256-browser/build/{constants.d.ts → main/constants.d.ts} +0 -0
  316. /package/node_modules/@aws-crypto/sha256-browser/build/{constants.js → main/constants.js} +0 -0
  317. /package/node_modules/@aws-crypto/sha256-browser/build/{crossPlatformSha256.d.ts → main/crossPlatformSha256.d.ts} +0 -0
  318. /package/node_modules/@aws-crypto/sha256-browser/build/{isEmptyData.d.ts → main/isEmptyData.d.ts} +0 -0
  319. /package/node_modules/@aws-crypto/sha256-browser/build/{isEmptyData.js → main/isEmptyData.js} +0 -0
  320. /package/node_modules/@aws-crypto/sha256-browser/build/{webCryptoSha256.d.ts → main/webCryptoSha256.d.ts} +0 -0
  321. /package/node_modules/@aws-crypto/sha256-browser/build/{webCryptoSha256.js → main/webCryptoSha256.js} +0 -0
  322. /package/node_modules/@aws-crypto/{util/build → sha256-browser/build/module}/isEmptyData.d.ts +0 -0
  323. /package/node_modules/{@aws-sdk/util-utf8-browser → @aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer}/LICENSE +0 -0
  324. /package/node_modules/@aws-crypto/sha256-js/build/{RawSha256.d.ts → main/RawSha256.d.ts} +0 -0
  325. /package/node_modules/@aws-crypto/sha256-js/build/{RawSha256.js → main/RawSha256.js} +0 -0
  326. /package/node_modules/@aws-crypto/sha256-js/build/{constants.d.ts → main/constants.d.ts} +0 -0
  327. /package/node_modules/@aws-crypto/sha256-js/build/{constants.js → main/constants.js} +0 -0
  328. /package/node_modules/@aws-crypto/sha256-js/build/{index.d.ts → main/index.d.ts} +0 -0
  329. /package/node_modules/@aws-crypto/sha256-js/build/{index.js → main/index.js} +0 -0
  330. /package/node_modules/@aws-crypto/sha256-js/build/{jsSha256.d.ts → main/jsSha256.d.ts} +0 -0
  331. /package/node_modules/@aws-crypto/sha256-js/build/{jsSha256.js → main/jsSha256.js} +0 -0
  332. /package/node_modules/@aws-crypto/sha256-js/build/{knownHashes.fixture.d.ts → main/knownHashes.fixture.d.ts} +0 -0
  333. /package/node_modules/@aws-crypto/sha256-js/build/{knownHashes.fixture.js → main/knownHashes.fixture.js} +0 -0
  334. /package/node_modules/@aws-crypto/supports-web-crypto/build/{index.d.ts → main/index.d.ts} +0 -0
  335. /package/node_modules/@aws-crypto/supports-web-crypto/build/{supportsWebCrypto.d.ts → main/supportsWebCrypto.d.ts} +0 -0
  336. /package/node_modules/@aws-crypto/util/build/{convertToBuffer.d.ts → main/convertToBuffer.d.ts} +0 -0
  337. /package/node_modules/@aws-crypto/util/build/{index.d.ts → main/index.d.ts} +0 -0
  338. /package/node_modules/@aws-crypto/util/build/{index.js → main/index.js} +0 -0
  339. /package/node_modules/@aws-crypto/util/build/{isEmptyData.js → main/isEmptyData.js} +0 -0
  340. /package/node_modules/@aws-crypto/util/build/{numToUint8.d.ts → main/numToUint8.d.ts} +0 -0
  341. /package/node_modules/@aws-crypto/util/build/{numToUint8.js → main/numToUint8.js} +0 -0
  342. /package/node_modules/@aws-crypto/util/build/{uint32ArrayFrom.d.ts → main/uint32ArrayFrom.d.ts} +0 -0
  343. /package/node_modules/@aws-crypto/util/build/{uint32ArrayFrom.js → main/uint32ArrayFrom.js} +0 -0
@@ -3,6 +3,26 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.2.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v5.1.0...v5.2.0) (2023-10-16)
7
+
8
+ ### Features
9
+
10
+ - support ESM artifacts in all packages ([#752](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/752)) ([e930ffb](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/e930ffba5cfef66dd242049e7d514ced232c1e3b))
11
+
12
+ # [5.1.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v5.0.0...v5.1.0) (2023-09-22)
13
+
14
+ ### Bug Fixes
15
+
16
+ - Update tsc to 2.x ([#735](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/735)) ([782e0de](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/782e0de9f5fef41f694130580a69d940894b6b8c))
17
+
18
+ # [5.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v4.0.1...v5.0.0) (2023-07-13)
19
+
20
+ **Note:** Version bump only for package @aws-crypto/sha256-js
21
+
22
+ # [4.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v3.0.0...v4.0.0) (2023-02-20)
23
+
24
+ **Note:** Version bump only for package @aws-crypto/sha256-js
25
+
6
26
  # [3.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.2...v3.0.0) (2023-01-12)
7
27
 
8
28
  ### Bug Fixes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RawSha256.js","sourceRoot":"","sources":["../../src/RawSha256.ts"],"names":[],"mappings":";;;AAAA,yCAMqB;AAErB;;GAEG;AACH;IAAA;QACU,UAAK,GAAe,UAAU,CAAC,IAAI,CAAC,gBAAI,CAAC,CAAC;QAC1C,SAAI,GAAe,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;QACtC,WAAM,GAAe,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;QACxC,iBAAY,GAAW,CAAC,CAAC;QACzB,gBAAW,GAAW,CAAC,CAAC;QAEhC;;WAEG;QACH,aAAQ,GAAY,KAAK,CAAC;IA8I5B,CAAC;IA5IC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,CAAC;QACnB,KAAK,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;QACnB,KAAK,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;IACrB,CAAC;IACH,gBAAC;AAAD,CAAC,AAxJD,IAwJC;AAxJY,8BAAS"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,UAAU,GAAW,EAAE,CAAC;AAErC;;GAEG;AACU,QAAA,aAAa,GAAW,EAAE,CAAC;AAExC;;GAEG;AACU,QAAA,GAAG,GAAG,IAAI,WAAW,CAAC;IACjC,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;CACX,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,IAAI,GAAG;IAClB,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;CACX,CAAC;AAEF;;GAEG;AACU,QAAA,mBAAmB,GAAG,SAAA,CAAC,EAAI,EAAE,CAAA,GAAG,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsSha256.js","sourceRoot":"","sources":["../../src/jsSha256.ts"],"names":[],"mappings":";;;;AAAA,yCAAyC;AACzC,yCAAwC;AAExC,yCAAgE;AAEhE;IAME,gBAAY,MAAmB;QAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,qBAAS,EAAE,CAAC;QAC5B,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED,uBAAM,GAAN,UAAO,MAAkB;QACvB,IAAI,IAAA,kBAAW,EAAC,MAAM,CAAC,IAAI,IAAI,CAAC,KAAK,EAAE;YACrC,OAAO;SACR;QAED,IAAI;YACF,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAA,sBAAe,EAAC,MAAM,CAAC,CAAC,CAAC;SAC3C;QAAC,OAAO,CAAC,EAAE;YACV,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;SAChB;IACH,CAAC;IAED;;OAEG;IACH,2BAAU,GAAV;QACE,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,MAAM,IAAI,CAAC,KAAK,CAAC;SAClB;QAED,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;gBACxB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;aACvC;YAED,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;SAC5B;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IAC5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,CAAC;KAC5E;IACD;QACE,IAAA,2BAAO,EACL,wQAAwQ,CACzQ;QACD,IAAA,2BAAO,EACL,kTAAkT,CACnT;QACD,IAAA,2BAAO,EAAC,kEAAkE,CAAC;KAC5E;CACF,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare class RawSha256 {
5
+ private state;
6
+ private temp;
7
+ private buffer;
8
+ private bufferLength;
9
+ private bytesHashed;
10
+ /**
11
+ * @internal
12
+ */
13
+ finished: boolean;
14
+ update(data: Uint8Array): void;
15
+ digest(): Uint8Array;
16
+ private hashBuffer;
17
+ }
@@ -0,0 +1,121 @@
1
+ import { BLOCK_SIZE, DIGEST_LENGTH, INIT, KEY, MAX_HASHABLE_LENGTH } from "./constants";
2
+ /**
3
+ * @internal
4
+ */
5
+ var RawSha256 = /** @class */ (function () {
6
+ function RawSha256() {
7
+ this.state = Int32Array.from(INIT);
8
+ this.temp = new Int32Array(64);
9
+ this.buffer = new Uint8Array(64);
10
+ this.bufferLength = 0;
11
+ this.bytesHashed = 0;
12
+ /**
13
+ * @internal
14
+ */
15
+ this.finished = false;
16
+ }
17
+ RawSha256.prototype.update = function (data) {
18
+ if (this.finished) {
19
+ throw new Error("Attempted to update an already finished hash.");
20
+ }
21
+ var position = 0;
22
+ var byteLength = data.byteLength;
23
+ this.bytesHashed += byteLength;
24
+ if (this.bytesHashed * 8 > MAX_HASHABLE_LENGTH) {
25
+ throw new Error("Cannot hash more than 2^53 - 1 bits");
26
+ }
27
+ while (byteLength > 0) {
28
+ this.buffer[this.bufferLength++] = data[position++];
29
+ byteLength--;
30
+ if (this.bufferLength === BLOCK_SIZE) {
31
+ this.hashBuffer();
32
+ this.bufferLength = 0;
33
+ }
34
+ }
35
+ };
36
+ RawSha256.prototype.digest = function () {
37
+ if (!this.finished) {
38
+ var bitsHashed = this.bytesHashed * 8;
39
+ var bufferView = new DataView(this.buffer.buffer, this.buffer.byteOffset, this.buffer.byteLength);
40
+ var undecoratedLength = this.bufferLength;
41
+ bufferView.setUint8(this.bufferLength++, 0x80);
42
+ // Ensure the final block has enough room for the hashed length
43
+ if (undecoratedLength % BLOCK_SIZE >= BLOCK_SIZE - 8) {
44
+ for (var i = this.bufferLength; i < BLOCK_SIZE; i++) {
45
+ bufferView.setUint8(i, 0);
46
+ }
47
+ this.hashBuffer();
48
+ this.bufferLength = 0;
49
+ }
50
+ for (var i = this.bufferLength; i < BLOCK_SIZE - 8; i++) {
51
+ bufferView.setUint8(i, 0);
52
+ }
53
+ bufferView.setUint32(BLOCK_SIZE - 8, Math.floor(bitsHashed / 0x100000000), true);
54
+ bufferView.setUint32(BLOCK_SIZE - 4, bitsHashed);
55
+ this.hashBuffer();
56
+ this.finished = true;
57
+ }
58
+ // The value in state is little-endian rather than big-endian, so flip
59
+ // each word into a new Uint8Array
60
+ var out = new Uint8Array(DIGEST_LENGTH);
61
+ for (var i = 0; i < 8; i++) {
62
+ out[i * 4] = (this.state[i] >>> 24) & 0xff;
63
+ out[i * 4 + 1] = (this.state[i] >>> 16) & 0xff;
64
+ out[i * 4 + 2] = (this.state[i] >>> 8) & 0xff;
65
+ out[i * 4 + 3] = (this.state[i] >>> 0) & 0xff;
66
+ }
67
+ return out;
68
+ };
69
+ RawSha256.prototype.hashBuffer = function () {
70
+ var _a = this, buffer = _a.buffer, state = _a.state;
71
+ var state0 = state[0], state1 = state[1], state2 = state[2], state3 = state[3], state4 = state[4], state5 = state[5], state6 = state[6], state7 = state[7];
72
+ for (var i = 0; i < BLOCK_SIZE; i++) {
73
+ if (i < 16) {
74
+ this.temp[i] =
75
+ ((buffer[i * 4] & 0xff) << 24) |
76
+ ((buffer[i * 4 + 1] & 0xff) << 16) |
77
+ ((buffer[i * 4 + 2] & 0xff) << 8) |
78
+ (buffer[i * 4 + 3] & 0xff);
79
+ }
80
+ else {
81
+ var u = this.temp[i - 2];
82
+ var t1_1 = ((u >>> 17) | (u << 15)) ^ ((u >>> 19) | (u << 13)) ^ (u >>> 10);
83
+ u = this.temp[i - 15];
84
+ var t2_1 = ((u >>> 7) | (u << 25)) ^ ((u >>> 18) | (u << 14)) ^ (u >>> 3);
85
+ this.temp[i] =
86
+ ((t1_1 + this.temp[i - 7]) | 0) + ((t2_1 + this.temp[i - 16]) | 0);
87
+ }
88
+ var t1 = ((((((state4 >>> 6) | (state4 << 26)) ^
89
+ ((state4 >>> 11) | (state4 << 21)) ^
90
+ ((state4 >>> 25) | (state4 << 7))) +
91
+ ((state4 & state5) ^ (~state4 & state6))) |
92
+ 0) +
93
+ ((state7 + ((KEY[i] + this.temp[i]) | 0)) | 0)) |
94
+ 0;
95
+ var t2 = ((((state0 >>> 2) | (state0 << 30)) ^
96
+ ((state0 >>> 13) | (state0 << 19)) ^
97
+ ((state0 >>> 22) | (state0 << 10))) +
98
+ ((state0 & state1) ^ (state0 & state2) ^ (state1 & state2))) |
99
+ 0;
100
+ state7 = state6;
101
+ state6 = state5;
102
+ state5 = state4;
103
+ state4 = (state3 + t1) | 0;
104
+ state3 = state2;
105
+ state2 = state1;
106
+ state1 = state0;
107
+ state0 = (t1 + t2) | 0;
108
+ }
109
+ state[0] += state0;
110
+ state[1] += state1;
111
+ state[2] += state2;
112
+ state[3] += state3;
113
+ state[4] += state4;
114
+ state[5] += state5;
115
+ state[6] += state6;
116
+ state[7] += state7;
117
+ };
118
+ return RawSha256;
119
+ }());
120
+ export { RawSha256 };
121
+ //# sourceMappingURL=RawSha256.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RawSha256.js","sourceRoot":"","sources":["../../src/RawSha256.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,aAAa,EACb,IAAI,EACJ,GAAG,EACH,mBAAmB,EACpB,MAAM,aAAa,CAAC;AAErB;;GAEG;AACH;IAAA;QACU,UAAK,GAAe,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1C,SAAI,GAAe,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;QACtC,WAAM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AAC,IAAI,MAAM,CAAC;QACnB,KAAK,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;QACnB,KAAK,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;QACnB,KAAK,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;QACnB,KAAK,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;QACnB,KAAK,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;IACrB,CAAC;IACH,gBAAC;AAAD,CAAC,AAxJD,IAwJC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare const BLOCK_SIZE: number;
5
+ /**
6
+ * @internal
7
+ */
8
+ export declare const DIGEST_LENGTH: number;
9
+ /**
10
+ * @internal
11
+ */
12
+ export declare const KEY: Uint32Array;
13
+ /**
14
+ * @internal
15
+ */
16
+ export declare const INIT: number[];
17
+ /**
18
+ * @internal
19
+ */
20
+ export declare const MAX_HASHABLE_LENGTH: number;
@@ -0,0 +1,95 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export var BLOCK_SIZE = 64;
5
+ /**
6
+ * @internal
7
+ */
8
+ export var DIGEST_LENGTH = 32;
9
+ /**
10
+ * @internal
11
+ */
12
+ export var KEY = new Uint32Array([
13
+ 0x428a2f98,
14
+ 0x71374491,
15
+ 0xb5c0fbcf,
16
+ 0xe9b5dba5,
17
+ 0x3956c25b,
18
+ 0x59f111f1,
19
+ 0x923f82a4,
20
+ 0xab1c5ed5,
21
+ 0xd807aa98,
22
+ 0x12835b01,
23
+ 0x243185be,
24
+ 0x550c7dc3,
25
+ 0x72be5d74,
26
+ 0x80deb1fe,
27
+ 0x9bdc06a7,
28
+ 0xc19bf174,
29
+ 0xe49b69c1,
30
+ 0xefbe4786,
31
+ 0x0fc19dc6,
32
+ 0x240ca1cc,
33
+ 0x2de92c6f,
34
+ 0x4a7484aa,
35
+ 0x5cb0a9dc,
36
+ 0x76f988da,
37
+ 0x983e5152,
38
+ 0xa831c66d,
39
+ 0xb00327c8,
40
+ 0xbf597fc7,
41
+ 0xc6e00bf3,
42
+ 0xd5a79147,
43
+ 0x06ca6351,
44
+ 0x14292967,
45
+ 0x27b70a85,
46
+ 0x2e1b2138,
47
+ 0x4d2c6dfc,
48
+ 0x53380d13,
49
+ 0x650a7354,
50
+ 0x766a0abb,
51
+ 0x81c2c92e,
52
+ 0x92722c85,
53
+ 0xa2bfe8a1,
54
+ 0xa81a664b,
55
+ 0xc24b8b70,
56
+ 0xc76c51a3,
57
+ 0xd192e819,
58
+ 0xd6990624,
59
+ 0xf40e3585,
60
+ 0x106aa070,
61
+ 0x19a4c116,
62
+ 0x1e376c08,
63
+ 0x2748774c,
64
+ 0x34b0bcb5,
65
+ 0x391c0cb3,
66
+ 0x4ed8aa4a,
67
+ 0x5b9cca4f,
68
+ 0x682e6ff3,
69
+ 0x748f82ee,
70
+ 0x78a5636f,
71
+ 0x84c87814,
72
+ 0x8cc70208,
73
+ 0x90befffa,
74
+ 0xa4506ceb,
75
+ 0xbef9a3f7,
76
+ 0xc67178f2
77
+ ]);
78
+ /**
79
+ * @internal
80
+ */
81
+ export var INIT = [
82
+ 0x6a09e667,
83
+ 0xbb67ae85,
84
+ 0x3c6ef372,
85
+ 0xa54ff53a,
86
+ 0x510e527f,
87
+ 0x9b05688c,
88
+ 0x1f83d9ab,
89
+ 0x5be0cd19
90
+ ];
91
+ /**
92
+ * @internal
93
+ */
94
+ export var MAX_HASHABLE_LENGTH = Math.pow(2, 53) - 1;
95
+ //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,UAAU,GAAW,EAAE,CAAC;AAErC;;GAEG;AACU,QAAA,aAAa,GAAW,EAAE,CAAC;AAExC;;GAEG;AACU,QAAA,GAAG,GAAG,IAAI,WAAW,CAAC;IACjC,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;CACX,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,IAAI,GAAG;IAClB,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;CACX,CAAC;AAEF;;GAEG;AACU,QAAA,mBAAmB,GAAG,SAAA,CAAC,EAAI,EAAE,CAAA,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,IAAM,UAAU,GAAW,EAAE,CAAC;AAErC;;GAEG;AACH,MAAM,CAAC,IAAM,aAAa,GAAW,EAAE,CAAC;AAExC;;GAEG;AACH,MAAM,CAAC,IAAM,GAAG,GAAG,IAAI,WAAW,CAAC;IACjC,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;CACX,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,IAAM,IAAI,GAAG;IAClB,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;CACX,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,IAAM,mBAAmB,GAAG,SAAA,CAAC,EAAI,EAAE,CAAA,GAAG,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./jsSha256";
@@ -0,0 +1,2 @@
1
+ export * from "./jsSha256";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { Checksum, SourceData } from "@aws-sdk/types";
2
+ export declare class Sha256 implements Checksum {
3
+ private readonly secret?;
4
+ private hash;
5
+ private outer?;
6
+ private error;
7
+ constructor(secret?: SourceData);
8
+ update(toHash: SourceData): void;
9
+ digestSync(): Uint8Array;
10
+ digest(): Promise<Uint8Array>;
11
+ reset(): void;
12
+ }
@@ -0,0 +1,82 @@
1
+ import { __awaiter, __generator } from "tslib";
2
+ import { BLOCK_SIZE } from "./constants";
3
+ import { RawSha256 } from "./RawSha256";
4
+ import { isEmptyData, convertToBuffer } from "@aws-crypto/util";
5
+ var Sha256 = /** @class */ (function () {
6
+ function Sha256(secret) {
7
+ this.secret = secret;
8
+ this.hash = new RawSha256();
9
+ this.reset();
10
+ }
11
+ Sha256.prototype.update = function (toHash) {
12
+ if (isEmptyData(toHash) || this.error) {
13
+ return;
14
+ }
15
+ try {
16
+ this.hash.update(convertToBuffer(toHash));
17
+ }
18
+ catch (e) {
19
+ this.error = e;
20
+ }
21
+ };
22
+ /* This synchronous method keeps compatibility
23
+ * with the v2 aws-sdk.
24
+ */
25
+ Sha256.prototype.digestSync = function () {
26
+ if (this.error) {
27
+ throw this.error;
28
+ }
29
+ if (this.outer) {
30
+ if (!this.outer.finished) {
31
+ this.outer.update(this.hash.digest());
32
+ }
33
+ return this.outer.digest();
34
+ }
35
+ return this.hash.digest();
36
+ };
37
+ /* The underlying digest method here is synchronous.
38
+ * To keep the same interface with the other hash functions
39
+ * the default is to expose this as an async method.
40
+ * However, it can sometimes be useful to have a sync method.
41
+ */
42
+ Sha256.prototype.digest = function () {
43
+ return __awaiter(this, void 0, void 0, function () {
44
+ return __generator(this, function (_a) {
45
+ return [2 /*return*/, this.digestSync()];
46
+ });
47
+ });
48
+ };
49
+ Sha256.prototype.reset = function () {
50
+ this.hash = new RawSha256();
51
+ if (this.secret) {
52
+ this.outer = new RawSha256();
53
+ var inner = bufferFromSecret(this.secret);
54
+ var outer = new Uint8Array(BLOCK_SIZE);
55
+ outer.set(inner);
56
+ for (var i = 0; i < BLOCK_SIZE; i++) {
57
+ inner[i] ^= 0x36;
58
+ outer[i] ^= 0x5c;
59
+ }
60
+ this.hash.update(inner);
61
+ this.outer.update(outer);
62
+ // overwrite the copied key in memory
63
+ for (var i = 0; i < inner.byteLength; i++) {
64
+ inner[i] = 0;
65
+ }
66
+ }
67
+ };
68
+ return Sha256;
69
+ }());
70
+ export { Sha256 };
71
+ function bufferFromSecret(secret) {
72
+ var input = convertToBuffer(secret);
73
+ if (input.byteLength > BLOCK_SIZE) {
74
+ var bufferHash = new RawSha256();
75
+ bufferHash.update(input);
76
+ input = bufferHash.digest();
77
+ }
78
+ var buffer = new Uint8Array(BLOCK_SIZE);
79
+ buffer.set(input);
80
+ return buffer;
81
+ }
82
+ //# sourceMappingURL=jsSha256.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsSha256.js","sourceRoot":"","sources":["../../src/jsSha256.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEhE;IAME,gBAAY,MAAmB;QAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC;QAC5B,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED,uBAAM,GAAN,UAAO,MAAkB;QACvB,IAAI,WAAW,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,KAAK,EAAE;YACrC,OAAO;SACR;QAED,IAAI;YACF,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;SAC3C;QAAC,OAAO,CAAC,EAAE;YACV,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;SAChB;IACH,CAAC;IAED;;OAEG;IACH,2BAAU,GAAV;QACE,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,MAAM,IAAI,CAAC,KAAK,CAAC;SAClB;QAED,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,IAAI,CAAC,IAAI,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,CAAC,MAAkB;IAC1C,IAAI,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;IAEpC,IAAI,KAAK,CAAC,UAAU,GAAG,UAAU,EAAE;QACjC,IAAM,UAAU,GAAG,IAAI,SAAS,EAAE,CAAC;QACnC,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACzB,KAAK,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC;KAC7B;IAED,IAAM,MAAM,GAAG,IAAI,UAAU,CAAC,UAAU,CAAC,CAAC;IAC1C,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAClB,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const hashTestVectors: Array<[Uint8Array, Uint8Array]>;
2
+ /**
3
+ * @see https://tools.ietf.org/html/rfc4231
4
+ */
5
+ export declare const hmacTestVectors: Array<[Uint8Array, Uint8Array, Uint8Array]>;