@jjrawlins/cdk-iam-policy-builder-helper 0.0.56 → 0.0.58
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.
- package/.jsii +3 -3
- package/cdk-iam-policy-builder-helper/go.mod +1 -1
- package/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
- package/cdk-iam-policy-builder-helper/version +1 -1
- package/node_modules/@aws-sdk/client-iam/package.json +34 -34
- package/node_modules/@aws-sdk/client-sso/package.json +32 -32
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +5 -5
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +5 -5
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +4 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +7 -7
- package/node_modules/@aws-sdk/core/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +35 -63
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +44 -75
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +19 -48
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
- package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +59 -95
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +18 -290
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +395 -469
- package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +106 -160
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +3 -15
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +16 -14
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +226 -190
- package/node_modules/@smithy/core/dist-es/index.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -15
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js +6 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +3 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +3 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +18 -11
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +5 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +5 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +24 -6
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +6 -0
- package/node_modules/@smithy/core/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +5 -10
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/SerdeContext.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +3 -4
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts +3 -4
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +5 -6
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +22 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +5 -10
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/SerdeContext.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +3 -4
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +3 -4
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +5 -6
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +22 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +5 -0
- package/node_modules/@smithy/core/package.json +7 -7
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
- package/node_modules/@smithy/hash-node/package.json +2 -2
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +3 -3
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/node_modules/@smithy/middleware-retry/package.json +8 -8
- package/node_modules/@smithy/middleware-serde/package.json +3 -3
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +30 -6
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +7 -3
- package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +2 -3
- package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +4 -4
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +5 -4
- package/node_modules/@smithy/smithy-client/dist-es/command.js +5 -4
- package/node_modules/@smithy/smithy-client/dist-types/command.d.ts +3 -3
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +3 -3
- package/node_modules/@smithy/smithy-client/package.json +7 -7
- package/node_modules/@smithy/types/dist-es/index.js +1 -0
- package/node_modules/@smithy/types/dist-es/schema/static-schemas.js +1 -0
- package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +17 -10
- package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +2 -1
- package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +82 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +17 -10
- package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +2 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +101 -0
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/package.json +3 -3
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/package.json +4 -4
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/package.json +6 -6
- /package/node_modules/@smithy/core/dist-es/{protocols → request-builder}/requestBuilder.js +0 -0
- /package/node_modules/@smithy/core/dist-types/{protocols → request-builder}/requestBuilder.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/ts3.4/{protocols → request-builder}/requestBuilder.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.16.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline core",
|
|
@@ -77,13 +77,13 @@
|
|
|
77
77
|
"license": "Apache-2.0",
|
|
78
78
|
"sideEffects": false,
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@smithy/middleware-serde": "^4.2.
|
|
81
|
-
"@smithy/protocol-http": "^5.3.
|
|
82
|
-
"@smithy/types": "^4.
|
|
80
|
+
"@smithy/middleware-serde": "^4.2.2",
|
|
81
|
+
"@smithy/protocol-http": "^5.3.2",
|
|
82
|
+
"@smithy/types": "^4.7.1",
|
|
83
83
|
"@smithy/util-base64": "^4.3.0",
|
|
84
84
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
85
|
-
"@smithy/util-middleware": "^4.2.
|
|
86
|
-
"@smithy/util-stream": "^4.5.
|
|
85
|
+
"@smithy/util-middleware": "^4.2.2",
|
|
86
|
+
"@smithy/util-stream": "^4.5.2",
|
|
87
87
|
"@smithy/util-utf8": "^4.2.0",
|
|
88
88
|
"@smithy/uuid": "^1.1.0",
|
|
89
89
|
"tslib": "^2.6.2"
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"directory": "packages/core"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
|
-
"@smithy/eventstream-serde-node": "^4.2.
|
|
121
|
+
"@smithy/eventstream-serde-node": "^4.2.2",
|
|
122
122
|
"@types/node": "^18.11.9",
|
|
123
123
|
"concurrently": "7.0.0",
|
|
124
124
|
"downlevel-dts": "0.10.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/credential-provider-imds",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@smithy/node-config-provider": "^4.3.
|
|
32
|
-
"@smithy/property-provider": "^4.2.
|
|
33
|
-
"@smithy/types": "^4.
|
|
34
|
-
"@smithy/url-parser": "^4.2.
|
|
31
|
+
"@smithy/node-config-provider": "^4.3.2",
|
|
32
|
+
"@smithy/property-provider": "^4.2.2",
|
|
33
|
+
"@smithy/types": "^4.7.1",
|
|
34
|
+
"@smithy/url-parser": "^4.2.2",
|
|
35
35
|
"tslib": "^2.6.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/fetch-http-handler",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.3",
|
|
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'",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"module": "./dist-es/index.js",
|
|
29
29
|
"types": "./dist-types/index.d.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@smithy/protocol-http": "^5.3.
|
|
32
|
-
"@smithy/querystring-builder": "^4.2.
|
|
33
|
-
"@smithy/types": "^4.
|
|
31
|
+
"@smithy/protocol-http": "^5.3.2",
|
|
32
|
+
"@smithy/querystring-builder": "^4.2.2",
|
|
33
|
+
"@smithy/types": "^4.7.1",
|
|
34
34
|
"@smithy/util-base64": "^4.3.0",
|
|
35
35
|
"tslib": "^2.6.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@smithy/abort-controller": "^4.2.
|
|
38
|
+
"@smithy/abort-controller": "^4.2.2",
|
|
39
39
|
"concurrently": "7.0.0",
|
|
40
40
|
"downlevel-dts": "0.10.1",
|
|
41
41
|
"rimraf": "3.0.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/hash-node",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.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 hash-node",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"typedoc": "0.23.23"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@smithy/types": "^4.
|
|
35
|
+
"@smithy/types": "^4.7.1",
|
|
36
36
|
"@smithy/util-buffer-from": "^4.2.0",
|
|
37
37
|
"@smithy/util-utf8": "^4.2.0",
|
|
38
38
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/invalid-dependency",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.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 invalid-dependency",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/types": "^4.
|
|
27
|
+
"@smithy/types": "^4.7.1",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
30
30
|
"typesVersions": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-content-length",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.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 middleware-content-length",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/protocol-http": "^5.3.
|
|
29
|
-
"@smithy/types": "^4.
|
|
28
|
+
"@smithy/protocol-http": "^5.3.2",
|
|
29
|
+
"@smithy/types": "^4.7.1",
|
|
30
30
|
"tslib": "^2.6.2"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-endpoint",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.3",
|
|
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 middleware-endpoint",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/core": "^3.
|
|
29
|
-
"@smithy/middleware-serde": "^4.2.
|
|
30
|
-
"@smithy/node-config-provider": "^4.3.
|
|
31
|
-
"@smithy/shared-ini-file-loader": "^4.3.
|
|
32
|
-
"@smithy/types": "^4.
|
|
33
|
-
"@smithy/url-parser": "^4.2.
|
|
34
|
-
"@smithy/util-middleware": "^4.2.
|
|
28
|
+
"@smithy/core": "^3.16.1",
|
|
29
|
+
"@smithy/middleware-serde": "^4.2.2",
|
|
30
|
+
"@smithy/node-config-provider": "^4.3.2",
|
|
31
|
+
"@smithy/shared-ini-file-loader": "^4.3.2",
|
|
32
|
+
"@smithy/types": "^4.7.1",
|
|
33
|
+
"@smithy/url-parser": "^4.2.2",
|
|
34
|
+
"@smithy/util-middleware": "^4.2.2",
|
|
35
35
|
"tslib": "^2.6.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-retry",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.3",
|
|
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 middleware-retry",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"sideEffects": false,
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@smithy/node-config-provider": "^4.3.
|
|
38
|
-
"@smithy/protocol-http": "^5.3.
|
|
39
|
-
"@smithy/service-error-classification": "^4.2.
|
|
40
|
-
"@smithy/smithy-client": "^4.
|
|
41
|
-
"@smithy/types": "^4.
|
|
42
|
-
"@smithy/util-middleware": "^4.2.
|
|
43
|
-
"@smithy/util-retry": "^4.2.
|
|
37
|
+
"@smithy/node-config-provider": "^4.3.2",
|
|
38
|
+
"@smithy/protocol-http": "^5.3.2",
|
|
39
|
+
"@smithy/service-error-classification": "^4.2.2",
|
|
40
|
+
"@smithy/smithy-client": "^4.8.1",
|
|
41
|
+
"@smithy/types": "^4.7.1",
|
|
42
|
+
"@smithy/util-middleware": "^4.2.2",
|
|
43
|
+
"@smithy/util-retry": "^4.2.2",
|
|
44
44
|
"@smithy/uuid": "^1.1.0",
|
|
45
45
|
"tslib": "^2.6.2"
|
|
46
46
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-serde",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.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 middleware-serde",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@smithy/protocol-http": "^5.3.
|
|
30
|
-
"@smithy/types": "^4.
|
|
29
|
+
"@smithy/protocol-http": "^5.3.2",
|
|
30
|
+
"@smithy/types": "^4.7.1",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
33
33
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-stack",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"description": "Provides a means for composing multiple middleware functions into a single handler",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"module": "./dist-es/index.js",
|
|
28
28
|
"types": "./dist-types/index.d.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@smithy/types": "^4.
|
|
30
|
+
"@smithy/types": "^4.7.1",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/node-config-provider",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.2",
|
|
4
4
|
"description": "Load config default values from ini config files and environmental variable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"module": "./dist-es/index.js",
|
|
27
27
|
"types": "./dist-types/index.d.ts",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@smithy/property-provider": "^4.2.
|
|
30
|
-
"@smithy/shared-ini-file-loader": "^4.3.
|
|
31
|
-
"@smithy/types": "^4.
|
|
29
|
+
"@smithy/property-provider": "^4.2.2",
|
|
30
|
+
"@smithy/shared-ini-file-loader": "^4.3.2",
|
|
31
|
+
"@smithy/types": "^4.7.1",
|
|
32
32
|
"tslib": "^2.6.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -31,7 +31,7 @@ const setConnectionTimeout = (request, reject, timeoutInMs = 0) => {
|
|
|
31
31
|
const registerTimeout = (offset) => {
|
|
32
32
|
const timeoutId = timing.setTimeout(() => {
|
|
33
33
|
request.destroy();
|
|
34
|
-
reject(Object.assign(new Error(
|
|
34
|
+
reject(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${timeoutInMs} ms.`), {
|
|
35
35
|
name: "TimeoutError",
|
|
36
36
|
}));
|
|
37
37
|
}, timeoutInMs - offset);
|
|
@@ -59,6 +59,27 @@ const setConnectionTimeout = (request, reject, timeoutInMs = 0) => {
|
|
|
59
59
|
return timing.setTimeout(registerTimeout.bind(null, DEFER_EVENT_LISTENER_TIME$2), DEFER_EVENT_LISTENER_TIME$2);
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
+
const setRequestTimeout = (req, reject, timeoutInMs = 0, throwOnRequestTimeout, logger) => {
|
|
63
|
+
if (timeoutInMs) {
|
|
64
|
+
return timing.setTimeout(() => {
|
|
65
|
+
let msg = `@smithy/node-http-handler - [${throwOnRequestTimeout ? "ERROR" : "WARN"}] a request has exceeded the configured ${timeoutInMs} ms requestTimeout.`;
|
|
66
|
+
if (throwOnRequestTimeout) {
|
|
67
|
+
const error = Object.assign(new Error(msg), {
|
|
68
|
+
name: "TimeoutError",
|
|
69
|
+
code: "ETIMEDOUT",
|
|
70
|
+
});
|
|
71
|
+
req.destroy(error);
|
|
72
|
+
reject(error);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
msg += ` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`;
|
|
76
|
+
logger?.warn?.(msg);
|
|
77
|
+
}
|
|
78
|
+
}, timeoutInMs);
|
|
79
|
+
}
|
|
80
|
+
return -1;
|
|
81
|
+
};
|
|
82
|
+
|
|
62
83
|
const DEFER_EVENT_LISTENER_TIME$1 = 3000;
|
|
63
84
|
const setSocketKeepAlive = (request, { keepAlive, keepAliveMsecs }, deferTimeMs = DEFER_EVENT_LISTENER_TIME$1) => {
|
|
64
85
|
if (keepAlive !== true) {
|
|
@@ -82,12 +103,12 @@ const setSocketKeepAlive = (request, { keepAlive, keepAliveMsecs }, deferTimeMs
|
|
|
82
103
|
};
|
|
83
104
|
|
|
84
105
|
const DEFER_EVENT_LISTENER_TIME = 3000;
|
|
85
|
-
const setSocketTimeout = (request, reject, timeoutInMs =
|
|
106
|
+
const setSocketTimeout = (request, reject, timeoutInMs = 0) => {
|
|
86
107
|
const registerTimeout = (offset) => {
|
|
87
108
|
const timeout = timeoutInMs - offset;
|
|
88
109
|
const onTimeout = () => {
|
|
89
110
|
request.destroy();
|
|
90
|
-
reject(Object.assign(new Error(
|
|
111
|
+
reject(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${timeoutInMs} ms of inactivity (configured by client requestHandler).`), { name: "TimeoutError" }));
|
|
91
112
|
};
|
|
92
113
|
if (request.socket) {
|
|
93
114
|
request.socket.setTimeout(timeout, onTimeout);
|
|
@@ -209,13 +230,15 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
209
230
|
});
|
|
210
231
|
}
|
|
211
232
|
resolveDefaultConfig(options) {
|
|
212
|
-
const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent } = options || {};
|
|
233
|
+
const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, } = options || {};
|
|
213
234
|
const keepAlive = true;
|
|
214
235
|
const maxSockets = 50;
|
|
215
236
|
return {
|
|
216
237
|
connectionTimeout,
|
|
217
|
-
requestTimeout
|
|
238
|
+
requestTimeout,
|
|
239
|
+
socketTimeout,
|
|
218
240
|
socketAcquisitionWarningTimeout,
|
|
241
|
+
throwOnRequestTimeout,
|
|
219
242
|
httpAgent: (() => {
|
|
220
243
|
if (httpAgent instanceof http.Agent || typeof httpAgent?.destroy === "function") {
|
|
221
244
|
return httpAgent;
|
|
@@ -333,7 +356,8 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
333
356
|
}
|
|
334
357
|
const effectiveRequestTimeout = requestTimeout ?? this.config.requestTimeout;
|
|
335
358
|
timeouts.push(setConnectionTimeout(req, reject, this.config.connectionTimeout));
|
|
336
|
-
timeouts.push(
|
|
359
|
+
timeouts.push(setRequestTimeout(req, reject, effectiveRequestTimeout, this.config.throwOnRequestTimeout, this.config.logger ?? console));
|
|
360
|
+
timeouts.push(setSocketTimeout(req, reject, this.config.socketTimeout));
|
|
337
361
|
const httpAgent = nodeHttpsOptions.agent;
|
|
338
362
|
if (typeof httpAgent === "object" && "keepAlive" in httpAgent) {
|
|
339
363
|
timeouts.push(setSocketKeepAlive(req, {
|
|
@@ -5,6 +5,7 @@ import { Agent as hsAgent, request as hsRequest } from "https";
|
|
|
5
5
|
import { NODEJS_TIMEOUT_ERROR_CODES } from "./constants";
|
|
6
6
|
import { getTransformedHeaders } from "./get-transformed-headers";
|
|
7
7
|
import { setConnectionTimeout } from "./set-connection-timeout";
|
|
8
|
+
import { setRequestTimeout } from "./set-request-timeout";
|
|
8
9
|
import { setSocketKeepAlive } from "./set-socket-keep-alive";
|
|
9
10
|
import { setSocketTimeout } from "./set-socket-timeout";
|
|
10
11
|
import { timing } from "./timing";
|
|
@@ -59,13 +60,15 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
59
60
|
});
|
|
60
61
|
}
|
|
61
62
|
resolveDefaultConfig(options) {
|
|
62
|
-
const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent } = options || {};
|
|
63
|
+
const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, } = options || {};
|
|
63
64
|
const keepAlive = true;
|
|
64
65
|
const maxSockets = 50;
|
|
65
66
|
return {
|
|
66
67
|
connectionTimeout,
|
|
67
|
-
requestTimeout
|
|
68
|
+
requestTimeout,
|
|
69
|
+
socketTimeout,
|
|
68
70
|
socketAcquisitionWarningTimeout,
|
|
71
|
+
throwOnRequestTimeout,
|
|
69
72
|
httpAgent: (() => {
|
|
70
73
|
if (httpAgent instanceof hAgent || typeof httpAgent?.destroy === "function") {
|
|
71
74
|
return httpAgent;
|
|
@@ -183,7 +186,8 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
183
186
|
}
|
|
184
187
|
const effectiveRequestTimeout = requestTimeout ?? this.config.requestTimeout;
|
|
185
188
|
timeouts.push(setConnectionTimeout(req, reject, this.config.connectionTimeout));
|
|
186
|
-
timeouts.push(
|
|
189
|
+
timeouts.push(setRequestTimeout(req, reject, effectiveRequestTimeout, this.config.throwOnRequestTimeout, this.config.logger ?? console));
|
|
190
|
+
timeouts.push(setSocketTimeout(req, reject, this.config.socketTimeout));
|
|
187
191
|
const httpAgent = nodeHttpsOptions.agent;
|
|
188
192
|
if (typeof httpAgent === "object" && "keepAlive" in httpAgent) {
|
|
189
193
|
timeouts.push(setSocketKeepAlive(req, {
|
|
@@ -7,7 +7,7 @@ export const setConnectionTimeout = (request, reject, timeoutInMs = 0) => {
|
|
|
7
7
|
const registerTimeout = (offset) => {
|
|
8
8
|
const timeoutId = timing.setTimeout(() => {
|
|
9
9
|
request.destroy();
|
|
10
|
-
reject(Object.assign(new Error(
|
|
10
|
+
reject(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${timeoutInMs} ms.`), {
|
|
11
11
|
name: "TimeoutError",
|
|
12
12
|
}));
|
|
13
13
|
}, timeoutInMs - offset);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { timing } from "./timing";
|
|
2
|
+
export const setRequestTimeout = (req, reject, timeoutInMs = 0, throwOnRequestTimeout, logger) => {
|
|
3
|
+
if (timeoutInMs) {
|
|
4
|
+
return timing.setTimeout(() => {
|
|
5
|
+
let msg = `@smithy/node-http-handler - [${throwOnRequestTimeout ? "ERROR" : "WARN"}] a request has exceeded the configured ${timeoutInMs} ms requestTimeout.`;
|
|
6
|
+
if (throwOnRequestTimeout) {
|
|
7
|
+
const error = Object.assign(new Error(msg), {
|
|
8
|
+
name: "TimeoutError",
|
|
9
|
+
code: "ETIMEDOUT",
|
|
10
|
+
});
|
|
11
|
+
req.destroy(error);
|
|
12
|
+
reject(error);
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
msg += ` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`;
|
|
16
|
+
logger?.warn?.(msg);
|
|
17
|
+
}
|
|
18
|
+
}, timeoutInMs);
|
|
19
|
+
}
|
|
20
|
+
return -1;
|
|
21
|
+
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { DEFAULT_REQUEST_TIMEOUT } from "./node-http-handler";
|
|
2
1
|
import { timing } from "./timing";
|
|
3
2
|
const DEFER_EVENT_LISTENER_TIME = 3000;
|
|
4
|
-
export const setSocketTimeout = (request, reject, timeoutInMs =
|
|
3
|
+
export const setSocketTimeout = (request, reject, timeoutInMs = 0) => {
|
|
5
4
|
const registerTimeout = (offset) => {
|
|
6
5
|
const timeout = timeoutInMs - offset;
|
|
7
6
|
const onTimeout = () => {
|
|
8
7
|
request.destroy();
|
|
9
|
-
reject(Object.assign(new Error(
|
|
8
|
+
reject(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${timeoutInMs} ms of inactivity (configured by client requestHandler).`), { name: "TimeoutError" }));
|
|
10
9
|
};
|
|
11
10
|
if (request.socket) {
|
|
12
11
|
request.socket.setTimeout(timeout, onTimeout);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Logger } from "@smithy/types";
|
|
2
|
+
import type { ClientRequest } from "http";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const setRequestTimeout: (req: ClientRequest, reject: (err: Error) => void, timeoutInMs?: number, throwOnRequestTimeout?: boolean, logger?: Logger) => number;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Logger } from "@smithy/types";
|
|
2
|
+
import { ClientRequest } from "http";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const setRequestTimeout: (req: ClientRequest, reject: (err: Error) => void, timeoutInMs?: number, throwOnRequestTimeout?: boolean, logger?: Logger) => number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/node-http-handler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.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'",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"module": "./dist-es/index.js",
|
|
28
28
|
"types": "./dist-types/index.d.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@smithy/abort-controller": "^4.2.
|
|
31
|
-
"@smithy/protocol-http": "^5.3.
|
|
32
|
-
"@smithy/querystring-builder": "^4.2.
|
|
33
|
-
"@smithy/types": "^4.
|
|
30
|
+
"@smithy/abort-controller": "^4.2.2",
|
|
31
|
+
"@smithy/protocol-http": "^5.3.2",
|
|
32
|
+
"@smithy/querystring-builder": "^4.2.2",
|
|
33
|
+
"@smithy/types": "^4.7.1",
|
|
34
34
|
"tslib": "^2.6.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/property-provider",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.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 property-provider",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/types": "^4.
|
|
27
|
+
"@smithy/types": "^4.7.1",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/protocol-http",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.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 protocol-http",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/types": "^4.
|
|
28
|
+
"@smithy/types": "^4.7.1",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
30
30
|
},
|
|
31
31
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/querystring-builder",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.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 querystring-builder",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"sideEffects": false,
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/types": "^4.
|
|
26
|
+
"@smithy/types": "^4.7.1",
|
|
27
27
|
"@smithy/util-uri-escape": "^4.2.0",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/querystring-parser",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.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 querystring-parser",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/types": "^4.
|
|
27
|
+
"@smithy/types": "^4.7.1",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/service-error-classification",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.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 service-error-classification",
|
|
@@ -55,6 +55,6 @@
|
|
|
55
55
|
"directory": ".release/package"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@smithy/types": "^4.
|
|
58
|
+
"@smithy/types": "^4.7.1"
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/signature-v4",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.2",
|
|
4
4
|
"description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@smithy/is-array-buffer": "^4.2.0",
|
|
30
|
-
"@smithy/protocol-http": "^5.3.
|
|
31
|
-
"@smithy/types": "^4.
|
|
30
|
+
"@smithy/protocol-http": "^5.3.2",
|
|
31
|
+
"@smithy/types": "^4.7.1",
|
|
32
32
|
"@smithy/util-hex-encoding": "^4.2.0",
|
|
33
|
-
"@smithy/util-middleware": "^4.2.
|
|
33
|
+
"@smithy/util-middleware": "^4.2.2",
|
|
34
34
|
"@smithy/util-uri-escape": "^4.2.0",
|
|
35
35
|
"@smithy/util-utf8": "^4.2.0",
|
|
36
36
|
"tslib": "^2.6.2"
|
|
@@ -187,15 +187,16 @@ class ClassBuilder {
|
|
|
187
187
|
this.schema = closure._operationSchema;
|
|
188
188
|
}
|
|
189
189
|
resolveMiddleware(stack, configuration, options) {
|
|
190
|
+
const op = closure._operationSchema;
|
|
191
|
+
const input = op?.[4] ?? op?.input;
|
|
192
|
+
const output = op?.[5] ?? op?.output;
|
|
190
193
|
return this.resolveMiddlewareWithContext(stack, configuration, options, {
|
|
191
194
|
CommandCtor: CommandRef,
|
|
192
195
|
middlewareFn: closure._middlewareFn,
|
|
193
196
|
clientName: closure._clientName,
|
|
194
197
|
commandName: closure._commandName,
|
|
195
|
-
inputFilterSensitiveLog: closure._inputFilterSensitiveLog ??
|
|
196
|
-
|
|
197
|
-
outputFilterSensitiveLog: closure._outputFilterSensitiveLog ??
|
|
198
|
-
(closure._operationSchema ? schemaLogFilter.bind(null, closure._operationSchema.output) : (_) => _),
|
|
198
|
+
inputFilterSensitiveLog: closure._inputFilterSensitiveLog ?? (op ? schemaLogFilter.bind(null, input) : (_) => _),
|
|
199
|
+
outputFilterSensitiveLog: closure._outputFilterSensitiveLog ?? (op ? schemaLogFilter.bind(null, output) : (_) => _),
|
|
199
200
|
smithyContext: closure._smithyContext,
|
|
200
201
|
additionalContext: closure._additionalContext,
|
|
201
202
|
});
|
|
@@ -103,15 +103,16 @@ class ClassBuilder {
|
|
|
103
103
|
this.schema = closure._operationSchema;
|
|
104
104
|
}
|
|
105
105
|
resolveMiddleware(stack, configuration, options) {
|
|
106
|
+
const op = closure._operationSchema;
|
|
107
|
+
const input = op?.[4] ?? op?.input;
|
|
108
|
+
const output = op?.[5] ?? op?.output;
|
|
106
109
|
return this.resolveMiddlewareWithContext(stack, configuration, options, {
|
|
107
110
|
CommandCtor: CommandRef,
|
|
108
111
|
middlewareFn: closure._middlewareFn,
|
|
109
112
|
clientName: closure._clientName,
|
|
110
113
|
commandName: closure._commandName,
|
|
111
|
-
inputFilterSensitiveLog: closure._inputFilterSensitiveLog ??
|
|
112
|
-
|
|
113
|
-
outputFilterSensitiveLog: closure._outputFilterSensitiveLog ??
|
|
114
|
-
(closure._operationSchema ? schemaLogFilter.bind(null, closure._operationSchema.output) : (_) => _),
|
|
114
|
+
inputFilterSensitiveLog: closure._inputFilterSensitiveLog ?? (op ? schemaLogFilter.bind(null, input) : (_) => _),
|
|
115
|
+
outputFilterSensitiveLog: closure._outputFilterSensitiveLog ?? (op ? schemaLogFilter.bind(null, output) : (_) => _),
|
|
115
116
|
smithyContext: closure._smithyContext,
|
|
116
117
|
additionalContext: closure._additionalContext,
|
|
117
118
|
});
|