@cdk8s/awscdk-resolver 0.0.290 → 0.0.292
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/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +6 -6
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +6 -6
- package/node_modules/@aws-sdk/client-cloudformation/package.json +15 -15
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +6 -6
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +6 -6
- package/node_modules/@aws-sdk/client-sso/package.json +14 -14
- package/node_modules/@aws-sdk/core/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js +6 -6
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +6 -6
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +6 -6
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +6 -6
- package/node_modules/@aws-sdk/nested-clients/package.json +14 -14
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +3 -3
- package/node_modules/@smithy/config-resolver/package.json +2 -2
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +0 -3
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/httpRequest.d.ts +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/staticStabilityProvider.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/utils/staticStabilityProvider.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
- package/node_modules/@smithy/middleware-retry/package.json +3 -3
- package/node_modules/@smithy/node-config-provider/README.md +6 -0
- package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +14 -10
- package/node_modules/@smithy/node-config-provider/dist-es/configLoader.js +5 -1
- package/node_modules/@smithy/node-config-provider/dist-es/fromEnv.js +3 -3
- package/node_modules/@smithy/node-config-provider/dist-types/configLoader.d.ts +2 -2
- package/node_modules/@smithy/node-config-provider/dist-types/fromEnv.d.ts +15 -2
- package/node_modules/@smithy/node-config-provider/dist-types/index.d.ts +3 -0
- package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/configLoader.d.ts +2 -2
- package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromEnv.d.ts +15 -2
- package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@smithy/node-config-provider/package.json +1 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +2 -2
- package/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +3 -1
- package/node_modules/@smithy/smithy-client/dist-types/default-error-handler.d.ts +3 -1
- package/node_modules/@smithy/smithy-client/dist-types/extensions/defaultExtensionConfiguration.d.ts +4 -4
- package/node_modules/@smithy/smithy-client/dist-types/lazy-json.d.ts +1 -2
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +3 -1
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/default-error-handler.d.ts +3 -1
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +4 -4
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/lazy-json.d.ts +1 -2
- package/node_modules/@smithy/smithy-client/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +5 -5
- package/node_modules/@smithy/util-endpoints/dist-types/lib/isSet.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isSet.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/endpointFunctions.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/dist-types/utils/endpointFunctions.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateRules.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/package.json +2 -2
- package/package.json +6 -6
@@ -18,19 +18,19 @@ export const getRuntimeConfig = (config) => {
|
|
18
18
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
19
19
|
const clientSharedValues = getSharedRuntimeConfig(config);
|
20
20
|
awsCheckVersion(process.version);
|
21
|
-
const
|
21
|
+
const loaderConfig = { profile: config?.profile, logger: clientSharedValues.logger };
|
22
22
|
return {
|
23
23
|
...clientSharedValues,
|
24
24
|
...config,
|
25
25
|
runtime: "node",
|
26
26
|
defaultsMode,
|
27
|
-
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
|
27
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
28
28
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
29
29
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
30
30
|
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
31
31
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
32
32
|
region: config?.region ??
|
33
|
-
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...
|
33
|
+
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
34
34
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
35
35
|
retryMode: config?.retryMode ??
|
36
36
|
loadNodeConfig({
|
@@ -39,8 +39,8 @@ export const getRuntimeConfig = (config) => {
|
|
39
39
|
}, config),
|
40
40
|
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
41
41
|
streamCollector: config?.streamCollector ?? streamCollector,
|
42
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
|
43
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
|
44
|
-
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS,
|
42
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
43
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
44
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
45
45
|
};
|
46
46
|
};
|
@@ -19,13 +19,13 @@ export const getRuntimeConfig = (config) => {
|
|
19
19
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
20
20
|
const clientSharedValues = getSharedRuntimeConfig(config);
|
21
21
|
awsCheckVersion(process.version);
|
22
|
-
const
|
22
|
+
const loaderConfig = { profile: config?.profile, logger: clientSharedValues.logger };
|
23
23
|
return {
|
24
24
|
...clientSharedValues,
|
25
25
|
...config,
|
26
26
|
runtime: "node",
|
27
27
|
defaultsMode,
|
28
|
-
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
|
28
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
29
29
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
30
30
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
31
31
|
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
@@ -44,7 +44,7 @@ export const getRuntimeConfig = (config) => {
|
|
44
44
|
],
|
45
45
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
46
46
|
region: config?.region ??
|
47
|
-
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...
|
47
|
+
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
48
48
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
49
49
|
retryMode: config?.retryMode ??
|
50
50
|
loadNodeConfig({
|
@@ -53,8 +53,8 @@ export const getRuntimeConfig = (config) => {
|
|
53
53
|
}, config),
|
54
54
|
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
55
55
|
streamCollector: config?.streamCollector ?? streamCollector,
|
56
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
|
57
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
|
58
|
-
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS,
|
56
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
57
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
58
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
59
59
|
};
|
60
60
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/nested-clients",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.806.0",
|
4
4
|
"description": "Nested clients for AWS SDK packages.",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -28,38 +28,38 @@
|
|
28
28
|
"dependencies": {
|
29
29
|
"@aws-crypto/sha256-browser": "5.2.0",
|
30
30
|
"@aws-crypto/sha256-js": "5.2.0",
|
31
|
-
"@aws-sdk/core": "3.
|
31
|
+
"@aws-sdk/core": "3.806.0",
|
32
32
|
"@aws-sdk/middleware-host-header": "3.804.0",
|
33
33
|
"@aws-sdk/middleware-logger": "3.804.0",
|
34
34
|
"@aws-sdk/middleware-recursion-detection": "3.804.0",
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
36
|
-
"@aws-sdk/region-config-resolver": "3.
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.806.0",
|
36
|
+
"@aws-sdk/region-config-resolver": "3.806.0",
|
37
37
|
"@aws-sdk/types": "3.804.0",
|
38
|
-
"@aws-sdk/util-endpoints": "3.
|
38
|
+
"@aws-sdk/util-endpoints": "3.806.0",
|
39
39
|
"@aws-sdk/util-user-agent-browser": "3.804.0",
|
40
|
-
"@aws-sdk/util-user-agent-node": "3.
|
41
|
-
"@smithy/config-resolver": "^4.1.
|
40
|
+
"@aws-sdk/util-user-agent-node": "3.806.0",
|
41
|
+
"@smithy/config-resolver": "^4.1.1",
|
42
42
|
"@smithy/core": "^3.3.1",
|
43
43
|
"@smithy/fetch-http-handler": "^5.0.2",
|
44
44
|
"@smithy/hash-node": "^4.0.2",
|
45
45
|
"@smithy/invalid-dependency": "^4.0.2",
|
46
46
|
"@smithy/middleware-content-length": "^4.0.2",
|
47
|
-
"@smithy/middleware-endpoint": "^4.1.
|
48
|
-
"@smithy/middleware-retry": "^4.1.
|
47
|
+
"@smithy/middleware-endpoint": "^4.1.3",
|
48
|
+
"@smithy/middleware-retry": "^4.1.4",
|
49
49
|
"@smithy/middleware-serde": "^4.0.3",
|
50
50
|
"@smithy/middleware-stack": "^4.0.2",
|
51
|
-
"@smithy/node-config-provider": "^4.0
|
51
|
+
"@smithy/node-config-provider": "^4.1.0",
|
52
52
|
"@smithy/node-http-handler": "^4.0.4",
|
53
53
|
"@smithy/protocol-http": "^5.1.0",
|
54
|
-
"@smithy/smithy-client": "^4.2.
|
54
|
+
"@smithy/smithy-client": "^4.2.3",
|
55
55
|
"@smithy/types": "^4.2.0",
|
56
56
|
"@smithy/url-parser": "^4.0.2",
|
57
57
|
"@smithy/util-base64": "^4.0.0",
|
58
58
|
"@smithy/util-body-length-browser": "^4.0.0",
|
59
59
|
"@smithy/util-body-length-node": "^4.0.0",
|
60
|
-
"@smithy/util-defaults-mode-browser": "^4.0.
|
61
|
-
"@smithy/util-defaults-mode-node": "^4.0.
|
62
|
-
"@smithy/util-endpoints": "^3.0.
|
60
|
+
"@smithy/util-defaults-mode-browser": "^4.0.11",
|
61
|
+
"@smithy/util-defaults-mode-node": "^4.0.11",
|
62
|
+
"@smithy/util-endpoints": "^3.0.3",
|
63
63
|
"@smithy/util-middleware": "^4.0.2",
|
64
64
|
"@smithy/util-retry": "^4.0.3",
|
65
65
|
"@smithy/util-utf8": "^4.0.0",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/region-config-resolver",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.806.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline region-config-resolver",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
"license": "Apache-2.0",
|
24
24
|
"dependencies": {
|
25
25
|
"@aws-sdk/types": "3.804.0",
|
26
|
-
"@smithy/node-config-provider": "^4.0
|
26
|
+
"@smithy/node-config-provider": "^4.1.0",
|
27
27
|
"@smithy/types": "^4.2.0",
|
28
28
|
"@smithy/util-config-provider": "^4.0.0",
|
29
29
|
"@smithy/util-middleware": "^4.0.2",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/token-providers",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.806.0",
|
4
4
|
"description": "A collection of token providers",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -27,7 +27,7 @@
|
|
27
27
|
},
|
28
28
|
"license": "Apache-2.0",
|
29
29
|
"dependencies": {
|
30
|
-
"@aws-sdk/nested-clients": "3.
|
30
|
+
"@aws-sdk/nested-clients": "3.806.0",
|
31
31
|
"@aws-sdk/types": "3.804.0",
|
32
32
|
"@smithy/property-provider": "^4.0.2",
|
33
33
|
"@smithy/shared-ini-file-loader": "^4.0.2",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/util-endpoints",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.806.0",
|
4
4
|
"description": "Utilities to help with endpoint resolution",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
"dependencies": {
|
27
27
|
"@aws-sdk/types": "3.804.0",
|
28
28
|
"@smithy/types": "^4.2.0",
|
29
|
-
"@smithy/util-endpoints": "^3.0.
|
29
|
+
"@smithy/util-endpoints": "^3.0.3",
|
30
30
|
"tslib": "^2.6.2"
|
31
31
|
},
|
32
32
|
"engines": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/util-user-agent-node",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.806.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline util-user-agent-node",
|
@@ -21,9 +21,9 @@
|
|
21
21
|
},
|
22
22
|
"license": "Apache-2.0",
|
23
23
|
"dependencies": {
|
24
|
-
"@aws-sdk/middleware-user-agent": "3.
|
24
|
+
"@aws-sdk/middleware-user-agent": "3.806.0",
|
25
25
|
"@aws-sdk/types": "3.804.0",
|
26
|
-
"@smithy/node-config-provider": "^4.0
|
26
|
+
"@smithy/node-config-provider": "^4.1.0",
|
27
27
|
"@smithy/types": "^4.2.0",
|
28
28
|
"tslib": "^2.6.2"
|
29
29
|
},
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/config-resolver",
|
3
|
-
"version": "4.1.
|
3
|
+
"version": "4.1.2",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
6
6
|
"build:cjs": "node ../../scripts/inline config-resolver",
|
@@ -24,7 +24,7 @@
|
|
24
24
|
},
|
25
25
|
"license": "Apache-2.0",
|
26
26
|
"dependencies": {
|
27
|
-
"@smithy/node-config-provider": "^4.
|
27
|
+
"@smithy/node-config-provider": "^4.1.1",
|
28
28
|
"@smithy/types": "^4.2.0",
|
29
29
|
"@smithy/util-config-provider": "^4.0.0",
|
30
30
|
"@smithy/util-middleware": "^4.0.2",
|
@@ -12,5 +12,5 @@ import { InstanceMetadataCredentials } from "../types";
|
|
12
12
|
* @returns A credential provider that supports static stability
|
13
13
|
*/
|
14
14
|
export declare const staticStabilityProvider: (provider: Provider<InstanceMetadataCredentials>, options?: {
|
15
|
-
logger?: Logger
|
15
|
+
logger?: Logger;
|
16
16
|
}) => Provider<InstanceMetadataCredentials>;
|
package/node_modules/@smithy/credential-provider-imds/dist-types/utils/staticStabilityProvider.d.ts
CHANGED
@@ -12,5 +12,5 @@ import { InstanceMetadataCredentials } from "../types";
|
|
12
12
|
* @returns A credential provider that supports static stability
|
13
13
|
*/
|
14
14
|
export declare const staticStabilityProvider: (provider: Provider<InstanceMetadataCredentials>, options?: {
|
15
|
-
logger?: Logger
|
15
|
+
logger?: Logger;
|
16
16
|
}) => Provider<InstanceMetadataCredentials>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/credential-provider-imds",
|
3
|
-
"version": "4.0.
|
3
|
+
"version": "4.0.4",
|
4
4
|
"description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -27,7 +27,7 @@
|
|
27
27
|
},
|
28
28
|
"license": "Apache-2.0",
|
29
29
|
"dependencies": {
|
30
|
-
"@smithy/node-config-provider": "^4.
|
30
|
+
"@smithy/node-config-provider": "^4.1.1",
|
31
31
|
"@smithy/property-provider": "^4.0.2",
|
32
32
|
"@smithy/types": "^4.2.0",
|
33
33
|
"@smithy/url-parser": "^4.0.2",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/middleware-endpoint",
|
3
|
-
"version": "4.1.
|
3
|
+
"version": "4.1.4",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-endpoint",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
"dependencies": {
|
27
27
|
"@smithy/core": "^3.3.1",
|
28
28
|
"@smithy/middleware-serde": "^4.0.3",
|
29
|
-
"@smithy/node-config-provider": "^4.
|
29
|
+
"@smithy/node-config-provider": "^4.1.1",
|
30
30
|
"@smithy/shared-ini-file-loader": "^4.0.2",
|
31
31
|
"@smithy/types": "^4.2.0",
|
32
32
|
"@smithy/url-parser": "^4.0.2",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/middleware-retry",
|
3
|
-
"version": "4.1.
|
3
|
+
"version": "4.1.5",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-retry",
|
@@ -33,10 +33,10 @@
|
|
33
33
|
},
|
34
34
|
"license": "Apache-2.0",
|
35
35
|
"dependencies": {
|
36
|
-
"@smithy/node-config-provider": "^4.
|
36
|
+
"@smithy/node-config-provider": "^4.1.1",
|
37
37
|
"@smithy/protocol-http": "^5.1.0",
|
38
38
|
"@smithy/service-error-classification": "^4.0.3",
|
39
|
-
"@smithy/smithy-client": "^4.2.
|
39
|
+
"@smithy/smithy-client": "^4.2.4",
|
40
40
|
"@smithy/types": "^4.2.0",
|
41
41
|
"@smithy/util-middleware": "^4.0.2",
|
42
42
|
"@smithy/util-retry": "^4.0.3",
|
@@ -2,3 +2,9 @@
|
|
2
2
|
|
3
3
|
[](https://www.npmjs.com/package/@smithy/node-config-provider)
|
4
4
|
[](https://www.npmjs.com/package/@smithy/node-config-provider)
|
5
|
+
|
6
|
+
> An internal package
|
7
|
+
|
8
|
+
## Usage
|
9
|
+
|
10
|
+
You probably shouldn't, at least directly.
|
@@ -45,9 +45,9 @@ function getSelectorName(functionString) {
|
|
45
45
|
__name(getSelectorName, "getSelectorName");
|
46
46
|
|
47
47
|
// src/fromEnv.ts
|
48
|
-
var fromEnv = /* @__PURE__ */ __name((envVarSelector,
|
48
|
+
var fromEnv = /* @__PURE__ */ __name((envVarSelector, options) => async () => {
|
49
49
|
try {
|
50
|
-
const config = envVarSelector(process.env);
|
50
|
+
const config = envVarSelector(process.env, options);
|
51
51
|
if (config === void 0) {
|
52
52
|
throw new Error();
|
53
53
|
}
|
@@ -55,7 +55,7 @@ var fromEnv = /* @__PURE__ */ __name((envVarSelector, logger) => async () => {
|
|
55
55
|
} catch (e) {
|
56
56
|
throw new import_property_provider.CredentialsProviderError(
|
57
57
|
e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`,
|
58
|
-
{ logger }
|
58
|
+
{ logger: options?.logger }
|
59
59
|
);
|
60
60
|
}
|
61
61
|
}, "fromEnv");
|
@@ -90,13 +90,17 @@ var isFunction = /* @__PURE__ */ __name((func) => typeof func === "function", "i
|
|
90
90
|
var fromStatic = /* @__PURE__ */ __name((defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : (0, import_property_provider.fromStatic)(defaultValue), "fromStatic");
|
91
91
|
|
92
92
|
// src/configLoader.ts
|
93
|
-
var loadConfig = /* @__PURE__ */ __name(({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) =>
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
93
|
+
var loadConfig = /* @__PURE__ */ __name(({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {
|
94
|
+
const { signingName, logger } = configuration;
|
95
|
+
const envOptions = { signingName, logger };
|
96
|
+
return (0, import_property_provider.memoize)(
|
97
|
+
(0, import_property_provider.chain)(
|
98
|
+
fromEnv(environmentVariableSelector, envOptions),
|
99
|
+
fromSharedConfigFiles(configFileSelector, configuration),
|
100
|
+
fromStatic(defaultValue)
|
101
|
+
)
|
102
|
+
);
|
103
|
+
}, "loadConfig");
|
100
104
|
// Annotate the CommonJS export names for ESM import in node:
|
101
105
|
|
102
106
|
0 && (module.exports = {
|
@@ -2,4 +2,8 @@ import { chain, memoize } from "@smithy/property-provider";
|
|
2
2
|
import { fromEnv } from "./fromEnv";
|
3
3
|
import { fromSharedConfigFiles } from "./fromSharedConfigFiles";
|
4
4
|
import { fromStatic } from "./fromStatic";
|
5
|
-
export const loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) =>
|
5
|
+
export const loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {
|
6
|
+
const { signingName, logger } = configuration;
|
7
|
+
const envOptions = { signingName, logger };
|
8
|
+
return memoize(chain(fromEnv(environmentVariableSelector, envOptions), fromSharedConfigFiles(configFileSelector, configuration), fromStatic(defaultValue)));
|
9
|
+
};
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { CredentialsProviderError } from "@smithy/property-provider";
|
2
2
|
import { getSelectorName } from "./getSelectorName";
|
3
|
-
export const fromEnv = (envVarSelector,
|
3
|
+
export const fromEnv = (envVarSelector, options) => async () => {
|
4
4
|
try {
|
5
|
-
const config = envVarSelector(process.env);
|
5
|
+
const config = envVarSelector(process.env, options);
|
6
6
|
if (config === undefined) {
|
7
7
|
throw new Error();
|
8
8
|
}
|
9
9
|
return config;
|
10
10
|
}
|
11
11
|
catch (e) {
|
12
|
-
throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger });
|
12
|
+
throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger: options?.logger });
|
13
13
|
}
|
14
14
|
};
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { Provider } from "@smithy/types";
|
2
|
-
import { GetterFromEnv } from "./fromEnv";
|
2
|
+
import { EnvOptions, GetterFromEnv } from "./fromEnv";
|
3
3
|
import { GetterFromConfig, SharedConfigInit } from "./fromSharedConfigFiles";
|
4
4
|
import { FromStaticConfig } from "./fromStatic";
|
5
5
|
/**
|
6
6
|
* @internal
|
7
7
|
*/
|
8
|
-
export type LocalConfigOptions = SharedConfigInit;
|
8
|
+
export type LocalConfigOptions = SharedConfigInit & EnvOptions;
|
9
9
|
/**
|
10
10
|
* @internal
|
11
11
|
*/
|
@@ -1,7 +1,20 @@
|
|
1
1
|
import { Logger, Provider } from "@smithy/types";
|
2
|
-
|
2
|
+
/**
|
3
|
+
* @internal
|
4
|
+
*/
|
5
|
+
export interface EnvOptions {
|
6
|
+
/**
|
7
|
+
* The SigV4 service signing name.
|
8
|
+
*/
|
9
|
+
signingName?: string;
|
10
|
+
/**
|
11
|
+
* For credential resolution trace logging.
|
12
|
+
*/
|
13
|
+
logger?: Logger;
|
14
|
+
}
|
15
|
+
export type GetterFromEnv<T> = (env: Record<string, string | undefined>, options?: EnvOptions) => T | undefined;
|
3
16
|
/**
|
4
17
|
* Get config value given the environment variable name or getter from
|
5
18
|
* environment variable.
|
6
19
|
*/
|
7
|
-
export declare const fromEnv: <T = string>(envVarSelector: GetterFromEnv<T>,
|
20
|
+
export declare const fromEnv: <T = string>(envVarSelector: GetterFromEnv<T>, options?: EnvOptions) => Provider<T>;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { Provider } from "@smithy/types";
|
2
|
-
import { GetterFromEnv } from "./fromEnv";
|
2
|
+
import { EnvOptions, GetterFromEnv } from "./fromEnv";
|
3
3
|
import { GetterFromConfig, SharedConfigInit } from "./fromSharedConfigFiles";
|
4
4
|
import { FromStaticConfig } from "./fromStatic";
|
5
5
|
/**
|
6
6
|
* @internal
|
7
7
|
*/
|
8
|
-
export type LocalConfigOptions = SharedConfigInit;
|
8
|
+
export type LocalConfigOptions = SharedConfigInit & EnvOptions;
|
9
9
|
/**
|
10
10
|
* @internal
|
11
11
|
*/
|
@@ -1,7 +1,20 @@
|
|
1
1
|
import { Logger, Provider } from "@smithy/types";
|
2
|
-
|
2
|
+
/**
|
3
|
+
* @internal
|
4
|
+
*/
|
5
|
+
export interface EnvOptions {
|
6
|
+
/**
|
7
|
+
* The SigV4 service signing name.
|
8
|
+
*/
|
9
|
+
signingName?: string;
|
10
|
+
/**
|
11
|
+
* For credential resolution trace logging.
|
12
|
+
*/
|
13
|
+
logger?: Logger;
|
14
|
+
}
|
15
|
+
export type GetterFromEnv<T> = (env: Record<string, string | undefined>, options?: EnvOptions) => T | undefined;
|
3
16
|
/**
|
4
17
|
* Get config value given the environment variable name or getter from
|
5
18
|
* environment variable.
|
6
19
|
*/
|
7
|
-
export declare const fromEnv: <T = string>(envVarSelector: GetterFromEnv<T>,
|
20
|
+
export declare const fromEnv: <T = string>(envVarSelector: GetterFromEnv<T>, options?: EnvOptions) => Provider<T>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/node-config-provider",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.1.1",
|
4
4
|
"description": "Load config default values from ini config files and environmental variable",
|
5
5
|
"scripts": {
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
@@ -1261,11 +1261,11 @@ var splitHeader = /* @__PURE__ */ __name((value) => {
|
|
1261
1261
|
Command,
|
1262
1262
|
SENSITIVE_STRING,
|
1263
1263
|
createAggregatedClient,
|
1264
|
-
dateToUtcString,
|
1265
1264
|
parseRfc3339DateTime,
|
1266
1265
|
parseRfc3339DateTimeWithOffset,
|
1267
1266
|
parseRfc7231DateTime,
|
1268
1267
|
parseEpochTimestamp,
|
1268
|
+
dateToUtcString,
|
1269
1269
|
throwDefaultError,
|
1270
1270
|
withBaseException,
|
1271
1271
|
loadConfigsForDefaultMode,
|
@@ -1281,9 +1281,9 @@ var splitHeader = /* @__PURE__ */ __name((value) => {
|
|
1281
1281
|
isSerializableHeaderValue,
|
1282
1282
|
LazyJsonString,
|
1283
1283
|
NoOpLogger,
|
1284
|
-
map,
|
1285
1284
|
convertMap,
|
1286
1285
|
take,
|
1286
|
+
map,
|
1287
1287
|
parseBoolean,
|
1288
1288
|
expectBoolean,
|
1289
1289
|
expectNumber,
|
@@ -6,4 +6,6 @@ import { Client } from "./client";
|
|
6
6
|
* @param client - client instance on which to add aggregated methods.
|
7
7
|
* @returns an aggregated client with dynamically created methods.
|
8
8
|
*/
|
9
|
-
export declare const createAggregatedClient: (commands: Record<string, any>, Client:
|
9
|
+
export declare const createAggregatedClient: (commands: Record<string, any>, Client: {
|
10
|
+
new (...args: any): Client<any, any, any, any>;
|
11
|
+
}) => void;
|
@@ -10,4 +10,6 @@ export declare const throwDefaultError: ({ output, parsedBody, exceptionCtor, er
|
|
10
10
|
*
|
11
11
|
* Creates {@link throwDefaultError} with bound ExceptionCtor.
|
12
12
|
*/
|
13
|
-
export declare const withBaseException: (ExceptionCtor:
|
13
|
+
export declare const withBaseException: (ExceptionCtor: {
|
14
|
+
new (...args: any): any;
|
15
|
+
}) => any;
|
package/node_modules/@smithy/smithy-client/dist-types/extensions/defaultExtensionConfiguration.d.ts
CHANGED
@@ -14,8 +14,8 @@ export declare const getDefaultExtensionConfiguration: (runtimeConfig: DefaultEx
|
|
14
14
|
addChecksumAlgorithm(algo: import("@smithy/types").ChecksumAlgorithm): void;
|
15
15
|
checksumAlgorithms(): import("@smithy/types").ChecksumAlgorithm[];
|
16
16
|
} & {
|
17
|
-
setRetryStrategy(retryStrategy: import("@smithy/types").Provider<import("@smithy/types").
|
18
|
-
retryStrategy(): import("@smithy/types").Provider<import("@smithy/types").
|
17
|
+
setRetryStrategy(retryStrategy: import("@smithy/types").Provider<import("@smithy/types").RetryStrategyV2 | import("@smithy/types").RetryStrategy>): void;
|
18
|
+
retryStrategy(): import("@smithy/types").Provider<import("@smithy/types").RetryStrategyV2 | import("@smithy/types").RetryStrategy>;
|
19
19
|
};
|
20
20
|
/**
|
21
21
|
* @deprecated use getDefaultExtensionConfiguration
|
@@ -27,8 +27,8 @@ export declare const getDefaultClientConfiguration: (runtimeConfig: DefaultExten
|
|
27
27
|
addChecksumAlgorithm(algo: import("@smithy/types").ChecksumAlgorithm): void;
|
28
28
|
checksumAlgorithms(): import("@smithy/types").ChecksumAlgorithm[];
|
29
29
|
} & {
|
30
|
-
setRetryStrategy(retryStrategy: import("@smithy/types").Provider<import("@smithy/types").
|
31
|
-
retryStrategy(): import("@smithy/types").Provider<import("@smithy/types").
|
30
|
+
setRetryStrategy(retryStrategy: import("@smithy/types").Provider<import("@smithy/types").RetryStrategyV2 | import("@smithy/types").RetryStrategy>): void;
|
31
|
+
retryStrategy(): import("@smithy/types").Provider<import("@smithy/types").RetryStrategyV2 | import("@smithy/types").RetryStrategy>;
|
32
32
|
};
|
33
33
|
/**
|
34
34
|
* @internal
|
@@ -13,7 +13,6 @@
|
|
13
13
|
export type AutomaticJsonStringConversion = Parameters<typeof JSON.stringify>[0] | LazyJsonString;
|
14
14
|
/**
|
15
15
|
* @internal
|
16
|
-
*
|
17
16
|
*/
|
18
17
|
export interface LazyJsonString extends String {
|
19
18
|
/**
|
@@ -36,8 +35,8 @@ export interface LazyJsonString extends String {
|
|
36
35
|
* behavior of extending the String class.
|
37
36
|
*/
|
38
37
|
export declare const LazyJsonString: {
|
39
|
-
(s: string): LazyJsonString;
|
40
38
|
new (s: string): LazyJsonString;
|
39
|
+
(s: string): LazyJsonString;
|
41
40
|
from(s: any): LazyJsonString;
|
42
41
|
/**
|
43
42
|
* @deprecated use #from.
|
@@ -6,4 +6,6 @@ import { Client } from "./client";
|
|
6
6
|
* @param client - client instance on which to add aggregated methods.
|
7
7
|
* @returns an aggregated client with dynamically created methods.
|
8
8
|
*/
|
9
|
-
export declare const createAggregatedClient: (commands: Record<string, any>, Client:
|
9
|
+
export declare const createAggregatedClient: (commands: Record<string, any>, Client: {
|
10
|
+
new (...args: any): Client<any, any, any, any>;
|
11
|
+
}) => void;
|
@@ -10,4 +10,6 @@ export declare const throwDefaultError: ({ output, parsedBody, exceptionCtor, er
|
|
10
10
|
*
|
11
11
|
* Creates {@link throwDefaultError} with bound ExceptionCtor.
|
12
12
|
*/
|
13
|
-
export declare const withBaseException: (ExceptionCtor:
|
13
|
+
export declare const withBaseException: (ExceptionCtor: {
|
14
|
+
new (...args: any): any;
|
15
|
+
}) => any;
|
@@ -14,8 +14,8 @@ export declare const getDefaultExtensionConfiguration: (runtimeConfig: DefaultEx
|
|
14
14
|
addChecksumAlgorithm(algo: import("@smithy/types").ChecksumAlgorithm): void;
|
15
15
|
checksumAlgorithms(): import("@smithy/types").ChecksumAlgorithm[];
|
16
16
|
} & {
|
17
|
-
setRetryStrategy(retryStrategy: import("@smithy/types").Provider<import("@smithy/types").
|
18
|
-
retryStrategy(): import("@smithy/types").Provider<import("@smithy/types").
|
17
|
+
setRetryStrategy(retryStrategy: import("@smithy/types").Provider<import("@smithy/types").RetryStrategyV2 | import("@smithy/types").RetryStrategy>): void;
|
18
|
+
retryStrategy(): import("@smithy/types").Provider<import("@smithy/types").RetryStrategyV2 | import("@smithy/types").RetryStrategy>;
|
19
19
|
};
|
20
20
|
/**
|
21
21
|
* @deprecated use getDefaultExtensionConfiguration
|
@@ -27,8 +27,8 @@ export declare const getDefaultClientConfiguration: (runtimeConfig: DefaultExten
|
|
27
27
|
addChecksumAlgorithm(algo: import("@smithy/types").ChecksumAlgorithm): void;
|
28
28
|
checksumAlgorithms(): import("@smithy/types").ChecksumAlgorithm[];
|
29
29
|
} & {
|
30
|
-
setRetryStrategy(retryStrategy: import("@smithy/types").Provider<import("@smithy/types").
|
31
|
-
retryStrategy(): import("@smithy/types").Provider<import("@smithy/types").
|
30
|
+
setRetryStrategy(retryStrategy: import("@smithy/types").Provider<import("@smithy/types").RetryStrategyV2 | import("@smithy/types").RetryStrategy>): void;
|
31
|
+
retryStrategy(): import("@smithy/types").Provider<import("@smithy/types").RetryStrategyV2 | import("@smithy/types").RetryStrategy>;
|
32
32
|
};
|
33
33
|
/**
|
34
34
|
* @internal
|