@aws-sdk/credential-provider-http 3.879.0 → 3.883.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.
|
@@ -21,7 +21,9 @@ const fromHttp = (options = {}) => {
|
|
|
21
21
|
const full = options.awsContainerCredentialsFullUri ?? process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI];
|
|
22
22
|
const token = options.awsContainerAuthorizationToken ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN];
|
|
23
23
|
const tokenFile = options.awsContainerAuthorizationTokenFile ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE];
|
|
24
|
-
const warn = options.logger?.constructor?.name === "NoOpLogger" || !options.logger
|
|
24
|
+
const warn = options.logger?.constructor?.name === "NoOpLogger" || !options.logger?.warn
|
|
25
|
+
? console.warn
|
|
26
|
+
: options.logger.warn.bind(options.logger);
|
|
25
27
|
if (relative && full) {
|
|
26
28
|
warn("@aws-sdk/credential-provider-http: " +
|
|
27
29
|
"you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.");
|
|
@@ -17,7 +17,9 @@ export const fromHttp = (options = {}) => {
|
|
|
17
17
|
const full = options.awsContainerCredentialsFullUri ?? process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI];
|
|
18
18
|
const token = options.awsContainerAuthorizationToken ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN];
|
|
19
19
|
const tokenFile = options.awsContainerAuthorizationTokenFile ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE];
|
|
20
|
-
const warn = options.logger?.constructor?.name === "NoOpLogger" || !options.logger
|
|
20
|
+
const warn = options.logger?.constructor?.name === "NoOpLogger" || !options.logger?.warn
|
|
21
|
+
? console.warn
|
|
22
|
+
: options.logger.warn.bind(options.logger);
|
|
21
23
|
if (relative && full) {
|
|
22
24
|
warn("@aws-sdk/credential-provider-http: " +
|
|
23
25
|
"you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-http",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.883.0",
|
|
4
4
|
"description": "AWS credential provider for containers and HTTP sources",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@aws-sdk/core": "3.
|
|
30
|
+
"@aws-sdk/core": "3.883.0",
|
|
31
31
|
"@aws-sdk/types": "3.862.0",
|
|
32
32
|
"@smithy/fetch-http-handler": "^5.1.1",
|
|
33
33
|
"@smithy/node-http-handler": "^4.1.1",
|
|
34
34
|
"@smithy/property-provider": "^4.0.5",
|
|
35
35
|
"@smithy/protocol-http": "^5.1.3",
|
|
36
|
-
"@smithy/smithy-client": "^4.5.
|
|
36
|
+
"@smithy/smithy-client": "^4.5.2",
|
|
37
37
|
"@smithy/types": "^4.3.2",
|
|
38
38
|
"@smithy/util-stream": "^4.2.4",
|
|
39
39
|
"tslib": "^2.6.2"
|