@aws-sdk/credential-provider-http
Advanced tools
Comparing version 3.496.0 to 3.502.0
@@ -10,3 +10,4 @@ "use strict"; | ||
const fromHttp = (options) => { | ||
var _a, _b; | ||
var _a, _b, _c; | ||
(_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug("@aws-sdk/credential-provider-http", "fromHttp"); | ||
let host; | ||
@@ -30,4 +31,4 @@ const full = options.credentialsFullUri; | ||
return (0, requestHelpers_1.getCredentials)(result.response); | ||
}, (_a = options.maxRetries) !== null && _a !== void 0 ? _a : 3, (_b = options.timeout) !== null && _b !== void 0 ? _b : 1000); | ||
}, (_b = options.maxRetries) !== null && _b !== void 0 ? _b : 3, (_c = options.timeout) !== null && _c !== void 0 ? _c : 1000); | ||
}; | ||
exports.fromHttp = fromHttp; |
@@ -17,8 +17,9 @@ "use strict"; | ||
const fromHttp = (options) => { | ||
var _a, _b, _c, _d, _e, _f; | ||
var _a, _b, _c, _d, _e, _f, _g; | ||
(_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug("@aws-sdk/credential-provider-http", "fromHttp"); | ||
let host; | ||
const relative = (_a = options.awsContainerCredentialsRelativeUri) !== null && _a !== void 0 ? _a : process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI]; | ||
const full = (_b = options.awsContainerCredentialsFullUri) !== null && _b !== void 0 ? _b : process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI]; | ||
const token = (_c = options.awsContainerAuthorizationToken) !== null && _c !== void 0 ? _c : process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN]; | ||
const tokenFile = (_d = options.awsContainerAuthorizationTokenFile) !== null && _d !== void 0 ? _d : process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE]; | ||
const relative = (_b = options.awsContainerCredentialsRelativeUri) !== null && _b !== void 0 ? _b : process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI]; | ||
const full = (_c = options.awsContainerCredentialsFullUri) !== null && _c !== void 0 ? _c : process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI]; | ||
const token = (_d = options.awsContainerAuthorizationToken) !== null && _d !== void 0 ? _d : process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN]; | ||
const tokenFile = (_e = options.awsContainerAuthorizationTokenFile) !== null && _e !== void 0 ? _e : process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE]; | ||
if (relative && full) { | ||
@@ -54,4 +55,4 @@ console.warn("AWS SDK HTTP credentials provider:", "you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."); | ||
return (0, requestHelpers_1.getCredentials)(result.response); | ||
}, (_e = options.maxRetries) !== null && _e !== void 0 ? _e : 3, (_f = options.timeout) !== null && _f !== void 0 ? _f : 1000); | ||
}, (_f = options.maxRetries) !== null && _f !== void 0 ? _f : 3, (_g = options.timeout) !== null && _g !== void 0 ? _g : 1000); | ||
}; | ||
exports.fromHttp = fromHttp; |
@@ -7,2 +7,3 @@ import { FetchHttpHandler } from "@smithy/fetch-http-handler"; | ||
export const fromHttp = (options) => { | ||
options.logger?.debug("@aws-sdk/credential-provider-http", "fromHttp"); | ||
let host; | ||
@@ -9,0 +10,0 @@ const full = options.credentialsFullUri; |
@@ -13,2 +13,3 @@ import { NodeHttpHandler } from "@smithy/node-http-handler"; | ||
export const fromHttp = (options) => { | ||
options.logger?.debug("@aws-sdk/credential-provider-http", "fromHttp"); | ||
let host; | ||
@@ -15,0 +16,0 @@ const relative = options.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI]; |
@@ -0,1 +1,2 @@ | ||
import type { CredentialProviderOptions } from "@aws-sdk/types"; | ||
/** | ||
@@ -6,3 +7,3 @@ * @public | ||
*/ | ||
export interface FromHttpOptions { | ||
export interface FromHttpOptions extends CredentialProviderOptions { | ||
/** | ||
@@ -9,0 +10,0 @@ * If this value is provided, it will be used as-is. |
@@ -1,2 +0,3 @@ | ||
export interface FromHttpOptions { | ||
import { CredentialProviderOptions } from "@aws-sdk/types"; | ||
export interface FromHttpOptions extends CredentialProviderOptions { | ||
awsContainerCredentialsFullUri?: string; | ||
@@ -3,0 +4,0 @@ awsContainerCredentialsRelativeUri?: string; |
{ | ||
"name": "@aws-sdk/credential-provider-http", | ||
"version": "3.496.0", | ||
"version": "3.502.0", | ||
"description": "AWS credential provider for containers and HTTP sources", | ||
@@ -29,3 +29,3 @@ "main": "./dist-cjs/index.js", | ||
"dependencies": { | ||
"@aws-sdk/types": "3.496.0", | ||
"@aws-sdk/types": "3.502.0", | ||
"@smithy/fetch-http-handler": "^2.4.1", | ||
@@ -32,0 +32,0 @@ "@smithy/node-http-handler": "^2.3.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26358
577
+ Added@aws-sdk/types@3.502.0(transitive)
- Removed@aws-sdk/types@3.496.0(transitive)
Updated@aws-sdk/types@3.502.0