storyforge 0.6.0 → 0.7.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.
- package/dist/bridge-poller-JIP6RGMN.js +7033 -0
- package/dist/chunk-2UXQZTSS.js +877 -0
- package/dist/chunk-3ZW2KMKN.js +5657 -0
- package/dist/chunk-56OB3EDN.js +29 -0
- package/dist/chunk-62PNWAA7.js +1020 -0
- package/dist/chunk-C5KB4UV6.js +242 -0
- package/dist/chunk-CDQ3UP6J.js +52 -0
- package/dist/chunk-CQ2IV4Q2.js +14 -0
- package/dist/chunk-L4BNY5R3.js +175 -0
- package/dist/chunk-M6JAFPDI.js +314 -0
- package/dist/chunk-NSPRIPOP.js +36 -0
- package/dist/chunk-U6LFS35L.js +62 -0
- package/dist/chunk-WVPXYQ2G.js +164 -0
- package/dist/chunk-YLY3P6CS.js +39 -0
- package/dist/chunk-ZHDWKDF5.js +44 -0
- package/dist/{cli-usage-FG3YUG3W.js → cli-usage-G762TREV.js} +1 -0
- package/dist/dist-es-2LINLMXN.js +89 -0
- package/dist/dist-es-4NQJAKNU.js +381 -0
- package/dist/dist-es-4RCBWWWT.js +71 -0
- package/dist/dist-es-JQWJEY7F.js +490 -0
- package/dist/dist-es-KZQIITSZ.js +168 -0
- package/dist/dist-es-QJ3UEHQZ.js +325 -0
- package/dist/dist-es-SXKTBYGM.js +47 -0
- package/dist/event-streams-DNC7XM6J.js +245 -0
- package/dist/index.js +339 -7
- package/dist/loadSso-SM6TYICZ.js +591 -0
- package/dist/signin-TZJIHAWM.js +703 -0
- package/dist/sso-oidc-MO5NOHP3.js +828 -0
- package/dist/stitch-7XB7ZA4D.js +446 -0
- package/dist/sts-PUI4IC7G.js +3942 -0
- package/package.json +2 -2
- package/dist/bridge-poller-MM6K2GKM.js +0 -451
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
ProviderError
|
|
4
|
+
} from "./chunk-YLY3P6CS.js";
|
|
5
|
+
|
|
6
|
+
// ../../node_modules/@smithy/property-provider/dist-es/chain.js
|
|
7
|
+
var chain = (...providers) => async () => {
|
|
8
|
+
if (providers.length === 0) {
|
|
9
|
+
throw new ProviderError("No providers in chain");
|
|
10
|
+
}
|
|
11
|
+
let lastProviderError;
|
|
12
|
+
for (const provider of providers) {
|
|
13
|
+
try {
|
|
14
|
+
const credentials = await provider();
|
|
15
|
+
return credentials;
|
|
16
|
+
} catch (err) {
|
|
17
|
+
lastProviderError = err;
|
|
18
|
+
if (err?.tryNextLink) {
|
|
19
|
+
continue;
|
|
20
|
+
}
|
|
21
|
+
throw err;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
throw lastProviderError;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
chain
|
|
29
|
+
};
|