@aws-sdk/core 3.664.0 → 3.666.0
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.
|
@@ -44,12 +44,12 @@ __name(validateAccountIdEndpointMode, "validateAccountIdEndpointMode");
|
|
|
44
44
|
|
|
45
45
|
// src/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.ts
|
|
46
46
|
var resolveAccountIdEndpointModeConfig = /* @__PURE__ */ __name((input) => {
|
|
47
|
+
const accountIdEndpointModeProvider = (0, import_util_middleware.normalizeProvider)(
|
|
48
|
+
input.accountIdEndpointMode ?? DEFAULT_ACCOUNT_ID_ENDPOINT_MODE
|
|
49
|
+
);
|
|
47
50
|
return {
|
|
48
51
|
...input,
|
|
49
52
|
accountIdEndpointMode: async () => {
|
|
50
|
-
const accountIdEndpointModeProvider = (0, import_util_middleware.normalizeProvider)(
|
|
51
|
-
input.accountIdEndpointMode ?? DEFAULT_ACCOUNT_ID_ENDPOINT_MODE
|
|
52
|
-
);
|
|
53
53
|
const accIdMode = await accountIdEndpointModeProvider();
|
|
54
54
|
if (!validateAccountIdEndpointMode(accIdMode)) {
|
|
55
55
|
throw new Error(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { normalizeProvider } from "@smithy/util-middleware";
|
|
2
2
|
import { DEFAULT_ACCOUNT_ID_ENDPOINT_MODE, validateAccountIdEndpointMode, } from "./AccountIdEndpointModeConstants";
|
|
3
3
|
export const resolveAccountIdEndpointModeConfig = (input) => {
|
|
4
|
+
const accountIdEndpointModeProvider = normalizeProvider(input.accountIdEndpointMode ?? DEFAULT_ACCOUNT_ID_ENDPOINT_MODE);
|
|
4
5
|
return {
|
|
5
6
|
...input,
|
|
6
7
|
accountIdEndpointMode: async () => {
|
|
7
|
-
const accountIdEndpointModeProvider = normalizeProvider(input.accountIdEndpointMode ?? DEFAULT_ACCOUNT_ID_ENDPOINT_MODE);
|
|
8
8
|
const accIdMode = await accountIdEndpointModeProvider();
|
|
9
9
|
if (!validateAccountIdEndpointMode(accIdMode)) {
|
|
10
10
|
throw new Error(`Invalid value for accountIdEndpointMode: ${accIdMode}. Valid values are: "required", "preferred", "disabled".`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.666.0",
|
|
4
4
|
"description": "Core functions & classes shared by multiple AWS SDK clients.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
"license": "Apache-2.0",
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@aws-sdk/types": "3.664.0",
|
|
83
|
-
"@smithy/core": "^2.4.
|
|
83
|
+
"@smithy/core": "^2.4.8",
|
|
84
84
|
"@smithy/node-config-provider": "^3.1.8",
|
|
85
85
|
"@smithy/property-provider": "^3.1.7",
|
|
86
86
|
"@smithy/protocol-http": "^4.1.4",
|
|
87
87
|
"@smithy/signature-v4": "^4.2.0",
|
|
88
|
-
"@smithy/smithy-client": "^3.
|
|
88
|
+
"@smithy/smithy-client": "^3.4.0",
|
|
89
89
|
"@smithy/types": "^3.5.0",
|
|
90
90
|
"@smithy/util-middleware": "^3.0.7",
|
|
91
91
|
"fast-xml-parser": "4.4.1",
|