@aws-sdk/core 3.975.2 → 3.975.3
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/dist-cjs/submodules/httpAuthSchemes/index.js +1 -1
- package/dist-cjs/submodules/protocols/index.js +8 -8
- package/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js +1 -1
- package/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +1 -1
- package/dist-es/submodules/protocols/json/JsonShapeSerializer.js +1 -1
- package/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +1 -1
- package/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +2 -2
- package/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -4
- package/dist-types/ts3.4/index.d.ts +1 -5
- package/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +2 -4
- package/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +1 -3
- package/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +2 -4
- package/dist-types/ts3.4/submodules/client/index.browser.d.ts +3 -12
- package/dist-types/ts3.4/submodules/client/index.d.ts +4 -16
- package/dist-types/ts3.4/submodules/client/index.native.d.ts +3 -12
- package/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +2 -4
- package/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +5 -9
- package/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +3 -6
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +1 -2
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +1 -3
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +1 -3
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +1 -4
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +1 -4
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +1 -4
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +2 -6
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/user-agent-middleware.d.ts +4 -7
- package/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +2 -2
- package/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +3 -8
- package/dist-types/ts3.4/submodules/client/setFeature.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.d.ts +3 -9
- package/dist-types/ts3.4/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -5
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +1 -3
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +2 -6
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +2 -6
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +2 -6
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +1 -3
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +2 -5
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +4 -6
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +1 -3
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +2 -8
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +3 -8
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +8 -17
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +1 -1
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +1 -4
- package/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +6 -19
- package/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +2 -2
- package/dist-types/ts3.4/submodules/protocols/common.d.ts +1 -1
- package/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -5
- package/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -2
- package/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +3 -3
- package/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +1 -4
- package/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +1 -5
- package/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +1 -3
- package/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +1 -1
- package/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +4 -13
- package/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +4 -7
- package/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +1 -1
- package/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +3 -3
- package/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +3 -12
- package/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +1 -1
- package/package.json +64 -64
|
@@ -4,7 +4,7 @@ const { ProviderError } = require("@smithy/core/config");
|
|
|
4
4
|
const { setCredentialFeature } = require("@aws-sdk/core/client");
|
|
5
5
|
const { SignatureV4 } = require("@smithy/signature-v4");
|
|
6
6
|
|
|
7
|
-
const getDateHeader = (response) => HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : undefined;
|
|
7
|
+
const getDateHeader = (response) => HttpResponse.isInstance(response) ? (response.headers?.date ?? response.headers?.Date) : undefined;
|
|
8
8
|
|
|
9
9
|
const getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset);
|
|
10
10
|
|
|
@@ -414,7 +414,7 @@ class JsonShapeDeserializer extends SerdeContextConfig {
|
|
|
414
414
|
else if (typeof record.__type === "string") {
|
|
415
415
|
for (const k in record) {
|
|
416
416
|
const v = record[k];
|
|
417
|
-
const t = jsonName ? nameMap[k] ?? k : k;
|
|
417
|
+
const t = jsonName ? (nameMap[k] ?? k) : k;
|
|
418
418
|
if (!(t in out)) {
|
|
419
419
|
out[t] = v;
|
|
420
420
|
}
|
|
@@ -623,7 +623,7 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
623
623
|
else if (typeof record.__type === "string") {
|
|
624
624
|
for (const k in record) {
|
|
625
625
|
const v = record[k];
|
|
626
|
-
const targetKey = jsonName ? nameMap[k] ?? k : k;
|
|
626
|
+
const targetKey = jsonName ? (nameMap[k] ?? k) : k;
|
|
627
627
|
if (!(targetKey in out)) {
|
|
628
628
|
out[targetKey] = this._write(15, v);
|
|
629
629
|
}
|
|
@@ -1050,8 +1050,8 @@ class XmlShapeDeserializer extends SerdeContextConfig {
|
|
|
1050
1050
|
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
1051
1051
|
const memberTraits = memberSchema.getMergedTraits();
|
|
1052
1052
|
const xmlObjectKey = !memberTraits.httpPayload
|
|
1053
|
-
? memberSchema.getMemberTraits().xmlName ?? memberName
|
|
1054
|
-
: memberTraits.xmlName ?? memberSchema.getName();
|
|
1053
|
+
? (memberSchema.getMemberTraits().xmlName ?? memberName)
|
|
1054
|
+
: (memberTraits.xmlName ?? memberSchema.getName());
|
|
1055
1055
|
if (union) {
|
|
1056
1056
|
unionSerde.mark(xmlObjectKey);
|
|
1057
1057
|
}
|
|
@@ -1533,8 +1533,8 @@ class XmlShapeSerializer extends SerdeContextConfig {
|
|
|
1533
1533
|
writeStruct(ns, value, parentXmlns) {
|
|
1534
1534
|
const traits = ns.getMergedTraits();
|
|
1535
1535
|
const name = ns.isMemberSchema() && !traits.httpPayload
|
|
1536
|
-
? ns.getMemberTraits().xmlName ?? ns.getMemberName()
|
|
1537
|
-
: traits.xmlName ?? ns.getName();
|
|
1536
|
+
? (ns.getMemberTraits().xmlName ?? ns.getMemberName())
|
|
1537
|
+
: (traits.xmlName ?? ns.getName());
|
|
1538
1538
|
if (!name || !ns.isStructSchema()) {
|
|
1539
1539
|
throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${ns.getName(true)}.`);
|
|
1540
1540
|
}
|
|
@@ -1603,10 +1603,10 @@ class XmlShapeSerializer extends SerdeContextConfig {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
else if (listValueSchema.isStructSchema()) {
|
|
1605
1605
|
const struct = this.writeStruct(listValueSchema, value, xmlns);
|
|
1606
|
-
container.addChildNode(struct.withName(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member"));
|
|
1606
|
+
container.addChildNode(struct.withName(flat ? (listTraits.xmlName ?? listMember.getMemberName()) : (listValueTraits.xmlName ?? "member")));
|
|
1607
1607
|
}
|
|
1608
1608
|
else {
|
|
1609
|
-
const listItemNode = XmlNode.of(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member");
|
|
1609
|
+
const listItemNode = XmlNode.of(flat ? (listTraits.xmlName ?? listMember.getMemberName()) : (listValueTraits.xmlName ?? "member"));
|
|
1610
1610
|
this.writeSimpleInto(listValueSchema, value, listItemNode, xmlns);
|
|
1611
1611
|
container.addChildNode(listItemNode);
|
|
1612
1612
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { HttpResponse } from "@smithy/core/protocols";
|
|
2
|
-
export const getDateHeader = (response) => HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : undefined;
|
|
2
|
+
export const getDateHeader = (response) => HttpResponse.isInstance(response) ? (response.headers?.date ?? response.headers?.Date) : undefined;
|
|
@@ -54,7 +54,7 @@ export class JsonShapeDeserializer extends SerdeContextConfig {
|
|
|
54
54
|
else if (typeof record.__type === "string") {
|
|
55
55
|
for (const k in record) {
|
|
56
56
|
const v = record[k];
|
|
57
|
-
const t = jsonName ? nameMap[k] ?? k : k;
|
|
57
|
+
const t = jsonName ? (nameMap[k] ?? k) : k;
|
|
58
58
|
if (!(t in out)) {
|
|
59
59
|
out[t] = v;
|
|
60
60
|
}
|
|
@@ -70,7 +70,7 @@ export class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
70
70
|
else if (typeof record.__type === "string") {
|
|
71
71
|
for (const k in record) {
|
|
72
72
|
const v = record[k];
|
|
73
|
-
const targetKey = jsonName ? nameMap[k] ?? k : k;
|
|
73
|
+
const targetKey = jsonName ? (nameMap[k] ?? k) : k;
|
|
74
74
|
if (!(targetKey in out)) {
|
|
75
75
|
out[targetKey] = this._write(15, v);
|
|
76
76
|
}
|
|
@@ -46,7 +46,7 @@ export class SinglePassJsonShapeSerializer extends SerdeContextConfig {
|
|
|
46
46
|
let didWriteMember = false;
|
|
47
47
|
for (const [name, member] of ns.structIterator()) {
|
|
48
48
|
const item = value[name];
|
|
49
|
-
const targetKey = this.settings.jsonName ? member.getMergedTraits().jsonName ?? name : name;
|
|
49
|
+
const targetKey = this.settings.jsonName ? (member.getMergedTraits().jsonName ?? name) : name;
|
|
50
50
|
const serializableValue = this.writeValue(member, item);
|
|
51
51
|
if (item != null || member.isIdempotencyToken()) {
|
|
52
52
|
didWriteMember = true;
|
|
@@ -98,8 +98,8 @@ export class XmlShapeDeserializer extends SerdeContextConfig {
|
|
|
98
98
|
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
99
99
|
const memberTraits = memberSchema.getMergedTraits();
|
|
100
100
|
const xmlObjectKey = !memberTraits.httpPayload
|
|
101
|
-
? memberSchema.getMemberTraits().xmlName ?? memberName
|
|
102
|
-
: memberTraits.xmlName ?? memberSchema.getName();
|
|
101
|
+
? (memberSchema.getMemberTraits().xmlName ?? memberName)
|
|
102
|
+
: (memberTraits.xmlName ?? memberSchema.getName());
|
|
103
103
|
if (union) {
|
|
104
104
|
unionSerde.mark(xmlObjectKey);
|
|
105
105
|
}
|
|
@@ -55,8 +55,8 @@ export class XmlShapeSerializer extends SerdeContextConfig {
|
|
|
55
55
|
writeStruct(ns, value, parentXmlns) {
|
|
56
56
|
const traits = ns.getMergedTraits();
|
|
57
57
|
const name = ns.isMemberSchema() && !traits.httpPayload
|
|
58
|
-
? ns.getMemberTraits().xmlName ?? ns.getMemberName()
|
|
59
|
-
: traits.xmlName ?? ns.getName();
|
|
58
|
+
? (ns.getMemberTraits().xmlName ?? ns.getMemberName())
|
|
59
|
+
: (traits.xmlName ?? ns.getName());
|
|
60
60
|
if (!name || !ns.isStructSchema()) {
|
|
61
61
|
throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${ns.getName(true)}.`);
|
|
62
62
|
}
|
|
@@ -125,10 +125,10 @@ export class XmlShapeSerializer extends SerdeContextConfig {
|
|
|
125
125
|
}
|
|
126
126
|
else if (listValueSchema.isStructSchema()) {
|
|
127
127
|
const struct = this.writeStruct(listValueSchema, value, xmlns);
|
|
128
|
-
container.addChildNode(struct.withName(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member"));
|
|
128
|
+
container.addChildNode(struct.withName(flat ? (listTraits.xmlName ?? listMember.getMemberName()) : (listValueTraits.xmlName ?? "member")));
|
|
129
129
|
}
|
|
130
130
|
else {
|
|
131
|
-
const listItemNode = XmlNode.of(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member");
|
|
131
|
+
const listItemNode = XmlNode.of(flat ? (listTraits.xmlName ?? listMember.getMemberName()) : (listValueTraits.xmlName ?? "member"));
|
|
132
132
|
this.writeSimpleInto(listValueSchema, value, listItemNode, xmlns);
|
|
133
133
|
container.addChildNode(listItemNode);
|
|
134
134
|
}
|
|
@@ -58,8 +58,4 @@ export {
|
|
|
58
58
|
XmlShapeDeserializer,
|
|
59
59
|
XmlShapeSerializer,
|
|
60
60
|
} from "@aws-sdk/core/protocols";
|
|
61
|
-
export {
|
|
62
|
-
JsonSettings,
|
|
63
|
-
QuerySerializerSettings,
|
|
64
|
-
XmlSettings,
|
|
65
|
-
} from "@aws-sdk/core/protocols";
|
|
61
|
+
export { JsonSettings, QuerySerializerSettings, XmlSettings } from "@aws-sdk/core/protocols";
|
package/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { Provider } from "@smithy/types";
|
|
2
2
|
import { AccountIdEndpointMode } from "./AccountIdEndpointModeConstants";
|
|
3
3
|
export interface AccountIdEndpointModeInputConfig {
|
|
4
|
-
accountIdEndpointMode?:
|
|
5
|
-
| AccountIdEndpointMode
|
|
6
|
-
| Provider<AccountIdEndpointMode>;
|
|
4
|
+
accountIdEndpointMode?: AccountIdEndpointMode | Provider<AccountIdEndpointMode>;
|
|
7
5
|
}
|
|
8
6
|
interface PreviouslyResolved {}
|
|
9
7
|
export interface AccountIdEndpointModeResolvedConfig {
|
|
10
8
|
accountIdEndpointMode: Provider<AccountIdEndpointMode>;
|
|
11
9
|
}
|
|
12
10
|
export declare const resolveAccountIdEndpointModeConfig: <T>(
|
|
13
|
-
input: T & AccountIdEndpointModeInputConfig & PreviouslyResolved
|
|
11
|
+
input: T & AccountIdEndpointModeInputConfig & PreviouslyResolved,
|
|
14
12
|
) => T & AccountIdEndpointModeResolvedConfig;
|
|
15
13
|
export {};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export type AccountIdEndpointMode = "disabled" | "preferred" | "required";
|
|
2
2
|
export declare const DEFAULT_ACCOUNT_ID_ENDPOINT_MODE = "preferred";
|
|
3
3
|
export declare const ACCOUNT_ID_ENDPOINT_MODE_VALUES: AccountIdEndpointMode[];
|
|
4
|
-
export declare function validateAccountIdEndpointMode(
|
|
5
|
-
value: any
|
|
6
|
-
): value is AccountIdEndpointMode;
|
|
4
|
+
export declare function validateAccountIdEndpointMode(value: any): value is AccountIdEndpointMode;
|
package/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { LoadedConfigSelectors } from "@smithy/core/config";
|
|
2
2
|
import { AccountIdEndpointMode } from "./AccountIdEndpointModeConstants";
|
|
3
|
-
export declare const ENV_ACCOUNT_ID_ENDPOINT_MODE =
|
|
4
|
-
|
|
5
|
-
export declare const CONFIG_ACCOUNT_ID_ENDPOINT_MODE =
|
|
6
|
-
"account_id_endpoint_mode";
|
|
3
|
+
export declare const ENV_ACCOUNT_ID_ENDPOINT_MODE = "AWS_ACCOUNT_ID_ENDPOINT_MODE";
|
|
4
|
+
export declare const CONFIG_ACCOUNT_ID_ENDPOINT_MODE = "account_id_endpoint_mode";
|
|
7
5
|
export declare const NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS: LoadedConfigSelectors<AccountIdEndpointMode>;
|
|
@@ -22,10 +22,7 @@ export {
|
|
|
22
22
|
export { recursionDetectionMiddlewareOptions } from "./middleware-recursion-detection/configuration";
|
|
23
23
|
export { getRecursionDetectionPlugin } from "./middleware-recursion-detection/getRecursionDetectionPlugin.browser";
|
|
24
24
|
export { recursionDetectionMiddleware } from "./middleware-recursion-detection/recursionDetectionMiddleware.browser";
|
|
25
|
-
export {
|
|
26
|
-
DEFAULT_UA_APP_ID,
|
|
27
|
-
resolveUserAgentConfig,
|
|
28
|
-
} from "./middleware-user-agent/configurations";
|
|
25
|
+
export { DEFAULT_UA_APP_ID, resolveUserAgentConfig } from "./middleware-user-agent/configurations";
|
|
29
26
|
export {
|
|
30
27
|
UserAgentInputConfig,
|
|
31
28
|
UserAgentResolvedConfig,
|
|
@@ -77,10 +74,7 @@ export {
|
|
|
77
74
|
EndpointRuleObject,
|
|
78
75
|
} from "./util-endpoints/types/EndpointRuleObject";
|
|
79
76
|
export { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject";
|
|
80
|
-
export {
|
|
81
|
-
RuleSetRules,
|
|
82
|
-
TreeRuleObject,
|
|
83
|
-
} from "./util-endpoints/types/TreeRuleObject";
|
|
77
|
+
export { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject";
|
|
84
78
|
export {
|
|
85
79
|
DeprecatedObject,
|
|
86
80
|
ParameterObject,
|
|
@@ -103,10 +97,7 @@ export declare const REGION_INI_NAME: symbol;
|
|
|
103
97
|
export declare const NODE_REGION_CONFIG_OPTIONS: symbol;
|
|
104
98
|
export declare const NODE_REGION_CONFIG_FILE_OPTIONS: symbol;
|
|
105
99
|
export { resolveRegionConfig } from "./region-config-resolver/awsRegionConfig";
|
|
106
|
-
export {
|
|
107
|
-
RegionInputConfig,
|
|
108
|
-
RegionResolvedConfig,
|
|
109
|
-
} from "./region-config-resolver/awsRegionConfig";
|
|
100
|
+
export { RegionInputConfig, RegionResolvedConfig } from "./region-config-resolver/awsRegionConfig";
|
|
110
101
|
export { stsRegionDefaultResolver } from "./region-config-resolver/stsRegionDefaultResolver.browser";
|
|
111
102
|
export declare const stsRegionWarning: symbol;
|
|
112
103
|
export {
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
emitWarningIfUnsupportedVersion,
|
|
3
|
-
state,
|
|
4
|
-
} from "./emitWarningIfUnsupportedVersion";
|
|
1
|
+
export { emitWarningIfUnsupportedVersion, state } from "./emitWarningIfUnsupportedVersion";
|
|
5
2
|
export { getLongPollPlugin } from "./longPollMiddleware";
|
|
6
3
|
export { setCredentialFeature } from "./setCredentialFeature";
|
|
7
4
|
export { setFeature } from "./setFeature";
|
|
@@ -24,10 +21,7 @@ export {
|
|
|
24
21
|
export { recursionDetectionMiddlewareOptions } from "./middleware-recursion-detection/configuration";
|
|
25
22
|
export { getRecursionDetectionPlugin } from "./middleware-recursion-detection/getRecursionDetectionPlugin";
|
|
26
23
|
export { recursionDetectionMiddleware } from "./middleware-recursion-detection/recursionDetectionMiddleware";
|
|
27
|
-
export {
|
|
28
|
-
DEFAULT_UA_APP_ID,
|
|
29
|
-
resolveUserAgentConfig,
|
|
30
|
-
} from "./middleware-user-agent/configurations";
|
|
24
|
+
export { DEFAULT_UA_APP_ID, resolveUserAgentConfig } from "./middleware-user-agent/configurations";
|
|
31
25
|
export {
|
|
32
26
|
UserAgentInputConfig,
|
|
33
27
|
UserAgentResolvedConfig,
|
|
@@ -81,10 +75,7 @@ export {
|
|
|
81
75
|
EndpointRuleObject,
|
|
82
76
|
} from "./util-endpoints/types/EndpointRuleObject";
|
|
83
77
|
export { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject";
|
|
84
|
-
export {
|
|
85
|
-
RuleSetRules,
|
|
86
|
-
TreeRuleObject,
|
|
87
|
-
} from "./util-endpoints/types/TreeRuleObject";
|
|
78
|
+
export { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject";
|
|
88
79
|
export {
|
|
89
80
|
DeprecatedObject,
|
|
90
81
|
ParameterObject,
|
|
@@ -109,10 +100,7 @@ export {
|
|
|
109
100
|
NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
110
101
|
resolveRegionConfig,
|
|
111
102
|
} from "./region-config-resolver/awsRegionConfig";
|
|
112
|
-
export {
|
|
113
|
-
RegionInputConfig,
|
|
114
|
-
RegionResolvedConfig,
|
|
115
|
-
} from "./region-config-resolver/awsRegionConfig";
|
|
103
|
+
export { RegionInputConfig, RegionResolvedConfig } from "./region-config-resolver/awsRegionConfig";
|
|
116
104
|
export {
|
|
117
105
|
stsRegionDefaultResolver,
|
|
118
106
|
warning as stsRegionWarning,
|
|
@@ -22,10 +22,7 @@ export {
|
|
|
22
22
|
export { recursionDetectionMiddlewareOptions } from "./middleware-recursion-detection/configuration";
|
|
23
23
|
export { getRecursionDetectionPlugin } from "./middleware-recursion-detection/getRecursionDetectionPlugin.browser";
|
|
24
24
|
export { recursionDetectionMiddleware } from "./middleware-recursion-detection/recursionDetectionMiddleware.native";
|
|
25
|
-
export {
|
|
26
|
-
DEFAULT_UA_APP_ID,
|
|
27
|
-
resolveUserAgentConfig,
|
|
28
|
-
} from "./middleware-user-agent/configurations";
|
|
25
|
+
export { DEFAULT_UA_APP_ID, resolveUserAgentConfig } from "./middleware-user-agent/configurations";
|
|
29
26
|
export {
|
|
30
27
|
UserAgentInputConfig,
|
|
31
28
|
UserAgentResolvedConfig,
|
|
@@ -77,10 +74,7 @@ export {
|
|
|
77
74
|
EndpointRuleObject,
|
|
78
75
|
} from "./util-endpoints/types/EndpointRuleObject";
|
|
79
76
|
export { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject";
|
|
80
|
-
export {
|
|
81
|
-
RuleSetRules,
|
|
82
|
-
TreeRuleObject,
|
|
83
|
-
} from "./util-endpoints/types/TreeRuleObject";
|
|
77
|
+
export { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject";
|
|
84
78
|
export {
|
|
85
79
|
DeprecatedObject,
|
|
86
80
|
ParameterObject,
|
|
@@ -103,10 +97,7 @@ export declare const REGION_INI_NAME: symbol;
|
|
|
103
97
|
export declare const NODE_REGION_CONFIG_OPTIONS: symbol;
|
|
104
98
|
export declare const NODE_REGION_CONFIG_FILE_OPTIONS: symbol;
|
|
105
99
|
export { resolveRegionConfig } from "./region-config-resolver/awsRegionConfig";
|
|
106
|
-
export {
|
|
107
|
-
RegionInputConfig,
|
|
108
|
-
RegionResolvedConfig,
|
|
109
|
-
} from "./region-config-resolver/awsRegionConfig";
|
|
100
|
+
export { RegionInputConfig, RegionResolvedConfig } from "./region-config-resolver/awsRegionConfig";
|
|
110
101
|
export { stsRegionDefaultResolver } from "./region-config-resolver/stsRegionDefaultResolver.native";
|
|
111
102
|
export declare const stsRegionWarning: symbol;
|
|
112
103
|
export {
|
|
@@ -5,11 +5,9 @@ import {
|
|
|
5
5
|
MetadataBearer,
|
|
6
6
|
Pluggable,
|
|
7
7
|
} from "@smithy/types";
|
|
8
|
-
export declare const longPollMiddleware: () => <
|
|
9
|
-
Output extends MetadataBearer = MetadataBearer
|
|
10
|
-
>(
|
|
8
|
+
export declare const longPollMiddleware: () => <Output extends MetadataBearer = MetadataBearer>(
|
|
11
9
|
next: InitializeHandler<any, Output>,
|
|
12
|
-
context: HandlerExecutionContext
|
|
10
|
+
context: HandlerExecutionContext,
|
|
13
11
|
) => InitializeHandler<any, Output>;
|
|
14
12
|
export declare const longPollMiddlewareOptions: InitializeHandlerOptions;
|
|
15
13
|
export declare const getLongPollPlugin: (options: {}) => Pluggable<any, any>;
|
|
@@ -13,17 +13,13 @@ export interface HostHeaderResolvedConfig {
|
|
|
13
13
|
requestHandler: RequestHandler<any, any>;
|
|
14
14
|
}
|
|
15
15
|
export declare function resolveHostHeaderConfig<T>(
|
|
16
|
-
input: T & PreviouslyResolved & HostHeaderInputConfig
|
|
16
|
+
input: T & PreviouslyResolved & HostHeaderInputConfig,
|
|
17
17
|
): T & HostHeaderResolvedConfig;
|
|
18
|
-
export declare const hostHeaderMiddleware: <
|
|
19
|
-
|
|
20
|
-
Output extends object
|
|
21
|
-
>(
|
|
22
|
-
options: HostHeaderResolvedConfig
|
|
18
|
+
export declare const hostHeaderMiddleware: <Input extends object, Output extends object>(
|
|
19
|
+
options: HostHeaderResolvedConfig,
|
|
23
20
|
) => BuildMiddleware<Input, Output>;
|
|
24
|
-
export declare const hostHeaderMiddlewareOptions: BuildHandlerOptions &
|
|
25
|
-
AbsoluteLocation;
|
|
21
|
+
export declare const hostHeaderMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation;
|
|
26
22
|
export declare const getHostHeaderPlugin: (
|
|
27
|
-
options: HostHeaderResolvedConfig
|
|
23
|
+
options: HostHeaderResolvedConfig,
|
|
28
24
|
) => Pluggable<any, any>;
|
|
29
25
|
export {};
|
|
@@ -6,12 +6,9 @@ import {
|
|
|
6
6
|
MetadataBearer,
|
|
7
7
|
Pluggable,
|
|
8
8
|
} from "@smithy/types";
|
|
9
|
-
export declare const loggerMiddleware: () => <
|
|
10
|
-
Output extends MetadataBearer = MetadataBearer
|
|
11
|
-
>(
|
|
9
|
+
export declare const loggerMiddleware: () => <Output extends MetadataBearer = MetadataBearer>(
|
|
12
10
|
next: InitializeHandler<any, Output>,
|
|
13
|
-
context: HandlerExecutionContext
|
|
11
|
+
context: HandlerExecutionContext,
|
|
14
12
|
) => InitializeHandler<any, Output>;
|
|
15
|
-
export declare const loggerMiddlewareOptions: InitializeHandlerOptions &
|
|
16
|
-
AbsoluteLocation;
|
|
13
|
+
export declare const loggerMiddlewareOptions: InitializeHandlerOptions & AbsoluteLocation;
|
|
17
14
|
export declare const getLoggerPlugin: (options: any) => Pluggable<any, any>;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { AccountIdEndpointMode } from "@aws-sdk/core/account-id-endpoint";
|
|
2
2
|
import { AwsHandlerExecutionContext } from "@aws-sdk/types";
|
|
3
|
-
import {
|
|
4
|
-
AwsCredentialIdentityProvider,
|
|
5
|
-
BuildHandlerArguments,
|
|
6
|
-
Provider,
|
|
7
|
-
} from "@smithy/types";
|
|
3
|
+
import { AwsCredentialIdentityProvider, BuildHandlerArguments, Provider } from "@smithy/types";
|
|
8
4
|
type PreviouslyResolved = Partial<{
|
|
9
5
|
credentials?: AwsCredentialIdentityProvider;
|
|
10
6
|
accountIdEndpointMode?: Provider<AccountIdEndpointMode>;
|
|
@@ -15,6 +11,6 @@ type PreviouslyResolved = Partial<{
|
|
|
15
11
|
export declare function checkFeatures(
|
|
16
12
|
context: AwsHandlerExecutionContext,
|
|
17
13
|
config: PreviouslyResolved,
|
|
18
|
-
args: BuildHandlerArguments<any
|
|
14
|
+
args: BuildHandlerArguments<any>,
|
|
19
15
|
): Promise<void>;
|
|
20
16
|
export {};
|
|
@@ -16,6 +16,6 @@ export interface UserAgentResolvedConfig {
|
|
|
16
16
|
userAgentAppId: Provider<string | undefined>;
|
|
17
17
|
}
|
|
18
18
|
export declare function resolveUserAgentConfig<T>(
|
|
19
|
-
input: T & PreviouslyResolved & UserAgentInputConfig
|
|
19
|
+
input: T & PreviouslyResolved & UserAgentInputConfig,
|
|
20
20
|
): T & UserAgentResolvedConfig;
|
|
21
21
|
export {};
|
|
@@ -9,13 +9,10 @@ import {
|
|
|
9
9
|
} from "@smithy/types";
|
|
10
10
|
import { UserAgentResolvedConfig } from "./configurations";
|
|
11
11
|
export declare const userAgentMiddleware: (
|
|
12
|
-
options: UserAgentResolvedConfig
|
|
12
|
+
options: UserAgentResolvedConfig,
|
|
13
13
|
) => <Output extends MetadataBearer>(
|
|
14
14
|
next: BuildHandler<any, any>,
|
|
15
|
-
context: HandlerExecutionContext | AwsHandlerExecutionContext
|
|
15
|
+
context: HandlerExecutionContext | AwsHandlerExecutionContext,
|
|
16
16
|
) => BuildHandler<any, any>;
|
|
17
|
-
export declare const getUserAgentMiddlewareOptions: BuildHandlerOptions &
|
|
18
|
-
|
|
19
|
-
export declare const getUserAgentPlugin: (
|
|
20
|
-
config: UserAgentResolvedConfig
|
|
21
|
-
) => Pluggable<any, any>;
|
|
17
|
+
export declare const getUserAgentMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation;
|
|
18
|
+
export declare const getUserAgentPlugin: (config: UserAgentResolvedConfig) => Pluggable<any, any>;
|
|
@@ -4,11 +4,11 @@ export type RegionExtensionRuntimeConfigType = Partial<{
|
|
|
4
4
|
region: string | Provider<string>;
|
|
5
5
|
}>;
|
|
6
6
|
export declare const getAwsRegionExtensionConfiguration: (
|
|
7
|
-
runtimeConfig: RegionExtensionRuntimeConfigType
|
|
7
|
+
runtimeConfig: RegionExtensionRuntimeConfigType,
|
|
8
8
|
) => {
|
|
9
9
|
setRegion(region: Provider<string>): void;
|
|
10
10
|
region(): Provider<string>;
|
|
11
11
|
};
|
|
12
12
|
export declare const resolveAwsRegionExtensionConfiguration: (
|
|
13
|
-
awsRegionExtensionConfiguration: AwsRegionExtensionConfiguration
|
|
13
|
+
awsRegionExtensionConfiguration: AwsRegionExtensionConfiguration,
|
|
14
14
|
) => RegionExtensionRuntimeConfigType;
|
package/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LocalConfigOptions } from "@smithy/core/config";
|
|
2
2
|
export declare function stsRegionDefaultResolver(
|
|
3
|
-
loaderConfig?: LocalConfigOptions
|
|
3
|
+
loaderConfig?: LocalConfigOptions,
|
|
4
4
|
): import("@smithy/types").Provider<string>;
|
|
5
5
|
export declare const warning: {
|
|
6
6
|
silence: boolean;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
AwsSdkCredentialsFeatures,
|
|
4
|
-
} from "@aws-sdk/types";
|
|
5
|
-
export declare function setCredentialFeature<
|
|
6
|
-
F extends keyof AwsSdkCredentialsFeatures
|
|
7
|
-
>(
|
|
1
|
+
import { AttributedAwsCredentialIdentity, AwsSdkCredentialsFeatures } from "@aws-sdk/types";
|
|
2
|
+
export declare function setCredentialFeature<F extends keyof AwsSdkCredentialsFeatures>(
|
|
8
3
|
credentials: AttributedAwsCredentialIdentity,
|
|
9
4
|
feature: F,
|
|
10
|
-
value: AwsSdkCredentialsFeatures[F]
|
|
5
|
+
value: AwsSdkCredentialsFeatures[F],
|
|
11
6
|
): AttributedAwsCredentialIdentity;
|
|
@@ -2,5 +2,5 @@ import { AttributedTokenIdentity, AwsSdkTokenFeatures } from "@aws-sdk/types";
|
|
|
2
2
|
export declare function setTokenFeature<F extends keyof AwsSdkTokenFeatures>(
|
|
3
3
|
token: AttributedTokenIdentity,
|
|
4
4
|
feature: F,
|
|
5
|
-
value: AwsSdkTokenFeatures[F]
|
|
5
|
+
value: AwsSdkTokenFeatures[F],
|
|
6
6
|
): AttributedTokenIdentity;
|
|
@@ -22,7 +22,7 @@ export type PartitionsInfo = {
|
|
|
22
22
|
export declare const partition: (value: string) => EndpointPartition;
|
|
23
23
|
export declare const setPartitionInfo: (
|
|
24
24
|
partitionsInfo: PartitionsInfo,
|
|
25
|
-
userAgentPrefix?: string
|
|
25
|
+
userAgentPrefix?: string,
|
|
26
26
|
) => void;
|
|
27
27
|
export declare const useDefaultPartitionInfo: () => void;
|
|
28
28
|
export declare const getUserAgentPrefix: () => string;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Endpoint,
|
|
3
|
-
EndpointParameters,
|
|
4
|
-
EndpointV2,
|
|
5
|
-
Logger,
|
|
6
|
-
Provider,
|
|
7
|
-
} from "@smithy/types";
|
|
1
|
+
import { Endpoint, EndpointParameters, EndpointV2, Logger, Provider } from "@smithy/types";
|
|
8
2
|
export type DefaultAwsRegionalEndpointsInputConfig = {
|
|
9
3
|
endpoint?: unknown;
|
|
10
4
|
};
|
|
@@ -17,7 +11,7 @@ type PreviouslyResolved = {
|
|
|
17
11
|
endpointParams: EndpointParameters | DefaultRegionalEndpointParameters,
|
|
18
12
|
context?: {
|
|
19
13
|
logger?: Logger;
|
|
20
|
-
}
|
|
14
|
+
},
|
|
21
15
|
) => EndpointV2;
|
|
22
16
|
};
|
|
23
17
|
type DefaultRegionalEndpointParameters = {
|
|
@@ -29,7 +23,7 @@ export interface DefaultAwsRegionalEndpointsResolvedConfig {
|
|
|
29
23
|
endpoint: Provider<Endpoint>;
|
|
30
24
|
}
|
|
31
25
|
export declare const resolveDefaultAwsRegionalEndpointsConfig: <T>(
|
|
32
|
-
input: T & DefaultAwsRegionalEndpointsInputConfig & PreviouslyResolved
|
|
26
|
+
input: T & DefaultAwsRegionalEndpointsInputConfig & PreviouslyResolved,
|
|
33
27
|
) => T & DefaultAwsRegionalEndpointsResolvedConfig;
|
|
34
28
|
export declare const toEndpointV1: (endpoint: EndpointV2) => Endpoint;
|
|
35
29
|
export {};
|
|
@@ -4,6 +4,4 @@ import { PreviouslyResolved } from "./defaultUserAgent";
|
|
|
4
4
|
export declare const createUserAgentStringParsingProvider: ({
|
|
5
5
|
serviceId,
|
|
6
6
|
clientVersion,
|
|
7
|
-
}: DefaultUserAgentOptions) => (
|
|
8
|
-
config?: PreviouslyResolved
|
|
9
|
-
) => Promise<UserAgent>;
|
|
7
|
+
}: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|
|
@@ -7,9 +7,7 @@ export interface PreviouslyResolved {
|
|
|
7
7
|
export declare const createDefaultUserAgentProvider: ({
|
|
8
8
|
serviceId,
|
|
9
9
|
clientVersion,
|
|
10
|
-
}: DefaultUserAgentOptions) => (
|
|
11
|
-
config?: PreviouslyResolved
|
|
12
|
-
) => Promise<UserAgent>;
|
|
10
|
+
}: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|
|
13
11
|
export declare const fallback: {
|
|
14
12
|
os(ua: string): string | undefined;
|
|
15
13
|
browser(ua: string): string | undefined;
|
|
@@ -17,6 +15,4 @@ export declare const fallback: {
|
|
|
17
15
|
export declare const defaultUserAgent: ({
|
|
18
16
|
serviceId,
|
|
19
17
|
clientVersion,
|
|
20
|
-
}: DefaultUserAgentOptions) => (
|
|
21
|
-
config?: PreviouslyResolved
|
|
22
|
-
) => Promise<UserAgent>;
|
|
18
|
+
}: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|
package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts
CHANGED
|
@@ -6,12 +6,8 @@ export interface PreviouslyResolved {
|
|
|
6
6
|
export declare const createDefaultUserAgentProvider: ({
|
|
7
7
|
serviceId,
|
|
8
8
|
clientVersion,
|
|
9
|
-
}: DefaultUserAgentOptions) => (
|
|
10
|
-
config?: PreviouslyResolved
|
|
11
|
-
) => Promise<UserAgent>;
|
|
9
|
+
}: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|
|
12
10
|
export declare const defaultUserAgent: ({
|
|
13
11
|
serviceId,
|
|
14
12
|
clientVersion,
|
|
15
|
-
}: DefaultUserAgentOptions) => (
|
|
16
|
-
config?: PreviouslyResolved
|
|
17
|
-
) => Promise<UserAgent>;
|
|
13
|
+
}: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|
|
@@ -10,12 +10,8 @@ export interface PreviouslyResolved {
|
|
|
10
10
|
export declare const createDefaultUserAgentProvider: ({
|
|
11
11
|
serviceId,
|
|
12
12
|
clientVersion,
|
|
13
|
-
}: DefaultUserAgentOptions) => (
|
|
14
|
-
config?: PreviouslyResolved
|
|
15
|
-
) => Promise<UserAgent>;
|
|
13
|
+
}: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|
|
16
14
|
export declare const defaultUserAgent: ({
|
|
17
15
|
serviceId,
|
|
18
16
|
clientVersion,
|
|
19
|
-
}: DefaultUserAgentOptions) => (
|
|
20
|
-
config?: PreviouslyResolved
|
|
21
|
-
) => Promise<UserAgent>;
|
|
17
|
+
}: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|