@vizamodo/aws-sts-core 0.3.28 → 0.3.30
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/sts/issue.d.ts +1 -0
- package/dist/sts/issue.js +5 -2
- package/package.json +2 -2
package/dist/sts/issue.d.ts
CHANGED
package/dist/sts/issue.js
CHANGED
|
@@ -75,7 +75,7 @@ function resolveSessionTtlByProfile(profile) {
|
|
|
75
75
|
// Main export
|
|
76
76
|
// ---------------------------------------------------------------------------
|
|
77
77
|
export async function issueAwsCredentials(input) {
|
|
78
|
-
const { roleArn, profileArn, trustAnchorArn, region, certBase64, privateKeyPkcs8Base64, profile, } = input;
|
|
78
|
+
const { roleArn, profileArn, trustAnchorArn, region, certBase64, privateKeyPkcs8Base64, profile, forceRefresh, } = input;
|
|
79
79
|
const sessionTtl = resolveSessionTtlByProfile(profile);
|
|
80
80
|
const normalizedCert = normalizeCert(certBase64);
|
|
81
81
|
// ---- DER serial extraction (with isolate-level cache) ----
|
|
@@ -162,7 +162,10 @@ export async function issueAwsCredentials(input) {
|
|
|
162
162
|
return wrapResult(value, edgeCacheExpiry);
|
|
163
163
|
}
|
|
164
164
|
return value;
|
|
165
|
-
}, {
|
|
165
|
+
}, {
|
|
166
|
+
ttlSec: 60,
|
|
167
|
+
...(forceRefresh !== undefined ? { forceRefresh } : {})
|
|
168
|
+
});
|
|
166
169
|
}
|
|
167
170
|
// ---------------------------------------------------------------------------
|
|
168
171
|
// Helpers
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizamodo/aws-sts-core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.30",
|
|
4
4
|
"description": "Pure AWS STS + SigV4 (X509 Roles Anywhere) core logic",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
"vitest": "^4.1.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@vizamodo/edge-cache-core": "^0.3.
|
|
31
|
+
"@vizamodo/edge-cache-core": "^0.3.30"
|
|
32
32
|
}
|
|
33
33
|
}
|