@cdk8s/awscdk-resolver 0.0.199 → 0.0.200

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 (122) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +36 -36
  4. package/node_modules/@aws-sdk/client-sso/package.json +32 -32
  5. package/node_modules/@aws-sdk/client-sso-oidc/package.json +34 -34
  6. package/node_modules/@aws-sdk/client-sts/README.md +8 -0
  7. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +89 -12
  8. package/node_modules/@aws-sdk/client-sts/dist-es/STS.js +2 -0
  9. package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRootCommand.js +23 -0
  10. package/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js +1 -0
  11. package/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js +4 -0
  12. package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +53 -0
  13. package/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +7 -0
  14. package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +3 -2
  15. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts +13 -13
  16. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +8 -8
  17. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +15 -30
  18. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRootCommand.d.ts +129 -0
  19. package/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +2 -2
  20. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +8 -8
  21. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +6 -6
  22. package/node_modules/@aws-sdk/client-sts/dist-types/commands/index.d.ts +1 -0
  23. package/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts +146 -32
  24. package/node_modules/@aws-sdk/client-sts/dist-types/protocols/Aws_query.d.ts +9 -0
  25. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts +17 -0
  26. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +6 -0
  27. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRootCommand.d.ts +47 -0
  28. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/index.d.ts +1 -0
  29. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/models_0.d.ts +12 -0
  30. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
  31. package/node_modules/@aws-sdk/client-sts/package.json +36 -36
  32. package/node_modules/@aws-sdk/core/package.json +14 -14
  33. package/node_modules/@aws-sdk/credential-provider-env/package.json +7 -7
  34. package/node_modules/@aws-sdk/credential-provider-http/package.json +12 -12
  35. package/node_modules/@aws-sdk/credential-provider-ini/package.json +15 -15
  36. package/node_modules/@aws-sdk/credential-provider-node/package.json +14 -14
  37. package/node_modules/@aws-sdk/credential-provider-process/package.json +8 -8
  38. package/node_modules/@aws-sdk/credential-provider-sso/package.json +10 -10
  39. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +8 -8
  40. package/node_modules/@aws-sdk/middleware-host-header/package.json +8 -8
  41. package/node_modules/@aws-sdk/middleware-logger/package.json +7 -7
  42. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +8 -8
  43. package/node_modules/@aws-sdk/middleware-user-agent/package.json +11 -11
  44. package/node_modules/@aws-sdk/region-config-resolver/package.json +7 -7
  45. package/node_modules/@aws-sdk/token-providers/package.json +8 -8
  46. package/node_modules/@aws-sdk/types/package.json +2 -2
  47. package/node_modules/@aws-sdk/util-endpoints/package.json +8 -8
  48. package/node_modules/@aws-sdk/util-locate-window/package.json +3 -3
  49. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +5 -5
  50. package/node_modules/@aws-sdk/util-user-agent-node/package.json +7 -7
  51. package/node_modules/@smithy/abort-controller/package.json +4 -3
  52. package/node_modules/@smithy/config-resolver/package.json +7 -6
  53. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +21 -20
  54. package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +1 -1
  55. package/node_modules/@smithy/core/package.json +10 -9
  56. package/node_modules/@smithy/credential-provider-imds/package.json +7 -7
  57. package/node_modules/@smithy/fetch-http-handler/dist-cjs/create-request.js +1 -0
  58. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +10 -3
  59. package/node_modules/@smithy/fetch-http-handler/dist-es/create-request.js +3 -0
  60. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +3 -2
  61. package/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +1 -1
  62. package/node_modules/@smithy/fetch-http-handler/dist-types/create-request.d.ts +6 -0
  63. package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +6 -0
  64. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/create-request.d.ts +6 -0
  65. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +6 -0
  66. package/node_modules/@smithy/fetch-http-handler/package.json +9 -6
  67. package/node_modules/@smithy/hash-node/package.json +4 -3
  68. package/node_modules/@smithy/invalid-dependency/package.json +4 -3
  69. package/node_modules/@smithy/middleware-content-length/package.json +5 -4
  70. package/node_modules/@smithy/middleware-endpoint/package.json +11 -10
  71. package/node_modules/@smithy/middleware-retry/package.json +12 -10
  72. package/node_modules/@smithy/middleware-serde/package.json +6 -4
  73. package/node_modules/@smithy/middleware-stack/package.json +4 -3
  74. package/node_modules/@smithy/node-config-provider/package.json +6 -5
  75. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +20 -14
  76. package/node_modules/@smithy/node-http-handler/dist-cjs/timing.js +1 -0
  77. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +5 -4
  78. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +1 -1
  79. package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +9 -2
  80. package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +5 -4
  81. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +2 -1
  82. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +2 -1
  83. package/node_modules/@smithy/node-http-handler/dist-es/timing.js +4 -0
  84. package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +4 -3
  85. package/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +8 -0
  86. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +8 -0
  87. package/node_modules/@smithy/node-http-handler/package.json +7 -6
  88. package/node_modules/@smithy/property-provider/package.json +4 -3
  89. package/node_modules/@smithy/protocol-http/package.json +4 -3
  90. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  91. package/node_modules/@smithy/querystring-parser/package.json +4 -3
  92. package/node_modules/@smithy/service-error-classification/package.json +4 -3
  93. package/node_modules/@smithy/shared-ini-file-loader/package.json +4 -3
  94. package/node_modules/@smithy/signature-v4/package.json +6 -5
  95. package/node_modules/@smithy/smithy-client/package.json +9 -8
  96. package/node_modules/@smithy/types/dist-types/http.d.ts +1 -0
  97. package/node_modules/@smithy/types/dist-types/transform/no-undefined.d.ts +3 -2
  98. package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +1 -0
  99. package/node_modules/@smithy/types/dist-types/ts3.4/transform/no-undefined.d.ts +3 -2
  100. package/node_modules/@smithy/types/package.json +1 -1
  101. package/node_modules/@smithy/url-parser/package.json +5 -4
  102. package/node_modules/@smithy/util-defaults-mode-browser/package.json +6 -5
  103. package/node_modules/@smithy/util-defaults-mode-node/package.json +9 -8
  104. package/node_modules/@smithy/util-endpoints/package.json +7 -5
  105. package/node_modules/@smithy/util-middleware/package.json +4 -3
  106. package/node_modules/@smithy/util-retry/dist-cjs/index.js +5 -1
  107. package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +2 -1
  108. package/node_modules/@smithy/util-retry/dist-types/DefaultRateLimiter.d.ts +4 -0
  109. package/node_modules/@smithy/util-retry/dist-types/ts3.4/DefaultRateLimiter.d.ts +4 -0
  110. package/node_modules/@smithy/util-retry/package.json +5 -4
  111. package/node_modules/@smithy/util-stream/dist-cjs/index.js +1 -0
  112. package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +1 -2
  113. package/node_modules/@smithy/util-stream/dist-cjs/splitStream.js +1 -1
  114. package/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js +6 -1
  115. package/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.js +0 -1
  116. package/node_modules/@smithy/util-stream/dist-es/splitStream.js +2 -2
  117. package/node_modules/@smithy/util-stream/dist-es/stream-type-check.js +3 -0
  118. package/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +4 -0
  119. package/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +4 -0
  120. package/node_modules/@smithy/util-stream/package.json +10 -6
  121. package/node_modules/@smithy/util-waiter/package.json +5 -4
  122. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/smithy-client",
3
- "version": "3.4.2",
3
+ "version": "3.4.4",
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",
@@ -12,7 +12,8 @@
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": "api-extractor run --local",
15
- "test": "yarn g:jest --passWithNoTests"
15
+ "test": "yarn g:vitest run",
16
+ "test:watch": "yarn g:vitest watch"
16
17
  },
17
18
  "main": "./dist-cjs/index.js",
18
19
  "module": "./dist-es/index.js",
@@ -23,12 +24,12 @@
23
24
  },
24
25
  "license": "Apache-2.0",
25
26
  "dependencies": {
26
- "@smithy/core": "^2.5.1",
27
- "@smithy/middleware-endpoint": "^3.2.1",
28
- "@smithy/middleware-stack": "^3.0.8",
29
- "@smithy/protocol-http": "^4.1.5",
30
- "@smithy/types": "^3.6.0",
31
- "@smithy/util-stream": "^3.2.1",
27
+ "@smithy/core": "^2.5.3",
28
+ "@smithy/middleware-endpoint": "^3.2.3",
29
+ "@smithy/middleware-stack": "^3.0.10",
30
+ "@smithy/protocol-http": "^4.1.7",
31
+ "@smithy/types": "^3.7.1",
32
+ "@smithy/util-stream": "^3.3.1",
32
33
  "tslib": "^2.6.2"
33
34
  },
34
35
  "engines": {
@@ -29,6 +29,7 @@ export interface HttpRequest extends HttpMessage, URI {
29
29
  */
30
30
  export interface HttpResponse extends HttpMessage {
31
31
  statusCode: number;
32
+ reason?: string;
32
33
  }
33
34
  /**
34
35
  * @public
@@ -1,5 +1,6 @@
1
1
  import type { InvokeMethod, InvokeMethodOptionalArgs } from "../client";
2
2
  import type { GetOutputType } from "../command";
3
+ import type { DocumentType } from "../shapes";
3
4
  /**
4
5
  * @public
5
6
  *
@@ -29,7 +30,7 @@ export type UncheckedClient<Client extends object> = UncheckedClientOutputTypes<
29
30
  *
30
31
  * Excludes undefined recursively.
31
32
  */
32
- export type NoUndefined<T> = T extends Function ? T : [T] extends [object] ? {
33
+ export type NoUndefined<T> = T extends Function ? T : T extends DocumentType ? T : [T] extends [object] ? {
33
34
  [key in keyof T]: NoUndefined<T[key]>;
34
35
  } : Exclude<T, undefined>;
35
36
  /**
@@ -37,7 +38,7 @@ export type NoUndefined<T> = T extends Function ? T : [T] extends [object] ? {
37
38
  *
38
39
  * Excludes undefined and optional recursively.
39
40
  */
40
- export type RecursiveRequired<T> = T extends Function ? T : [T] extends [object] ? {
41
+ export type RecursiveRequired<T> = T extends Function ? T : T extends DocumentType ? T : [T] extends [object] ? {
41
42
  [key in keyof T]-?: RecursiveRequired<T[key]>;
42
43
  } : Exclude<T, undefined>;
43
44
  /**
@@ -29,6 +29,7 @@ export interface HttpRequest extends HttpMessage, URI {
29
29
  */
30
30
  export interface HttpResponse extends HttpMessage {
31
31
  statusCode: number;
32
+ reason?: string;
32
33
  }
33
34
  /**
34
35
  * @public
@@ -1,5 +1,6 @@
1
1
  import { InvokeMethod, InvokeMethodOptionalArgs } from "../client";
2
2
  import { GetOutputType } from "../command";
3
+ import { DocumentType } from "../shapes";
3
4
  /**
4
5
  * @public
5
6
  *
@@ -29,7 +30,7 @@ export type UncheckedClient<Client extends object> = UncheckedClientOutputTypes<
29
30
  *
30
31
  * Excludes undefined recursively.
31
32
  */
32
- export type NoUndefined<T> = T extends Function ? T : [
33
+ export type NoUndefined<T> = T extends Function ? T : T extends DocumentType ? T : [
33
34
  T
34
35
  ] extends [
35
36
  object
@@ -41,7 +42,7 @@ export type NoUndefined<T> = T extends Function ? T : [
41
42
  *
42
43
  * Excludes undefined and optional recursively.
43
44
  */
44
- export type RecursiveRequired<T> = T extends Function ? T : [
45
+ export type RecursiveRequired<T> = T extends Function ? T : T extends DocumentType ? T : [
45
46
  T
46
47
  ] extends [
47
48
  object
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/types",
3
- "version": "3.6.0",
3
+ "version": "3.7.1",
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",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/url-parser",
3
- "version": "3.0.8",
3
+ "version": "3.0.10",
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",
@@ -11,7 +11,8 @@
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
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
- "test": "yarn g:jest"
14
+ "test": "yarn g:vitest run",
15
+ "test:watch": "yarn g:vitest watch"
15
16
  },
16
17
  "main": "./dist-cjs/index.js",
17
18
  "module": "./dist-es/index.js",
@@ -22,8 +23,8 @@
22
23
  },
23
24
  "license": "Apache-2.0",
24
25
  "dependencies": {
25
- "@smithy/querystring-parser": "^3.0.8",
26
- "@smithy/types": "^3.6.0",
26
+ "@smithy/querystring-parser": "^3.0.10",
27
+ "@smithy/types": "^3.7.1",
27
28
  "tslib": "^2.6.2"
28
29
  },
29
30
  "typesVersions": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
3
- "version": "3.0.25",
3
+ "version": "3.0.27",
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",
@@ -11,7 +11,8 @@
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
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
- "test": "yarn g:jest"
14
+ "test": "yarn g:vitest run",
15
+ "test:watch": "yarn g:vitest watch"
15
16
  },
16
17
  "main": "./dist-cjs/index.js",
17
18
  "module": "./dist-es/index.js",
@@ -22,9 +23,9 @@
22
23
  },
23
24
  "license": "Apache-2.0",
24
25
  "dependencies": {
25
- "@smithy/property-provider": "^3.1.8",
26
- "@smithy/smithy-client": "^3.4.2",
27
- "@smithy/types": "^3.6.0",
26
+ "@smithy/property-provider": "^3.1.10",
27
+ "@smithy/smithy-client": "^3.4.4",
28
+ "@smithy/types": "^3.7.1",
28
29
  "bowser": "^2.11.0",
29
30
  "tslib": "^2.6.2"
30
31
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-node",
3
- "version": "3.0.25",
3
+ "version": "3.0.27",
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",
@@ -11,7 +11,8 @@
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
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
- "test": "yarn g:jest"
14
+ "test": "yarn g:vitest run",
15
+ "test:watch": "yarn g:vitest watch"
15
16
  },
16
17
  "main": "./dist-cjs/index.js",
17
18
  "module": "./dist-es/index.js",
@@ -22,12 +23,12 @@
22
23
  },
23
24
  "license": "Apache-2.0",
24
25
  "dependencies": {
25
- "@smithy/config-resolver": "^3.0.10",
26
- "@smithy/credential-provider-imds": "^3.2.5",
27
- "@smithy/node-config-provider": "^3.1.9",
28
- "@smithy/property-provider": "^3.1.8",
29
- "@smithy/smithy-client": "^3.4.2",
30
- "@smithy/types": "^3.6.0",
26
+ "@smithy/config-resolver": "^3.0.12",
27
+ "@smithy/credential-provider-imds": "^3.2.7",
28
+ "@smithy/node-config-provider": "^3.1.11",
29
+ "@smithy/property-provider": "^3.1.10",
30
+ "@smithy/smithy-client": "^3.4.4",
31
+ "@smithy/types": "^3.7.1",
31
32
  "tslib": "^2.6.2"
32
33
  },
33
34
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-endpoints",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "description": "Utilities to help with endpoint resolution.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -14,8 +14,10 @@
14
14
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
15
15
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
16
16
  "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
17
- "test": "yarn g:jest",
18
- "test:integration": "yarn g:jest --config jest.config.integ.js"
17
+ "test": "yarn g:vitest run",
18
+ "test:integration": "yarn g:vitest run -c vitest.config.integ.ts",
19
+ "test:watch": "yarn g:vitest watch",
20
+ "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts"
19
21
  },
20
22
  "keywords": [
21
23
  "endpoint"
@@ -26,8 +28,8 @@
26
28
  },
27
29
  "license": "Apache-2.0",
28
30
  "dependencies": {
29
- "@smithy/node-config-provider": "^3.1.9",
30
- "@smithy/types": "^3.6.0",
31
+ "@smithy/node-config-provider": "^3.1.11",
32
+ "@smithy/types": "^3.7.1",
31
33
  "tslib": "^2.6.2"
32
34
  },
33
35
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-middleware",
3
- "version": "3.0.8",
3
+ "version": "3.0.10",
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",
@@ -14,7 +14,8 @@
14
14
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
15
15
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
16
16
  "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
17
- "test": "yarn g:jest"
17
+ "test": "yarn g:vitest run",
18
+ "test:watch": "yarn g:vitest watch"
18
19
  },
19
20
  "keywords": [
20
21
  "aws",
@@ -26,7 +27,7 @@
26
27
  },
27
28
  "license": "Apache-2.0",
28
29
  "dependencies": {
29
- "@smithy/types": "^3.6.0",
30
+ "@smithy/types": "^3.7.1",
30
31
  "tslib": "^2.6.2"
31
32
  },
32
33
  "devDependencies": {
@@ -84,7 +84,7 @@ var _DefaultRateLimiter = class _DefaultRateLimiter {
84
84
  this.refillTokenBucket();
85
85
  if (amount > this.currentCapacity) {
86
86
  const delay = (amount - this.currentCapacity) / this.fillRate * 1e3;
87
- await new Promise((resolve) => setTimeout(resolve, delay));
87
+ await new Promise((resolve) => _DefaultRateLimiter.setTimeoutFn(resolve, delay));
88
88
  }
89
89
  this.currentCapacity = this.currentCapacity - amount;
90
90
  }
@@ -151,6 +151,10 @@ var _DefaultRateLimiter = class _DefaultRateLimiter {
151
151
  }
152
152
  };
153
153
  __name(_DefaultRateLimiter, "DefaultRateLimiter");
154
+ /**
155
+ * Only used in testing.
156
+ */
157
+ _DefaultRateLimiter.setTimeoutFn = setTimeout;
154
158
  var DefaultRateLimiter = _DefaultRateLimiter;
155
159
 
156
160
  // src/constants.ts
@@ -32,7 +32,7 @@ export class DefaultRateLimiter {
32
32
  this.refillTokenBucket();
33
33
  if (amount > this.currentCapacity) {
34
34
  const delay = ((amount - this.currentCapacity) / this.fillRate) * 1000;
35
- await new Promise((resolve) => setTimeout(resolve, delay));
35
+ await new Promise((resolve) => DefaultRateLimiter.setTimeoutFn(resolve, delay));
36
36
  }
37
37
  this.currentCapacity = this.currentCapacity - amount;
38
38
  }
@@ -97,3 +97,4 @@ export class DefaultRateLimiter {
97
97
  return parseFloat(num.toFixed(8));
98
98
  }
99
99
  }
100
+ DefaultRateLimiter.setTimeoutFn = setTimeout;
@@ -13,6 +13,10 @@ export interface DefaultRateLimiterOptions {
13
13
  * @public
14
14
  */
15
15
  export declare class DefaultRateLimiter implements RateLimiter {
16
+ /**
17
+ * Only used in testing.
18
+ */
19
+ private static setTimeoutFn;
16
20
  private beta;
17
21
  private minCapacity;
18
22
  private minFillRate;
@@ -13,6 +13,10 @@ export interface DefaultRateLimiterOptions {
13
13
  * @public
14
14
  */
15
15
  export declare class DefaultRateLimiter implements RateLimiter {
16
+ /**
17
+ * Only used in testing.
18
+ */
19
+ private static setTimeoutFn;
16
20
  private beta;
17
21
  private minCapacity;
18
22
  private minFillRate;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-retry",
3
- "version": "3.0.8",
3
+ "version": "3.0.10",
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",
@@ -15,7 +15,8 @@
15
15
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
16
16
  "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
17
17
  "extract:docs": "api-extractor run --local",
18
- "test": "yarn g:jest"
18
+ "test": "yarn g:vitest run",
19
+ "test:watch": "yarn g:vitest watch"
19
20
  },
20
21
  "keywords": [
21
22
  "aws",
@@ -27,8 +28,8 @@
27
28
  },
28
29
  "license": "Apache-2.0",
29
30
  "dependencies": {
30
- "@smithy/service-error-classification": "^3.0.8",
31
- "@smithy/types": "^3.6.0",
31
+ "@smithy/service-error-classification": "^3.0.10",
32
+ "@smithy/types": "^3.7.1",
32
33
  "tslib": "^2.6.2"
33
34
  },
34
35
  "devDependencies": {
@@ -93,6 +93,7 @@ __reExport(src_exports, require("./checksum/ChecksumStream"), module.exports);
93
93
  splitStream,
94
94
  headStream,
95
95
  isReadableStream,
96
+ isBlob,
96
97
  createChecksumStream,
97
98
  ChecksumStream
98
99
  });
@@ -4,7 +4,6 @@ exports.sdkStreamMixin = void 0;
4
4
  const node_http_handler_1 = require("@smithy/node-http-handler");
5
5
  const util_buffer_from_1 = require("@smithy/util-buffer-from");
6
6
  const stream_1 = require("stream");
7
- const util_1 = require("util");
8
7
  const sdk_stream_mixin_browser_1 = require("./sdk-stream-mixin.browser");
9
8
  const ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed.";
10
9
  const sdkStreamMixin = (stream) => {
@@ -34,7 +33,7 @@ const sdkStreamMixin = (stream) => {
34
33
  return (0, util_buffer_from_1.fromArrayBuffer)(buf.buffer, buf.byteOffset, buf.byteLength).toString(encoding);
35
34
  }
36
35
  else {
37
- const decoder = new util_1.TextDecoder(encoding);
36
+ const decoder = new TextDecoder(encoding);
38
37
  return decoder.decode(buf);
39
38
  }
40
39
  },
@@ -5,7 +5,7 @@ const stream_1 = require("stream");
5
5
  const splitStream_browser_1 = require("./splitStream.browser");
6
6
  const stream_type_check_1 = require("./stream-type-check");
7
7
  async function splitStream(stream) {
8
- if ((0, stream_type_check_1.isReadableStream)(stream)) {
8
+ if ((0, stream_type_check_1.isReadableStream)(stream) || (0, stream_type_check_1.isBlob)(stream)) {
9
9
  return (0, splitStream_browser_1.splitStream)(stream);
10
10
  }
11
11
  const stream1 = new stream_1.PassThrough();
@@ -1,9 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isReadableStream = void 0;
3
+ exports.isBlob = exports.isReadableStream = void 0;
4
4
  const isReadableStream = (stream) => {
5
5
  var _a;
6
6
  return typeof ReadableStream === "function" &&
7
7
  (((_a = stream === null || stream === void 0 ? void 0 : stream.constructor) === null || _a === void 0 ? void 0 : _a.name) === ReadableStream.name || stream instanceof ReadableStream);
8
8
  };
9
9
  exports.isReadableStream = isReadableStream;
10
+ const isBlob = (blob) => {
11
+ var _a;
12
+ return typeof Blob === "function" && (((_a = blob === null || blob === void 0 ? void 0 : blob.constructor) === null || _a === void 0 ? void 0 : _a.name) === Blob.name || blob instanceof Blob);
13
+ };
14
+ exports.isBlob = isBlob;
@@ -1,7 +1,6 @@
1
1
  import { streamCollector } from "@smithy/node-http-handler";
2
2
  import { fromArrayBuffer } from "@smithy/util-buffer-from";
3
3
  import { Readable } from "stream";
4
- import { TextDecoder } from "util";
5
4
  import { sdkStreamMixin as sdkStreamMixinReadableStream } from "./sdk-stream-mixin.browser";
6
5
  const ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed.";
7
6
  export const sdkStreamMixin = (stream) => {
@@ -1,8 +1,8 @@
1
1
  import { PassThrough } from "stream";
2
2
  import { splitStream as splitWebStream } from "./splitStream.browser";
3
- import { isReadableStream } from "./stream-type-check";
3
+ import { isBlob, isReadableStream } from "./stream-type-check";
4
4
  export async function splitStream(stream) {
5
- if (isReadableStream(stream)) {
5
+ if (isReadableStream(stream) || isBlob(stream)) {
6
6
  return splitWebStream(stream);
7
7
  }
8
8
  const stream1 = new PassThrough();
@@ -1,2 +1,5 @@
1
1
  export const isReadableStream = (stream) => typeof ReadableStream === "function" &&
2
2
  (stream?.constructor?.name === ReadableStream.name || stream instanceof ReadableStream);
3
+ export const isBlob = (blob) => {
4
+ return typeof Blob === "function" && (blob?.constructor?.name === Blob.name || blob instanceof Blob);
5
+ };
@@ -9,4 +9,8 @@ type ReadableStreamType = ReadableStream;
9
9
  * @internal
10
10
  */
11
11
  export declare const isReadableStream: (stream: unknown) => stream is ReadableStreamType;
12
+ /**
13
+ * @internal
14
+ */
15
+ export declare const isBlob: (blob: unknown) => blob is Blob;
12
16
  export {};
@@ -9,4 +9,8 @@ type ReadableStreamType = ReadableStream;
9
9
  * @internal
10
10
  */
11
11
  export declare const isReadableStream: (stream: unknown) => stream is ReadableStreamType;
12
+ /**
13
+ * @internal
14
+ */
15
+ export declare const isBlob: (blob: unknown) => blob is Blob;
12
16
  export {};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-stream",
3
- "version": "3.2.1",
3
+ "version": "3.3.1",
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",
@@ -12,8 +12,12 @@
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": "api-extractor run --local",
15
- "test": "yarn g:jest && yarn g:karma start karma.conf.js",
16
- "test:integration": "yarn g:jest --config jest.config.integ.js"
15
+ "test": "yarn g:vitest run && yarn test:browser",
16
+ "test:integration": "yarn g:vitest run -c vitest.config.integ.ts",
17
+ "test:watch": "yarn g:vitest watch",
18
+ "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts",
19
+ "test:browser": "yarn g:vitest run -c vitest.config.browser.ts",
20
+ "test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.ts"
17
21
  },
18
22
  "main": "./dist-cjs/index.js",
19
23
  "module": "./dist-es/index.js",
@@ -24,9 +28,9 @@
24
28
  },
25
29
  "license": "Apache-2.0",
26
30
  "dependencies": {
27
- "@smithy/fetch-http-handler": "^4.0.0",
28
- "@smithy/node-http-handler": "^3.2.5",
29
- "@smithy/types": "^3.6.0",
31
+ "@smithy/fetch-http-handler": "^4.1.1",
32
+ "@smithy/node-http-handler": "^3.3.1",
33
+ "@smithy/types": "^3.7.1",
30
34
  "@smithy/util-base64": "^3.0.0",
31
35
  "@smithy/util-buffer-from": "^3.0.0",
32
36
  "@smithy/util-hex-encoding": "^3.0.0",
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@smithy/util-waiter",
3
- "version": "3.1.7",
3
+ "version": "3.1.9",
4
4
  "description": "Shared utilities for client waiters for the AWS SDK",
5
5
  "dependencies": {
6
- "@smithy/abort-controller": "^3.1.6",
7
- "@smithy/types": "^3.6.0",
6
+ "@smithy/abort-controller": "^3.1.8",
7
+ "@smithy/types": "^3.7.1",
8
8
  "tslib": "^2.6.2"
9
9
  },
10
10
  "scripts": {
@@ -17,7 +17,8 @@
17
17
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
18
18
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
19
19
  "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
20
- "test": "yarn g:jest"
20
+ "test": "yarn g:vitest run",
21
+ "test:watch": "yarn g:vitest watch"
21
22
  },
22
23
  "author": {
23
24
  "name": "AWS SDK for JavaScript Team",
package/package.json CHANGED
@@ -77,7 +77,7 @@
77
77
  "constructs": "^10.3.0"
78
78
  },
79
79
  "dependencies": {
80
- "@aws-sdk/client-cloudformation": "^3.691.0"
80
+ "@aws-sdk/client-cloudformation": "^3.693.0"
81
81
  },
82
82
  "bundledDependencies": [
83
83
  "@aws-sdk/client-cloudformation"
@@ -93,7 +93,7 @@
93
93
  "publishConfig": {
94
94
  "access": "public"
95
95
  },
96
- "version": "0.0.199",
96
+ "version": "0.0.200",
97
97
  "jest": {
98
98
  "coverageProvider": "v8",
99
99
  "testMatch": [