@aws-sdk/util-endpoints 3.427.0 → 3.428.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-endpoints",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.428.0",
|
|
4
4
|
"description": "Utilities to help with endpoint resolution",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -22,8 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/types": "3.
|
|
26
|
-
"@smithy/node-config-provider": "^2.0.13",
|
|
25
|
+
"@aws-sdk/types": "3.428.0",
|
|
27
26
|
"tslib": "^2.5.0"
|
|
28
27
|
},
|
|
29
28
|
"engines": {
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getEndpointUrlConfig = void 0;
|
|
4
|
-
const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
|
|
5
|
-
const CONFIG_ENDPOINT_URL = "endpoint_url";
|
|
6
|
-
const getEndpointUrlConfig = (serviceId) => ({
|
|
7
|
-
environmentVariableSelector: (env) => {
|
|
8
|
-
const serviceEndpointUrlSections = [ENV_ENDPOINT_URL, ...serviceId.split(" ").map((w) => w.toUpperCase())];
|
|
9
|
-
const serviceEndpointUrl = env[serviceEndpointUrlSections.join("_")];
|
|
10
|
-
if (serviceEndpointUrl)
|
|
11
|
-
return serviceEndpointUrl;
|
|
12
|
-
const endpointUrl = env[ENV_ENDPOINT_URL];
|
|
13
|
-
if (endpointUrl)
|
|
14
|
-
return endpointUrl;
|
|
15
|
-
return undefined;
|
|
16
|
-
},
|
|
17
|
-
configFileSelector: (profile) => {
|
|
18
|
-
const endpointUrl = profile[CONFIG_ENDPOINT_URL];
|
|
19
|
-
if (endpointUrl)
|
|
20
|
-
return endpointUrl;
|
|
21
|
-
return undefined;
|
|
22
|
-
},
|
|
23
|
-
default: undefined,
|
|
24
|
-
});
|
|
25
|
-
exports.getEndpointUrlConfig = getEndpointUrlConfig;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
|
|
2
|
-
const CONFIG_ENDPOINT_URL = "endpoint_url";
|
|
3
|
-
export const getEndpointUrlConfig = (serviceId) => ({
|
|
4
|
-
environmentVariableSelector: (env) => {
|
|
5
|
-
const serviceEndpointUrlSections = [ENV_ENDPOINT_URL, ...serviceId.split(" ").map((w) => w.toUpperCase())];
|
|
6
|
-
const serviceEndpointUrl = env[serviceEndpointUrlSections.join("_")];
|
|
7
|
-
if (serviceEndpointUrl)
|
|
8
|
-
return serviceEndpointUrl;
|
|
9
|
-
const endpointUrl = env[ENV_ENDPOINT_URL];
|
|
10
|
-
if (endpointUrl)
|
|
11
|
-
return endpointUrl;
|
|
12
|
-
return undefined;
|
|
13
|
-
},
|
|
14
|
-
configFileSelector: (profile) => {
|
|
15
|
-
const endpointUrl = profile[CONFIG_ENDPOINT_URL];
|
|
16
|
-
if (endpointUrl)
|
|
17
|
-
return endpointUrl;
|
|
18
|
-
return undefined;
|
|
19
|
-
},
|
|
20
|
-
default: undefined,
|
|
21
|
-
});
|