@aws-sdk/credential-provider-node 3.972.2 → 3.972.4

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 CHANGED
@@ -41,15 +41,21 @@ function memoizeChain(providers, treatAsExpired) {
41
41
  else if (!credentials || treatAsExpired?.(credentials)) {
42
42
  if (credentials) {
43
43
  if (!passiveLock) {
44
- passiveLock = chain(options).then((c) => {
44
+ passiveLock = chain(options)
45
+ .then((c) => {
45
46
  credentials = c;
47
+ })
48
+ .finally(() => {
46
49
  passiveLock = undefined;
47
50
  });
48
51
  }
49
52
  }
50
53
  else {
51
- activeLock = chain(options).then((c) => {
54
+ activeLock = chain(options)
55
+ .then((c) => {
52
56
  credentials = c;
57
+ })
58
+ .finally(() => {
53
59
  activeLock = undefined;
54
60
  });
55
61
  return provider(options);
@@ -18,15 +18,21 @@ export function memoizeChain(providers, treatAsExpired) {
18
18
  else if (!credentials || treatAsExpired?.(credentials)) {
19
19
  if (credentials) {
20
20
  if (!passiveLock) {
21
- passiveLock = chain(options).then((c) => {
21
+ passiveLock = chain(options)
22
+ .then((c) => {
22
23
  credentials = c;
24
+ })
25
+ .finally(() => {
23
26
  passiveLock = undefined;
24
27
  });
25
28
  }
26
29
  }
27
30
  else {
28
- activeLock = chain(options).then((c) => {
31
+ activeLock = chain(options)
32
+ .then((c) => {
29
33
  credentials = c;
34
+ })
35
+ .finally(() => {
30
36
  activeLock = undefined;
31
37
  });
32
38
  return provider(options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.972.2",
3
+ "version": "3.972.4",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "engines": {
6
6
  "node": ">=20.0.0"
@@ -31,12 +31,12 @@
31
31
  },
32
32
  "license": "Apache-2.0",
33
33
  "dependencies": {
34
- "@aws-sdk/credential-provider-env": "^3.972.2",
35
- "@aws-sdk/credential-provider-http": "^3.972.3",
36
- "@aws-sdk/credential-provider-ini": "^3.972.2",
37
- "@aws-sdk/credential-provider-process": "^3.972.2",
38
- "@aws-sdk/credential-provider-sso": "^3.972.2",
39
- "@aws-sdk/credential-provider-web-identity": "^3.972.2",
34
+ "@aws-sdk/credential-provider-env": "^3.972.3",
35
+ "@aws-sdk/credential-provider-http": "^3.972.5",
36
+ "@aws-sdk/credential-provider-ini": "^3.972.3",
37
+ "@aws-sdk/credential-provider-process": "^3.972.3",
38
+ "@aws-sdk/credential-provider-sso": "^3.972.3",
39
+ "@aws-sdk/credential-provider-web-identity": "^3.972.3",
40
40
  "@aws-sdk/types": "^3.973.1",
41
41
  "@smithy/credential-provider-imds": "^4.2.8",
42
42
  "@smithy/property-provider": "^4.2.8",