@aws-sdk/credential-provider-env 3.577.0 → 3.587.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/dist-cjs/index.js +2 -2
- package/dist-es/fromEnv.js +2 -2
- package/package.json +2 -2
package/dist-cjs/index.js
CHANGED
|
@@ -39,7 +39,7 @@ var ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
|
|
|
39
39
|
var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
|
|
40
40
|
var fromEnv = /* @__PURE__ */ __name((init) => async () => {
|
|
41
41
|
var _a;
|
|
42
|
-
(_a = init == null ? void 0 : init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-env
|
|
42
|
+
(_a = init == null ? void 0 : init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-env - fromEnv");
|
|
43
43
|
const accessKeyId = process.env[ENV_KEY];
|
|
44
44
|
const secretAccessKey = process.env[ENV_SECRET];
|
|
45
45
|
const sessionToken = process.env[ENV_SESSION];
|
|
@@ -54,7 +54,7 @@ var fromEnv = /* @__PURE__ */ __name((init) => async () => {
|
|
|
54
54
|
...credentialScope && { credentialScope }
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
throw new import_property_provider.CredentialsProviderError("Unable to find environment variable credentials.");
|
|
57
|
+
throw new import_property_provider.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init == null ? void 0 : init.logger });
|
|
58
58
|
}, "fromEnv");
|
|
59
59
|
// Annotate the CommonJS export names for ESM import in node:
|
|
60
60
|
|
package/dist-es/fromEnv.js
CHANGED
|
@@ -5,7 +5,7 @@ export const ENV_SESSION = "AWS_SESSION_TOKEN";
|
|
|
5
5
|
export const ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
|
|
6
6
|
export const ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
|
|
7
7
|
export const fromEnv = (init) => async () => {
|
|
8
|
-
init?.logger?.debug("@aws-sdk/credential-provider-env
|
|
8
|
+
init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
|
|
9
9
|
const accessKeyId = process.env[ENV_KEY];
|
|
10
10
|
const secretAccessKey = process.env[ENV_SECRET];
|
|
11
11
|
const sessionToken = process.env[ENV_SESSION];
|
|
@@ -20,5 +20,5 @@ export const fromEnv = (init) => async () => {
|
|
|
20
20
|
...(credentialScope && { credentialScope }),
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
throw new CredentialsProviderError("Unable to find environment variable credentials.");
|
|
23
|
+
throw new CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
|
|
24
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-env",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.587.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from known environment variables",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@aws-sdk/types": "3.577.0",
|
|
28
|
-
"@smithy/property-provider": "^3.
|
|
28
|
+
"@smithy/property-provider": "^3.1.0",
|
|
29
29
|
"@smithy/types": "^3.0.0",
|
|
30
30
|
"tslib": "^2.6.2"
|
|
31
31
|
},
|