@cdk8s/awscdk-resolver 0.0.628 → 0.0.629
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/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +8 -8
- package/node_modules/@aws-sdk/core/package.json +8 -5
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +116 -72
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commandBuilder.js +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.js +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +80 -70
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +23 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commandBuilder.d.ts +8 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +114 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts +41 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/schemas/schemas_0.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/Signin.d.ts +17 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +10 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commandBuilder.d.ts +12 -7
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +4 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +44 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/models_0.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +11 -8
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
- package/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +20 -20
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +20 -20
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +5 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getRegionInfo.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.browser.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/service-customizations/s3.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/parseURL.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +20 -20
- package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/StandardRetryStrategy.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/date-utils.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/middleware-serde/deserializerMiddleware.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/sdk-stream-mixin.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/isValidHostname.js +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/serde/copyDocumentWithTransform.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/copyDocumentWithTransform.d.ts +1 -1
- package/node_modules/@smithy/core/package.json +5 -3
- package/node_modules/@smithy/credential-provider-imds/package.json +3 -5
- package/node_modules/@smithy/fetch-http-handler/package.json +3 -5
- package/node_modules/@smithy/node-http-handler/package.json +3 -5
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +11 -11
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +10 -10
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +1 -1
- package/node_modules/@smithy/signature-v4/package.json +3 -5
- package/package.json +4 -4
|
@@ -70,27 +70,27 @@ class HeaderMarshaller {
|
|
|
70
70
|
formatHeaderValue(header) {
|
|
71
71
|
switch (header.type) {
|
|
72
72
|
case "boolean":
|
|
73
|
-
return Uint8Array.from([header.value ?
|
|
73
|
+
return Uint8Array.from([header.value ? HEADER_VALUE_TYPE.boolTrue : HEADER_VALUE_TYPE.boolFalse]);
|
|
74
74
|
case "byte":
|
|
75
|
-
return Uint8Array.from([
|
|
75
|
+
return Uint8Array.from([HEADER_VALUE_TYPE.byte, header.value]);
|
|
76
76
|
case "short":
|
|
77
77
|
const shortView = new DataView(new ArrayBuffer(3));
|
|
78
|
-
shortView.setUint8(0,
|
|
78
|
+
shortView.setUint8(0, HEADER_VALUE_TYPE.short);
|
|
79
79
|
shortView.setInt16(1, header.value, false);
|
|
80
80
|
return new Uint8Array(shortView.buffer);
|
|
81
81
|
case "integer":
|
|
82
82
|
const intView = new DataView(new ArrayBuffer(5));
|
|
83
|
-
intView.setUint8(0,
|
|
83
|
+
intView.setUint8(0, HEADER_VALUE_TYPE.integer);
|
|
84
84
|
intView.setInt32(1, header.value, false);
|
|
85
85
|
return new Uint8Array(intView.buffer);
|
|
86
86
|
case "long":
|
|
87
87
|
const longBytes = new Uint8Array(9);
|
|
88
|
-
longBytes[0] =
|
|
88
|
+
longBytes[0] = HEADER_VALUE_TYPE.long;
|
|
89
89
|
longBytes.set(header.value.bytes, 1);
|
|
90
90
|
return longBytes;
|
|
91
91
|
case "binary":
|
|
92
92
|
const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
|
|
93
|
-
binView.setUint8(0,
|
|
93
|
+
binView.setUint8(0, HEADER_VALUE_TYPE.byteArray);
|
|
94
94
|
binView.setUint16(1, header.value.byteLength, false);
|
|
95
95
|
const binBytes = new Uint8Array(binView.buffer);
|
|
96
96
|
binBytes.set(header.value, 3);
|
|
@@ -98,14 +98,14 @@ class HeaderMarshaller {
|
|
|
98
98
|
case "string":
|
|
99
99
|
const utf8Bytes = this.fromUtf8(header.value);
|
|
100
100
|
const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
|
|
101
|
-
strView.setUint8(0,
|
|
101
|
+
strView.setUint8(0, HEADER_VALUE_TYPE.string);
|
|
102
102
|
strView.setUint16(1, utf8Bytes.byteLength, false);
|
|
103
103
|
const strBytes = new Uint8Array(strView.buffer);
|
|
104
104
|
strBytes.set(utf8Bytes, 3);
|
|
105
105
|
return strBytes;
|
|
106
106
|
case "timestamp":
|
|
107
107
|
const tsBytes = new Uint8Array(9);
|
|
108
|
-
tsBytes[0] =
|
|
108
|
+
tsBytes[0] = HEADER_VALUE_TYPE.timestamp;
|
|
109
109
|
tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
|
|
110
110
|
return tsBytes;
|
|
111
111
|
case "uuid":
|
|
@@ -113,8 +113,8 @@ class HeaderMarshaller {
|
|
|
113
113
|
throw new Error(`Invalid UUID received: ${header.value}`);
|
|
114
114
|
}
|
|
115
115
|
const uuidBytes = new Uint8Array(17);
|
|
116
|
-
uuidBytes[0] =
|
|
117
|
-
uuidBytes.set(fromHex(header.value.replace(
|
|
116
|
+
uuidBytes[0] = HEADER_VALUE_TYPE.uuid;
|
|
117
|
+
uuidBytes.set(fromHex(header.value.replace(/-/g, "")), 1);
|
|
118
118
|
return uuidBytes;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -126,46 +126,46 @@ class HeaderMarshaller {
|
|
|
126
126
|
const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));
|
|
127
127
|
position += nameLength;
|
|
128
128
|
switch (headers.getUint8(position++)) {
|
|
129
|
-
case
|
|
129
|
+
case HEADER_VALUE_TYPE.boolTrue:
|
|
130
130
|
out[name] = {
|
|
131
131
|
type: BOOLEAN_TAG,
|
|
132
132
|
value: true,
|
|
133
133
|
};
|
|
134
134
|
break;
|
|
135
|
-
case
|
|
135
|
+
case HEADER_VALUE_TYPE.boolFalse:
|
|
136
136
|
out[name] = {
|
|
137
137
|
type: BOOLEAN_TAG,
|
|
138
138
|
value: false,
|
|
139
139
|
};
|
|
140
140
|
break;
|
|
141
|
-
case
|
|
141
|
+
case HEADER_VALUE_TYPE.byte:
|
|
142
142
|
out[name] = {
|
|
143
143
|
type: BYTE_TAG,
|
|
144
144
|
value: headers.getInt8(position++),
|
|
145
145
|
};
|
|
146
146
|
break;
|
|
147
|
-
case
|
|
147
|
+
case HEADER_VALUE_TYPE.short:
|
|
148
148
|
out[name] = {
|
|
149
149
|
type: SHORT_TAG,
|
|
150
150
|
value: headers.getInt16(position, false),
|
|
151
151
|
};
|
|
152
152
|
position += 2;
|
|
153
153
|
break;
|
|
154
|
-
case
|
|
154
|
+
case HEADER_VALUE_TYPE.integer:
|
|
155
155
|
out[name] = {
|
|
156
156
|
type: INT_TAG,
|
|
157
157
|
value: headers.getInt32(position, false),
|
|
158
158
|
};
|
|
159
159
|
position += 4;
|
|
160
160
|
break;
|
|
161
|
-
case
|
|
161
|
+
case HEADER_VALUE_TYPE.long:
|
|
162
162
|
out[name] = {
|
|
163
163
|
type: LONG_TAG,
|
|
164
164
|
value: new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)),
|
|
165
165
|
};
|
|
166
166
|
position += 8;
|
|
167
167
|
break;
|
|
168
|
-
case
|
|
168
|
+
case HEADER_VALUE_TYPE.byteArray:
|
|
169
169
|
const binaryLength = headers.getUint16(position, false);
|
|
170
170
|
position += 2;
|
|
171
171
|
out[name] = {
|
|
@@ -174,7 +174,7 @@ class HeaderMarshaller {
|
|
|
174
174
|
};
|
|
175
175
|
position += binaryLength;
|
|
176
176
|
break;
|
|
177
|
-
case
|
|
177
|
+
case HEADER_VALUE_TYPE.string:
|
|
178
178
|
const stringLength = headers.getUint16(position, false);
|
|
179
179
|
position += 2;
|
|
180
180
|
out[name] = {
|
|
@@ -183,14 +183,14 @@ class HeaderMarshaller {
|
|
|
183
183
|
};
|
|
184
184
|
position += stringLength;
|
|
185
185
|
break;
|
|
186
|
-
case
|
|
186
|
+
case HEADER_VALUE_TYPE.timestamp:
|
|
187
187
|
out[name] = {
|
|
188
188
|
type: TIMESTAMP_TAG,
|
|
189
189
|
value: new Date(new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()),
|
|
190
190
|
};
|
|
191
191
|
position += 8;
|
|
192
192
|
break;
|
|
193
|
-
case
|
|
193
|
+
case HEADER_VALUE_TYPE.uuid:
|
|
194
194
|
const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);
|
|
195
195
|
position += 16;
|
|
196
196
|
out[name] = {
|
|
@@ -181,7 +181,7 @@ function bindRetryMiddleware(isStreamingPayload) {
|
|
|
181
181
|
try {
|
|
182
182
|
retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
|
|
183
183
|
}
|
|
184
|
-
catch (
|
|
184
|
+
catch (ignoredRefreshError) {
|
|
185
185
|
if (!lastError.$metadata) {
|
|
186
186
|
lastError.$metadata = {};
|
|
187
187
|
}
|
|
@@ -499,7 +499,7 @@ let StandardRetryStrategy$1 = class StandardRetryStrategy {
|
|
|
499
499
|
try {
|
|
500
500
|
return await this.maxAttemptsProvider();
|
|
501
501
|
}
|
|
502
|
-
catch (
|
|
502
|
+
catch (ignored) {
|
|
503
503
|
console.warn(`Max attempts provider could not resolve. Using default of ${DEFAULT_MAX_ATTEMPTS}`);
|
|
504
504
|
return DEFAULT_MAX_ATTEMPTS;
|
|
505
505
|
}
|
|
@@ -626,7 +626,7 @@ class StandardRetryStrategy {
|
|
|
626
626
|
try {
|
|
627
627
|
maxAttempts = await this.maxAttemptsProvider();
|
|
628
628
|
}
|
|
629
|
-
catch (
|
|
629
|
+
catch (ignored) {
|
|
630
630
|
maxAttempts = DEFAULT_MAX_ATTEMPTS;
|
|
631
631
|
}
|
|
632
632
|
return maxAttempts;
|
|
@@ -183,7 +183,7 @@ function bindRetryMiddleware(isStreamingPayload) {
|
|
|
183
183
|
try {
|
|
184
184
|
retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
|
|
185
185
|
}
|
|
186
|
-
catch (
|
|
186
|
+
catch (ignoredRefreshError) {
|
|
187
187
|
if (!lastError.$metadata) {
|
|
188
188
|
lastError.$metadata = {};
|
|
189
189
|
}
|
|
@@ -501,7 +501,7 @@ let StandardRetryStrategy$1 = class StandardRetryStrategy {
|
|
|
501
501
|
try {
|
|
502
502
|
return await this.maxAttemptsProvider();
|
|
503
503
|
}
|
|
504
|
-
catch (
|
|
504
|
+
catch (ignored) {
|
|
505
505
|
console.warn(`Max attempts provider could not resolve. Using default of ${DEFAULT_MAX_ATTEMPTS}`);
|
|
506
506
|
return DEFAULT_MAX_ATTEMPTS;
|
|
507
507
|
}
|
|
@@ -628,7 +628,7 @@ class StandardRetryStrategy {
|
|
|
628
628
|
try {
|
|
629
629
|
maxAttempts = await this.maxAttemptsProvider();
|
|
630
630
|
}
|
|
631
|
-
catch (
|
|
631
|
+
catch (ignored) {
|
|
632
632
|
maxAttempts = DEFAULT_MAX_ATTEMPTS;
|
|
633
633
|
}
|
|
634
634
|
return maxAttempts;
|
|
@@ -41,7 +41,7 @@ const schemaDeserializationMiddleware = (config) => (next, context) => async (ar
|
|
|
41
41
|
try {
|
|
42
42
|
error.message += "\n " + hint;
|
|
43
43
|
}
|
|
44
|
-
catch (
|
|
44
|
+
catch (ignored) {
|
|
45
45
|
if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
|
|
46
46
|
console.warn(hint);
|
|
47
47
|
}
|
|
@@ -66,7 +66,7 @@ const schemaDeserializationMiddleware = (config) => (next, context) => async (ar
|
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
catch (
|
|
69
|
+
catch (ignored) {
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
throw error;
|
|
@@ -205,7 +205,7 @@ class ErrorSchema extends StructureSchema {
|
|
|
205
205
|
ctor;
|
|
206
206
|
symbol = ErrorSchema.symbol;
|
|
207
207
|
}
|
|
208
|
-
const error = (namespace, name, traits, memberNames, memberList,
|
|
208
|
+
const error = (namespace, name, traits, memberNames, memberList, _ctor) => Schema.assign(new ErrorSchema(), {
|
|
209
209
|
name,
|
|
210
210
|
namespace,
|
|
211
211
|
traits,
|
|
@@ -457,7 +457,7 @@ class NormalizedSchema {
|
|
|
457
457
|
const schema = this.getSchema();
|
|
458
458
|
const memberSchema = isDoc
|
|
459
459
|
? 15
|
|
460
|
-
: schema[4] ?? 0;
|
|
460
|
+
: (schema[4] ?? 0);
|
|
461
461
|
return member([memberSchema, 0], "key");
|
|
462
462
|
}
|
|
463
463
|
getValueSchema() {
|
|
@@ -150,7 +150,7 @@ function bindV4(getRandomValues) {
|
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
const copyDocumentWithTransform = (source,
|
|
153
|
+
const copyDocumentWithTransform = (source, _schemaRef, _transform = (_) => _) => source;
|
|
154
154
|
|
|
155
155
|
const parseBoolean = (value) => {
|
|
156
156
|
switch (value) {
|
|
@@ -420,7 +420,7 @@ const parseRfc3339DateTime = (value) => {
|
|
|
420
420
|
const day = parseDateValue(dayStr, "day", 1, 31);
|
|
421
421
|
return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds });
|
|
422
422
|
};
|
|
423
|
-
const RFC3339_WITH_OFFSET$1 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}
|
|
423
|
+
const RFC3339_WITH_OFFSET$1 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/);
|
|
424
424
|
const parseRfc3339DateTimeWithOffset = (value) => {
|
|
425
425
|
if (value === null || value === undefined) {
|
|
426
426
|
return undefined;
|
|
@@ -915,7 +915,7 @@ const deserializerMiddleware = (options, deserializer) => (next, context) => asy
|
|
|
915
915
|
try {
|
|
916
916
|
error.message += "\n " + hint;
|
|
917
917
|
}
|
|
918
|
-
catch (
|
|
918
|
+
catch (ignored) {
|
|
919
919
|
if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
|
|
920
920
|
console.warn(hint);
|
|
921
921
|
}
|
|
@@ -940,7 +940,7 @@ const deserializerMiddleware = (options, deserializer) => (next, context) => asy
|
|
|
940
940
|
};
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
|
-
catch (
|
|
943
|
+
catch (ignored) {
|
|
944
944
|
}
|
|
945
945
|
}
|
|
946
946
|
throw error;
|
|
@@ -118,7 +118,7 @@ function bindV4(getRandomValues) {
|
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
const copyDocumentWithTransform = (source,
|
|
121
|
+
const copyDocumentWithTransform = (source, _schemaRef, _transform = (_) => _) => source;
|
|
122
122
|
|
|
123
123
|
const parseBoolean = (value) => {
|
|
124
124
|
switch (value) {
|
|
@@ -388,7 +388,7 @@ const parseRfc3339DateTime = (value) => {
|
|
|
388
388
|
const day = parseDateValue(dayStr, "day", 1, 31);
|
|
389
389
|
return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds });
|
|
390
390
|
};
|
|
391
|
-
const RFC3339_WITH_OFFSET$1 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}
|
|
391
|
+
const RFC3339_WITH_OFFSET$1 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/);
|
|
392
392
|
const parseRfc3339DateTimeWithOffset = (value) => {
|
|
393
393
|
if (value === null || value === undefined) {
|
|
394
394
|
return undefined;
|
|
@@ -880,7 +880,7 @@ const deserializerMiddleware = (options, deserializer) => (next, context) => asy
|
|
|
880
880
|
try {
|
|
881
881
|
error.message += "\n " + hint;
|
|
882
882
|
}
|
|
883
|
-
catch (
|
|
883
|
+
catch (ignored) {
|
|
884
884
|
if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
|
|
885
885
|
console.warn(hint);
|
|
886
886
|
}
|
|
@@ -905,7 +905,7 @@ const deserializerMiddleware = (options, deserializer) => (next, context) => asy
|
|
|
905
905
|
};
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
|
-
catch (
|
|
908
|
+
catch (ignored) {
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
911
|
throw error;
|
|
@@ -1595,7 +1595,7 @@ const sdkStreamMixin = (stream) => {
|
|
|
1595
1595
|
try {
|
|
1596
1596
|
return sdkStreamMixin$1(stream);
|
|
1597
1597
|
}
|
|
1598
|
-
catch (
|
|
1598
|
+
catch (ignored) {
|
|
1599
1599
|
const name = stream?.__proto__?.constructor?.name || stream;
|
|
1600
1600
|
throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${name}`);
|
|
1601
1601
|
}
|
|
@@ -150,7 +150,7 @@ function bindV4(getRandomValues) {
|
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
const copyDocumentWithTransform = (source,
|
|
153
|
+
const copyDocumentWithTransform = (source, _schemaRef, _transform = (_) => _) => source;
|
|
154
154
|
|
|
155
155
|
const parseBoolean = (value) => {
|
|
156
156
|
switch (value) {
|
|
@@ -420,7 +420,7 @@ const parseRfc3339DateTime = (value) => {
|
|
|
420
420
|
const day = parseDateValue(dayStr, "day", 1, 31);
|
|
421
421
|
return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds });
|
|
422
422
|
};
|
|
423
|
-
const RFC3339_WITH_OFFSET$1 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}
|
|
423
|
+
const RFC3339_WITH_OFFSET$1 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/);
|
|
424
424
|
const parseRfc3339DateTimeWithOffset = (value) => {
|
|
425
425
|
if (value === null || value === undefined) {
|
|
426
426
|
return undefined;
|
|
@@ -915,7 +915,7 @@ const deserializerMiddleware = (options, deserializer) => (next, context) => asy
|
|
|
915
915
|
try {
|
|
916
916
|
error.message += "\n " + hint;
|
|
917
917
|
}
|
|
918
|
-
catch (
|
|
918
|
+
catch (ignored) {
|
|
919
919
|
if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
|
|
920
920
|
console.warn(hint);
|
|
921
921
|
}
|
|
@@ -940,7 +940,7 @@ const deserializerMiddleware = (options, deserializer) => (next, context) => asy
|
|
|
940
940
|
};
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
|
-
catch (
|
|
943
|
+
catch (ignored) {
|
|
944
944
|
}
|
|
945
945
|
}
|
|
946
946
|
throw error;
|
|
@@ -101,7 +101,7 @@ const isValidHostLabel = (value, allowSubDomains = false) => {
|
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
function isValidHostname(hostname) {
|
|
104
|
-
const hostPattern = /^[a-z0-9][a-z0-9
|
|
104
|
+
const hostPattern = /^[a-z0-9][a-z0-9.-]*[a-z0-9]$/;
|
|
105
105
|
return hostPattern.test(hostname);
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -35,7 +35,7 @@ export class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
|
35
35
|
try {
|
|
36
36
|
request.headers["content-length"] = String(request.body.byteLength);
|
|
37
37
|
}
|
|
38
|
-
catch (
|
|
38
|
+
catch (ignored) { }
|
|
39
39
|
}
|
|
40
40
|
const { service, operation } = getSmithyContext(context);
|
|
41
41
|
const path = `/service/${service}/operation/${operation}`;
|
|
@@ -67,7 +67,7 @@ export class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
|
67
67
|
try {
|
|
68
68
|
errorSchema = registry.getSchema(errorName);
|
|
69
69
|
}
|
|
70
|
-
catch (
|
|
70
|
+
catch (ignored) {
|
|
71
71
|
if (dataObject.Message) {
|
|
72
72
|
dataObject.message = dataObject.Message;
|
|
73
73
|
}
|
|
@@ -4,7 +4,7 @@ import { getResolvedPartition } from "./getResolvedPartition";
|
|
|
4
4
|
import { getResolvedSigningRegion } from "./getResolvedSigningRegion";
|
|
5
5
|
export const getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash, }) => {
|
|
6
6
|
const partition = getResolvedPartition(region, { partitionHash });
|
|
7
|
-
const resolvedRegion = region in regionHash ? region : partitionHash[partition]?.endpoint ?? region;
|
|
7
|
+
const resolvedRegion = region in regionHash ? region : (partitionHash[partition]?.endpoint ?? region);
|
|
8
8
|
const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint };
|
|
9
9
|
const regionHostname = getHostnameFromVariants(regionHash[resolvedRegion]?.variants, hostnameOptions);
|
|
10
10
|
const partitionHostname = getHostnameFromVariants(partitionHash[partition]?.variants, hostnameOptions);
|
|
@@ -20,7 +20,7 @@ export const resolveDefaultsModeConfig = ({ defaultsMode, } = {}) => memoize(asy
|
|
|
20
20
|
const useMobileConfiguration = () => {
|
|
21
21
|
const navigator = window?.navigator;
|
|
22
22
|
if (navigator?.connection) {
|
|
23
|
-
const { effectiveType, rtt, downlink } = navigator
|
|
23
|
+
const { effectiveType, rtt, downlink } = navigator.connection;
|
|
24
24
|
const slow = (typeof effectiveType === "string" && effectiveType !== "4g") || Number(rtt) > 100 || Number(downlink) < 10;
|
|
25
25
|
if (slow) {
|
|
26
26
|
return true;
|
package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IniSectionType } from "@smithy/types";
|
|
2
2
|
import { CONFIG_PREFIX_SEPARATOR } from "./constants";
|
|
3
|
-
const prefixKeyRegex = /^([\w-]+)\s(["'])?([\w
|
|
3
|
+
const prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/;
|
|
4
4
|
const profileNameBlockList = ["__proto__", "profile __proto__"];
|
|
5
5
|
export const parseIni = (iniData) => {
|
|
6
6
|
const map = {};
|
|
@@ -20,7 +20,7 @@ export const resolveParamsForS3 = async (endpointParams) => {
|
|
|
20
20
|
}
|
|
21
21
|
return endpointParams;
|
|
22
22
|
};
|
|
23
|
-
const DOMAIN_PATTERN = /^[a-z0-9][a-z0-9
|
|
23
|
+
const DOMAIN_PATTERN = /^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/;
|
|
24
24
|
const IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/;
|
|
25
25
|
const DOTS_PATTERN = /\.\./;
|
|
26
26
|
export const DOT_PATTERN = /\./;
|
|
@@ -24,27 +24,27 @@ export class HeaderMarshaller {
|
|
|
24
24
|
formatHeaderValue(header) {
|
|
25
25
|
switch (header.type) {
|
|
26
26
|
case "boolean":
|
|
27
|
-
return Uint8Array.from([header.value ?
|
|
27
|
+
return Uint8Array.from([header.value ? HEADER_VALUE_TYPE.boolTrue : HEADER_VALUE_TYPE.boolFalse]);
|
|
28
28
|
case "byte":
|
|
29
|
-
return Uint8Array.from([
|
|
29
|
+
return Uint8Array.from([HEADER_VALUE_TYPE.byte, header.value]);
|
|
30
30
|
case "short":
|
|
31
31
|
const shortView = new DataView(new ArrayBuffer(3));
|
|
32
|
-
shortView.setUint8(0,
|
|
32
|
+
shortView.setUint8(0, HEADER_VALUE_TYPE.short);
|
|
33
33
|
shortView.setInt16(1, header.value, false);
|
|
34
34
|
return new Uint8Array(shortView.buffer);
|
|
35
35
|
case "integer":
|
|
36
36
|
const intView = new DataView(new ArrayBuffer(5));
|
|
37
|
-
intView.setUint8(0,
|
|
37
|
+
intView.setUint8(0, HEADER_VALUE_TYPE.integer);
|
|
38
38
|
intView.setInt32(1, header.value, false);
|
|
39
39
|
return new Uint8Array(intView.buffer);
|
|
40
40
|
case "long":
|
|
41
41
|
const longBytes = new Uint8Array(9);
|
|
42
|
-
longBytes[0] =
|
|
42
|
+
longBytes[0] = HEADER_VALUE_TYPE.long;
|
|
43
43
|
longBytes.set(header.value.bytes, 1);
|
|
44
44
|
return longBytes;
|
|
45
45
|
case "binary":
|
|
46
46
|
const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
|
|
47
|
-
binView.setUint8(0,
|
|
47
|
+
binView.setUint8(0, HEADER_VALUE_TYPE.byteArray);
|
|
48
48
|
binView.setUint16(1, header.value.byteLength, false);
|
|
49
49
|
const binBytes = new Uint8Array(binView.buffer);
|
|
50
50
|
binBytes.set(header.value, 3);
|
|
@@ -52,14 +52,14 @@ export class HeaderMarshaller {
|
|
|
52
52
|
case "string":
|
|
53
53
|
const utf8Bytes = this.fromUtf8(header.value);
|
|
54
54
|
const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
|
|
55
|
-
strView.setUint8(0,
|
|
55
|
+
strView.setUint8(0, HEADER_VALUE_TYPE.string);
|
|
56
56
|
strView.setUint16(1, utf8Bytes.byteLength, false);
|
|
57
57
|
const strBytes = new Uint8Array(strView.buffer);
|
|
58
58
|
strBytes.set(utf8Bytes, 3);
|
|
59
59
|
return strBytes;
|
|
60
60
|
case "timestamp":
|
|
61
61
|
const tsBytes = new Uint8Array(9);
|
|
62
|
-
tsBytes[0] =
|
|
62
|
+
tsBytes[0] = HEADER_VALUE_TYPE.timestamp;
|
|
63
63
|
tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
|
|
64
64
|
return tsBytes;
|
|
65
65
|
case "uuid":
|
|
@@ -67,8 +67,8 @@ export class HeaderMarshaller {
|
|
|
67
67
|
throw new Error(`Invalid UUID received: ${header.value}`);
|
|
68
68
|
}
|
|
69
69
|
const uuidBytes = new Uint8Array(17);
|
|
70
|
-
uuidBytes[0] =
|
|
71
|
-
uuidBytes.set(fromHex(header.value.replace(
|
|
70
|
+
uuidBytes[0] = HEADER_VALUE_TYPE.uuid;
|
|
71
|
+
uuidBytes.set(fromHex(header.value.replace(/-/g, "")), 1);
|
|
72
72
|
return uuidBytes;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -80,46 +80,46 @@ export class HeaderMarshaller {
|
|
|
80
80
|
const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));
|
|
81
81
|
position += nameLength;
|
|
82
82
|
switch (headers.getUint8(position++)) {
|
|
83
|
-
case
|
|
83
|
+
case HEADER_VALUE_TYPE.boolTrue:
|
|
84
84
|
out[name] = {
|
|
85
85
|
type: BOOLEAN_TAG,
|
|
86
86
|
value: true,
|
|
87
87
|
};
|
|
88
88
|
break;
|
|
89
|
-
case
|
|
89
|
+
case HEADER_VALUE_TYPE.boolFalse:
|
|
90
90
|
out[name] = {
|
|
91
91
|
type: BOOLEAN_TAG,
|
|
92
92
|
value: false,
|
|
93
93
|
};
|
|
94
94
|
break;
|
|
95
|
-
case
|
|
95
|
+
case HEADER_VALUE_TYPE.byte:
|
|
96
96
|
out[name] = {
|
|
97
97
|
type: BYTE_TAG,
|
|
98
98
|
value: headers.getInt8(position++),
|
|
99
99
|
};
|
|
100
100
|
break;
|
|
101
|
-
case
|
|
101
|
+
case HEADER_VALUE_TYPE.short:
|
|
102
102
|
out[name] = {
|
|
103
103
|
type: SHORT_TAG,
|
|
104
104
|
value: headers.getInt16(position, false),
|
|
105
105
|
};
|
|
106
106
|
position += 2;
|
|
107
107
|
break;
|
|
108
|
-
case
|
|
108
|
+
case HEADER_VALUE_TYPE.integer:
|
|
109
109
|
out[name] = {
|
|
110
110
|
type: INT_TAG,
|
|
111
111
|
value: headers.getInt32(position, false),
|
|
112
112
|
};
|
|
113
113
|
position += 4;
|
|
114
114
|
break;
|
|
115
|
-
case
|
|
115
|
+
case HEADER_VALUE_TYPE.long:
|
|
116
116
|
out[name] = {
|
|
117
117
|
type: LONG_TAG,
|
|
118
118
|
value: new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)),
|
|
119
119
|
};
|
|
120
120
|
position += 8;
|
|
121
121
|
break;
|
|
122
|
-
case
|
|
122
|
+
case HEADER_VALUE_TYPE.byteArray:
|
|
123
123
|
const binaryLength = headers.getUint16(position, false);
|
|
124
124
|
position += 2;
|
|
125
125
|
out[name] = {
|
|
@@ -128,7 +128,7 @@ export class HeaderMarshaller {
|
|
|
128
128
|
};
|
|
129
129
|
position += binaryLength;
|
|
130
130
|
break;
|
|
131
|
-
case
|
|
131
|
+
case HEADER_VALUE_TYPE.string:
|
|
132
132
|
const stringLength = headers.getUint16(position, false);
|
|
133
133
|
position += 2;
|
|
134
134
|
out[name] = {
|
|
@@ -137,14 +137,14 @@ export class HeaderMarshaller {
|
|
|
137
137
|
};
|
|
138
138
|
position += stringLength;
|
|
139
139
|
break;
|
|
140
|
-
case
|
|
140
|
+
case HEADER_VALUE_TYPE.timestamp:
|
|
141
141
|
out[name] = {
|
|
142
142
|
type: TIMESTAMP_TAG,
|
|
143
143
|
value: new Date(new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()),
|
|
144
144
|
};
|
|
145
145
|
position += 8;
|
|
146
146
|
break;
|
|
147
|
-
case
|
|
147
|
+
case HEADER_VALUE_TYPE.uuid:
|
|
148
148
|
const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);
|
|
149
149
|
position += 16;
|
|
150
150
|
out[name] = {
|
package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js
CHANGED
|
@@ -41,7 +41,7 @@ export function bindRetryMiddleware(isStreamingPayload) {
|
|
|
41
41
|
try {
|
|
42
42
|
retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
|
|
43
43
|
}
|
|
44
|
-
catch (
|
|
44
|
+
catch (ignoredRefreshError) {
|
|
45
45
|
if (!lastError.$metadata) {
|
|
46
46
|
lastError.$metadata = {};
|
|
47
47
|
}
|
package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/StandardRetryStrategy.js
CHANGED
|
@@ -76,7 +76,7 @@ export class StandardRetryStrategy {
|
|
|
76
76
|
try {
|
|
77
77
|
return await this.maxAttemptsProvider();
|
|
78
78
|
}
|
|
79
|
-
catch (
|
|
79
|
+
catch (ignored) {
|
|
80
80
|
console.warn(`Max attempts provider could not resolve. Using default of ${DEFAULT_MAX_ATTEMPTS}`);
|
|
81
81
|
return DEFAULT_MAX_ATTEMPTS;
|
|
82
82
|
}
|