@cdklabs/cdk-ecs-codedeploy 0.0.423 → 0.0.424

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 (109) hide show
  1. package/.jsii +3 -3
  2. package/.jsii.tabl.json +1 -1
  3. package/lib/api-canary/index.js +1 -1
  4. package/lib/ecs-appspec/index.js +1 -1
  5. package/lib/ecs-deployment/index.js +1 -1
  6. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  7. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js +38 -38
  8. package/node_modules/@aws-sdk/client-codedeploy/dist-es/schemas/schemas_0.js +38 -38
  9. package/node_modules/@aws-sdk/client-codedeploy/package.json +37 -37
  10. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +6 -6
  11. package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +6 -6
  12. package/node_modules/@aws-sdk/client-sso/package.json +35 -35
  13. package/node_modules/@aws-sdk/core/dist-cjs/index.js +45 -10
  14. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +45 -10
  15. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +23 -5
  16. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +22 -5
  17. package/node_modules/@aws-sdk/core/package.json +12 -12
  18. package/node_modules/@aws-sdk/credential-provider-env/package.json +7 -7
  19. package/node_modules/@aws-sdk/credential-provider-http/package.json +12 -12
  20. package/node_modules/@aws-sdk/credential-provider-ini/package.json +16 -16
  21. package/node_modules/@aws-sdk/credential-provider-login/package.json +10 -10
  22. package/node_modules/@aws-sdk/credential-provider-node/package.json +14 -14
  23. package/node_modules/@aws-sdk/credential-provider-process/package.json +8 -8
  24. package/node_modules/@aws-sdk/credential-provider-sso/package.json +10 -10
  25. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +9 -9
  26. package/node_modules/@aws-sdk/middleware-host-header/package.json +5 -5
  27. package/node_modules/@aws-sdk/middleware-logger/package.json +5 -5
  28. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +5 -5
  29. package/node_modules/@aws-sdk/middleware-user-agent/package.json +8 -8
  30. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +9 -4
  31. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -0
  32. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +5 -2
  33. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +9 -4
  34. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +1 -0
  35. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +5 -2
  36. package/node_modules/@aws-sdk/nested-clients/package.json +33 -33
  37. package/node_modules/@aws-sdk/region-config-resolver/package.json +6 -6
  38. package/node_modules/@aws-sdk/token-providers/package.json +9 -9
  39. package/node_modules/@aws-sdk/types/package.json +3 -3
  40. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +1 -1
  41. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +1 -1
  42. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +1 -1
  43. package/node_modules/@aws-sdk/util-endpoints/package.json +6 -6
  44. package/node_modules/@aws-sdk/util-locate-window/package.json +3 -3
  45. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  46. package/node_modules/@aws-sdk/util-user-agent-node/package.json +7 -7
  47. package/node_modules/@aws-sdk/xml-builder/package.json +3 -3
  48. package/node_modules/@smithy/abort-controller/package.json +3 -3
  49. package/node_modules/@smithy/config-resolver/package.json +6 -6
  50. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +17 -0
  51. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +3 -0
  52. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +17 -0
  53. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +3 -0
  54. package/node_modules/@smithy/core/package.json +11 -11
  55. package/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  56. package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  57. package/node_modules/@smithy/hash-node/package.json +3 -3
  58. package/node_modules/@smithy/invalid-dependency/package.json +3 -3
  59. package/node_modules/@smithy/middleware-content-length/package.json +4 -4
  60. package/node_modules/@smithy/middleware-endpoint/package.json +12 -12
  61. package/node_modules/@smithy/middleware-retry/package.json +12 -12
  62. package/node_modules/@smithy/middleware-serde/package.json +4 -4
  63. package/node_modules/@smithy/middleware-stack/package.json +3 -3
  64. package/node_modules/@smithy/node-config-provider/package.json +5 -5
  65. package/node_modules/@smithy/node-http-handler/package.json +6 -6
  66. package/node_modules/@smithy/property-provider/package.json +3 -3
  67. package/node_modules/@smithy/protocol-http/package.json +3 -3
  68. package/node_modules/@smithy/querystring-builder/package.json +3 -3
  69. package/node_modules/@smithy/querystring-parser/package.json +3 -3
  70. package/node_modules/@smithy/service-error-classification/package.json +3 -3
  71. package/node_modules/@smithy/shared-ini-file-loader/package.json +3 -3
  72. package/node_modules/@smithy/signature-v4/package.json +5 -5
  73. package/node_modules/@smithy/smithy-client/package.json +11 -11
  74. package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  75. package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  76. package/node_modules/@smithy/types/package.json +2 -2
  77. package/node_modules/@smithy/url-parser/package.json +4 -4
  78. package/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -8
  79. package/node_modules/@smithy/util-defaults-mode-node/package.json +11 -11
  80. package/node_modules/@smithy/util-endpoints/package.json +4 -4
  81. package/node_modules/@smithy/util-middleware/package.json +3 -3
  82. package/node_modules/@smithy/util-retry/package.json +4 -4
  83. package/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +20 -9
  84. package/node_modules/@smithy/util-stream/dist-cjs/index.js +8 -6
  85. package/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js +19 -7
  86. package/node_modules/@smithy/util-stream/dist-es/index.js +1 -1
  87. package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +7 -7
  88. package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +2 -3
  89. package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +4 -2
  90. package/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +4 -1
  91. package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +7 -3
  92. package/node_modules/@smithy/util-stream/dist-types/headStream.browser.d.ts +1 -2
  93. package/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +2 -2
  94. package/node_modules/@smithy/util-stream/dist-types/index.d.ts +4 -1
  95. package/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +3 -0
  96. package/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +2 -1
  97. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +7 -7
  98. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.browser.d.ts +2 -3
  99. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +4 -2
  100. package/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +4 -1
  101. package/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +7 -3
  102. package/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.browser.d.ts +1 -2
  103. package/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +2 -2
  104. package/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +4 -1
  105. package/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +3 -0
  106. package/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +2 -1
  107. package/node_modules/@smithy/util-stream/package.json +5 -5
  108. package/node_modules/@smithy/util-waiter/package.json +4 -4
  109. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/property-provider",
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 property-provider",
@@ -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/protocol-http",
3
- "version": "5.3.7",
3
+ "version": "5.3.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 protocol-http",
@@ -25,7 +25,7 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/types": "^4.11.0",
28
+ "@smithy/types": "^4.12.0",
29
29
  "tslib": "^2.6.2"
30
30
  },
31
31
  "engines": {
@@ -50,7 +50,7 @@
50
50
  "devDependencies": {
51
51
  "concurrently": "7.0.0",
52
52
  "downlevel-dts": "0.10.1",
53
- "rimraf": "3.0.2",
53
+ "rimraf": "5.0.10",
54
54
  "typedoc": "0.23.23"
55
55
  },
56
56
  "typedoc": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/querystring-builder",
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-builder",
@@ -23,7 +23,7 @@
23
23
  "license": "Apache-2.0",
24
24
  "sideEffects": false,
25
25
  "dependencies": {
26
- "@smithy/types": "^4.11.0",
26
+ "@smithy/types": "^4.12.0",
27
27
  "@smithy/util-uri-escape": "^4.2.0",
28
28
  "tslib": "^2.6.2"
29
29
  },
@@ -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/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.9",
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.20.7",
29
+ "@smithy/middleware-endpoint": "^4.4.8",
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.23",
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.9",
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.26",
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.9",
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";