@aws-sdk/region-config-resolver 3.972.12 → 3.972.14

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/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var stsRegionDefaultResolver = require('./regionConfig/stsRegionDefaultResolver');
4
- var configResolver = require('@smithy/config-resolver');
4
+ var config = require('@smithy/core/config');
5
5
 
6
6
  const getAwsRegionExtensionConfiguration = (runtimeConfig) => {
7
7
  return {
@@ -19,11 +19,11 @@ const resolveAwsRegionExtensionConfiguration = (awsRegionExtensionConfiguration)
19
19
  };
20
20
  };
21
21
 
22
- exports.NODE_REGION_CONFIG_FILE_OPTIONS = configResolver.NODE_REGION_CONFIG_FILE_OPTIONS;
23
- exports.NODE_REGION_CONFIG_OPTIONS = configResolver.NODE_REGION_CONFIG_OPTIONS;
24
- exports.REGION_ENV_NAME = configResolver.REGION_ENV_NAME;
25
- exports.REGION_INI_NAME = configResolver.REGION_INI_NAME;
26
- exports.resolveRegionConfig = configResolver.resolveRegionConfig;
22
+ exports.NODE_REGION_CONFIG_FILE_OPTIONS = config.NODE_REGION_CONFIG_FILE_OPTIONS;
23
+ exports.NODE_REGION_CONFIG_OPTIONS = config.NODE_REGION_CONFIG_OPTIONS;
24
+ exports.REGION_ENV_NAME = config.REGION_ENV_NAME;
25
+ exports.REGION_INI_NAME = config.REGION_INI_NAME;
26
+ exports.resolveRegionConfig = config.resolveRegionConfig;
27
27
  exports.getAwsRegionExtensionConfiguration = getAwsRegionExtensionConfiguration;
28
28
  exports.resolveAwsRegionExtensionConfiguration = resolveAwsRegionExtensionConfiguration;
29
29
  Object.prototype.hasOwnProperty.call(stsRegionDefaultResolver, '__proto__') &&
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stsRegionDefaultResolver = stsRegionDefaultResolver;
4
+ function stsRegionDefaultResolver() {
5
+ return async () => "us-east-1";
6
+ }
@@ -2,18 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.warning = void 0;
4
4
  exports.stsRegionDefaultResolver = stsRegionDefaultResolver;
5
- const config_resolver_1 = require("@smithy/config-resolver");
6
- const node_config_provider_1 = require("@smithy/node-config-provider");
5
+ const config_1 = require("@smithy/core/config");
7
6
  function stsRegionDefaultResolver(loaderConfig = {}) {
8
- return (0, node_config_provider_1.loadConfig)({
9
- ...config_resolver_1.NODE_REGION_CONFIG_OPTIONS,
7
+ return (0, config_1.loadConfig)({
8
+ ...config_1.NODE_REGION_CONFIG_OPTIONS,
10
9
  async default() {
11
10
  if (!exports.warning.silence) {
12
11
  console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly.");
13
12
  }
14
13
  return "us-east-1";
15
14
  },
16
- }, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig });
15
+ }, { ...config_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig });
17
16
  }
18
17
  exports.warning = {
19
18
  silence: false,
@@ -1,2 +1,2 @@
1
- export { REGION_ENV_NAME, REGION_INI_NAME, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, } from "@smithy/config-resolver";
2
- export { resolveRegionConfig } from "@smithy/config-resolver";
1
+ export { REGION_ENV_NAME, REGION_INI_NAME, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, } from "@smithy/core/config";
2
+ export { resolveRegionConfig } from "@smithy/core/config";
@@ -1,5 +1,4 @@
1
- import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@smithy/config-resolver";
2
- import { loadConfig } from "@smithy/node-config-provider";
1
+ import { loadConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, } from "@smithy/core/config";
3
2
  export function stsRegionDefaultResolver(loaderConfig = {}) {
4
3
  return loadConfig({
5
4
  ...NODE_REGION_CONFIG_OPTIONS,
@@ -2,14 +2,14 @@
2
2
  * Backward compatibility re-export alias.
3
3
  * @internal
4
4
  */
5
- export { REGION_ENV_NAME, REGION_INI_NAME, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, } from "@smithy/config-resolver";
5
+ export { REGION_ENV_NAME, REGION_INI_NAME, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, } from "@smithy/core/config";
6
6
  /**
7
7
  * Backward compatibility re-export alias.
8
8
  * @internal
9
9
  */
10
- export type { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
10
+ export type { RegionInputConfig, RegionResolvedConfig } from "@smithy/core/config";
11
11
  /**
12
12
  * Backward compatibility re-export alias.
13
13
  * @internal
14
14
  */
15
- export { resolveRegionConfig } from "@smithy/config-resolver";
15
+ export { resolveRegionConfig } from "@smithy/core/config";
@@ -1,4 +1,4 @@
1
- import { type LocalConfigOptions } from "@smithy/node-config-provider";
1
+ import { type LocalConfigOptions } from "@smithy/core/config";
2
2
  /**
3
3
  * Default region provider for STS when used as an inner client.
4
4
  * Differs from the default region resolver in that us-east-1 is the fallback instead of throwing an error.
@@ -3,9 +3,6 @@ export {
3
3
  REGION_INI_NAME,
4
4
  NODE_REGION_CONFIG_OPTIONS,
5
5
  NODE_REGION_CONFIG_FILE_OPTIONS,
6
- } from "@smithy/config-resolver";
7
- export {
8
- RegionInputConfig,
9
- RegionResolvedConfig,
10
- } from "@smithy/config-resolver";
11
- export { resolveRegionConfig } from "@smithy/config-resolver";
6
+ } from "@smithy/core/config";
7
+ export { RegionInputConfig, RegionResolvedConfig } from "@smithy/core/config";
8
+ export { resolveRegionConfig } from "@smithy/core/config";
@@ -1,4 +1,4 @@
1
- import { LocalConfigOptions } from "@smithy/node-config-provider";
1
+ import { LocalConfigOptions } from "@smithy/core/config";
2
2
  export declare function stsRegionDefaultResolver(
3
3
  loaderConfig?: LocalConfigOptions
4
4
  ): import("@smithy/types").Provider<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/region-config-resolver",
3
- "version": "3.972.12",
3
+ "version": "3.972.14",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline region-config-resolver",
@@ -24,8 +24,7 @@
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
26
  "@aws-sdk/types": "^3.973.8",
27
- "@smithy/config-resolver": "^4.4.16",
28
- "@smithy/node-config-provider": "^4.3.14",
27
+ "@smithy/core": "^3.24.1",
29
28
  "@smithy/types": "^4.14.1",
30
29
  "tslib": "^2.6.2"
31
30
  },
@@ -58,5 +57,8 @@
58
57
  "browser": {
59
58
  "./dist-es/regionConfig/stsRegionDefaultResolver": "./dist-es/regionConfig/stsRegionDefaultResolver.browser"
60
59
  },
61
- "react-native": {}
60
+ "react-native": {
61
+ "./dist-es/regionConfig/stsRegionDefaultResolver": "./dist-es/regionConfig/stsRegionDefaultResolver.native",
62
+ "./dist-cjs/regionConfig/stsRegionDefaultResolver": "./dist-cjs/regionConfig/stsRegionDefaultResolver.native"
63
+ }
62
64
  }