cloudstructs 0.12.6 → 0.12.8

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 (167) hide show
  1. package/.jsii +3 -3
  2. package/lib/codecommit-mirror/index.js +2 -2
  3. package/lib/dmarc/index.js +1 -1
  4. package/lib/ecs-service-roller/index.js +2 -2
  5. package/lib/email-receiver/receiver.js +1 -1
  6. package/lib/mjml-template/index.js +1 -1
  7. package/lib/saml-identity-provider/index.js +2 -2
  8. package/lib/slack-app/manifest.js +1 -1
  9. package/lib/slack-app/slack-app.js +2 -2
  10. package/lib/slack-events/index.js +1 -1
  11. package/lib/slack-textract/index.js +1 -1
  12. package/lib/ssl-server-test/index.js +1 -1
  13. package/lib/state-machine-cr-provider/index.js +1 -1
  14. package/lib/static-website/index.js +1 -1
  15. package/lib/toolkit-cleaner/index.js +3 -3
  16. package/lib/url-shortener/index.js +1 -1
  17. package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +153 -153
  18. package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +153 -153
  19. package/node_modules/@aws-sdk/client-lambda/package.json +43 -43
  20. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +6 -6
  21. package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +6 -6
  22. package/node_modules/@aws-sdk/client-sso/package.json +37 -37
  23. package/node_modules/@aws-sdk/core/dist-cjs/index.js +45 -10
  24. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +45 -10
  25. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +23 -5
  26. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +22 -5
  27. package/node_modules/@aws-sdk/core/package.json +16 -16
  28. package/node_modules/@aws-sdk/credential-provider-env/package.json +9 -9
  29. package/node_modules/@aws-sdk/credential-provider-http/package.json +14 -14
  30. package/node_modules/@aws-sdk/credential-provider-ini/package.json +18 -18
  31. package/node_modules/@aws-sdk/credential-provider-login/package.json +12 -12
  32. package/node_modules/@aws-sdk/credential-provider-node/package.json +16 -16
  33. package/node_modules/@aws-sdk/credential-provider-process/package.json +10 -10
  34. package/node_modules/@aws-sdk/credential-provider-sso/package.json +12 -12
  35. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +11 -11
  36. package/node_modules/@aws-sdk/middleware-host-header/package.json +7 -7
  37. package/node_modules/@aws-sdk/middleware-logger/package.json +7 -7
  38. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +7 -7
  39. package/node_modules/@aws-sdk/middleware-user-agent/package.json +10 -10
  40. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +9 -4
  41. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -0
  42. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +5 -2
  43. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +9 -4
  44. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +1 -0
  45. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +5 -2
  46. package/node_modules/@aws-sdk/nested-clients/package.json +35 -35
  47. package/node_modules/@aws-sdk/region-config-resolver/package.json +8 -8
  48. package/node_modules/@aws-sdk/token-providers/package.json +11 -11
  49. package/node_modules/@aws-sdk/types/package.json +5 -5
  50. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +1 -1
  51. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +1 -1
  52. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +1 -1
  53. package/node_modules/@aws-sdk/util-endpoints/package.json +8 -8
  54. package/node_modules/@aws-sdk/util-locate-window/package.json +5 -5
  55. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +5 -5
  56. package/node_modules/@aws-sdk/util-user-agent-node/package.json +9 -9
  57. package/node_modules/@aws-sdk/xml-builder/package.json +5 -5
  58. package/node_modules/@babel/runtime/package.json +1 -1
  59. package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
  60. package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
  61. package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +61 -2
  62. package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +3 -0
  63. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  64. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
  65. package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +61 -2
  66. package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +3 -0
  67. package/node_modules/@smithy/abort-controller/package.json +3 -3
  68. package/node_modules/@smithy/config-resolver/package.json +6 -6
  69. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +17 -0
  70. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -0
  71. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +16 -6
  72. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +17 -0
  73. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +5 -0
  74. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +16 -6
  75. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  76. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  77. package/node_modules/@smithy/core/package.json +11 -11
  78. package/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  79. package/node_modules/@smithy/eventstream-codec/package.json +3 -3
  80. package/node_modules/@smithy/eventstream-serde-browser/package.json +4 -4
  81. package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +3 -3
  82. package/node_modules/@smithy/eventstream-serde-node/package.json +4 -4
  83. package/node_modules/@smithy/eventstream-serde-universal/package.json +4 -4
  84. package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  85. package/node_modules/@smithy/hash-node/package.json +3 -3
  86. package/node_modules/@smithy/invalid-dependency/package.json +3 -3
  87. package/node_modules/@smithy/middleware-content-length/package.json +4 -4
  88. package/node_modules/@smithy/middleware-endpoint/package.json +12 -12
  89. package/node_modules/@smithy/middleware-retry/package.json +12 -12
  90. package/node_modules/@smithy/middleware-serde/package.json +4 -4
  91. package/node_modules/@smithy/middleware-stack/package.json +3 -3
  92. package/node_modules/@smithy/node-config-provider/package.json +5 -5
  93. package/node_modules/@smithy/node-http-handler/package.json +6 -6
  94. package/node_modules/@smithy/property-provider/package.json +3 -3
  95. package/node_modules/@smithy/protocol-http/package.json +3 -3
  96. package/node_modules/@smithy/querystring-builder/package.json +3 -3
  97. package/node_modules/@smithy/querystring-parser/package.json +3 -3
  98. package/node_modules/@smithy/service-error-classification/package.json +3 -3
  99. package/node_modules/@smithy/shared-ini-file-loader/package.json +3 -3
  100. package/node_modules/@smithy/signature-v4/package.json +5 -5
  101. package/node_modules/@smithy/smithy-client/package.json +11 -11
  102. package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  103. package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  104. package/node_modules/@smithy/types/package.json +2 -2
  105. package/node_modules/@smithy/url-parser/package.json +4 -4
  106. package/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -8
  107. package/node_modules/@smithy/util-defaults-mode-node/package.json +11 -11
  108. package/node_modules/@smithy/util-endpoints/package.json +4 -4
  109. package/node_modules/@smithy/util-middleware/package.json +3 -3
  110. package/node_modules/@smithy/util-retry/package.json +4 -4
  111. package/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +20 -9
  112. package/node_modules/@smithy/util-stream/dist-cjs/index.js +8 -6
  113. package/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js +19 -7
  114. package/node_modules/@smithy/util-stream/dist-es/index.js +1 -1
  115. package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +7 -7
  116. package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +2 -3
  117. package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +4 -2
  118. package/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +4 -1
  119. package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +7 -3
  120. package/node_modules/@smithy/util-stream/dist-types/headStream.browser.d.ts +1 -2
  121. package/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +2 -2
  122. package/node_modules/@smithy/util-stream/dist-types/index.d.ts +4 -1
  123. package/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +3 -0
  124. package/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +2 -1
  125. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +7 -7
  126. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.browser.d.ts +2 -3
  127. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +4 -2
  128. package/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +4 -1
  129. package/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +7 -3
  130. package/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.browser.d.ts +1 -2
  131. package/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +2 -2
  132. package/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +4 -1
  133. package/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +3 -0
  134. package/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +2 -1
  135. package/node_modules/@smithy/util-stream/package.json +5 -5
  136. package/node_modules/@smithy/util-waiter/package.json +4 -4
  137. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  138. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
  139. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +61 -2
  140. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +3 -0
  141. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  142. package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
  143. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +61 -2
  144. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +3 -0
  145. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  146. package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
  147. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +61 -2
  148. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +3 -0
  149. package/node_modules/eventemitter3/README.md +3 -12
  150. package/node_modules/eventemitter3/dist/eventemitter3.esm.js +353 -345
  151. package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +1 -1
  152. package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map +1 -1
  153. package/node_modules/eventemitter3/dist/eventemitter3.umd.js +358 -350
  154. package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +1 -1
  155. package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map +1 -1
  156. package/node_modules/eventemitter3/package.json +7 -12
  157. package/node_modules/lodash/README.md +2 -2
  158. package/node_modules/lodash/_baseUnset.js +47 -2
  159. package/node_modules/lodash/core.js +1 -1
  160. package/node_modules/lodash/core.min.js +1 -1
  161. package/node_modules/lodash/lodash.js +43 -4
  162. package/node_modules/lodash/lodash.min.js +57 -57
  163. package/node_modules/lodash/package.json +1 -1
  164. package/package.json +15 -15
  165. package/node_modules/lodash/flake.lock +0 -40
  166. package/node_modules/lodash/flake.nix +0 -20
  167. package/node_modules/lodash/release.md +0 -48
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/querystring-parser",
3
- "version": "4.2.7",
3
+ "version": "4.2.8",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline querystring-parser",
@@ -24,7 +24,7 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/types": "^4.11.0",
27
+ "@smithy/types": "^4.12.0",
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "engines": {
@@ -49,7 +49,7 @@
49
49
  "devDependencies": {
50
50
  "concurrently": "7.0.0",
51
51
  "downlevel-dts": "0.10.1",
52
- "rimraf": "3.0.2",
52
+ "rimraf": "5.0.10",
53
53
  "typedoc": "0.23.23"
54
54
  },
55
55
  "typedoc": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/service-error-classification",
3
- "version": "4.2.7",
3
+ "version": "4.2.8",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline service-error-classification",
@@ -26,7 +26,7 @@
26
26
  "devDependencies": {
27
27
  "concurrently": "7.0.0",
28
28
  "downlevel-dts": "0.10.1",
29
- "rimraf": "3.0.2",
29
+ "rimraf": "5.0.10",
30
30
  "typedoc": "0.23.23"
31
31
  },
32
32
  "engines": {
@@ -55,6 +55,6 @@
55
55
  "directory": ".release/package"
56
56
  },
57
57
  "dependencies": {
58
- "@smithy/types": "^4.11.0"
58
+ "@smithy/types": "^4.12.0"
59
59
  }
60
60
  }
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@smithy/shared-ini-file-loader",
3
- "version": "4.4.2",
3
+ "version": "4.4.3",
4
4
  "dependencies": {
5
- "@smithy/types": "^4.11.0",
5
+ "@smithy/types": "^4.12.0",
6
6
  "tslib": "^2.6.2"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@types/node": "^18.11.9",
10
10
  "concurrently": "7.0.0",
11
11
  "downlevel-dts": "0.10.1",
12
- "rimraf": "3.0.2",
12
+ "rimraf": "5.0.10",
13
13
  "typedoc": "0.23.23"
14
14
  },
15
15
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/signature-v4",
3
- "version": "5.3.7",
3
+ "version": "5.3.8",
4
4
  "description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,10 +27,10 @@
27
27
  "sideEffects": false,
28
28
  "dependencies": {
29
29
  "@smithy/is-array-buffer": "^4.2.0",
30
- "@smithy/protocol-http": "^5.3.7",
31
- "@smithy/types": "^4.11.0",
30
+ "@smithy/protocol-http": "^5.3.8",
31
+ "@smithy/types": "^4.12.0",
32
32
  "@smithy/util-hex-encoding": "^4.2.0",
33
- "@smithy/util-middleware": "^4.2.7",
33
+ "@smithy/util-middleware": "^4.2.8",
34
34
  "@smithy/util-uri-escape": "^4.2.0",
35
35
  "@smithy/util-utf8": "^4.2.0",
36
36
  "tslib": "^2.6.2"
@@ -39,7 +39,7 @@
39
39
  "@aws-crypto/sha256-js": "5.2.0",
40
40
  "concurrently": "7.0.0",
41
41
  "downlevel-dts": "0.10.1",
42
- "rimraf": "3.0.2",
42
+ "rimraf": "5.0.10",
43
43
  "typedoc": "0.23.23"
44
44
  },
45
45
  "engines": {
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@smithy/smithy-client",
3
- "version": "4.10.4",
3
+ "version": "4.10.11",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline smithy-client",
7
7
  "build:es": "yarn g:tsc -p tsconfig.es.json",
8
8
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
- "build:types:downlevel": "rimraf dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
10
- "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
9
+ "build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
10
+ "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
+ "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
12
12
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
13
  "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
14
14
  "extract:docs": "node ./scripts/fix-api-extractor && api-extractor run --local && node ./scripts/fix-api-extractor --unset",
@@ -25,12 +25,12 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/core": "^3.20.2",
29
- "@smithy/middleware-endpoint": "^4.4.3",
30
- "@smithy/middleware-stack": "^4.2.7",
31
- "@smithy/protocol-http": "^5.3.7",
32
- "@smithy/types": "^4.11.0",
33
- "@smithy/util-stream": "^4.5.8",
28
+ "@smithy/core": "^3.21.0",
29
+ "@smithy/middleware-endpoint": "^4.4.10",
30
+ "@smithy/middleware-stack": "^4.2.8",
31
+ "@smithy/protocol-http": "^5.3.8",
32
+ "@smithy/types": "^4.12.0",
33
+ "@smithy/util-stream": "^4.5.10",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "engines": {
@@ -56,7 +56,7 @@
56
56
  "@types/node": "^18.11.9",
57
57
  "concurrently": "7.0.0",
58
58
  "downlevel-dts": "0.10.1",
59
- "rimraf": "5.0.10",
59
+ "premove": "4.0.0",
60
60
  "typedoc": "0.23.23"
61
61
  },
62
62
  "typedoc": {
@@ -60,7 +60,8 @@ export type StaticStructureSchema = [
60
60
  ShapeName,
61
61
  SchemaTraits,
62
62
  string[],
63
- $SchemaRef[]
63
+ $SchemaRef[],
64
+ number?
64
65
  ];
65
66
  /**
66
67
  * @public
@@ -82,7 +83,8 @@ export type StaticErrorSchema = [
82
83
  ShapeName,
83
84
  SchemaTraits,
84
85
  string[],
85
- $SchemaRef[]
86
+ $SchemaRef[],
87
+ number?
86
88
  ];
87
89
  /**
88
90
  * @public
@@ -79,7 +79,8 @@ export type StaticStructureSchema = [
79
79
  ShapeName,
80
80
  SchemaTraits,
81
81
  string[],
82
- $SchemaRef[]
82
+ $SchemaRef[],
83
+ number?
83
84
  ];
84
85
  /**
85
86
  * @public
@@ -101,7 +102,8 @@ export type StaticErrorSchema = [
101
102
  ShapeName,
102
103
  SchemaTraits,
103
104
  string[],
104
- $SchemaRef[]
105
+ $SchemaRef[],
106
+ number?
105
107
  ];
106
108
  /**
107
109
  * @public
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/types",
3
- "version": "4.11.0",
3
+ "version": "4.12.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline types",
@@ -49,7 +49,7 @@
49
49
  "devDependencies": {
50
50
  "concurrently": "7.0.0",
51
51
  "downlevel-dts": "0.10.1",
52
- "rimraf": "3.0.2",
52
+ "rimraf": "5.0.10",
53
53
  "typedoc": "0.23.23"
54
54
  },
55
55
  "typedoc": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/url-parser",
3
- "version": "4.2.7",
3
+ "version": "4.2.8",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline url-parser",
@@ -24,8 +24,8 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/querystring-parser": "^4.2.7",
28
- "@smithy/types": "^4.11.0",
27
+ "@smithy/querystring-parser": "^4.2.8",
28
+ "@smithy/types": "^4.12.0",
29
29
  "tslib": "^2.6.2"
30
30
  },
31
31
  "typesVersions": {
@@ -47,7 +47,7 @@
47
47
  "devDependencies": {
48
48
  "concurrently": "7.0.0",
49
49
  "downlevel-dts": "0.10.1",
50
- "rimraf": "3.0.2",
50
+ "rimraf": "5.0.10",
51
51
  "typedoc": "0.23.23"
52
52
  },
53
53
  "typedoc": {
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
3
- "version": "4.3.18",
3
+ "version": "4.3.25",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-browser",
7
7
  "build:es": "yarn g:tsc -p tsconfig.es.json",
8
8
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
- "build:types:downlevel": "rimraf dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
10
- "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
9
+ "build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
10
+ "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
+ "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
12
12
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
13
  "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
14
14
  "test": "yarn g:vitest run",
@@ -24,16 +24,16 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/property-provider": "^4.2.7",
28
- "@smithy/smithy-client": "^4.10.4",
29
- "@smithy/types": "^4.11.0",
27
+ "@smithy/property-provider": "^4.2.8",
28
+ "@smithy/smithy-client": "^4.10.11",
29
+ "@smithy/types": "^4.12.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^18.11.9",
34
34
  "concurrently": "7.0.0",
35
35
  "downlevel-dts": "0.10.1",
36
- "rimraf": "5.0.10",
36
+ "premove": "4.0.0",
37
37
  "typedoc": "0.23.23"
38
38
  },
39
39
  "engines": {
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-node",
3
- "version": "4.2.21",
3
+ "version": "4.2.28",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-node",
7
7
  "build:es": "yarn g:tsc -p tsconfig.es.json",
8
8
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
- "build:types:downlevel": "rimraf dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
10
- "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
9
+ "build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
10
+ "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
+ "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
12
12
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
13
  "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
14
14
  "test": "yarn g:vitest run",
@@ -24,19 +24,19 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/config-resolver": "^4.4.5",
28
- "@smithy/credential-provider-imds": "^4.2.7",
29
- "@smithy/node-config-provider": "^4.3.7",
30
- "@smithy/property-provider": "^4.2.7",
31
- "@smithy/smithy-client": "^4.10.4",
32
- "@smithy/types": "^4.11.0",
27
+ "@smithy/config-resolver": "^4.4.6",
28
+ "@smithy/credential-provider-imds": "^4.2.8",
29
+ "@smithy/node-config-provider": "^4.3.8",
30
+ "@smithy/property-provider": "^4.2.8",
31
+ "@smithy/smithy-client": "^4.10.11",
32
+ "@smithy/types": "^4.12.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^18.11.9",
37
37
  "concurrently": "7.0.0",
38
38
  "downlevel-dts": "0.10.1",
39
- "rimraf": "5.0.10",
39
+ "premove": "4.0.0",
40
40
  "typedoc": "0.23.23"
41
41
  },
42
42
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-endpoints",
3
- "version": "3.2.7",
3
+ "version": "3.2.8",
4
4
  "description": "Utilities to help with endpoint resolution.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -29,15 +29,15 @@
29
29
  "license": "Apache-2.0",
30
30
  "sideEffects": false,
31
31
  "dependencies": {
32
- "@smithy/node-config-provider": "^4.3.7",
33
- "@smithy/types": "^4.11.0",
32
+ "@smithy/node-config-provider": "^4.3.8",
33
+ "@smithy/types": "^4.12.0",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "^18.11.9",
38
38
  "concurrently": "7.0.0",
39
39
  "downlevel-dts": "0.10.1",
40
- "rimraf": "3.0.2",
40
+ "rimraf": "5.0.10",
41
41
  "typedoc": "0.23.23"
42
42
  },
43
43
  "types": "./dist-types/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-middleware",
3
- "version": "4.2.7",
3
+ "version": "4.2.8",
4
4
  "description": "Shared utilities for to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,14 +28,14 @@
28
28
  "license": "Apache-2.0",
29
29
  "sideEffects": false,
30
30
  "dependencies": {
31
- "@smithy/types": "^4.11.0",
31
+ "@smithy/types": "^4.12.0",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/node": "^18.11.9",
36
36
  "concurrently": "7.0.0",
37
37
  "downlevel-dts": "0.10.1",
38
- "rimraf": "3.0.2",
38
+ "rimraf": "5.0.10",
39
39
  "typedoc": "0.23.23"
40
40
  },
41
41
  "types": "./dist-types/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-retry",
3
- "version": "4.2.7",
3
+ "version": "4.2.8",
4
4
  "description": "Shared retry utilities to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -31,15 +31,15 @@
31
31
  "license": "Apache-2.0",
32
32
  "sideEffects": false,
33
33
  "dependencies": {
34
- "@smithy/service-error-classification": "^4.2.7",
35
- "@smithy/types": "^4.11.0",
34
+ "@smithy/service-error-classification": "^4.2.8",
35
+ "@smithy/types": "^4.12.0",
36
36
  "tslib": "^2.6.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^18.11.9",
40
40
  "concurrently": "7.0.0",
41
41
  "downlevel-dts": "0.10.1",
42
- "rimraf": "3.0.2",
42
+ "rimraf": "5.0.10",
43
43
  "typedoc": "0.23.23"
44
44
  },
45
45
  "types": "./dist-types/index.d.ts",
@@ -1,22 +1,34 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAwsChunkedEncodingStream = void 0;
4
- const stream_1 = require("stream");
5
- const getAwsChunkedEncodingStream = (readableStream, options) => {
3
+ exports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
4
+ const node_stream_1 = require("node:stream");
5
+ const getAwsChunkedEncodingStream_browser_1 = require("./getAwsChunkedEncodingStream.browser");
6
+ const stream_type_check_1 = require("./stream-type-check");
7
+ function getAwsChunkedEncodingStream(stream, options) {
8
+ const readable = stream;
9
+ const readableStream = stream;
10
+ if ((0, stream_type_check_1.isReadableStream)(readableStream)) {
11
+ return (0, getAwsChunkedEncodingStream_browser_1.getAwsChunkedEncodingStream)(readableStream, options);
12
+ }
6
13
  const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options;
7
14
  const checksumRequired = base64Encoder !== undefined &&
8
15
  checksumAlgorithmFn !== undefined &&
9
16
  checksumLocationName !== undefined &&
10
17
  streamHasher !== undefined;
11
- const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : undefined;
12
- const awsChunkedEncodingStream = new stream_1.Readable({ read: () => { } });
13
- readableStream.on("data", (data) => {
18
+ const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readable) : undefined;
19
+ const awsChunkedEncodingStream = new node_stream_1.Readable({
20
+ read: () => { },
21
+ });
22
+ readable.on("data", (data) => {
14
23
  const length = bodyLengthChecker(data) || 0;
24
+ if (length === 0) {
25
+ return;
26
+ }
15
27
  awsChunkedEncodingStream.push(`${length.toString(16)}\r\n`);
16
28
  awsChunkedEncodingStream.push(data);
17
29
  awsChunkedEncodingStream.push("\r\n");
18
30
  });
19
- readableStream.on("end", async () => {
31
+ readable.on("end", async () => {
20
32
  awsChunkedEncodingStream.push(`0\r\n`);
21
33
  if (checksumRequired) {
22
34
  const checksum = base64Encoder(await digest);
@@ -26,5 +38,4 @@ const getAwsChunkedEncodingStream = (readableStream, options) => {
26
38
  awsChunkedEncodingStream.push(null);
27
39
  });
28
40
  return awsChunkedEncodingStream;
29
- };
30
- exports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
41
+ }
@@ -33,6 +33,14 @@ class Uint8ArrayBlobAdapter extends Uint8Array {
33
33
  }
34
34
  }
35
35
 
36
+ Object.defineProperty(exports, "isBlob", {
37
+ enumerable: true,
38
+ get: function () { return streamTypeCheck.isBlob; }
39
+ });
40
+ Object.defineProperty(exports, "isReadableStream", {
41
+ enumerable: true,
42
+ get: function () { return streamTypeCheck.isReadableStream; }
43
+ });
36
44
  exports.Uint8ArrayBlobAdapter = Uint8ArrayBlobAdapter;
37
45
  Object.keys(ChecksumStream).forEach(function (k) {
38
46
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
@@ -76,9 +84,3 @@ Object.keys(splitStream).forEach(function (k) {
76
84
  get: function () { return splitStream[k]; }
77
85
  });
78
86
  });
79
- Object.keys(streamTypeCheck).forEach(function (k) {
80
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
81
- enumerable: true,
82
- get: function () { return streamTypeCheck[k]; }
83
- });
84
- });
@@ -1,19 +1,31 @@
1
- import { Readable } from "stream";
2
- export const getAwsChunkedEncodingStream = (readableStream, options) => {
1
+ import { Readable } from "node:stream";
2
+ import { getAwsChunkedEncodingStream as getAwsChunkedEncodingStreamBrowser } from "./getAwsChunkedEncodingStream.browser";
3
+ import { isReadableStream } from "./stream-type-check";
4
+ export function getAwsChunkedEncodingStream(stream, options) {
5
+ const readable = stream;
6
+ const readableStream = stream;
7
+ if (isReadableStream(readableStream)) {
8
+ return getAwsChunkedEncodingStreamBrowser(readableStream, options);
9
+ }
3
10
  const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options;
4
11
  const checksumRequired = base64Encoder !== undefined &&
5
12
  checksumAlgorithmFn !== undefined &&
6
13
  checksumLocationName !== undefined &&
7
14
  streamHasher !== undefined;
8
- const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : undefined;
9
- const awsChunkedEncodingStream = new Readable({ read: () => { } });
10
- readableStream.on("data", (data) => {
15
+ const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readable) : undefined;
16
+ const awsChunkedEncodingStream = new Readable({
17
+ read: () => { },
18
+ });
19
+ readable.on("data", (data) => {
11
20
  const length = bodyLengthChecker(data) || 0;
21
+ if (length === 0) {
22
+ return;
23
+ }
12
24
  awsChunkedEncodingStream.push(`${length.toString(16)}\r\n`);
13
25
  awsChunkedEncodingStream.push(data);
14
26
  awsChunkedEncodingStream.push("\r\n");
15
27
  });
16
- readableStream.on("end", async () => {
28
+ readable.on("end", async () => {
17
29
  awsChunkedEncodingStream.push(`0\r\n`);
18
30
  if (checksumRequired) {
19
31
  const checksum = base64Encoder(await digest);
@@ -23,4 +35,4 @@ export const getAwsChunkedEncodingStream = (readableStream, options) => {
23
35
  awsChunkedEncodingStream.push(null);
24
36
  });
25
37
  return awsChunkedEncodingStream;
26
- };
38
+ }
@@ -6,4 +6,4 @@ export * from "./getAwsChunkedEncodingStream";
6
6
  export * from "./headStream";
7
7
  export * from "./sdk-stream-mixin";
8
8
  export * from "./splitStream";
9
- export * from "./stream-type-check";
9
+ export { isReadableStream, isBlob } from "./stream-type-check";
@@ -27,11 +27,10 @@ export interface ChecksumStreamInit<T extends Readable | ReadableStream> {
27
27
  base64Encoder?: Encoder;
28
28
  }
29
29
  /**
30
- * @internal
31
- *
32
30
  * Wrapper for throwing checksum errors for streams without
33
31
  * buffering the stream.
34
32
  *
33
+ * @internal
35
34
  */
36
35
  export declare class ChecksumStream extends Duplex {
37
36
  private expectedChecksum;
@@ -41,20 +40,21 @@ export declare class ChecksumStream extends Duplex {
41
40
  private base64Encoder;
42
41
  constructor({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder, }: ChecksumStreamInit<Readable>);
43
42
  /**
44
- * @internal do not call this directly.
43
+ * Do not call this directly.
44
+ * @internal
45
45
  */
46
46
  _read(size: number): void;
47
47
  /**
48
- * @internal do not call this directly.
49
- *
50
48
  * When the upstream source flows data to this stream,
51
49
  * calculate a step update of the checksum.
50
+ * Do not call this directly.
51
+ * @internal
52
52
  */
53
53
  _write(chunk: Buffer, encoding: string, callback: (err?: Error) => void): void;
54
54
  /**
55
- * @internal do not call this directly.
56
- *
57
55
  * When the upstream source finishes, perform the checksum comparison.
56
+ * Do not call this directly.
57
+ * @internal
58
58
  */
59
59
  _final(callback: (err?: Error) => void): Promise<void>;
60
60
  }
@@ -1,15 +1,14 @@
1
1
  import type { ChecksumStreamInit } from "./ChecksumStream.browser";
2
2
  /**
3
- * @internal
4
3
  * Alias prevents compiler from turning
5
4
  * ReadableStream into ReadableStream<any>, which is incompatible
6
5
  * with the NodeJS.ReadableStream global type.
6
+ * @internal
7
7
  */
8
8
  export type ReadableStreamType = ReadableStream;
9
9
  /**
10
- * @internal
11
- *
12
10
  * Creates a stream adapter for throwing checksum errors for streams without
13
11
  * buffering the stream.
12
+ * @internal
14
13
  */
15
14
  export declare const createChecksumStream: ({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder, }: ChecksumStreamInit) => ReadableStreamType;
@@ -2,10 +2,12 @@ import type { Readable } from "stream";
2
2
  import type { ChecksumStreamInit } from "./ChecksumStream";
3
3
  import type { ReadableStreamType } from "./createChecksumStream.browser";
4
4
  /**
5
- * @internal
6
- *
7
5
  * Creates a stream mirroring the input stream's interface, but
8
6
  * performs checksumming when reading to the end of the stream.
7
+ * @internal
9
8
  */
10
9
  export declare function createChecksumStream(init: ChecksumStreamInit<ReadableStreamType>): ReadableStreamType;
10
+ /**
11
+ * @internal
12
+ */
11
13
  export declare function createChecksumStream(init: ChecksumStreamInit<Readable>): Readable;
@@ -4,9 +4,12 @@ import { Readable } from "node:stream";
4
4
  * @internal
5
5
  * @param upstream - any Readable or ReadableStream.
6
6
  * @param size - byte or character length minimum. Buffering occurs when a chunk fails to meet this value.
7
- * @param onBuffer - for emitting warnings when buffering occurs.
7
+ * @param logger - for emitting warnings when buffering occurs.
8
8
  * @returns another stream of the same data and stream class, but buffers chunks until
9
9
  * the minimum size is met, except for the last chunk.
10
10
  */
11
11
  export declare function createBufferedReadable(upstream: Readable, size: number, logger?: Logger): Readable;
12
+ /**
13
+ * @internal
14
+ */
12
15
  export declare function createBufferedReadable(upstream: ReadableStream, size: number, logger?: Logger): ReadableStream;
@@ -1,6 +1,10 @@
1
- import type { GetAwsChunkedEncodingStream } from "@smithy/types";
2
- import { Readable } from "stream";
1
+ import type { GetAwsChunkedEncodingStreamOptions } from "@smithy/types";
2
+ import { Readable } from "node:stream";
3
3
  /**
4
4
  * @internal
5
5
  */
6
- export declare const getAwsChunkedEncodingStream: GetAwsChunkedEncodingStream<Readable>;
6
+ export declare function getAwsChunkedEncodingStream(stream: Readable, options: GetAwsChunkedEncodingStreamOptions): Readable;
7
+ /**
8
+ * @internal
9
+ */
10
+ export declare function getAwsChunkedEncodingStream(stream: ReadableStream, options: GetAwsChunkedEncodingStreamOptions): ReadableStream;