You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@smithy/config-resolver

Package Overview
Dependencies
Maintainers
3
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithy/config-resolver - npm Package Compare versions

Comparing version
4.1.5
to
4.2.0
+15
-15
dist-cjs/index.js

@@ -21,4 +21,4 @@ var __defProp = Object.defineProperty;

// src/index.ts
var src_exports = {};
__export(src_exports, {
var index_exports = {};
__export(index_exports, {
CONFIG_USE_DUALSTACK_ENDPOINT: () => CONFIG_USE_DUALSTACK_ENDPOINT,

@@ -41,3 +41,3 @@ CONFIG_USE_FIPS_ENDPOINT: () => CONFIG_USE_FIPS_ENDPOINT,

});
module.exports = __toCommonJS(src_exports);
module.exports = __toCommonJS(index_exports);

@@ -50,4 +50,4 @@ // src/endpointsConfig/NodeUseDualstackEndpointConfigOptions.ts

var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
environmentVariableSelector: (env) => (0, import_util_config_provider.booleanSelector)(env, ENV_USE_DUALSTACK_ENDPOINT, import_util_config_provider.SelectorType.ENV),
configFileSelector: (profile) => (0, import_util_config_provider.booleanSelector)(profile, CONFIG_USE_DUALSTACK_ENDPOINT, import_util_config_provider.SelectorType.CONFIG),
environmentVariableSelector: /* @__PURE__ */ __name((env) => (0, import_util_config_provider.booleanSelector)(env, ENV_USE_DUALSTACK_ENDPOINT, import_util_config_provider.SelectorType.ENV), "environmentVariableSelector"),
configFileSelector: /* @__PURE__ */ __name((profile) => (0, import_util_config_provider.booleanSelector)(profile, CONFIG_USE_DUALSTACK_ENDPOINT, import_util_config_provider.SelectorType.CONFIG), "configFileSelector"),
default: false

@@ -62,4 +62,4 @@ };

var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
environmentVariableSelector: (env) => (0, import_util_config_provider.booleanSelector)(env, ENV_USE_FIPS_ENDPOINT, import_util_config_provider.SelectorType.ENV),
configFileSelector: (profile) => (0, import_util_config_provider.booleanSelector)(profile, CONFIG_USE_FIPS_ENDPOINT, import_util_config_provider.SelectorType.CONFIG),
environmentVariableSelector: /* @__PURE__ */ __name((env) => (0, import_util_config_provider.booleanSelector)(env, ENV_USE_FIPS_ENDPOINT, import_util_config_provider.SelectorType.ENV), "environmentVariableSelector"),
configFileSelector: /* @__PURE__ */ __name((profile) => (0, import_util_config_provider.booleanSelector)(profile, CONFIG_USE_FIPS_ENDPOINT, import_util_config_provider.SelectorType.CONFIG), "configFileSelector"),
default: false

@@ -116,7 +116,7 @@ };

var NODE_REGION_CONFIG_OPTIONS = {
environmentVariableSelector: (env) => env[REGION_ENV_NAME],
configFileSelector: (profile) => profile[REGION_INI_NAME],
default: () => {
environmentVariableSelector: /* @__PURE__ */ __name((env) => env[REGION_ENV_NAME], "environmentVariableSelector"),
configFileSelector: /* @__PURE__ */ __name((profile) => profile[REGION_INI_NAME], "configFileSelector"),
default: /* @__PURE__ */ __name(() => {
throw new Error("Region is missing");
}
}, "default")
};

@@ -140,3 +140,3 @@ var NODE_REGION_CONFIG_FILE_OPTIONS = {

return Object.assign(input, {
region: async () => {
region: /* @__PURE__ */ __name(async () => {
if (typeof region === "string") {

@@ -147,4 +147,4 @@ return getRealRegion(region);

return getRealRegion(providedRegion);
},
useFipsEndpoint: async () => {
}, "region"),
useFipsEndpoint: /* @__PURE__ */ __name(async () => {
const providedRegion = typeof region === "string" ? region : await region();

@@ -155,3 +155,3 @@ if (isFipsRegion(providedRegion)) {

return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
}
}, "useFipsEndpoint")
});

@@ -158,0 +158,0 @@ }, "resolveRegionConfig");

@@ -1,2 +0,2 @@

import { LoadedConfigSelectors } from "@smithy/node-config-provider";
import type { LoadedConfigSelectors } from "@smithy/node-config-provider";
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,2 +0,2 @@

import { LoadedConfigSelectors } from "@smithy/node-config-provider";
import type { LoadedConfigSelectors } from "@smithy/node-config-provider";
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,3 +0,3 @@

import { Endpoint, Provider, UrlParser } from "@smithy/types";
import { EndpointsInputConfig, EndpointsResolvedConfig } from "./resolveEndpointsConfig";
import type { Endpoint, Provider, UrlParser } from "@smithy/types";
import type { EndpointsInputConfig, EndpointsResolvedConfig } from "./resolveEndpointsConfig";
/**

@@ -4,0 +4,0 @@ * @public

@@ -1,2 +0,2 @@

import { Endpoint, Provider, RegionInfoProvider, UrlParser } from "@smithy/types";
import type { Endpoint, Provider, RegionInfoProvider, UrlParser } from "@smithy/types";
/**

@@ -3,0 +3,0 @@ * @public

@@ -1,2 +0,2 @@

import { Provider, RegionInfoProvider, UrlParser } from "@smithy/types";
import type { Provider, RegionInfoProvider, UrlParser } from "@smithy/types";
interface GetEndpointFromRegionOptions {

@@ -3,0 +3,0 @@ region: Provider<string>;

@@ -1,2 +0,2 @@

import { LoadedConfigSelectors, LocalConfigOptions } from "@smithy/node-config-provider";
import type { LoadedConfigSelectors, LocalConfigOptions } from "@smithy/node-config-provider";
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,2 +0,2 @@

import { Provider } from "@smithy/types";
import type { Provider } from "@smithy/types";
/**

@@ -3,0 +3,0 @@ * @public

@@ -1,2 +0,2 @@

import { EndpointVariantTag } from "./EndpointVariantTag";
import type { EndpointVariantTag } from "./EndpointVariantTag";
/**

@@ -3,0 +3,0 @@ * Provides hostname information for specific host label.

@@ -1,2 +0,2 @@

import { EndpointVariant } from "./EndpointVariant";
import type { EndpointVariant } from "./EndpointVariant";
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,4 +0,4 @@

import { RegionInfo } from "@smithy/types";
import { PartitionHash } from "./PartitionHash";
import { RegionHash } from "./RegionHash";
import type { RegionInfo } from "@smithy/types";
import type { PartitionHash } from "./PartitionHash";
import type { RegionHash } from "./RegionHash";
/**

@@ -5,0 +5,0 @@ * @internal

@@ -1,2 +0,2 @@

import { PartitionHash } from "./PartitionHash";
import type { PartitionHash } from "./PartitionHash";
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,2 +0,2 @@

import { EndpointVariant } from "./EndpointVariant";
import type { EndpointVariant } from "./EndpointVariant";
/**

@@ -3,0 +3,0 @@ * The hash of partition with the information specific to that partition.

@@ -1,2 +0,2 @@

import { EndpointVariant } from "./EndpointVariant";
import type { EndpointVariant } from "./EndpointVariant";
/**

@@ -3,0 +3,0 @@ * The hash of region with the information specific to that region.

{
"name": "@smithy/config-resolver",
"version": "4.1.5",
"version": "4.2.0",
"scripts": {

@@ -26,7 +26,8 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",

"license": "Apache-2.0",
"sideEffects": false,
"dependencies": {
"@smithy/node-config-provider": "^4.1.4",
"@smithy/types": "^4.3.2",
"@smithy/util-config-provider": "^4.0.0",
"@smithy/util-middleware": "^4.0.5",
"@smithy/node-config-provider": "^4.2.0",
"@smithy/types": "^4.4.0",
"@smithy/util-config-provider": "^4.1.0",
"@smithy/util-middleware": "^4.1.0",
"tslib": "^2.6.2"

@@ -33,0 +34,0 @@ },