Compare commits

..

8 commits

Author SHA1 Message Date
dependabot[bot]
037dd16322
chore(deps-dev): bump @vitest/coverage-v8 from 4.1.5 to 4.1.8 (#1817)
Bumps [@vitest/coverage-v8](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8) from 4.1.5 to 4.1.8.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.8/packages/coverage-v8)

---
updated-dependencies:
- dependency-name: "@vitest/coverage-v8"
  dependency-version: 4.1.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Keller <1083460+kellertk@users.noreply.github.com>
2026-06-03 22:06:07 +00:00
dependabot[bot]
89a34d9b83
chore(deps-dev): bump vitest from 4.1.5 to 4.1.8 (#1815)
* chore(deps-dev): bump vitest from 4.1.5 to 4.1.8

Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 4.1.5 to 4.1.8.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.8/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-version: 4.1.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps-dev): bump vitest and coverage-v8 to 4.1.8

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Keller <kellertk@amazon.com>
2026-06-03 22:04:30 +00:00
dependabot[bot]
d63f12fba5
chore(deps-dev): bump memfs from 4.57.2 to 4.57.6 (#1813)
Bumps [memfs](https://github.com/streamich/memfs) from 4.57.2 to 4.57.6.
- [Release notes](https://github.com/streamich/memfs/releases)
- [Changelog](https://github.com/streamich/memfs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/streamich/memfs/compare/v4.57.2...v4.57.6)

---
updated-dependencies:
- dependency-name: memfs
  dependency-version: 4.57.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-03 21:58:21 +00:00
dependabot[bot]
aefb6ea018
chore(deps-dev): bump @smithy/property-provider from 4.3.5 to 4.3.6 (#1816)
Bumps [@smithy/property-provider](https://github.com/smithy-lang/smithy-typescript/tree/HEAD/packages/property-provider) from 4.3.5 to 4.3.6.
- [Release notes](https://github.com/smithy-lang/smithy-typescript/releases)
- [Changelog](https://github.com/smithy-lang/smithy-typescript/blob/main/packages/property-provider/CHANGELOG.md)
- [Commits](https://github.com/smithy-lang/smithy-typescript/commits/@smithy/util-retry@4.3.6/packages/property-provider)

---
updated-dependencies:
- dependency-name: "@smithy/property-provider"
  dependency-version: 4.3.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-03 21:56:02 +00:00
GitHub Actions
bf27562715 chore: Update dist 2026-06-03 21:53:30 +00:00
dependabot[bot]
4f3ef32554
chore(deps): bump @aws-sdk/client-sts from 3.1049.0 to 3.1061.0 (#1814)
Bumps [@aws-sdk/client-sts](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-sts) from 3.1049.0 to 3.1061.0.
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-sts/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.1061.0/clients/client-sts)

---
updated-dependencies:
- dependency-name: "@aws-sdk/client-sts"
  dependency-version: 3.1061.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-03 21:52:58 +00:00
dependabot[bot]
26b365ff2f
chore(deps-dev): bump @biomejs/biome from 2.4.15 to 2.4.16 (#1811)
Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 2.4.15 to 2.4.16.
- [Release notes](https://github.com/biomejs/biome/releases)
- [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md)
- [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.4.16/packages/@biomejs/biome)

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-version: 2.4.16
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-03 21:50:30 +00:00
dependabot[bot]
262ce4cfb5
chore(deps-dev): bump generate-license-file from 4.1.1 to 4.2.1 (#1812)
Bumps [generate-license-file](https://github.com/TobyAndToby/generate-license-file/tree/HEAD/src/packages/generate-license-file) from 4.1.1 to 4.2.1.
- [Release notes](https://github.com/TobyAndToby/generate-license-file/releases)
- [Commits](https://github.com/TobyAndToby/generate-license-file/commits/v4.2.1/src/packages/generate-license-file)

---
updated-dependencies:
- dependency-name: generate-license-file
  dependency-version: 4.2.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-03 21:47:33 +00:00
4 changed files with 539 additions and 690 deletions

View file

@ -644,7 +644,7 @@ Apache License
The following npm package may be included in this product: The following npm package may be included in this product:
- @aws-sdk/client-sts@3.1049.0 - @aws-sdk/client-sts@3.1061.0
This package contains the following license: This package contains the following license:
@ -854,9 +854,9 @@ Apache License
The following npm packages may be included in this product: The following npm packages may be included in this product:
- @aws-sdk/signature-v4-multi-region@3.996.27 - @aws-sdk/signature-v4-multi-region@3.996.31
- @smithy/core@3.24.5 - @smithy/core@3.24.6
- @smithy/types@4.14.2 - @smithy/types@4.14.3
These packages each contain the following license: These packages each contain the following license:
@ -1254,7 +1254,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The following npm package may be included in this product: The following npm package may be included in this product:
- @aws-sdk/core@3.974.15 - @aws-sdk/core@3.974.17
This package contains the following license: This package contains the following license:
@ -1674,18 +1674,18 @@ Apache License
The following npm packages may be included in this product: The following npm packages may be included in this product:
- @aws-sdk/credential-provider-env@3.972.41 - @aws-sdk/credential-provider-env@3.972.43
- @aws-sdk/credential-provider-ini@3.972.42 - @aws-sdk/credential-provider-ini@3.972.48
- @aws-sdk/credential-provider-node@3.972.43 - @aws-sdk/credential-provider-node@3.972.50
- @aws-sdk/token-providers@3.1049.0 - @aws-sdk/token-providers@3.1060.0
- @aws-sdk/types@3.973.9 - @aws-sdk/types@3.973.10
- @aws-sdk/util-locate-window@3.965.5 - @aws-sdk/util-locate-window@3.965.5
- @aws-sdk/xml-builder@3.972.26 - @aws-sdk/xml-builder@3.972.27
- @smithy/credential-provider-imds@4.3.3 - @smithy/credential-provider-imds@4.3.7
- @smithy/fetch-http-handler@5.4.3 - @smithy/fetch-http-handler@5.4.6
- @smithy/is-array-buffer@2.2.0 - @smithy/is-array-buffer@2.2.0
- @smithy/node-http-handler@4.7.3 - @smithy/node-http-handler@4.7.6
- @smithy/signature-v4@5.4.5 - @smithy/signature-v4@5.4.6
- @smithy/util-buffer-from@2.2.0 - @smithy/util-buffer-from@2.2.0
- @smithy/util-utf8@2.3.0 - @smithy/util-utf8@2.3.0
@ -1897,9 +1897,9 @@ Apache License
The following npm packages may be included in this product: The following npm packages may be included in this product:
- @aws-sdk/credential-provider-process@3.972.38 - @aws-sdk/credential-provider-process@3.972.43
- @aws-sdk/credential-provider-sso@3.972.42 - @aws-sdk/credential-provider-sso@3.972.47
- @aws-sdk/credential-provider-web-identity@3.972.42 - @aws-sdk/credential-provider-web-identity@3.972.47
These packages each contain the following license: These packages each contain the following license:
@ -2109,9 +2109,9 @@ Apache License
The following npm packages may be included in this product: The following npm packages may be included in this product:
- @aws-sdk/credential-provider-http@3.972.40 - @aws-sdk/credential-provider-http@3.972.45
- @aws-sdk/credential-provider-login@3.972.42 - @aws-sdk/credential-provider-login@3.972.47
- @aws-sdk/nested-clients@3.997.10 - @aws-sdk/nested-clients@3.997.15
These packages each contain the following license: These packages each contain the following license:

150
dist/index.js generated vendored
View file

@ -28857,7 +28857,7 @@ var init_constants4 = __esm({
TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"]; TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"];
TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504];
NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"]; NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"];
NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND"]; NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND", "EAI_AGAIN"];
} }
}); });
@ -29019,9 +29019,6 @@ function bindRetryMiddleware(isStreamingPayload2) {
try { try {
retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo); retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
} catch (refreshError) { } catch (refreshError) {
if (typeof refreshError.$backoff === "number") {
await cooldown(refreshError.$backoff);
}
if (!lastError.$metadata) { if (!lastError.$metadata) {
lastError.$metadata = {}; lastError.$metadata = {};
} }
@ -29031,8 +29028,10 @@ function bindRetryMiddleware(isStreamingPayload2) {
} }
attempts = retryToken.getRetryCount(); attempts = retryToken.getRetryCount();
const delay = retryToken.getRetryDelay(); const delay = retryToken.getRetryDelay();
totalRetryDelay += delay; totalRetryDelay += (retryToken?.$retryLog?.acquisitionDelay ?? 0) + delay;
await cooldown(delay); if (delay > 0) {
await cooldown(delay);
}
} }
} }
} else { } else {
@ -29267,6 +29266,9 @@ var init_DefaultRetryToken = __esm({
count; count;
cost; cost;
longPoll; longPoll;
$retryLog = {
acquisitionDelay: 0
};
constructor(delay, count, cost, longPoll) { constructor(delay, count, cost, longPoll) {
this.delay = delay; this.delay = delay;
this.count = count; this.count = count;
@ -29318,8 +29320,8 @@ var init_StandardRetryStrategy = __esm({
}; };
StandardRetryStrategy = class { StandardRetryStrategy = class {
mode = RETRY_MODES.STANDARD; mode = RETRY_MODES.STANDARD;
capacity = INITIAL_RETRY_TOKENS;
retryBackoffStrategy; retryBackoffStrategy;
capacity = INITIAL_RETRY_TOKENS;
maxAttemptsProvider; maxAttemptsProvider;
baseDelay; baseDelay;
constructor(arg1) { constructor(arg1) {
@ -29353,13 +29355,17 @@ var init_StandardRetryStrategy = __esm({
retryDelay = Math.max(delayFromErrorType, Math.min(errorInfo.retryAfterHint.getTime() - Date.now(), delayFromErrorType + 5e3)); retryDelay = Math.max(delayFromErrorType, Math.min(errorInfo.retryAfterHint.getTime() - Date.now(), delayFromErrorType + 5e3));
} }
if (!shouldRetry) { if (!shouldRetry) {
throw Object.assign(new Error("No retry token available"), { const longPollBackoff = Retry.v2026 && retryCode === refusal.capacity && isLongPoll ? retryDelay : 0;
$backoff: Retry.v2026 && retryCode === refusal.capacity && isLongPoll ? retryDelay : 0 if (longPollBackoff > 0) {
}); await new Promise((r5) => setTimeout(r5, longPollBackoff));
}
} else { } else {
const capacityCost = this.getCapacityCost(errorType); const capacityCost = this.getCapacityCost(errorType);
this.capacity -= capacityCost; this.capacity -= capacityCost;
return new DefaultRetryToken(retryDelay, token.getRetryCount() + 1, capacityCost, token.isLongPoll?.() ?? false); const nextToken = new DefaultRetryToken(0, token.getRetryCount() + 1, capacityCost, token.isLongPoll?.() ?? false);
await new Promise((r5) => setTimeout(r5, retryDelay));
nextToken.$retryLog.acquisitionDelay = retryDelay;
return nextToken;
} }
} }
throw new Error("No retry token available"); throw new Error("No retry token available");
@ -29454,11 +29460,10 @@ var init_ConfiguredRetryStrategy = __esm({
} else { } else {
this.computeNextBackoffDelay = computeNextBackoffDelay; this.computeNextBackoffDelay = computeNextBackoffDelay;
} }
} this.retryBackoffStrategy.computeNextBackoffDelay = (completedAttempt) => {
async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { const nextAttempt = completedAttempt + 1;
const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo); return this.computeNextBackoffDelay(nextAttempt);
token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount()); };
return token;
} }
}; };
} }
@ -29658,6 +29663,7 @@ var init_configurations = __esm({
init_AdaptiveRetryStrategy(); init_AdaptiveRetryStrategy();
init_StandardRetryStrategy(); init_StandardRetryStrategy();
init_config3(); init_config3();
init_retries_2026_config();
ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS";
CONFIG_MAX_ATTEMPTS = "max_attempts"; CONFIG_MAX_ATTEMPTS = "max_attempts";
NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
@ -29683,13 +29689,27 @@ var init_configurations = __esm({
}, },
default: DEFAULT_MAX_ATTEMPTS default: DEFAULT_MAX_ATTEMPTS
}; };
resolveRetryConfig = (input) => { resolveRetryConfig = (input, defaults) => {
const { retryStrategy, retryMode } = input; const { retryStrategy, retryMode } = input;
const maxAttempts = normalizeProvider(input.maxAttempts ?? DEFAULT_MAX_ATTEMPTS); const { defaultMaxAttempts = DEFAULT_MAX_ATTEMPTS, defaultBaseDelay = Retry.delay() } = defaults ?? {};
const maxAttemptsProvider = normalizeProvider(input.maxAttempts ?? defaultMaxAttempts);
let controller = retryStrategy ? Promise.resolve(retryStrategy) : void 0; let controller = retryStrategy ? Promise.resolve(retryStrategy) : void 0;
const getDefault = async () => await normalizeProvider(retryMode)() === RETRY_MODES.ADAPTIVE ? new AdaptiveRetryStrategy(maxAttempts) : new StandardRetryStrategy(maxAttempts); const getDefault = async () => {
const maxAttempts = await maxAttemptsProvider();
const adaptive = await normalizeProvider(retryMode)() === RETRY_MODES.ADAPTIVE;
if (adaptive) {
return new AdaptiveRetryStrategy(maxAttemptsProvider, {
maxAttempts,
baseDelay: defaultBaseDelay
});
}
return new StandardRetryStrategy({
maxAttempts,
baseDelay: defaultBaseDelay
});
};
return Object.assign(input, { return Object.assign(input, {
maxAttempts, maxAttempts: maxAttemptsProvider,
retryStrategy: () => controller ??= getDefault() retryStrategy: () => controller ??= getDefault()
}); });
}; };
@ -33625,7 +33645,7 @@ var require_package = __commonJS({
module2.exports = { module2.exports = {
name: "@aws-sdk/client-sts", name: "@aws-sdk/client-sts",
description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native", description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
version: "3.1049.0", version: "3.1061.0",
scripts: { scripts: {
build: "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs", build: "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
"build:cjs": "node ../../scripts/compilation/inline client-sts", "build:cjs": "node ../../scripts/compilation/inline client-sts",
@ -33651,18 +33671,18 @@ var require_package = __commonJS({
dependencies: { dependencies: {
"@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-browser": "5.2.0",
"@aws-crypto/sha256-js": "5.2.0", "@aws-crypto/sha256-js": "5.2.0",
"@aws-sdk/core": "^3.974.12", "@aws-sdk/core": "^3.974.17",
"@aws-sdk/credential-provider-node": "^3.972.43", "@aws-sdk/credential-provider-node": "^3.972.50",
"@aws-sdk/signature-v4-multi-region": "^3.996.27", "@aws-sdk/signature-v4-multi-region": "^3.996.31",
"@aws-sdk/types": "^3.973.8", "@aws-sdk/types": "^3.973.10",
"@smithy/core": "^3.24.2", "@smithy/core": "^3.24.6",
"@smithy/fetch-http-handler": "^5.4.2", "@smithy/fetch-http-handler": "^5.4.6",
"@smithy/node-http-handler": "^4.7.2", "@smithy/node-http-handler": "^4.7.6",
"@smithy/types": "^4.14.1", "@smithy/types": "^4.14.3",
tslib: "^2.6.2" tslib: "^2.6.2"
}, },
devDependencies: { devDependencies: {
"@smithy/snapshot-testing": "^2.1.2", "@smithy/snapshot-testing": "^2.1.7",
"@tsconfig/node20": "20.1.8", "@tsconfig/node20": "20.1.8",
"@types/node": "^20.14.8", "@types/node": "^20.14.8",
concurrently: "7.0.0", concurrently: "7.0.0",
@ -33753,7 +33773,6 @@ var require_dist_cjs7 = __commonJS({
var require_dist_cjs8 = __commonJS({ var require_dist_cjs8 = __commonJS({
"node_modules/@smithy/credential-provider-imds/dist-cjs/index.js"(exports2) { "node_modules/@smithy/credential-provider-imds/dist-cjs/index.js"(exports2) {
"use strict"; "use strict";
var node_url = require("node:url");
var config = (init_config2(), __toCommonJS(config_exports)); var config = (init_config2(), __toCommonJS(config_exports));
var node_http = require("node:http"); var node_http = require("node:http");
var protocols2 = (init_protocols(), __toCommonJS(protocols_exports)); var protocols2 = (init_protocols(), __toCommonJS(protocols_exports));
@ -33838,14 +33857,8 @@ var require_dist_cjs8 = __commonJS({
return buffer.toString(); return buffer.toString();
}; };
var CMDS_IP = "169.254.170.2"; var CMDS_IP = "169.254.170.2";
var GREENGRASS_HOSTS = { var GREENGRASS_HOSTS = /* @__PURE__ */ new Set(["localhost", "127.0.0.1"]);
localhost: true, var GREENGRASS_PROTOCOLS = /* @__PURE__ */ new Set(["http:", "https:"]);
"127.0.0.1": true
};
var GREENGRASS_PROTOCOLS = {
"http:": true,
"https:": true
};
var getCmdsUri = async ({ logger: logger2 }) => { var getCmdsUri = async ({ logger: logger2 }) => {
if (process.env[ENV_CMDS_RELATIVE_URI]) { if (process.env[ENV_CMDS_RELATIVE_URI]) {
return { return {
@ -33854,21 +33867,28 @@ var require_dist_cjs8 = __commonJS({
}; };
} }
if (process.env[ENV_CMDS_FULL_URI]) { if (process.env[ENV_CMDS_FULL_URI]) {
const parsed = node_url.parse(process.env[ENV_CMDS_FULL_URI]); let parsed;
if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) { try {
parsed = new URL(process.env[ENV_CMDS_FULL_URI]);
} catch {
throw new config.CredentialsProviderError(`${process.env[ENV_CMDS_FULL_URI]} is not a valid container metadata service URL`, { tryNextLink: false, logger: logger2 });
}
if (!parsed.hostname || !GREENGRASS_HOSTS.has(parsed.hostname)) {
throw new config.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, { throw new config.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
tryNextLink: false, tryNextLink: false,
logger: logger2 logger: logger2
}); });
} }
if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) { if (!parsed.protocol || !GREENGRASS_PROTOCOLS.has(parsed.protocol)) {
throw new config.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, { throw new config.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
tryNextLink: false, tryNextLink: false,
logger: logger2 logger: logger2
}); });
} }
return { return {
...parsed, protocol: parsed.protocol,
hostname: parsed.hostname,
path: parsed.pathname + parsed.search,
port: parsed.port ? parseInt(parsed.port, 10) : void 0 port: parsed.port ? parseInt(parsed.port, 10) : void 0
}; };
} }
@ -35107,11 +35127,9 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
} }
const url = new URL(host); const url = new URL(host);
(0, checkUrl_1.checkUrl)(url, options.logger); (0, checkUrl_1.checkUrl)(url, options.logger);
const requestHandler = node_http_handler_1.NodeHttpHandler.create({ const requestHandler = node_http_handler_1.NodeHttpHandler.create({ connectionTimeout: options.timeout ?? 1e3 });
requestTimeout: options.timeout ?? 1e3, const requestTimeout = options.timeout ?? 1e3;
connectionTimeout: options.timeout ?? 1e3 const provider = (0, retry_wrapper_1.retryWrapper)(async () => {
});
return (0, retry_wrapper_1.retryWrapper)(async () => {
const request = (0, requestHelpers_1.createGetRequest)(url); const request = (0, requestHelpers_1.createGetRequest)(url);
if (token) { if (token) {
request.headers.Authorization = token; request.headers.Authorization = token;
@ -35119,12 +35137,19 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
request.headers.Authorization = (await promises_1.default.readFile(tokenFile)).toString(); request.headers.Authorization = (await promises_1.default.readFile(tokenFile)).toString();
} }
try { try {
const result = await requestHandler.handle(request); const result = await requestHandler.handle(request, { requestTimeout });
return (0, requestHelpers_1.getCredentials)(result.response).then((creds) => (0, client_1.setCredentialFeature)(creds, "CREDENTIALS_HTTP", "z")); return (0, requestHelpers_1.getCredentials)(result.response).then((creds) => (0, client_1.setCredentialFeature)(creds, "CREDENTIALS_HTTP", "z"));
} catch (e5) { } catch (e5) {
throw new config_1.CredentialsProviderError(String(e5), { logger: options.logger }); throw new config_1.CredentialsProviderError(String(e5), { logger: options.logger });
} }
}, options.maxRetries ?? 3, options.timeout ?? 1e3); }, options.maxRetries ?? 3, options.timeout ?? 1e3);
return async () => {
try {
return await provider();
} finally {
requestHandler.destroy?.();
}
};
}; };
exports2.fromHttp = fromHttp; exports2.fromHttp = fromHttp;
} }
@ -35221,7 +35246,7 @@ var init_package = __esm({
"node_modules/@aws-sdk/nested-clients/package.json"() { "node_modules/@aws-sdk/nested-clients/package.json"() {
package_default = { package_default = {
name: "@aws-sdk/nested-clients", name: "@aws-sdk/nested-clients",
version: "3.997.10", version: "3.997.15",
description: "Nested clients for AWS SDK packages.", description: "Nested clients for AWS SDK packages.",
main: "./dist-cjs/index.js", main: "./dist-cjs/index.js",
module: "./dist-es/index.js", module: "./dist-es/index.js",
@ -35250,13 +35275,13 @@ var init_package = __esm({
dependencies: { dependencies: {
"@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-browser": "5.2.0",
"@aws-crypto/sha256-js": "5.2.0", "@aws-crypto/sha256-js": "5.2.0",
"@aws-sdk/core": "^3.974.12", "@aws-sdk/core": "^3.974.17",
"@aws-sdk/signature-v4-multi-region": "^3.996.27", "@aws-sdk/signature-v4-multi-region": "^3.996.31",
"@aws-sdk/types": "^3.973.8", "@aws-sdk/types": "^3.973.10",
"@smithy/core": "^3.24.2", "@smithy/core": "^3.24.6",
"@smithy/fetch-http-handler": "^5.4.2", "@smithy/fetch-http-handler": "^5.4.6",
"@smithy/node-http-handler": "^4.7.2", "@smithy/node-http-handler": "^4.7.6",
"@smithy/types": "^4.14.1", "@smithy/types": "^4.14.3",
tslib: "^2.6.2" tslib: "^2.6.2"
}, },
devDependencies: { devDependencies: {
@ -44813,9 +44838,18 @@ var require_dist_cjs18 = __commonJS({
let activeLock; let activeLock;
let passiveLock; let passiveLock;
let credentials; let credentials;
let forceRefreshLock;
const provider = async (options) => { const provider = async (options) => {
if (options?.forceRefresh) { if (options?.forceRefresh) {
return await chain2(options); if (!forceRefreshLock) {
forceRefreshLock = chain2(options).then((c5) => {
credentials = c5;
}).finally(() => {
forceRefreshLock = void 0;
});
}
await forceRefreshLock;
return credentials;
} }
if (credentials?.expiration) { if (credentials?.expiration) {
if (credentials?.expiration?.getTime() < Date.now()) { if (credentials?.expiration?.getTime() < Date.now()) {

1023
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -18,23 +18,23 @@
}, },
"devDependencies": { "devDependencies": {
"@aws-sdk/credential-provider-env": "^3.972.39", "@aws-sdk/credential-provider-env": "^3.972.39",
"@biomejs/biome": "2.4.15", "@biomejs/biome": "2.4.16",
"@smithy/property-provider": "^4.3.4", "@smithy/property-provider": "^4.3.6",
"@types/node": "^25.9.1", "@types/node": "^25.9.1",
"@vitest/coverage-v8": "4.1.5", "@vitest/coverage-v8": "4.1.8",
"aws-sdk-client-mock": "^4.1.0", "aws-sdk-client-mock": "^4.1.0",
"esbuild": "^0.28.0", "esbuild": "^0.28.0",
"generate-license-file": "^4.1.1", "generate-license-file": "^4.2.1",
"json-schema": "^0.4.0", "json-schema": "^0.4.0",
"markdownlint-cli": "^0.48.0", "markdownlint-cli": "^0.48.0",
"memfs": "^4.57.2", "memfs": "^4.57.6",
"standard-version": "^9.5.0", "standard-version": "^9.5.0",
"typescript": "^6.0.3", "typescript": "^6.0.3",
"vitest": "4.1.5" "vitest": "4.1.8"
}, },
"dependencies": { "dependencies": {
"@actions/core": "^3.0.1", "@actions/core": "^3.0.1",
"@aws-sdk/client-sts": "^3.1049.0", "@aws-sdk/client-sts": "^3.1061.0",
"@smithy/node-http-handler": "^4.7.3", "@smithy/node-http-handler": "^4.7.3",
"proxy-agent": "^8.0.1" "proxy-agent": "^8.0.1"
}, },