@cdklabs/cdk-ecs-codedeploy 0.0.216 → 0.0.218

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 (98) 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/package.json +14 -16
  8. package/node_modules/@aws-sdk/client-sso/package.json +11 -13
  9. package/node_modules/@aws-sdk/client-sts/package.json +14 -16
  10. package/node_modules/@aws-sdk/core/CHANGELOG.md +8 -0
  11. package/node_modules/@aws-sdk/core/package.json +1 -5
  12. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -6
  13. package/node_modules/@aws-sdk/credential-provider-ini/package.json +6 -10
  14. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -11
  15. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -6
  16. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -8
  17. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -6
  18. package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -6
  19. package/node_modules/@aws-sdk/middleware-logger/package.json +2 -6
  20. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -6
  21. package/node_modules/@aws-sdk/middleware-sdk-sts/package.json +3 -7
  22. package/node_modules/@aws-sdk/middleware-signing/package.json +2 -6
  23. package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -7
  24. package/node_modules/@aws-sdk/region-config-resolver/package.json +1 -5
  25. package/node_modules/@aws-sdk/token-providers/package.json +10 -14
  26. package/node_modules/@aws-sdk/types/package.json +1 -5
  27. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -6
  28. package/node_modules/@aws-sdk/util-locate-window/package.json +1 -5
  29. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -6
  30. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -6
  31. package/node_modules/@smithy/abort-controller/package.json +3 -3
  32. package/node_modules/@smithy/config-resolver/package.json +5 -5
  33. package/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  34. package/node_modules/@smithy/eventstream-codec/package.json +3 -3
  35. package/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js +6 -0
  36. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +6 -0
  37. package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +8 -22
  38. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +8 -22
  39. package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  40. package/node_modules/@smithy/hash-node/package.json +3 -3
  41. package/node_modules/@smithy/invalid-dependency/package.json +3 -3
  42. package/node_modules/@smithy/middleware-content-length/package.json +5 -5
  43. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  44. package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.browser.js +5 -0
  45. package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js +7 -0
  46. package/node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js +10 -2
  47. package/node_modules/@smithy/middleware-retry/dist-es/isStreamingPayload/isStreamingPayload.browser.js +1 -0
  48. package/node_modules/@smithy/middleware-retry/dist-es/isStreamingPayload/isStreamingPayload.js +3 -0
  49. package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +9 -2
  50. package/node_modules/@smithy/middleware-retry/dist-types/isStreamingPayload/isStreamingPayload.browser.d.ts +5 -0
  51. package/node_modules/@smithy/middleware-retry/dist-types/isStreamingPayload/isStreamingPayload.d.ts +5 -0
  52. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/isStreamingPayload/isStreamingPayload.browser.d.ts +5 -0
  53. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/isStreamingPayload/isStreamingPayload.d.ts +5 -0
  54. package/node_modules/@smithy/middleware-retry/package.json +17 -9
  55. package/node_modules/@smithy/middleware-serde/package.json +4 -4
  56. package/node_modules/@smithy/middleware-stack/package.json +3 -3
  57. package/node_modules/@smithy/node-config-provider/package.json +5 -5
  58. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js +6 -0
  59. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js +6 -0
  60. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +6 -0
  61. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +6 -0
  62. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +7 -30
  63. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +5 -0
  64. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +7 -29
  65. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +5 -0
  66. package/node_modules/@smithy/node-http-handler/package.json +6 -6
  67. package/node_modules/@smithy/property-provider/package.json +3 -3
  68. package/node_modules/@smithy/protocol-http/package.json +3 -3
  69. package/node_modules/@smithy/querystring-builder/package.json +3 -3
  70. package/node_modules/@smithy/querystring-parser/package.json +3 -3
  71. package/node_modules/@smithy/service-error-classification/package.json +3 -3
  72. package/node_modules/@smithy/shared-ini-file-loader/package.json +3 -3
  73. package/node_modules/@smithy/signature-v4/README.md +7 -0
  74. package/node_modules/@smithy/signature-v4/package.json +6 -6
  75. package/node_modules/@smithy/smithy-client/dist-cjs/serde-json.js +1 -1
  76. package/node_modules/@smithy/smithy-client/dist-es/serde-json.js +1 -1
  77. package/node_modules/@smithy/smithy-client/package.json +5 -5
  78. package/node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js +2 -0
  79. package/node_modules/@smithy/types/dist-cjs/index.js +1 -0
  80. package/node_modules/@smithy/types/dist-es/http/httpHandlerInitialization.js +1 -0
  81. package/node_modules/@smithy/types/dist-es/index.js +1 -0
  82. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +65 -0
  83. package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
  84. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +64 -0
  85. package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +1 -0
  86. package/node_modules/@smithy/types/package.json +2 -2
  87. package/node_modules/@smithy/url-parser/package.json +4 -4
  88. package/node_modules/@smithy/util-body-length-browser/dist-cjs/calculateBodyLength.js +4 -0
  89. package/node_modules/@smithy/util-body-length-browser/dist-es/calculateBodyLength.js +4 -0
  90. package/node_modules/@smithy/util-body-length-browser/package.json +7 -9
  91. package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -5
  92. package/node_modules/@smithy/util-defaults-mode-node/package.json +8 -8
  93. package/node_modules/@smithy/util-endpoints/package.json +4 -4
  94. package/node_modules/@smithy/util-middleware/package.json +3 -3
  95. package/node_modules/@smithy/util-retry/package.json +4 -4
  96. package/node_modules/@smithy/util-stream/package.json +6 -6
  97. package/node_modules/@smithy/util-waiter/package.json +4 -4
  98. package/package.json +6 -6
@@ -1,35 +1,7 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http";
2
+ import type { NodeHttpHandlerOptions } from "@smithy/types";
4
3
  import { HttpHandlerOptions, Provider } from "@smithy/types";
5
- import { Agent as hAgent } from "http";
6
- import { Agent as hsAgent } from "https";
7
- /**
8
- * Represents the http options that can be passed to a node http client.
9
- */
10
- export interface NodeHttpHandlerOptions {
11
- /**
12
- * The maximum time in milliseconds that the connection phase of a request
13
- * may take before the connection attempt is abandoned.
14
- *
15
- * Defaults to 0, which disables the timeout.
16
- */
17
- connectionTimeout?: number;
18
- /**
19
- * The number of milliseconds a request can take before automatically being terminated.
20
- * Defaults to 0, which disables the timeout.
21
- */
22
- requestTimeout?: number;
23
- /**
24
- * @deprecated Use {@link requestTimeout}
25
- *
26
- * The maximum time in milliseconds that a socket may remain idle before it
27
- * is closed.
28
- */
29
- socketTimeout?: number;
30
- httpAgent?: hAgent;
31
- httpsAgent?: hsAgent;
32
- }
4
+ export { NodeHttpHandlerOptions };
33
5
  export declare const DEFAULT_REQUEST_TIMEOUT = 0;
34
6
  export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptions> {
35
7
  private config?;
@@ -37,6 +9,11 @@ export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptio
37
9
  readonly metadata: {
38
10
  handlerProtocol: string;
39
11
  };
12
+ /**
13
+ * @returns the input if it is an HttpHandler of any class,
14
+ * or instantiates a new instance of this handler.
15
+ */
16
+ static create(instanceOrOptions?: HttpHandler<any> | NodeHttpHandlerOptions | Provider<NodeHttpHandlerOptions | void>): NodeHttpHandler | HttpHandler<any>;
40
17
  constructor(options?: NodeHttpHandlerOptions | Provider<NodeHttpHandlerOptions | void>);
41
18
  private resolveDefaultConfig;
42
19
  destroy(): void;
@@ -37,6 +37,11 @@ export declare class NodeHttp2Handler implements HttpHandler<NodeHttp2HandlerOpt
37
37
  handlerProtocol: string;
38
38
  };
39
39
  private readonly connectionManager;
40
+ /**
41
+ * @returns the input if it is an HttpHandler of any class,
42
+ * or instantiates a new instance of this handler.
43
+ */
44
+ static create(instanceOrOptions?: HttpHandler<any> | NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>): HttpHandler<any> | NodeHttp2Handler;
40
45
  constructor(options?: NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>);
41
46
  destroy(): void;
42
47
  handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{
@@ -1,34 +1,7 @@
1
- /// <reference types="node" />
2
1
  import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http";
2
+ import { NodeHttpHandlerOptions } from "@smithy/types";
3
3
  import { HttpHandlerOptions, Provider } from "@smithy/types";
4
- import { Agent as hAgent } from "http";
5
- import { Agent as hsAgent } from "https";
6
- /**
7
- * Represents the http options that can be passed to a node http client.
8
- */
9
- export interface NodeHttpHandlerOptions {
10
- /**
11
- * The maximum time in milliseconds that the connection phase of a request
12
- * may take before the connection attempt is abandoned.
13
- *
14
- * Defaults to 0, which disables the timeout.
15
- */
16
- connectionTimeout?: number;
17
- /**
18
- * The number of milliseconds a request can take before automatically being terminated.
19
- * Defaults to 0, which disables the timeout.
20
- */
21
- requestTimeout?: number;
22
- /**
23
- * @deprecated Use {@link requestTimeout}
24
- *
25
- * The maximum time in milliseconds that a socket may remain idle before it
26
- * is closed.
27
- */
28
- socketTimeout?: number;
29
- httpAgent?: hAgent;
30
- httpsAgent?: hsAgent;
31
- }
4
+ export { NodeHttpHandlerOptions };
32
5
  export declare const DEFAULT_REQUEST_TIMEOUT = 0;
33
6
  export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptions> {
34
7
  private config?;
@@ -36,6 +9,11 @@ export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptio
36
9
  readonly metadata: {
37
10
  handlerProtocol: string;
38
11
  };
12
+ /**
13
+ * @returns the input if it is an HttpHandler of any class,
14
+ * or instantiates a new instance of this handler.
15
+ */
16
+ static create(instanceOrOptions?: HttpHandler<any> | NodeHttpHandlerOptions | Provider<NodeHttpHandlerOptions | void>): NodeHttpHandler | HttpHandler<any>;
39
17
  constructor(options?: NodeHttpHandlerOptions | Provider<NodeHttpHandlerOptions | void>);
40
18
  private resolveDefaultConfig;
41
19
  destroy(): void;
@@ -37,6 +37,11 @@ export declare class NodeHttp2Handler implements HttpHandler<NodeHttp2HandlerOpt
37
37
  handlerProtocol: string;
38
38
  };
39
39
  private readonly connectionManager;
40
+ /**
41
+ * @returns the input if it is an HttpHandler of any class,
42
+ * or instantiates a new instance of this handler.
43
+ */
44
+ static create(instanceOrOptions?: HttpHandler<any> | NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>): HttpHandler<any> | NodeHttp2Handler;
40
45
  constructor(options?: NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>);
41
46
  destroy(): void;
42
47
  handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "2.1.10",
3
+ "version": "2.2.1",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -9,7 +9,7 @@
9
9
  "build:types": "yarn g:tsc -p tsconfig.types.json",
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
11
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
12
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
13
13
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
14
14
  "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
15
15
  "extract:docs": "api-extractor run --local",
@@ -25,10 +25,10 @@
25
25
  "module": "./dist-es/index.js",
26
26
  "types": "./dist-types/index.d.ts",
27
27
  "dependencies": {
28
- "@smithy/abort-controller": "^2.0.14",
29
- "@smithy/protocol-http": "^3.0.10",
30
- "@smithy/querystring-builder": "^2.0.14",
31
- "@smithy/types": "^2.6.0",
28
+ "@smithy/abort-controller": "^2.0.15",
29
+ "@smithy/protocol-http": "^3.0.11",
30
+ "@smithy/querystring-builder": "^2.0.15",
31
+ "@smithy/types": "^2.7.0",
32
32
  "tslib": "^2.5.0"
33
33
  },
34
34
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/property-provider",
3
- "version": "2.0.15",
3
+ "version": "2.0.16",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -8,7 +8,7 @@
8
8
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
9
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
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
14
  "test": "yarn g:jest"
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@smithy/types": "^2.6.0",
25
+ "@smithy/types": "^2.7.0",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/protocol-http",
3
- "version": "3.0.10",
3
+ "version": "3.0.11",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -8,7 +8,7 @@
8
8
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
9
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
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
14
  "test": "yarn g:jest"
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/types": "^2.6.0",
26
+ "@smithy/types": "^2.7.0",
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/querystring-builder",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -8,7 +8,7 @@
8
8
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
9
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
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
14
  "test": "exit 0"
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@smithy/types": "^2.6.0",
25
+ "@smithy/types": "^2.7.0",
26
26
  "@smithy/util-uri-escape": "^2.0.0",
27
27
  "tslib": "^2.5.0"
28
28
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/querystring-parser",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -8,7 +8,7 @@
8
8
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
9
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
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
14
  "test": "yarn g:jest"
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@smithy/types": "^2.6.0",
25
+ "@smithy/types": "^2.7.0",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/service-error-classification",
3
- "version": "2.0.7",
3
+ "version": "2.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": "yarn g:tsc -p tsconfig.cjs.json",
@@ -8,7 +8,7 @@
8
8
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
9
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
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
14
  "test": "yarn g:jest"
@@ -54,6 +54,6 @@
54
54
  "directory": ".release/package"
55
55
  },
56
56
  "dependencies": {
57
- "@smithy/types": "^2.6.0"
57
+ "@smithy/types": "^2.7.0"
58
58
  }
59
59
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@smithy/shared-ini-file-loader",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "dependencies": {
5
- "@smithy/types": "^2.6.0",
5
+ "@smithy/types": "^2.7.0",
6
6
  "tslib": "^2.5.0"
7
7
  },
8
8
  "devDependencies": {
@@ -20,7 +20,7 @@
20
20
  "build:types": "yarn g:tsc -p tsconfig.types.json",
21
21
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
22
22
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
23
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
23
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
24
24
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
25
25
  "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
26
26
  "extract:docs": "api-extractor run --local",
@@ -2,3 +2,10 @@
2
2
 
3
3
  [![NPM version](https://img.shields.io/npm/v/@smithy/signature-v4/latest.svg)](https://www.npmjs.com/package/@smithy/signature-v4)
4
4
  [![NPM downloads](https://img.shields.io/npm/dm/@smithy/signature-v4.svg)](https://www.npmjs.com/package/@smithy/signature-v4)
5
+
6
+ This package contains an implementation of the (AWS Signature Version 4)[https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html]
7
+ authentication scheme.
8
+
9
+ It is internal to Smithy-TypeScript generated clients, and not generally intended for standalone usage outside this context.
10
+
11
+ For custom usage, inspect the interface of the SignatureV4 class.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/signature-v4",
3
- "version": "2.0.16",
3
+ "version": "2.0.17",
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",
@@ -12,7 +12,7 @@
12
12
  "build:types": "yarn g:tsc -p tsconfig.types.json",
13
13
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
14
14
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
15
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
15
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
16
16
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
17
17
  "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
18
18
  "extract:docs": "api-extractor run --local",
@@ -24,18 +24,18 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@smithy/eventstream-codec": "^2.0.14",
27
+ "@smithy/eventstream-codec": "^2.0.15",
28
28
  "@smithy/is-array-buffer": "^2.0.0",
29
- "@smithy/types": "^2.6.0",
29
+ "@smithy/types": "^2.7.0",
30
30
  "@smithy/util-hex-encoding": "^2.0.0",
31
- "@smithy/util-middleware": "^2.0.7",
31
+ "@smithy/util-middleware": "^2.0.8",
32
32
  "@smithy/util-uri-escape": "^2.0.0",
33
33
  "@smithy/util-utf8": "^2.0.2",
34
34
  "tslib": "^2.5.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@aws-crypto/sha256-js": "3.0.0",
38
- "@smithy/protocol-http": "^3.0.10",
38
+ "@smithy/protocol-http": "^3.0.11",
39
39
  "@tsconfig/recommended": "1.0.1",
40
40
  "concurrently": "7.0.0",
41
41
  "downlevel-dts": "0.10.1",
@@ -6,7 +6,7 @@ const _json = (obj) => {
6
6
  return {};
7
7
  }
8
8
  if (Array.isArray(obj)) {
9
- return obj.filter((_) => _ != null);
9
+ return obj.filter((_) => _ != null).map(exports._json);
10
10
  }
11
11
  if (typeof obj === "object") {
12
12
  const target = {};
@@ -3,7 +3,7 @@ export const _json = (obj) => {
3
3
  return {};
4
4
  }
5
5
  if (Array.isArray(obj)) {
6
- return obj.filter((_) => _ != null);
6
+ return obj.filter((_) => _ != null).map(_json);
7
7
  }
8
8
  if (typeof obj === "object") {
9
9
  const target = {};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/smithy-client",
3
- "version": "2.1.16",
3
+ "version": "2.1.18",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -8,7 +8,7 @@
8
8
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
9
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
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
14
  "extract:docs": "api-extractor run --local",
@@ -23,9 +23,9 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/middleware-stack": "^2.0.8",
27
- "@smithy/types": "^2.6.0",
28
- "@smithy/util-stream": "^2.0.21",
26
+ "@smithy/middleware-stack": "^2.0.9",
27
+ "@smithy/types": "^2.7.0",
28
+ "@smithy/util-stream": "^2.0.23",
29
29
  "tslib": "^2.5.0"
30
30
  },
31
31
  "engines": {
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,6 +15,7 @@ tslib_1.__exportStar(require("./endpoints"), exports);
15
15
  tslib_1.__exportStar(require("./eventStream"), exports);
16
16
  tslib_1.__exportStar(require("./extensions"), exports);
17
17
  tslib_1.__exportStar(require("./http"), exports);
18
+ tslib_1.__exportStar(require("./http/httpHandlerInitialization"), exports);
18
19
  tslib_1.__exportStar(require("./identity"), exports);
19
20
  tslib_1.__exportStar(require("./logger"), exports);
20
21
  tslib_1.__exportStar(require("./middleware"), exports);
@@ -12,6 +12,7 @@ export * from "./endpoints";
12
12
  export * from "./eventStream";
13
13
  export * from "./extensions";
14
14
  export * from "./http";
15
+ export * from "./http/httpHandlerInitialization";
15
16
  export * from "./identity";
16
17
  export * from "./logger";
17
18
  export * from "./middleware";
@@ -0,0 +1,65 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ import type { Agent as hAgent } from "http";
4
+ import type { Agent as hsAgent } from "https";
5
+ /**
6
+ *
7
+ * This type represents an alternate client constructor option for the entry
8
+ * "requestHandler". Instead of providing an instance of a requestHandler, the user
9
+ * may provide the requestHandler's constructor options for either the
10
+ * NodeHttpHandler or FetchHttpHandler.
11
+ *
12
+ * For other RequestHandlers like HTTP2 or WebSocket,
13
+ * constructor parameter passthrough is not currently available.
14
+ *
15
+ * @public
16
+ */
17
+ export type RequestHandlerParams = NodeHttpHandlerOptions | FetchHttpHandlerOptions;
18
+ /**
19
+ * Represents the http options that can be passed to a node http client.
20
+ * @public
21
+ */
22
+ export interface NodeHttpHandlerOptions {
23
+ /**
24
+ * The maximum time in milliseconds that the connection phase of a request
25
+ * may take before the connection attempt is abandoned.
26
+ *
27
+ * Defaults to 0, which disables the timeout.
28
+ */
29
+ connectionTimeout?: number;
30
+ /**
31
+ * The number of milliseconds a request can take before automatically being terminated.
32
+ * Defaults to 0, which disables the timeout.
33
+ */
34
+ requestTimeout?: number;
35
+ /**
36
+ * @deprecated Use {@link requestTimeout}
37
+ *
38
+ * The maximum time in milliseconds that a socket may remain idle before it
39
+ * is closed.
40
+ */
41
+ socketTimeout?: number;
42
+ httpAgent?: hAgent;
43
+ httpsAgent?: hsAgent;
44
+ }
45
+ /**
46
+ * Represents the http options that can be passed to a browser http client.
47
+ * @public
48
+ */
49
+ export interface FetchHttpHandlerOptions {
50
+ /**
51
+ * The number of milliseconds a request can take before being automatically
52
+ * terminated.
53
+ */
54
+ requestTimeout?: number;
55
+ /**
56
+ * Whether to allow the request to outlive the page. Default value is false.
57
+ *
58
+ * There may be limitations to the payload size, number of concurrent requests,
59
+ * request duration etc. when using keepalive in browsers.
60
+ *
61
+ * These may change over time, so look for up to date information about
62
+ * these limitations before enabling keepalive.
63
+ */
64
+ keepAlive?: boolean;
65
+ }
@@ -12,6 +12,7 @@ export * from "./endpoints";
12
12
  export * from "./eventStream";
13
13
  export * from "./extensions";
14
14
  export * from "./http";
15
+ export * from "./http/httpHandlerInitialization";
15
16
  export * from "./identity";
16
17
  export * from "./logger";
17
18
  export * from "./middleware";
@@ -0,0 +1,64 @@
1
+ /// <reference types="node" />
2
+ import { Agent as hAgent } from "http";
3
+ import { Agent as hsAgent } from "https";
4
+ /**
5
+ *
6
+ * This type represents an alternate client constructor option for the entry
7
+ * "requestHandler". Instead of providing an instance of a requestHandler, the user
8
+ * may provide the requestHandler's constructor options for either the
9
+ * NodeHttpHandler or FetchHttpHandler.
10
+ *
11
+ * For other RequestHandlers like HTTP2 or WebSocket,
12
+ * constructor parameter passthrough is not currently available.
13
+ *
14
+ * @public
15
+ */
16
+ export type RequestHandlerParams = NodeHttpHandlerOptions | FetchHttpHandlerOptions;
17
+ /**
18
+ * Represents the http options that can be passed to a node http client.
19
+ * @public
20
+ */
21
+ export interface NodeHttpHandlerOptions {
22
+ /**
23
+ * The maximum time in milliseconds that the connection phase of a request
24
+ * may take before the connection attempt is abandoned.
25
+ *
26
+ * Defaults to 0, which disables the timeout.
27
+ */
28
+ connectionTimeout?: number;
29
+ /**
30
+ * The number of milliseconds a request can take before automatically being terminated.
31
+ * Defaults to 0, which disables the timeout.
32
+ */
33
+ requestTimeout?: number;
34
+ /**
35
+ * @deprecated Use {@link requestTimeout}
36
+ *
37
+ * The maximum time in milliseconds that a socket may remain idle before it
38
+ * is closed.
39
+ */
40
+ socketTimeout?: number;
41
+ httpAgent?: hAgent;
42
+ httpsAgent?: hsAgent;
43
+ }
44
+ /**
45
+ * Represents the http options that can be passed to a browser http client.
46
+ * @public
47
+ */
48
+ export interface FetchHttpHandlerOptions {
49
+ /**
50
+ * The number of milliseconds a request can take before being automatically
51
+ * terminated.
52
+ */
53
+ requestTimeout?: number;
54
+ /**
55
+ * Whether to allow the request to outlive the page. Default value is false.
56
+ *
57
+ * There may be limitations to the payload size, number of concurrent requests,
58
+ * request duration etc. when using keepalive in browsers.
59
+ *
60
+ * These may change over time, so look for up to date information about
61
+ * these limitations before enabling keepalive.
62
+ */
63
+ keepAlive?: boolean;
64
+ }
@@ -12,6 +12,7 @@ export * from "./endpoints";
12
12
  export * from "./eventStream";
13
13
  export * from "./extensions";
14
14
  export * from "./http";
15
+ export * from "./http/httpHandlerInitialization";
15
16
  export * from "./identity";
16
17
  export * from "./logger";
17
18
  export * from "./middleware";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/types",
3
- "version": "2.6.0",
3
+ "version": "2.7.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": "yarn g:tsc -p tsconfig.cjs.json",
@@ -8,7 +8,7 @@
8
8
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
9
  "build:types:downlevel": "rimraf dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4 && node scripts/downlevel",
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
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
14
  "test": "yarn g:tsc -p tsconfig.test.json",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/url-parser",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -8,7 +8,7 @@
8
8
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
9
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
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
14
  "test": "yarn g:jest"
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@smithy/querystring-parser": "^2.0.14",
26
- "@smithy/types": "^2.6.0",
25
+ "@smithy/querystring-parser": "^2.0.15",
26
+ "@smithy/types": "^2.7.0",
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "typesVersions": {