@cdklabs/cdk-ecs-codedeploy 0.0.385 → 0.0.386

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 (111) hide show
  1. package/.jsii +3 -3
  2. package/lib/api-canary/index.js +1 -1
  3. package/lib/ecs-appspec/index.js +1 -1
  4. package/lib/ecs-deployment/index.js +1 -1
  5. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  6. package/node_modules/@aws-sdk/client-codedeploy/package.json +6 -6
  7. package/node_modules/@aws-sdk/client-sso/package.json +5 -5
  8. package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +9 -9
  9. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +3 -3
  10. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +5 -5
  11. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +4 -4
  12. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +2 -2
  13. package/node_modules/@aws-sdk/core/dist-types/api-extractor-type-index.d.ts +5 -0
  14. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +0 -3
  15. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +9 -0
  16. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -1
  17. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +5 -1
  18. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +9 -0
  19. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/parseXmlBody.d.ts +9 -0
  20. package/node_modules/@aws-sdk/core/dist-types/ts3.4/api-extractor-type-index.d.ts +5 -0
  21. package/node_modules/@aws-sdk/core/package.json +13 -13
  22. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +3 -3
  23. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  24. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  25. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  26. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  27. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +3 -3
  28. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  29. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  30. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  31. package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +7 -9
  32. package/node_modules/@aws-sdk/middleware-host-header/dist-types/index.d.ts +15 -0
  33. package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -1
  34. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +7 -7
  35. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  36. package/node_modules/@aws-sdk/nested-clients/package.json +5 -5
  37. package/node_modules/@aws-sdk/token-providers/package.json +2 -2
  38. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +5 -5
  39. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  40. package/node_modules/@smithy/abort-controller/package.json +5 -5
  41. package/node_modules/@smithy/config-resolver/dist-cjs/index.js +11 -14
  42. package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/resolveCustomEndpointsConfig.js +5 -6
  43. package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/resolveEndpointsConfig.js +4 -5
  44. package/node_modules/@smithy/config-resolver/dist-es/regionConfig/resolveRegionConfig.js +2 -3
  45. package/node_modules/@smithy/config-resolver/package.json +7 -7
  46. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +41 -0
  47. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  48. package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +9 -0
  49. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
  50. package/node_modules/@smithy/core/dist-types/submodules/serde/value/NumericValue.d.ts +31 -0
  51. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
  52. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/value/NumericValue.d.ts +31 -0
  53. package/node_modules/@smithy/core/package.json +17 -8
  54. package/node_modules/@smithy/core/serde.d.ts +7 -0
  55. package/node_modules/@smithy/core/serde.js +6 -0
  56. package/node_modules/@smithy/credential-provider-imds/package.json +8 -8
  57. package/node_modules/@smithy/fetch-http-handler/package.json +8 -8
  58. package/node_modules/@smithy/hash-node/package.json +5 -5
  59. package/node_modules/@smithy/invalid-dependency/package.json +5 -5
  60. package/node_modules/@smithy/middleware-content-length/package.json +6 -6
  61. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +5 -6
  62. package/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js +5 -6
  63. package/node_modules/@smithy/middleware-endpoint/package.json +10 -10
  64. package/node_modules/@smithy/middleware-retry/README.md +1 -1
  65. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +5 -6
  66. package/node_modules/@smithy/middleware-retry/dist-es/configurations.js +5 -6
  67. package/node_modules/@smithy/middleware-retry/package.json +10 -10
  68. package/node_modules/@smithy/middleware-serde/package.json +4 -4
  69. package/node_modules/@smithy/middleware-stack/package.json +5 -5
  70. package/node_modules/@smithy/node-config-provider/package.json +7 -7
  71. package/node_modules/@smithy/node-http-handler/package.json +7 -7
  72. package/node_modules/@smithy/property-provider/package.json +5 -5
  73. package/node_modules/@smithy/protocol-http/dist-cjs/index.js +4 -5
  74. package/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js +4 -5
  75. package/node_modules/@smithy/protocol-http/package.json +5 -5
  76. package/node_modules/@smithy/querystring-builder/package.json +5 -5
  77. package/node_modules/@smithy/querystring-parser/package.json +5 -5
  78. package/node_modules/@smithy/service-error-classification/package.json +5 -5
  79. package/node_modules/@smithy/shared-ini-file-loader/package.json +5 -5
  80. package/node_modules/@smithy/signature-v4/package.json +7 -7
  81. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +6 -14
  82. package/node_modules/@smithy/smithy-client/dist-es/extensions/checksum.js +2 -3
  83. package/node_modules/@smithy/smithy-client/dist-es/extensions/defaultExtensionConfiguration.js +2 -8
  84. package/node_modules/@smithy/smithy-client/dist-es/extensions/retry.js +2 -3
  85. package/node_modules/@smithy/smithy-client/dist-types/client.d.ts +8 -0
  86. package/node_modules/@smithy/smithy-client/dist-types/extensions/checksum.d.ts +0 -1
  87. package/node_modules/@smithy/smithy-client/dist-types/extensions/defaultExtensionConfiguration.d.ts +6 -6
  88. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/client.d.ts +8 -0
  89. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/checksum.d.ts +0 -1
  90. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +6 -6
  91. package/node_modules/@smithy/smithy-client/package.json +9 -9
  92. package/node_modules/@smithy/types/dist-cjs/index.js +4 -9
  93. package/node_modules/@smithy/types/dist-es/extensions/checksum.js +2 -3
  94. package/node_modules/@smithy/types/dist-es/extensions/defaultClientConfiguration.js +2 -6
  95. package/node_modules/@smithy/types/package.json +4 -4
  96. package/node_modules/@smithy/url-parser/package.json +6 -6
  97. package/node_modules/@smithy/util-defaults-mode-browser/package.json +6 -6
  98. package/node_modules/@smithy/util-defaults-mode-node/package.json +9 -9
  99. package/node_modules/@smithy/util-endpoints/package.json +6 -6
  100. package/node_modules/@smithy/util-middleware/package.json +5 -5
  101. package/node_modules/@smithy/util-retry/README.md +1 -1
  102. package/node_modules/@smithy/util-retry/package.json +6 -6
  103. package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +1 -1
  104. package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +3 -3
  105. package/node_modules/@smithy/util-stream/dist-es/createBufferedReadable.js +1 -1
  106. package/node_modules/@smithy/util-stream/dist-es/createBufferedReadableStream.js +3 -3
  107. package/node_modules/@smithy/util-stream/dist-types/createBufferedReadableStream.d.ts +3 -2
  108. package/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadableStream.d.ts +3 -2
  109. package/node_modules/@smithy/util-stream/package.json +6 -6
  110. package/node_modules/@smithy/util-waiter/package.json +6 -6
  111. package/package.json +4 -4
@@ -41,6 +41,14 @@ export type SmithyResolvedConfiguration<HandlerOptions> = {
41
41
  export declare class Client<HandlerOptions, ClientInput extends object, ClientOutput extends MetadataBearer, ResolvedClientConfiguration extends SmithyResolvedConfiguration<HandlerOptions>> implements IClient<ClientInput, ClientOutput, ResolvedClientConfiguration> {
42
42
  readonly config: ResolvedClientConfiguration;
43
43
  middlewareStack: MiddlewareStack<ClientInput, ClientOutput>;
44
+ /**
45
+ * Holds an object reference to the initial configuration object.
46
+ * Used to check that the config resolver stack does not create
47
+ * dangling instances of an intermediate form of the configuration object.
48
+ *
49
+ * @internal
50
+ */
51
+ initConfig?: object;
44
52
  /**
45
53
  * May be used to cache the resolved handler function for a Command class.
46
54
  */
@@ -15,7 +15,6 @@ export type PartialChecksumRuntimeConfigType = Partial<{
15
15
  * @internal
16
16
  */
17
17
  export declare const getChecksumConfiguration: (runtimeConfig: PartialChecksumRuntimeConfigType) => {
18
- _checksumAlgorithms: ChecksumAlgorithm[];
19
18
  addChecksumAlgorithm(algo: ChecksumAlgorithm): void;
20
19
  checksumAlgorithms(): ChecksumAlgorithm[];
21
20
  };
@@ -11,11 +11,11 @@ export type DefaultExtensionRuntimeConfigType = PartialRetryRuntimeConfigType &
11
11
  * Helper function to resolve default extension configuration from runtime config
12
12
  */
13
13
  export declare const getDefaultExtensionConfiguration: (runtimeConfig: DefaultExtensionRuntimeConfigType) => {
14
- setRetryStrategy(retryStrategy: import("@smithy/types").Provider<import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2>): void;
15
- retryStrategy(): import("@smithy/types").Provider<import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2>;
16
- _checksumAlgorithms: import("@smithy/types").ChecksumAlgorithm[];
17
14
  addChecksumAlgorithm(algo: import("@smithy/types").ChecksumAlgorithm): void;
18
15
  checksumAlgorithms(): import("@smithy/types").ChecksumAlgorithm[];
16
+ } & {
17
+ setRetryStrategy(retryStrategy: import("@smithy/types").Provider<import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2>): void;
18
+ retryStrategy(): import("@smithy/types").Provider<import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2>;
19
19
  };
20
20
  /**
21
21
  * @deprecated use getDefaultExtensionConfiguration
@@ -24,11 +24,11 @@ export declare const getDefaultExtensionConfiguration: (runtimeConfig: DefaultEx
24
24
  * Helper function to resolve default extension configuration from runtime config
25
25
  */
26
26
  export declare const getDefaultClientConfiguration: (runtimeConfig: DefaultExtensionRuntimeConfigType) => {
27
- setRetryStrategy(retryStrategy: import("@smithy/types").Provider<import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2>): void;
28
- retryStrategy(): import("@smithy/types").Provider<import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2>;
29
- _checksumAlgorithms: import("@smithy/types").ChecksumAlgorithm[];
30
27
  addChecksumAlgorithm(algo: import("@smithy/types").ChecksumAlgorithm): void;
31
28
  checksumAlgorithms(): import("@smithy/types").ChecksumAlgorithm[];
29
+ } & {
30
+ setRetryStrategy(retryStrategy: import("@smithy/types").Provider<import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2>): void;
31
+ retryStrategy(): import("@smithy/types").Provider<import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2>;
32
32
  };
33
33
  /**
34
34
  * @internal
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/smithy-client",
3
- "version": "4.1.6",
3
+ "version": "4.2.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 smithy-client",
@@ -24,12 +24,12 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@smithy/core": "^3.1.5",
28
- "@smithy/middleware-endpoint": "^4.0.6",
29
- "@smithy/middleware-stack": "^4.0.1",
30
- "@smithy/protocol-http": "^5.0.1",
31
- "@smithy/types": "^4.1.0",
32
- "@smithy/util-stream": "^4.1.2",
27
+ "@smithy/core": "^3.2.0",
28
+ "@smithy/middleware-endpoint": "^4.1.0",
29
+ "@smithy/middleware-stack": "^4.0.2",
30
+ "@smithy/protocol-http": "^5.1.0",
31
+ "@smithy/types": "^4.2.0",
32
+ "@smithy/util-stream": "^4.2.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "engines": {
@@ -45,10 +45,10 @@
45
45
  "files": [
46
46
  "dist-*/**"
47
47
  ],
48
- "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/smithy-client",
48
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/smithy-client",
49
49
  "repository": {
50
50
  "type": "git",
51
- "url": "https://github.com/awslabs/smithy-typescript.git",
51
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
52
52
  "directory": "packages/smithy-client"
53
53
  },
54
54
  "devDependencies": {
@@ -78,12 +78,11 @@ var getChecksumConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
78
78
  });
79
79
  }
80
80
  return {
81
- _checksumAlgorithms: checksumAlgorithms,
82
81
  addChecksumAlgorithm(algo) {
83
- this._checksumAlgorithms.push(algo);
82
+ checksumAlgorithms.push(algo);
84
83
  },
85
84
  checksumAlgorithms() {
86
- return this._checksumAlgorithms;
85
+ return checksumAlgorithms;
87
86
  }
88
87
  };
89
88
  }, "getChecksumConfiguration");
@@ -97,14 +96,10 @@ var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => {
97
96
 
98
97
  // src/extensions/defaultClientConfiguration.ts
99
98
  var getDefaultClientConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
100
- return {
101
- ...getChecksumConfiguration(runtimeConfig)
102
- };
99
+ return getChecksumConfiguration(runtimeConfig);
103
100
  }, "getDefaultClientConfiguration");
104
101
  var resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => {
105
- return {
106
- ...resolveChecksumRuntimeConfig(config)
107
- };
102
+ return resolveChecksumRuntimeConfig(config);
108
103
  }, "resolveDefaultRuntimeConfig");
109
104
 
110
105
  // src/http.ts
@@ -21,12 +21,11 @@ export const getChecksumConfiguration = (runtimeConfig) => {
21
21
  });
22
22
  }
23
23
  return {
24
- _checksumAlgorithms: checksumAlgorithms,
25
24
  addChecksumAlgorithm(algo) {
26
- this._checksumAlgorithms.push(algo);
25
+ checksumAlgorithms.push(algo);
27
26
  },
28
27
  checksumAlgorithms() {
29
- return this._checksumAlgorithms;
28
+ return checksumAlgorithms;
30
29
  },
31
30
  };
32
31
  };
@@ -1,11 +1,7 @@
1
1
  import { getChecksumConfiguration, resolveChecksumRuntimeConfig } from "./checksum";
2
2
  export const getDefaultClientConfiguration = (runtimeConfig) => {
3
- return {
4
- ...getChecksumConfiguration(runtimeConfig),
5
- };
3
+ return getChecksumConfiguration(runtimeConfig);
6
4
  };
7
5
  export const resolveDefaultRuntimeConfig = (config) => {
8
- return {
9
- ...resolveChecksumRuntimeConfig(config),
10
- };
6
+ return resolveChecksumRuntimeConfig(config);
11
7
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/types",
3
- "version": "4.1.0",
3
+ "version": "4.2.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",
@@ -10,7 +10,7 @@
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
12
12
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
- "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
13
+ "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
14
14
  "test": "yarn g:tsc -p tsconfig.test.json",
15
15
  "extract:docs": "api-extractor run --local"
16
16
  },
@@ -39,10 +39,10 @@
39
39
  "files": [
40
40
  "dist-*/**"
41
41
  ],
42
- "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/types",
42
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/types",
43
43
  "repository": {
44
44
  "type": "git",
45
- "url": "https://github.com/awslabs/smithy-typescript.git",
45
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
46
46
  "directory": "packages/types"
47
47
  },
48
48
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/url-parser",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
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",
@@ -10,7 +10,7 @@
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
12
12
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
- "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
13
+ "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
14
14
  "test": "yarn g:vitest run",
15
15
  "test:watch": "yarn g:vitest watch"
16
16
  },
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/querystring-parser": "^4.0.1",
27
- "@smithy/types": "^4.1.0",
26
+ "@smithy/querystring-parser": "^4.0.2",
27
+ "@smithy/types": "^4.2.0",
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "typesVersions": {
@@ -37,10 +37,10 @@
37
37
  "files": [
38
38
  "dist-*/**"
39
39
  ],
40
- "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/url-parser",
40
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/url-parser",
41
41
  "repository": {
42
42
  "type": "git",
43
- "url": "https://github.com/awslabs/smithy-typescript.git",
43
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
44
44
  "directory": "packages/url-parser"
45
45
  },
46
46
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
3
- "version": "4.0.7",
3
+ "version": "4.0.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 util-defaults-mode-browser",
@@ -23,9 +23,9 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/property-provider": "^4.0.1",
27
- "@smithy/smithy-client": "^4.1.6",
28
- "@smithy/types": "^4.1.0",
26
+ "@smithy/property-provider": "^4.0.2",
27
+ "@smithy/smithy-client": "^4.2.0",
28
+ "@smithy/types": "^4.2.0",
29
29
  "bowser": "^2.11.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
@@ -51,10 +51,10 @@
51
51
  ],
52
52
  "react-native": {},
53
53
  "browser": {},
54
- "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/util-defaults-mode-node",
54
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/util-defaults-mode-node",
55
55
  "repository": {
56
56
  "type": "git",
57
- "url": "https://github.com/awslabs/smithy-typescript.git",
57
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
58
58
  "directory": "packages/util-defaults-mode-node"
59
59
  },
60
60
  "typedoc": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-node",
3
- "version": "4.0.7",
3
+ "version": "4.0.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 util-defaults-mode-node",
@@ -23,12 +23,12 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/config-resolver": "^4.0.1",
27
- "@smithy/credential-provider-imds": "^4.0.1",
28
- "@smithy/node-config-provider": "^4.0.1",
29
- "@smithy/property-provider": "^4.0.1",
30
- "@smithy/smithy-client": "^4.1.6",
31
- "@smithy/types": "^4.1.0",
26
+ "@smithy/config-resolver": "^4.1.0",
27
+ "@smithy/credential-provider-imds": "^4.0.2",
28
+ "@smithy/node-config-provider": "^4.0.2",
29
+ "@smithy/property-provider": "^4.0.2",
30
+ "@smithy/smithy-client": "^4.2.0",
31
+ "@smithy/types": "^4.2.0",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
@@ -51,10 +51,10 @@
51
51
  "files": [
52
52
  "dist-*/**"
53
53
  ],
54
- "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/util-defaults-mode-node",
54
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/util-defaults-mode-node",
55
55
  "repository": {
56
56
  "type": "git",
57
- "url": "https://github.com/awslabs/smithy-typescript.git",
57
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
58
58
  "directory": "packages/util-defaults-mode-node"
59
59
  },
60
60
  "typedoc": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-endpoints",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Utilities to help with endpoint resolution.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -13,7 +13,7 @@
13
13
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
14
14
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
15
15
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
16
- "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
16
+ "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
17
17
  "test": "yarn g:vitest run",
18
18
  "test:integration": "yarn g:vitest run -c vitest.config.integ.ts",
19
19
  "test:watch": "yarn g:vitest watch",
@@ -28,8 +28,8 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@smithy/node-config-provider": "^4.0.1",
32
- "@smithy/types": "^4.1.0",
31
+ "@smithy/node-config-provider": "^4.0.2",
32
+ "@smithy/types": "^4.2.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
@@ -53,10 +53,10 @@
53
53
  "files": [
54
54
  "dist-*/**"
55
55
  ],
56
- "homepage": "https://github.com/awslabs/smithy-typescript/tree/master/packages/util-endpoints",
56
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/master/packages/util-endpoints",
57
57
  "repository": {
58
58
  "type": "git",
59
- "url": "https://github.com/awslabs/smithy-typescript.git",
59
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
60
60
  "directory": "packages/util-endpoints"
61
61
  },
62
62
  "typedoc": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-middleware",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
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",
@@ -13,7 +13,7 @@
13
13
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
14
14
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
15
15
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
16
- "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
16
+ "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
17
17
  "test": "yarn g:vitest run",
18
18
  "test:watch": "yarn g:vitest watch"
19
19
  },
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@smithy/types": "^4.1.0",
30
+ "@smithy/types": "^4.2.0",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {
@@ -51,10 +51,10 @@
51
51
  "files": [
52
52
  "dist-*/**"
53
53
  ],
54
- "homepage": "https://github.com/awslabs/smithy-typescript/tree/master/packages/util-middleware",
54
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/master/packages/util-middleware",
55
55
  "repository": {
56
56
  "type": "git",
57
- "url": "https://github.com/awslabs/smithy-typescript.git",
57
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
58
58
  "directory": "packages/util-middleware"
59
59
  },
60
60
  "typedoc": {
@@ -74,5 +74,5 @@ const client = new S3Client({
74
74
 
75
75
  You can implement the `RetryStrategyV2` interface.
76
76
 
77
- Source: https://github.com/awslabs/smithy-typescript/blob/main/packages/types/src/retry.ts
77
+ Source: https://github.com/smithy-lang/smithy-typescript/blob/main/packages/types/src/retry.ts
78
78
  API Docs: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-types/Interface/RetryStrategyV2/
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-retry",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
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",
@@ -13,7 +13,7 @@
13
13
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
14
14
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
15
15
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
16
- "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
16
+ "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
17
17
  "extract:docs": "api-extractor run --local",
18
18
  "test": "yarn g:vitest run",
19
19
  "test:watch": "yarn g:vitest watch"
@@ -28,8 +28,8 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@smithy/service-error-classification": "^4.0.1",
32
- "@smithy/types": "^4.1.0",
31
+ "@smithy/service-error-classification": "^4.0.2",
32
+ "@smithy/types": "^4.2.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
@@ -53,10 +53,10 @@
53
53
  "files": [
54
54
  "dist-*/**"
55
55
  ],
56
- "homepage": "https://github.com/awslabs/smithy-typescript/tree/master/packages/util-retry",
56
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/master/packages/util-retry",
57
57
  "repository": {
58
58
  "type": "git",
59
- "url": "https://github.com/awslabs/smithy-typescript.git",
59
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
60
60
  "directory": "packages/util-retry"
61
61
  },
62
62
  "typedoc": {
@@ -19,7 +19,7 @@ function createBufferedReadable(upstream, size, logger) {
19
19
  ];
20
20
  let mode = -1;
21
21
  upstream.on("data", (chunk) => {
22
- const chunkMode = (0, createBufferedReadableStream_1.modeOf)(chunk);
22
+ const chunkMode = (0, createBufferedReadableStream_1.modeOf)(chunk, true);
23
23
  if (mode !== chunkMode) {
24
24
  if (mode >= 0) {
25
25
  downstream.push((0, createBufferedReadableStream_1.flush)(buffers, mode));
@@ -21,7 +21,7 @@ function createBufferedReadableStream(upstream, size, logger) {
21
21
  controller.close();
22
22
  }
23
23
  else {
24
- const chunkMode = modeOf(chunk);
24
+ const chunkMode = modeOf(chunk, false);
25
25
  if (mode !== chunkMode) {
26
26
  if (mode >= 0) {
27
27
  controller.enqueue(flush(buffers, mode));
@@ -89,8 +89,8 @@ function sizeOf(chunk) {
89
89
  return (_b = (_a = chunk === null || chunk === void 0 ? void 0 : chunk.byteLength) !== null && _a !== void 0 ? _a : chunk === null || chunk === void 0 ? void 0 : chunk.length) !== null && _b !== void 0 ? _b : 0;
90
90
  }
91
91
  exports.sizeOf = sizeOf;
92
- function modeOf(chunk) {
93
- if (typeof Buffer !== "undefined" && chunk instanceof Buffer) {
92
+ function modeOf(chunk, allowBuffer = true) {
93
+ if (allowBuffer && typeof Buffer !== "undefined" && chunk instanceof Buffer) {
94
94
  return 2;
95
95
  }
96
96
  if (chunk instanceof Uint8Array) {
@@ -16,7 +16,7 @@ export function createBufferedReadable(upstream, size, logger) {
16
16
  ];
17
17
  let mode = -1;
18
18
  upstream.on("data", (chunk) => {
19
- const chunkMode = modeOf(chunk);
19
+ const chunkMode = modeOf(chunk, true);
20
20
  if (mode !== chunkMode) {
21
21
  if (mode >= 0) {
22
22
  downstream.push(flush(buffers, mode));
@@ -18,7 +18,7 @@ export function createBufferedReadableStream(upstream, size, logger) {
18
18
  controller.close();
19
19
  }
20
20
  else {
21
- const chunkMode = modeOf(chunk);
21
+ const chunkMode = modeOf(chunk, false);
22
22
  if (mode !== chunkMode) {
23
23
  if (mode >= 0) {
24
24
  controller.enqueue(flush(buffers, mode));
@@ -81,8 +81,8 @@ export function flush(buffers, mode) {
81
81
  export function sizeOf(chunk) {
82
82
  return chunk?.byteLength ?? chunk?.length ?? 0;
83
83
  }
84
- export function modeOf(chunk) {
85
- if (typeof Buffer !== "undefined" && chunk instanceof Buffer) {
84
+ export function modeOf(chunk, allowBuffer = true) {
85
+ if (allowBuffer && typeof Buffer !== "undefined" && chunk instanceof Buffer) {
86
86
  return 2;
87
87
  }
88
88
  if (chunk instanceof Uint8Array) {
@@ -7,7 +7,7 @@ export type Modes = 0 | 1 | 2;
7
7
  * @internal
8
8
  * @param upstream - any ReadableStream.
9
9
  * @param size - byte or character length minimum. Buffering occurs when a chunk fails to meet this value.
10
- * @param onBuffer - for emitting warnings when buffering occurs.
10
+ * @param logger - for emitting warnings when buffering occurs.
11
11
  * @returns another stream of the same data, but buffers chunks until
12
12
  * the minimum size is met, except for the last chunk.
13
13
  */
@@ -44,6 +44,7 @@ export declare function sizeOf(chunk?: {
44
44
  /**
45
45
  * @internal
46
46
  * @param chunk - from upstream Readable.
47
+ * @param allowBuffer - allow mode 2 (Buffer), otherwise Buffer will return mode 1.
47
48
  * @returns type index of the chunk.
48
49
  */
49
- export declare function modeOf(chunk: BufferUnion): Modes | -1;
50
+ export declare function modeOf(chunk: BufferUnion, allowBuffer?: boolean): Modes | -1;
@@ -11,7 +11,7 @@ export type Modes = 0 | 1 | 2;
11
11
  * @internal
12
12
  * @param upstream - any ReadableStream.
13
13
  * @param size - byte or character length minimum. Buffering occurs when a chunk fails to meet this value.
14
- * @param onBuffer - for emitting warnings when buffering occurs.
14
+ * @param logger - for emitting warnings when buffering occurs.
15
15
  * @returns another stream of the same data, but buffers chunks until
16
16
  * the minimum size is met, except for the last chunk.
17
17
  */
@@ -48,6 +48,7 @@ export declare function sizeOf(chunk?: {
48
48
  /**
49
49
  * @internal
50
50
  * @param chunk - from upstream Readable.
51
+ * @param allowBuffer - allow mode 2 (Buffer), otherwise Buffer will return mode 1.
51
52
  * @returns type index of the chunk.
52
53
  */
53
- export declare function modeOf(chunk: BufferUnion): Modes | -1;
54
+ export declare function modeOf(chunk: BufferUnion, allowBuffer?: boolean): Modes | -1;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-stream",
3
- "version": "4.1.2",
3
+ "version": "4.2.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 util-stream",
@@ -28,9 +28,9 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@smithy/fetch-http-handler": "^5.0.1",
32
- "@smithy/node-http-handler": "^4.0.3",
33
- "@smithy/types": "^4.1.0",
31
+ "@smithy/fetch-http-handler": "^5.0.2",
32
+ "@smithy/node-http-handler": "^4.0.4",
33
+ "@smithy/types": "^4.2.0",
34
34
  "@smithy/util-base64": "^4.0.0",
35
35
  "@smithy/util-buffer-from": "^4.0.0",
36
36
  "@smithy/util-hex-encoding": "^4.0.0",
@@ -83,10 +83,10 @@
83
83
  "./dist-cjs/splitStream": "./dist-cjs/splitStream.browser",
84
84
  "./dist-cjs/createBufferedReadable": "./dist-cjs/createBufferedReadableStream"
85
85
  },
86
- "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/util-stream",
86
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/util-stream",
87
87
  "repository": {
88
88
  "type": "git",
89
- "url": "https://github.com/awslabs/smithy-typescript.git",
89
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
90
90
  "directory": "packages/util-stream"
91
91
  },
92
92
  "typedoc": {
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@smithy/util-waiter",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Shared utilities for client waiters for the AWS SDK",
5
5
  "dependencies": {
6
- "@smithy/abort-controller": "^4.0.1",
7
- "@smithy/types": "^4.1.0",
6
+ "@smithy/abort-controller": "^4.0.2",
7
+ "@smithy/types": "^4.2.0",
8
8
  "tslib": "^2.6.2"
9
9
  },
10
10
  "scripts": {
@@ -16,7 +16,7 @@
16
16
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
17
17
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
18
18
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
19
- "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
19
+ "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
20
20
  "test": "yarn g:vitest run",
21
21
  "test:watch": "yarn g:vitest watch"
22
22
  },
@@ -41,10 +41,10 @@
41
41
  "files": [
42
42
  "dist-*/**"
43
43
  ],
44
- "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/util-waiter",
44
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/util-waiter",
45
45
  "repository": {
46
46
  "type": "git",
47
- "url": "https://github.com/awslabs/smithy-typescript.git",
47
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
48
48
  "directory": "packages/util-waiter"
49
49
  },
50
50
  "devDependencies": {