@aws-sdk/core 3.664.0 → 3.665.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.664.0",
3
+ "version": "3.665.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'",