@layerzerolabs/vm-tooling 0.0.59 → 0.0.61
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/bin/lz-tool.js +3 -0
- package/dist/2AQAGKCU.cjs +39 -0
- package/dist/2AQAGKCU.cjs.map +1 -0
- package/dist/{L34TQNQN.cjs → 37UR3RSN.cjs} +10 -10
- package/dist/{L34TQNQN.cjs.map → 37UR3RSN.cjs.map} +1 -1
- package/dist/{PDSRUQEX.js → 3PEVFTZ5.js} +3 -3
- package/dist/3PEVFTZ5.js.map +1 -0
- package/dist/{L7FV6P64.js → 45K4IRAA.js} +22 -32
- package/dist/45K4IRAA.js.map +1 -0
- package/dist/{IMNIF2OY.js → 4Q36MQI5.js} +3 -3
- package/dist/{IMNIF2OY.js.map → 4Q36MQI5.js.map} +1 -1
- package/dist/{PYQO5EUZ.cjs → 4SZ6P77Q.cjs} +30 -30
- package/dist/{PYQO5EUZ.cjs.map → 4SZ6P77Q.cjs.map} +1 -1
- package/dist/{4LRYG53T.js → 5QGJ7CFM.js} +5 -5
- package/dist/{4LRYG53T.js.map → 5QGJ7CFM.js.map} +1 -1
- package/dist/{7DH3URRX.js → 7BFNUKIW.js} +2 -2
- package/dist/7BFNUKIW.js.map +1 -0
- package/dist/{7G26DPK3.js → 7R7EZF6Z.js} +4 -4
- package/dist/{7G26DPK3.js.map → 7R7EZF6Z.js.map} +1 -1
- package/dist/{VVTDADG7.cjs → 7WVEMAKW.cjs} +5 -5
- package/dist/{VVTDADG7.cjs.map → 7WVEMAKW.cjs.map} +1 -1
- package/dist/{VGCATKI5.cjs → AHQNBZE4.cjs} +5 -5
- package/dist/{VGCATKI5.cjs.map → AHQNBZE4.cjs.map} +1 -1
- package/dist/{4RWETOR3.cjs → AMF2EES3.cjs} +23 -23
- package/dist/{4RWETOR3.cjs.map → AMF2EES3.cjs.map} +1 -1
- package/dist/ARTA3TG2.js +192 -0
- package/dist/ARTA3TG2.js.map +1 -0
- package/dist/{UL4OVG5P.js → BOOCAPHW.js} +7 -7
- package/dist/{UL4OVG5P.js.map → BOOCAPHW.js.map} +1 -1
- package/dist/{TYZZ6CWY.js → CJNBA2MN.js} +112 -86
- package/dist/CJNBA2MN.js.map +1 -0
- package/dist/{YYBFDJRD.js → CMSYZVLH.js} +3 -3
- package/dist/{YYBFDJRD.js.map → CMSYZVLH.js.map} +1 -1
- package/dist/CYUSPBTH.cjs +8 -0
- package/dist/CYUSPBTH.cjs.map +1 -0
- package/dist/{Q4F544X2.cjs → DEL75SYN.cjs} +284 -284
- package/dist/{Q4F544X2.cjs.map → DEL75SYN.cjs.map} +1 -1
- package/dist/DPCW4JIV.cjs +53 -0
- package/dist/DPCW4JIV.cjs.map +1 -0
- package/dist/{RRJYWXRS.cjs → EPPFFBGP.cjs} +13 -13
- package/dist/{RRJYWXRS.cjs.map → EPPFFBGP.cjs.map} +1 -1
- package/dist/{W7QMZBXR.cjs → F7OAIAEX.cjs} +26 -26
- package/dist/{W7QMZBXR.cjs.map → F7OAIAEX.cjs.map} +1 -1
- package/dist/{CNLWPLWD.js → FAOU2ZJO.js} +4 -4
- package/dist/{CNLWPLWD.js.map → FAOU2ZJO.js.map} +1 -1
- package/dist/FI3AZBYE.cjs +22 -0
- package/dist/FI3AZBYE.cjs.map +1 -0
- package/dist/FKPK53TD.cjs +8 -0
- package/dist/FKPK53TD.cjs.map +1 -0
- package/dist/GSHFVQRI.cjs +8 -0
- package/dist/{OOTZHKMN.cjs.map → GSHFVQRI.cjs.map} +1 -1
- package/dist/{QO6IEDLG.cjs → HMP4FGDB.cjs} +61 -61
- package/dist/{QO6IEDLG.cjs.map → HMP4FGDB.cjs.map} +1 -1
- package/dist/{2RWEJQEO.cjs → HN3U775J.cjs} +10 -10
- package/dist/{2RWEJQEO.cjs.map → HN3U775J.cjs.map} +1 -1
- package/dist/{VYFY2754.cjs → HSC5AWAD.cjs} +211 -211
- package/dist/{VYFY2754.cjs.map → HSC5AWAD.cjs.map} +1 -1
- package/dist/{CH3GQSOI.js → HVBHNWI7.js} +3 -3
- package/dist/{CH3GQSOI.js.map → HVBHNWI7.js.map} +1 -1
- package/dist/IVSX4QVP.cjs +200 -0
- package/dist/IVSX4QVP.cjs.map +1 -0
- package/dist/IWNVWC3I.js +9 -0
- package/dist/IWNVWC3I.js.map +1 -0
- package/dist/{VAAP26JC.js → JEOLJJ6F.js} +6 -6
- package/dist/{VAAP26JC.js.map → JEOLJJ6F.js.map} +1 -1
- package/dist/{BXO3RC75.cjs → JGLHYXTW.cjs} +17 -17
- package/dist/{BXO3RC75.cjs.map → JGLHYXTW.cjs.map} +1 -1
- package/dist/JLKKDVCL.cjs +133 -0
- package/dist/JLKKDVCL.cjs.map +1 -0
- package/dist/{EE3HP6UB.cjs → KFOKN2M2.cjs} +62 -62
- package/dist/{EE3HP6UB.cjs.map → KFOKN2M2.cjs.map} +1 -1
- package/dist/{K7XFIMAS.cjs → KONCDJAL.cjs} +30 -40
- package/dist/KONCDJAL.cjs.map +1 -0
- package/dist/M4PGJV5D.js +6 -0
- package/dist/M4PGJV5D.js.map +1 -0
- package/dist/MMIV5S36.js +51 -0
- package/dist/MMIV5S36.js.map +1 -0
- package/dist/NX66I36H.js +131 -0
- package/dist/NX66I36H.js.map +1 -0
- package/dist/{HHS2B7YE.cjs → OT5L7ME6.cjs} +273 -273
- package/dist/{HHS2B7YE.cjs.map → OT5L7ME6.cjs.map} +1 -1
- package/dist/{NEQ3DTUV.cjs → OWTMHDOF.cjs} +16 -16
- package/dist/{NEQ3DTUV.cjs.map → OWTMHDOF.cjs.map} +1 -1
- package/dist/{4UZKQNSD.cjs → OZNFYXME.cjs} +20 -20
- package/dist/{4UZKQNSD.cjs.map → OZNFYXME.cjs.map} +1 -1
- package/dist/{OAYLBSRH.cjs → P5BPMTGP.cjs} +40 -40
- package/dist/{OAYLBSRH.cjs.map → P5BPMTGP.cjs.map} +1 -1
- package/dist/{HR64SZQX.js → PWDCAN6N.js} +4 -4
- package/dist/PWDCAN6N.js.map +1 -0
- package/dist/{2I5OW7DK.js → QBFQWBQ4.js} +13 -17
- package/dist/QBFQWBQ4.js.map +1 -0
- package/dist/{JJXZWB7K.cjs → QYB5VPZE.cjs} +7 -7
- package/dist/QYB5VPZE.cjs.map +1 -0
- package/dist/{4KPRGHDI.cjs → SPOUVTPR.cjs} +56 -56
- package/dist/{4KPRGHDI.cjs.map → SPOUVTPR.cjs.map} +1 -1
- package/dist/{NTYIDZH3.js → TBDZQONT.js} +8 -8
- package/dist/{NTYIDZH3.js.map → TBDZQONT.js.map} +1 -1
- package/dist/{IE5H7TSX.js → TNPXNMQM.js} +3 -3
- package/dist/{IE5H7TSX.js.map → TNPXNMQM.js.map} +1 -1
- package/dist/{NSZHKDNY.cjs → TQMUPD75.cjs} +9 -9
- package/dist/TQMUPD75.cjs.map +1 -0
- package/dist/{TO3FUAEA.js → U4OLGGKH.js} +6 -6
- package/dist/{TO3FUAEA.js.map → U4OLGGKH.js.map} +1 -1
- package/dist/{VO65XOWD.cjs → U7VZULNU.cjs} +2 -5
- package/dist/U7VZULNU.cjs.map +1 -0
- package/dist/UHPHZ6AE.js +20 -0
- package/dist/UHPHZ6AE.js.map +1 -0
- package/dist/{2ASNEWIN.cjs → UN57VWAW.cjs} +438 -438
- package/dist/{2ASNEWIN.cjs.map → UN57VWAW.cjs.map} +1 -1
- package/dist/{BVLAV47O.cjs → VZOUGVXS.cjs} +9 -9
- package/dist/{BVLAV47O.cjs.map → VZOUGVXS.cjs.map} +1 -1
- package/dist/{DPDVRYLI.cjs → WDSPHVPJ.cjs} +65 -65
- package/dist/{DPDVRYLI.cjs.map → WDSPHVPJ.cjs.map} +1 -1
- package/dist/{Z7BVBO5K.cjs → WH45T4LS.cjs} +10 -10
- package/dist/{Z7BVBO5K.cjs.map → WH45T4LS.cjs.map} +1 -1
- package/dist/{PRVB7VA2.cjs → WHAPJZ3U.cjs} +133 -101
- package/dist/WHAPJZ3U.cjs.map +1 -0
- package/dist/{DW3OZE6F.cjs → Y5ZXTD76.cjs} +147 -147
- package/dist/{DW3OZE6F.cjs.map → Y5ZXTD76.cjs.map} +1 -1
- package/dist/YNMZEV5X.cjs +11 -0
- package/dist/YNMZEV5X.cjs.map +1 -0
- package/dist/{H5GMZAIP.cjs → ZQZTKVYB.cjs} +26 -30
- package/dist/ZQZTKVYB.cjs.map +1 -0
- package/dist/commands/starknet/build-typescript-sdk.cjs +13 -0
- package/dist/commands/starknet/build-typescript-sdk.cjs.map +1 -0
- package/dist/commands/starknet/build-typescript-sdk.d.ts +2 -0
- package/dist/commands/starknet/build-typescript-sdk.d.ts.map +1 -0
- package/dist/commands/starknet/build-typescript-sdk.js +4 -0
- package/dist/commands/starknet/build-typescript-sdk.js.map +1 -0
- package/dist/commands/starknet/index.cjs +14 -0
- package/dist/commands/starknet/index.cjs.map +1 -0
- package/dist/commands/starknet/index.d.ts +2 -0
- package/dist/commands/starknet/index.d.ts.map +1 -0
- package/dist/commands/starknet/index.js +5 -0
- package/dist/commands/starknet/index.js.map +1 -0
- package/dist/config/index.cjs +15 -8
- package/dist/config/index.d.ts +2 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +2 -3
- package/dist/config/tools.cjs +4 -5
- package/dist/config/tools.d.ts.map +1 -1
- package/dist/config/tools.js +2 -3
- package/dist/config/version-matrices.cjs +3 -3
- package/dist/config/version-matrices.d.ts +3 -2
- package/dist/config/version-matrices.d.ts.map +1 -1
- package/dist/config/version-matrices.js +1 -1
- package/dist/core/compatibility.cjs +3 -3
- package/dist/core/compatibility.d.ts +2 -2
- package/dist/core/compatibility.d.ts.map +1 -1
- package/dist/core/compatibility.js +1 -1
- package/dist/core/index.cjs +14 -14
- package/dist/core/index.js +7 -7
- package/dist/core/lock.cjs +5 -5
- package/dist/core/lock.js +1 -1
- package/dist/core/lock.test.cjs +996 -996
- package/dist/core/lock.test.js +1 -1
- package/dist/core/tool-executor.cjs +9 -13
- package/dist/core/tool-executor.d.ts +2 -7
- package/dist/core/tool-executor.d.ts.map +1 -1
- package/dist/core/tool-executor.js +7 -7
- package/dist/core/version-resolver.cjs +8 -9
- package/dist/core/version-resolver.d.ts.map +1 -1
- package/dist/core/version-resolver.js +4 -5
- package/dist/display/formatters.cjs +5 -7
- package/dist/display/formatters.d.ts +0 -9
- package/dist/display/formatters.d.ts.map +1 -1
- package/dist/display/formatters.js +3 -1
- package/dist/display/index.cjs +9 -14
- package/dist/display/index.d.ts +1 -1
- package/dist/display/index.d.ts.map +1 -1
- package/dist/display/index.js +5 -6
- package/dist/display/version-display.cjs +7 -8
- package/dist/display/version-display.d.ts.map +1 -1
- package/dist/display/version-display.js +4 -5
- package/dist/index.cjs +46 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +43 -39
- package/dist/index.js.map +1 -1
- package/dist/scripts/generate-github-matrix.cjs +303 -312
- package/dist/scripts/generate-github-matrix.cjs.map +1 -1
- package/dist/scripts/generate-github-matrix.js +21 -30
- package/dist/scripts/generate-github-matrix.js.map +1 -1
- package/dist/types/docker.cjs +2 -2
- package/dist/types/index.cjs +2 -2
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/tool.cjs +2 -2
- package/dist/types/version.cjs +2 -2
- package/dist/types/version.cjs.map +1 -1
- package/dist/types/version.d.ts +3 -12
- package/dist/types/version.d.ts.map +1 -1
- package/dist/types/version.js.map +1 -1
- package/dist/utils/docker.cjs +18 -0
- package/dist/utils/docker.cjs.map +1 -0
- package/dist/utils/docker.d.ts +4 -0
- package/dist/utils/docker.d.ts.map +1 -0
- package/dist/utils/docker.js +5 -0
- package/dist/utils/docker.js.map +1 -0
- package/dist/utils/error.cjs +13 -0
- package/dist/utils/error.cjs.map +1 -0
- package/dist/utils/error.d.ts +2 -0
- package/dist/utils/error.d.ts.map +1 -0
- package/dist/utils/error.js +4 -0
- package/dist/utils/error.js.map +1 -0
- package/dist/utils/finder.cjs +46 -0
- package/dist/utils/{finder-utils.js.map → finder.cjs.map} +1 -1
- package/dist/utils/finder.d.ts +21 -0
- package/dist/utils/finder.d.ts.map +1 -0
- package/dist/utils/finder.js +5 -0
- package/dist/utils/{finder-utils.cjs.map → finder.js.map} +1 -1
- package/dist/utils/version.cjs +26 -0
- package/dist/utils/{version-utils.js.map → version.cjs.map} +1 -1
- package/dist/utils/{version-utils.d.ts → version.d.ts} +1 -1
- package/dist/utils/version.d.ts.map +1 -0
- package/dist/utils/version.js +5 -0
- package/dist/utils/{version-utils.cjs.map → version.js.map} +1 -1
- package/dist/utils.cjs +9 -4
- package/dist/utils.d.ts +2 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +2 -1
- package/package.json +10 -10
- package/bin/lz-tool.cjs +0 -18
- package/dist/2I5OW7DK.js.map +0 -1
- package/dist/3CLGGUZ6.js +0 -45
- package/dist/3CLGGUZ6.js.map +0 -1
- package/dist/435HEEZL.js +0 -169
- package/dist/435HEEZL.js.map +0 -1
- package/dist/5OKX3IYN.js +0 -45
- package/dist/5OKX3IYN.js.map +0 -1
- package/dist/5RAWDGJY.cjs +0 -53
- package/dist/5RAWDGJY.cjs.map +0 -1
- package/dist/7DH3URRX.js.map +0 -1
- package/dist/7LPKGDJK.cjs +0 -171
- package/dist/7LPKGDJK.cjs.map +0 -1
- package/dist/7PP2QA5H.cjs +0 -8
- package/dist/7PP2QA5H.cjs.map +0 -1
- package/dist/AY3IP22W.cjs +0 -39
- package/dist/AY3IP22W.cjs.map +0 -1
- package/dist/FLI6L2YX.cjs +0 -48
- package/dist/FLI6L2YX.cjs.map +0 -1
- package/dist/H5GMZAIP.cjs.map +0 -1
- package/dist/HNMWFWE6.cjs +0 -264
- package/dist/HNMWFWE6.cjs.map +0 -1
- package/dist/HR64SZQX.js.map +0 -1
- package/dist/JJXZWB7K.cjs.map +0 -1
- package/dist/K7XFIMAS.cjs.map +0 -1
- package/dist/L7FV6P64.js.map +0 -1
- package/dist/NSZHKDNY.cjs.map +0 -1
- package/dist/OOTZHKMN.cjs +0 -8
- package/dist/PDSRUQEX.js.map +0 -1
- package/dist/PRVB7VA2.cjs.map +0 -1
- package/dist/TYZZ6CWY.js.map +0 -1
- package/dist/VO65XOWD.cjs.map +0 -1
- package/dist/VVYYMOE5.js +0 -255
- package/dist/VVYYMOE5.js.map +0 -1
- package/dist/utils/finder-utils.cjs +0 -51
- package/dist/utils/finder-utils.d.ts +0 -46
- package/dist/utils/finder-utils.d.ts.map +0 -1
- package/dist/utils/finder-utils.js +0 -6
- package/dist/utils/index.cjs +0 -56
- package/dist/utils/index.cjs.map +0 -1
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -9
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/version-utils.cjs +0 -27
- package/dist/utils/version-utils.d.ts.map +0 -1
- package/dist/utils/version-utils.js +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { parseVersionFileContents } from './
|
|
3
|
-
import {
|
|
1
|
+
import { findBestCompatibleCombination } from './PWDCAN6N.js';
|
|
2
|
+
import { tools, findToolByName, parseVersionFileContents, getToolDefaultVersion, findToolsByType, getToolSupportedVersions, getCombinationId } from './CJNBA2MN.js';
|
|
3
|
+
import { versionMatrices } from './NX66I36H.js';
|
|
4
4
|
import { init_esm_shims, __name } from './4RNWLMHM.js';
|
|
5
5
|
import process from 'process';
|
|
6
6
|
|
|
@@ -20,9 +20,6 @@ function extractUserVersions(options) {
|
|
|
20
20
|
__name(extractUserVersions, "extractUserVersions");
|
|
21
21
|
function resolveToolVersion(toolName, userSpecifiedVersions, options, cwd) {
|
|
22
22
|
const tool = findToolByName(toolName);
|
|
23
|
-
if (!tool) {
|
|
24
|
-
throw new Error(`Tool ${toolName} not found`);
|
|
25
|
-
}
|
|
26
23
|
const userVersion = userSpecifiedVersions[toolName];
|
|
27
24
|
if (typeof userVersion === "string" && userVersion !== "") {
|
|
28
25
|
return userVersion;
|
|
@@ -45,9 +42,8 @@ function resolveToolVersion(toolName, userSpecifiedVersions, options, cwd) {
|
|
|
45
42
|
}
|
|
46
43
|
__name(resolveToolVersion, "resolveToolVersion");
|
|
47
44
|
function resolveTypeVersions(type, userSpecifiedVersions, options, cwd) {
|
|
48
|
-
const matrix = findMatrixByType(type);
|
|
49
45
|
const typeTools = findToolsByType(type);
|
|
50
|
-
if (!
|
|
46
|
+
if (!typeTools.length) {
|
|
51
47
|
throw new Error(`Type ${type} not found or no tools available`);
|
|
52
48
|
}
|
|
53
49
|
const resolvedVersions = {};
|
|
@@ -71,9 +67,10 @@ function resolveTypeVersions(type, userSpecifiedVersions, options, cwd) {
|
|
|
71
67
|
}
|
|
72
68
|
}
|
|
73
69
|
}
|
|
70
|
+
const combinations = versionMatrices[type];
|
|
74
71
|
let matchedCombination;
|
|
75
72
|
let isCompatibleCombination = false;
|
|
76
|
-
for (const combo of
|
|
73
|
+
for (const combo of combinations) {
|
|
77
74
|
const matches = Object.entries(combo.versions).every(([tool, version]) => resolvedVersions[tool] === version);
|
|
78
75
|
if (matches) {
|
|
79
76
|
matchedCombination = combo;
|
|
@@ -82,7 +79,7 @@ function resolveTypeVersions(type, userSpecifiedVersions, options, cwd) {
|
|
|
82
79
|
}
|
|
83
80
|
}
|
|
84
81
|
if (!isCompatibleCombination && usedDefaultFor.length > 0) {
|
|
85
|
-
const compatibleCombo = findBestCompatibleCombination(resolvedVersions,
|
|
82
|
+
const compatibleCombo = findBestCompatibleCombination(resolvedVersions, combinations);
|
|
86
83
|
if (compatibleCombo) {
|
|
87
84
|
let adjusted = false;
|
|
88
85
|
for (const toolName of usedDefaultFor) {
|
|
@@ -101,23 +98,22 @@ function resolveTypeVersions(type, userSpecifiedVersions, options, cwd) {
|
|
|
101
98
|
}
|
|
102
99
|
}
|
|
103
100
|
if (!isCompatibleCombination) {
|
|
104
|
-
const
|
|
101
|
+
const stableCombinations = combinations.filter(({ stable }) => stable).map((combination) => getCombinationId(combination)).join(", ");
|
|
105
102
|
warnings.push(`\u26A0\uFE0F Custom version combination detected - not officially tested.
|
|
106
|
-
\u{1F4A1} Stable combinations: ${
|
|
103
|
+
\u{1F4A1} Stable combinations: ${stableCombinations}
|
|
107
104
|
\u{1F50D} Use 'lz-tool --list-versions' to see all tested combinations.`);
|
|
108
105
|
} else if (matchedCombination?.description !== void 0) {
|
|
109
|
-
console.info(`\u2705 ${matchedCombination.description} (${matchedCombination
|
|
106
|
+
console.info(`\u2705 ${matchedCombination.description} (${getCombinationId(matchedCombination)})`);
|
|
110
107
|
}
|
|
111
108
|
return {
|
|
112
109
|
resolvedVersions,
|
|
113
110
|
isCompatibleCombination,
|
|
114
111
|
usedDefaultFor,
|
|
115
|
-
warnings
|
|
116
|
-
combinationId: matchedCombination?.id
|
|
112
|
+
warnings
|
|
117
113
|
};
|
|
118
114
|
}
|
|
119
115
|
__name(resolveTypeVersions, "resolveTypeVersions");
|
|
120
116
|
|
|
121
117
|
export { extractUserVersions, resolveToolVersion, resolveTypeVersions };
|
|
122
|
-
//# sourceMappingURL=
|
|
123
|
-
//# sourceMappingURL=
|
|
118
|
+
//# sourceMappingURL=QBFQWBQ4.js.map
|
|
119
|
+
//# sourceMappingURL=QBFQWBQ4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core/version-resolver.ts"],"names":["extractUserVersions","options","userVersions","tool","tools","versionKey","name","versionValue","resolveToolVersion","toolName","userSpecifiedVersions","cwd","findToolByName","userVersion","envKey","toUpperCase","envVersion","process","env","parsedVersions","parseVersionFileContents","foundVersion","error","getToolDefaultVersion","resolveTypeVersions","type","typeTools","findToolsByType","length","Error","resolvedVersions","usedDefaultFor","warnings","version","push","supportedVersions","getToolSupportedVersions","includes","join","combinations","versionMatrices","matchedCombination","isCompatibleCombination","combo","matches","Object","entries","versions","every","compatibleCombo","findBestCompatibleCombination","adjusted","comboVersion","undefined","oldVersion","stableCombinations","filter","stable","map","combination","getCombinationId","description","console","info"],"mappings":";;;;;;;AAAA,cAAA,EAAA;AAkBO,SAASA,oBAAoBC,OAAAA,EAA+B;AAC/D,EAAA,MAAMC,eAA0C,EAAC;AAGjD,EAAA,KAAA,MAAWC,QAAQC,KAAAA,EAAO;AACtB,IAAA,MAAMC,UAAAA,GAAa,CAAA,EAAGF,IAAAA,CAAKG,IAAI,CAAA,OAAA,CAAA;AAC/B,IAAA,MAAMC,YAAAA,GAAeN,QAAQI,UAAAA,CAAAA;AAC7B,IAAA,IAAI,OAAOE,YAAAA,KAAiB,QAAA,IAAYA,YAAAA,KAAiB,EAAA,EAAI;AACzDL,MAAAA,YAAAA,CAAaC,IAAAA,CAAKG,IAAI,CAAA,GAAIC,YAAAA;AAC9B,IAAA;AACJ,EAAA;AAEA,EAAA,OAAOL,YAAAA;AACX;AAbgBF,MAAAA,CAAAA,mBAAAA,EAAAA,qBAAAA,CAAAA;AAsBT,SAASQ,kBAAAA,CACZC,QAAAA,EACAC,qBAAAA,EACAT,OAAAA,EACAU,GAAAA,EAAW;AAEX,EAAA,MAAMR,IAAAA,GAAOS,eAAeH,QAAAA,CAAAA;AAG5B,EAAA,MAAMI,WAAAA,GAAcH,sBAAsBD,QAAAA,CAAAA;AAC1C,EAAA,IAAI,OAAOI,WAAAA,KAAgB,QAAA,IAAYA,WAAAA,KAAgB,EAAA,EAAI;AACvD,IAAA,OAAOA,WAAAA;AACX,EAAA;AAGA,EAAA,MAAMC,MAAAA,GAAS,CAAA,EAAGX,IAAAA,CAAKG,IAAAA,CAAKS,aAAW,CAAA,QAAA,CAAA;AACvC,EAAA,MAAMC,UAAAA,GAAaC,OAAAA,CAAQC,GAAAA,CAAIJ,MAAAA,CAAAA;AAC/B,EAAA,IAAI,OAAOE,UAAAA,KAAe,QAAA,IAAYA,UAAAA,KAAe,EAAA,EAAI;AACrD,IAAA,OAAOA,UAAAA;AACX,E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R,MAAAA,EAAW;AACtDS,IAAAA,OAAAA,CAAQC,IAAAA,CACJ,UAAKtB,kBAAAA,CAAmBoB,WAAW,KAAKD,gBAAAA,CAAiBnB,kBAAAA,CAAAA,CAAAA,CAAAA,CAAsB,CAAA;AAEvF,EAAA;AAEA,EAAA,OAAO;AACHX,IAAAA,gBAAAA;AACAY,IAAAA,uBAAAA;AACAX,IAAAA,cAAAA;AACAC,IAAAA;AACJ,GAAA;AACJ;AA9GgBR,MAAAA,CAAAA,mBAAAA,EAAAA,qBAAAA,CAAAA","file":"QBFQWBQ4.js","sourcesContent":["import process from 'process';\n\nimport type { ChainType } from '@layerzerolabs/layerzero-definitions';\n\nimport { tools, versionMatrices } from '../config';\nimport type { VersionCombination, VersionResolutionResult } from '../types';\nimport { getCombinationId, parseVersionFileContents } from '../utils';\nimport {\n findToolByName,\n findToolsByType,\n getToolDefaultVersion,\n getToolSupportedVersions,\n} from '../utils/finder';\nimport { findBestCompatibleCombination } from './compatibility';\n\n/**\n * Extract user-specified versions from command line options\n */\nexport function extractUserVersions(options: { [key: string]: any }): { [key: string]: string } {\n const userVersions: { [key: string]: string } = {};\n\n // Extract versions from command line options\n for (const tool of tools) {\n const versionKey = `${tool.name}Version`;\n const versionValue = options[versionKey] as unknown;\n if (typeof versionValue === 'string' && versionValue !== '') {\n userVersions[tool.name] = versionValue;\n }\n }\n\n return userVersions;\n}\n\n/**\n * Resolve version for a single tool following priority order:\n * 1. Command line options\n * 2. Environment variables\n * 3. .versions file\n * 4. Default version\n */\nexport function resolveToolVersion(\n toolName: string,\n userSpecifiedVersions: { [key: string]: string },\n options: { [key: string]: any },\n cwd: string,\n): string | null {\n const tool = findToolByName(toolName);\n\n // 1. Check command line options (highest priority)\n const userVersion = userSpecifiedVersions[toolName];\n if (typeof userVersion === 'string' && userVersion !== '') {\n return userVersion;\n }\n\n // 2. Check environment variables\n const envKey = `${tool.name.toUpperCase()}_VERSION`;\n const envVersion = process.env[envKey];\n if (typeof envVersion === 'string' && envVersion !== '') {\n return envVersion;\n }\n\n // 3. Check .versions file\n try {\n const parsedVersions = parseVersionFileContents(cwd);\n const versionKey = `${tool.name}_version`.toUpperCase();\n const foundVersion = parsedVersions[versionKey];\n\n if (typeof foundVersion === 'string' && foundVersion !== '') {\n return foundVersion;\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n } catch (error) {\n // If .versions file doesn't exist or can't be parsed, continue to default\n }\n\n // 4. Use default version\n return getToolDefaultVersion(tool.name);\n}\n\n/**\n * Resolve versions for all tools in a type with compatibility checking\n */\nexport function resolveTypeVersions(\n type: ChainType,\n userSpecifiedVersions: { [key: string]: string },\n options: { [key: string]: any },\n cwd: string,\n): VersionResolutionResult {\n const typeTools = findToolsByType(type);\n\n if (!typeTools.length) {\n throw new Error(`Type ${type} not found or no tools available`);\n }\n\n // 1. Collect versions from all sources for each tool\n const resolvedVersions: { [key: string]: string } = {};\n const usedDefaultFor: string[] = [];\n const warnings: string[] = [];\n\n for (const tool of typeTools) {\n const version = resolveToolVersion(tool.name, userSpecifiedVersions, options, cwd);\n\n if (!version) {\n continue;\n }\n\n resolvedVersions[tool.name] = version;\n\n if (version === getToolDefaultVersion(tool.name)) {\n usedDefaultFor.push(tool.name);\n }\n\n // Validate user-specified version if not default\n if (version !== getToolDefaultVersion(tool.name)) {\n const supportedVersions = getToolSupportedVersions(tool.name);\n if (!supportedVersions.includes(version)) {\n warnings.push(\n `⚠️ Version ${version} for ${tool.name} is not in the supported list.\\n` +\n ` Supported versions: ${supportedVersions.join(', ')}\\n` +\n ` Continuing with Docker availability as final validation...`,\n );\n }\n }\n }\n\n // 2. Check if current combination matches any compatible combination\n const combinations = versionMatrices[type];\n let matchedCombination: VersionCombination | undefined;\n let isCompatibleCombination = false;\n\n for (const combo of combinations) {\n const matches = Object.entries(combo.versions).every(\n ([tool, version]) => resolvedVersions[tool] === version,\n );\n\n if (matches) {\n matchedCombination = combo;\n isCompatibleCombination = true;\n break;\n }\n }\n\n // 3. If not compatible and some tools used defaults, try to auto-adjust\n if (!isCompatibleCombination && usedDefaultFor.length > 0) {\n const compatibleCombo = findBestCompatibleCombination(resolvedVersions, combinations);\n\n if (compatibleCombo) {\n let adjusted = false;\n\n for (const toolName of usedDefaultFor) {\n const comboVersion = compatibleCombo.versions[toolName];\n if (comboVersion !== undefined && comboVersion !== resolvedVersions[toolName]) {\n const oldVersion = resolvedVersions[toolName];\n resolvedVersions[toolName] = comboVersion;\n warnings.push(\n `🔄 Auto-adjusted ${toolName}: ${oldVersion} → ${comboVersion} (for compatibility)`,\n );\n adjusted = true;\n }\n }\n\n if (adjusted) {\n matchedCombination = compatibleCombo;\n isCompatibleCombination = true;\n }\n }\n }\n\n // 4. Add compatibility warnings\n if (!isCompatibleCombination) {\n const stableCombinations = combinations\n .filter(({ stable }) => stable)\n .map((combination) => getCombinationId(combination))\n .join(', ');\n\n warnings.push(\n `⚠️ Custom version combination detected - not officially tested.\\n` +\n ` 💡 Stable combinations: ${stableCombinations}\\n` +\n ` 🔍 Use 'lz-tool --list-versions' to see all tested combinations.`,\n );\n } else if (matchedCombination?.description !== undefined) {\n console.info(\n `✅ ${matchedCombination.description} (${getCombinationId(matchedCombination)})`,\n );\n }\n\n return {\n resolvedVersions,\n isCompatibleCombination,\n usedDefaultFor,\n warnings,\n };\n}\n"]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var U7VZULNU_cjs = require('./U7VZULNU.cjs');
|
|
4
4
|
|
|
5
5
|
// src/core/compatibility.ts
|
|
6
|
-
|
|
7
|
-
function findBestCompatibleCombination(userVersions,
|
|
8
|
-
const scoredCombinations =
|
|
6
|
+
U7VZULNU_cjs.init_cjs_shims();
|
|
7
|
+
function findBestCompatibleCombination(userVersions, combinations) {
|
|
8
|
+
const scoredCombinations = combinations.map((combo) => {
|
|
9
9
|
let matchScore = 0;
|
|
10
10
|
let conflicts = 0;
|
|
11
11
|
for (const [tool, userVersion] of Object.entries(userVersions)) {
|
|
@@ -32,8 +32,8 @@ function findBestCompatibleCombination(userVersions, matrix) {
|
|
|
32
32
|
});
|
|
33
33
|
return scoredCombinations[0]?.combo;
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
U7VZULNU_cjs.__name(findBestCompatibleCombination, "findBestCompatibleCombination");
|
|
36
36
|
|
|
37
37
|
exports.findBestCompatibleCombination = findBestCompatibleCombination;
|
|
38
|
-
//# sourceMappingURL=
|
|
39
|
-
//# sourceMappingURL=
|
|
38
|
+
//# sourceMappingURL=QYB5VPZE.cjs.map
|
|
39
|
+
//# sourceMappingURL=QYB5VPZE.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core/compatibility.ts"],"names":["init_cjs_shims","findBestCompatibleCombination","userVersions","combinations","scoredCombinations","map","combo","matchScore","conflicts","tool","userVersion","Object","entries","comboVersion","versions","undefined","sort","a","b"],"mappings":";;;;;AAEAA,2BAAA,EAAA;AAGO,SAASC,6BAAAA,CACZC,cACAC,YAAAA,EAAkC;AAGlC,EAAA,MAAMC,kBAAAA,GAAqBD,YAAAA,CAAaE,GAAAA,CAAI,CAACC,KAAAA,KAAAA;AACzC,IAAA,IAAIC,UAAAA,GAAa,CAAA;AACjB,IAAA,IAAIC,SAAAA,GAAY,CAAA;AAEhB,IAAA,KAAA,MAAW,CAACC,IAAAA,EAAMC,WAAAA,KAAgBC,MAAAA,CAAOC,OAAAA,CAAQV,YAAAA,CAAAA,EAAe;AAC5D,MAAA,MAAMW,YAAAA,GAAeP,KAAAA,CAAMQ,QAAAA,CAASL,IAAAA,CAAAA;AACpC,MAAA,IAAII,iBAAiBE,MAAAA,EAAW;AAC5B,QAAA,IAAIF,iBAAiBH,WAAAA,EAAa;AAC9BH,UAAAA,UAAAA,EAAAA;QACJ,CAAA,MAAO;AACHC,UAAAA,SAAAA,EAAAA;AACJ,QAAA;AACJ,MAAA;AACJ,IAAA;AAEA,IAAA,OAAO;AAAEF,MAAAA,KAAAA;AAAOC,MAAAA,UAAAA;AAAYC,MAAAA;AAAU,KAAA;EAC1C,CAAA,CAAA;AAGAJ,EAAAA,kBAAAA,CAAmBY,IAAAA,CAAK,CAACC,CAAAA,EAAGC,CAAAA,KAAAA;AACxB,IAAA,IAAID,CAAAA,CAAET,SAAAA,KAAcU,CAAAA,CAAEV,SAAAA,EAAW;AAC7B,MAAA,OAAOS,CAAAA,CAAET,YAAYU,CAAAA,CAAEV,SAAAA;AAC3B,IAAA;AACA,IAAA,OAAOU,CAAAA,CAAEX,aAAaU,CAAAA,CAAEV,UAAAA;EAC5B,CAAA,CAAA;AAEA,EAAA,OAAOH,kBAAAA,CAAmB,CAAA,CAAA,EAAIE,KAAAA;AAClC;AAhCgBL,mBAAAA,CAAAA,6BAAAA,EAAAA,+BAAAA,CAAAA","file":"QYB5VPZE.cjs","sourcesContent":["import type { VersionCombination } from '../types';\n\n/**\n * Find the best compatible combination based on user-specified versions\n */\nexport function findBestCompatibleCombination(\n userVersions: { [key: string]: string },\n combinations: VersionCombination[],\n): VersionCombination | undefined {\n // Find combinations that match as many user-specified versions as possible\n const scoredCombinations = combinations.map((combo) => {\n let matchScore = 0;\n let conflicts = 0;\n\n for (const [tool, userVersion] of Object.entries(userVersions)) {\n const comboVersion = combo.versions[tool];\n if (comboVersion !== undefined) {\n if (comboVersion === userVersion) {\n matchScore++;\n } else {\n conflicts++;\n }\n }\n }\n\n return { combo, matchScore, conflicts };\n });\n\n // Prefer combinations with highest match score and no conflicts\n scoredCombinations.sort((a, b) => {\n if (a.conflicts !== b.conflicts) {\n return a.conflicts - b.conflicts; // Fewer conflicts first\n }\n return b.matchScore - a.matchScore; // Higher match score first\n });\n\n return scoredCombinations[0]?.combo;\n}\n"]}
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('./
|
|
6
|
-
var
|
|
7
|
-
var
|
|
3
|
+
var P5BPMTGP_cjs = require('./P5BPMTGP.cjs');
|
|
4
|
+
var _7WVEMAKW_cjs = require('./7WVEMAKW.cjs');
|
|
5
|
+
require('./WDSPHVPJ.cjs');
|
|
6
|
+
var JGLHYXTW_cjs = require('./JGLHYXTW.cjs');
|
|
7
|
+
var U7VZULNU_cjs = require('./U7VZULNU.cjs');
|
|
8
8
|
|
|
9
9
|
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/index.js
|
|
10
|
-
|
|
10
|
+
U7VZULNU_cjs.init_cjs_shims();
|
|
11
11
|
|
|
12
12
|
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
|
|
13
|
-
|
|
13
|
+
U7VZULNU_cjs.init_cjs_shims();
|
|
14
14
|
|
|
15
15
|
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
16
|
-
|
|
16
|
+
U7VZULNU_cjs.init_cjs_shims();
|
|
17
17
|
|
|
18
18
|
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
19
|
-
|
|
19
|
+
U7VZULNU_cjs.init_cjs_shims();
|
|
20
20
|
|
|
21
21
|
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
22
|
-
|
|
23
|
-
var resolveCredentialSource = /* @__PURE__ */
|
|
22
|
+
U7VZULNU_cjs.init_cjs_shims();
|
|
23
|
+
var resolveCredentialSource = /* @__PURE__ */ U7VZULNU_cjs.__name((credentialSource, profileName, logger) => {
|
|
24
24
|
const sourceProvidersMap = {
|
|
25
|
-
EcsContainer: /* @__PURE__ */
|
|
26
|
-
const { fromHttp } = await import('./
|
|
27
|
-
const { fromContainerMetadata } = await import('./
|
|
25
|
+
EcsContainer: /* @__PURE__ */ U7VZULNU_cjs.__name(async (options) => {
|
|
26
|
+
const { fromHttp } = await import('./4SZ6P77Q.cjs');
|
|
27
|
+
const { fromContainerMetadata } = await import('./HMP4FGDB.cjs');
|
|
28
28
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
29
|
-
return async () =>
|
|
29
|
+
return async () => JGLHYXTW_cjs.chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
|
|
30
30
|
}, "EcsContainer"),
|
|
31
|
-
Ec2InstanceMetadata: /* @__PURE__ */
|
|
31
|
+
Ec2InstanceMetadata: /* @__PURE__ */ U7VZULNU_cjs.__name(async (options) => {
|
|
32
32
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
33
|
-
const { fromInstanceMetadata } = await import('./
|
|
33
|
+
const { fromInstanceMetadata } = await import('./HMP4FGDB.cjs');
|
|
34
34
|
return async () => fromInstanceMetadata(options)().then(setNamedProvider);
|
|
35
35
|
}, "Ec2InstanceMetadata"),
|
|
36
|
-
Environment: /* @__PURE__ */
|
|
36
|
+
Environment: /* @__PURE__ */ U7VZULNU_cjs.__name(async (options) => {
|
|
37
37
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
|
38
|
-
const { fromEnv } = await import('./
|
|
38
|
+
const { fromEnv } = await import('./2AQAGKCU.cjs');
|
|
39
39
|
return async () => fromEnv(options)().then(setNamedProvider);
|
|
40
40
|
}, "Environment")
|
|
41
41
|
};
|
|
42
42
|
if (credentialSource in sourceProvidersMap) {
|
|
43
43
|
return sourceProvidersMap[credentialSource];
|
|
44
44
|
} else {
|
|
45
|
-
throw new
|
|
45
|
+
throw new JGLHYXTW_cjs.CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, {
|
|
46
46
|
logger
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
}, "resolveCredentialSource");
|
|
50
|
-
var setNamedProvider = /* @__PURE__ */
|
|
50
|
+
var setNamedProvider = /* @__PURE__ */ U7VZULNU_cjs.__name((creds) => _7WVEMAKW_cjs.setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p"), "setNamedProvider");
|
|
51
51
|
|
|
52
52
|
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
53
|
-
var isAssumeRoleProfile = /* @__PURE__ */
|
|
53
|
+
var isAssumeRoleProfile = /* @__PURE__ */ U7VZULNU_cjs.__name((arg, { profile = "default", logger } = {}) => {
|
|
54
54
|
return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && [
|
|
55
55
|
"undefined",
|
|
56
56
|
"string"
|
|
@@ -68,26 +68,26 @@ var isAssumeRoleProfile = /* @__PURE__ */ VO65XOWD_cjs.__name((arg, { profile =
|
|
|
68
68
|
logger
|
|
69
69
|
}));
|
|
70
70
|
}, "isAssumeRoleProfile");
|
|
71
|
-
var isAssumeRoleWithSourceProfile = /* @__PURE__ */
|
|
71
|
+
var isAssumeRoleWithSourceProfile = /* @__PURE__ */ U7VZULNU_cjs.__name((arg, { profile, logger }) => {
|
|
72
72
|
const withSourceProfile = typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined";
|
|
73
73
|
if (withSourceProfile) {
|
|
74
74
|
logger?.debug?.(` ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`);
|
|
75
75
|
}
|
|
76
76
|
return withSourceProfile;
|
|
77
77
|
}, "isAssumeRoleWithSourceProfile");
|
|
78
|
-
var isCredentialSourceProfile = /* @__PURE__ */
|
|
78
|
+
var isCredentialSourceProfile = /* @__PURE__ */ U7VZULNU_cjs.__name((arg, { profile, logger }) => {
|
|
79
79
|
const withProviderProfile = typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined";
|
|
80
80
|
if (withProviderProfile) {
|
|
81
81
|
logger?.debug?.(` ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`);
|
|
82
82
|
}
|
|
83
83
|
return withProviderProfile;
|
|
84
84
|
}, "isCredentialSourceProfile");
|
|
85
|
-
var resolveAssumeRoleCredentials = /* @__PURE__ */
|
|
85
|
+
var resolveAssumeRoleCredentials = /* @__PURE__ */ U7VZULNU_cjs.__name(async (profileName, profiles, options, visitedProfiles = {}) => {
|
|
86
86
|
options.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");
|
|
87
87
|
const profileData = profiles[profileName];
|
|
88
88
|
const { source_profile, region } = profileData;
|
|
89
89
|
if (!options.roleAssumer) {
|
|
90
|
-
const { getDefaultRoleAssumer } = await import('./
|
|
90
|
+
const { getDefaultRoleAssumer } = await import('./DEL75SYN.cjs');
|
|
91
91
|
options.roleAssumer = getDefaultRoleAssumer({
|
|
92
92
|
...options.clientConfig,
|
|
93
93
|
credentialProviderLogger: options.logger,
|
|
@@ -98,7 +98,7 @@ var resolveAssumeRoleCredentials = /* @__PURE__ */ VO65XOWD_cjs.__name(async (pr
|
|
|
98
98
|
}, options.clientPlugins);
|
|
99
99
|
}
|
|
100
100
|
if (source_profile && source_profile in visitedProfiles) {
|
|
101
|
-
throw new
|
|
101
|
+
throw new JGLHYXTW_cjs.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${P5BPMTGP_cjs.getProfileName(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), {
|
|
102
102
|
logger: options.logger
|
|
103
103
|
});
|
|
104
104
|
}
|
|
@@ -108,7 +108,7 @@ var resolveAssumeRoleCredentials = /* @__PURE__ */ VO65XOWD_cjs.__name(async (pr
|
|
|
108
108
|
[source_profile]: true
|
|
109
109
|
}, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {})) : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();
|
|
110
110
|
if (isCredentialSourceWithoutRoleArn(profileData)) {
|
|
111
|
-
return sourceCredsProvider.then((creds) =>
|
|
111
|
+
return sourceCredsProvider.then((creds) => _7WVEMAKW_cjs.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
|
|
112
112
|
} else {
|
|
113
113
|
const params = {
|
|
114
114
|
RoleArn: profileData.role_arn,
|
|
@@ -119,7 +119,7 @@ var resolveAssumeRoleCredentials = /* @__PURE__ */ VO65XOWD_cjs.__name(async (pr
|
|
|
119
119
|
const { mfa_serial } = profileData;
|
|
120
120
|
if (mfa_serial) {
|
|
121
121
|
if (!options.mfaCodeProvider) {
|
|
122
|
-
throw new
|
|
122
|
+
throw new JGLHYXTW_cjs.CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, {
|
|
123
123
|
logger: options.logger,
|
|
124
124
|
tryNextLink: false
|
|
125
125
|
});
|
|
@@ -128,25 +128,25 @@ var resolveAssumeRoleCredentials = /* @__PURE__ */ VO65XOWD_cjs.__name(async (pr
|
|
|
128
128
|
params.TokenCode = await options.mfaCodeProvider(mfa_serial);
|
|
129
129
|
}
|
|
130
130
|
const sourceCreds = await sourceCredsProvider;
|
|
131
|
-
return options.roleAssumer(sourceCreds, params).then((creds) =>
|
|
131
|
+
return options.roleAssumer(sourceCreds, params).then((creds) => _7WVEMAKW_cjs.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
|
|
132
132
|
}
|
|
133
133
|
}, "resolveAssumeRoleCredentials");
|
|
134
|
-
var isCredentialSourceWithoutRoleArn = /* @__PURE__ */
|
|
134
|
+
var isCredentialSourceWithoutRoleArn = /* @__PURE__ */ U7VZULNU_cjs.__name((section) => {
|
|
135
135
|
return !section.role_arn && !!section.credential_source;
|
|
136
136
|
}, "isCredentialSourceWithoutRoleArn");
|
|
137
137
|
|
|
138
138
|
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
|
|
139
|
-
|
|
140
|
-
var isProcessProfile = /* @__PURE__ */
|
|
141
|
-
var resolveProcessCredentials = /* @__PURE__ */
|
|
139
|
+
U7VZULNU_cjs.init_cjs_shims();
|
|
140
|
+
var isProcessProfile = /* @__PURE__ */ U7VZULNU_cjs.__name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", "isProcessProfile");
|
|
141
|
+
var resolveProcessCredentials = /* @__PURE__ */ U7VZULNU_cjs.__name(async (options, profile) => import('./OZNFYXME.cjs').then(({ fromProcess }) => fromProcess({
|
|
142
142
|
...options,
|
|
143
143
|
profile
|
|
144
|
-
})().then((creds) =>
|
|
144
|
+
})().then((creds) => _7WVEMAKW_cjs.setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v"))), "resolveProcessCredentials");
|
|
145
145
|
|
|
146
146
|
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
|
|
147
|
-
|
|
148
|
-
var resolveSsoCredentials = /* @__PURE__ */
|
|
149
|
-
const { fromSSO } = await import('./
|
|
147
|
+
U7VZULNU_cjs.init_cjs_shims();
|
|
148
|
+
var resolveSsoCredentials = /* @__PURE__ */ U7VZULNU_cjs.__name(async (profile, profileData, options = {}) => {
|
|
149
|
+
const { fromSSO } = await import('./KFOKN2M2.cjs');
|
|
150
150
|
return fromSSO({
|
|
151
151
|
profile,
|
|
152
152
|
logger: options.logger,
|
|
@@ -154,24 +154,24 @@ var resolveSsoCredentials = /* @__PURE__ */ VO65XOWD_cjs.__name(async (profile,
|
|
|
154
154
|
clientConfig: options.clientConfig
|
|
155
155
|
})().then((creds) => {
|
|
156
156
|
if (profileData.sso_session) {
|
|
157
|
-
return
|
|
157
|
+
return _7WVEMAKW_cjs.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO", "r");
|
|
158
158
|
} else {
|
|
159
|
-
return
|
|
159
|
+
return _7WVEMAKW_cjs.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t");
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
162
|
}, "resolveSsoCredentials");
|
|
163
|
-
var isSsoProfile = /* @__PURE__ */
|
|
163
|
+
var isSsoProfile = /* @__PURE__ */ U7VZULNU_cjs.__name((arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string"), "isSsoProfile");
|
|
164
164
|
|
|
165
165
|
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js
|
|
166
|
-
|
|
167
|
-
var isStaticCredsProfile = /* @__PURE__ */
|
|
166
|
+
U7VZULNU_cjs.init_cjs_shims();
|
|
167
|
+
var isStaticCredsProfile = /* @__PURE__ */ U7VZULNU_cjs.__name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && [
|
|
168
168
|
"undefined",
|
|
169
169
|
"string"
|
|
170
170
|
].indexOf(typeof arg.aws_session_token) > -1 && [
|
|
171
171
|
"undefined",
|
|
172
172
|
"string"
|
|
173
173
|
].indexOf(typeof arg.aws_account_id) > -1, "isStaticCredsProfile");
|
|
174
|
-
var resolveStaticCredentials = /* @__PURE__ */
|
|
174
|
+
var resolveStaticCredentials = /* @__PURE__ */ U7VZULNU_cjs.__name(async (profile, options) => {
|
|
175
175
|
options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
|
|
176
176
|
const credentials = {
|
|
177
177
|
accessKeyId: profile.aws_access_key_id,
|
|
@@ -184,26 +184,26 @@ var resolveStaticCredentials = /* @__PURE__ */ VO65XOWD_cjs.__name(async (profil
|
|
|
184
184
|
accountId: profile.aws_account_id
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
|
-
return
|
|
187
|
+
return _7WVEMAKW_cjs.setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
|
|
188
188
|
}, "resolveStaticCredentials");
|
|
189
189
|
|
|
190
190
|
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
|
|
191
|
-
|
|
192
|
-
var isWebIdentityProfile = /* @__PURE__ */
|
|
191
|
+
U7VZULNU_cjs.init_cjs_shims();
|
|
192
|
+
var isWebIdentityProfile = /* @__PURE__ */ U7VZULNU_cjs.__name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && [
|
|
193
193
|
"undefined",
|
|
194
194
|
"string"
|
|
195
195
|
].indexOf(typeof arg.role_session_name) > -1, "isWebIdentityProfile");
|
|
196
|
-
var resolveWebIdentityCredentials = /* @__PURE__ */
|
|
196
|
+
var resolveWebIdentityCredentials = /* @__PURE__ */ U7VZULNU_cjs.__name(async (profile, options) => import('./EPPFFBGP.cjs').then(({ fromTokenFile }) => fromTokenFile({
|
|
197
197
|
webIdentityTokenFile: profile.web_identity_token_file,
|
|
198
198
|
roleArn: profile.role_arn,
|
|
199
199
|
roleSessionName: profile.role_session_name,
|
|
200
200
|
roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
|
|
201
201
|
logger: options.logger,
|
|
202
202
|
parentClientConfig: options.parentClientConfig
|
|
203
|
-
})().then((creds) =>
|
|
203
|
+
})().then((creds) => _7WVEMAKW_cjs.setCredentialFeature(creds, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q"))), "resolveWebIdentityCredentials");
|
|
204
204
|
|
|
205
205
|
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
206
|
-
var resolveProfileData = /* @__PURE__ */
|
|
206
|
+
var resolveProfileData = /* @__PURE__ */ U7VZULNU_cjs.__name(async (profileName, profiles, options, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
|
|
207
207
|
const data = profiles[profileName];
|
|
208
208
|
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
|
|
209
209
|
return resolveStaticCredentials(data, options);
|
|
@@ -226,13 +226,13 @@ var resolveProfileData = /* @__PURE__ */ VO65XOWD_cjs.__name(async (profileName,
|
|
|
226
226
|
if (isSsoProfile(data)) {
|
|
227
227
|
return await resolveSsoCredentials(profileName, data, options);
|
|
228
228
|
}
|
|
229
|
-
throw new
|
|
229
|
+
throw new JGLHYXTW_cjs.CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, {
|
|
230
230
|
logger: options.logger
|
|
231
231
|
});
|
|
232
232
|
}, "resolveProfileData");
|
|
233
233
|
|
|
234
234
|
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
|
|
235
|
-
var fromIni = /* @__PURE__ */
|
|
235
|
+
var fromIni = /* @__PURE__ */ U7VZULNU_cjs.__name((_init = {}) => async ({ callerClientConfig } = {}) => {
|
|
236
236
|
const init = {
|
|
237
237
|
..._init,
|
|
238
238
|
parentClientConfig: {
|
|
@@ -241,12 +241,12 @@ var fromIni = /* @__PURE__ */ VO65XOWD_cjs.__name((_init = {}) => async ({ calle
|
|
|
241
241
|
}
|
|
242
242
|
};
|
|
243
243
|
init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
|
|
244
|
-
const profiles = await
|
|
245
|
-
return resolveProfileData(
|
|
244
|
+
const profiles = await P5BPMTGP_cjs.parseKnownFiles(init);
|
|
245
|
+
return resolveProfileData(P5BPMTGP_cjs.getProfileName({
|
|
246
246
|
profile: _init.profile ?? callerClientConfig?.profile
|
|
247
247
|
}), profiles, init);
|
|
248
248
|
}, "fromIni");
|
|
249
249
|
|
|
250
250
|
exports.fromIni = fromIni;
|
|
251
|
-
//# sourceMappingURL=
|
|
252
|
-
//# sourceMappingURL=
|
|
251
|
+
//# sourceMappingURL=SPOUVTPR.cjs.map
|
|
252
|
+
//# sourceMappingURL=SPOUVTPR.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/index.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js"],"names":["init_cjs_shims","resolveCredentialSource","__name","credentialSource","profileName","logger","sourceProvidersMap","EcsContainer","options","fromHttp","fromContainerMetadata","debug","chain","then","setNamedProvider","Ec2InstanceMetadata","fromInstanceMetadata","Environment","fromEnv","CredentialsProviderError","creds","setCredentialFeature","isAssumeRoleProfile","arg","profile","Boolean","role_arn","indexOf","role_session_name","external_id","mfa_serial","isAssumeRoleWithSourceProfile","isCredentialSourceProfile","withSourceProfile","source_profile","credential_source","withProviderProfile","resolveAssumeRoleCredentials","profiles","visitedProfiles","profileData","region","roleAssumer","getDefaultRoleAssumer","clientConfig","credentialProviderLogger","parentClientConfig","clientPlugins","getProfileName","Object","keys","join","sourceCredsProvider","resolveProfileData","isCredentialSourceWithoutRoleArn","params","RoleArn","RoleSessionName","Date","now","ExternalId","DurationSeconds","parseInt","duration_seconds","mfaCodeProvider","tryNextLink","SerialNumber","TokenCode","sourceCreds","section","isProcessProfile","credential_process","resolveProcessCredentials","fromProcess","resolveSsoCredentials","fromSSO","sso_session","isSsoProfile","sso_start_url","sso_account_id","sso_region","sso_role_name","isStaticCredsProfile","aws_access_key_id","aws_secret_access_key","aws_session_token","aws_account_id","resolveStaticCredentials","credentials","accessKeyId","secretAccessKey","sessionToken","aws_credential_scope","credentialScope","accountId","isWebIdentityProfile","web_identity_token_file","resolveWebIdentityCredentials","fromTokenFile","webIdentityTokenFile","roleArn","roleSessionName","roleAssumerWithWebIdentity","isAssumeRoleRecursiveCall","data","length","fromIni","_init","callerClientConfig","init","parseKnownFiles"],"mappings":";;;;;;;;;AAAAA,2BAAA,EAAA;;;ACAAA,2BAAA,EAAA;;;ACAAA,2BAAA,EAAA;;;ACAAA,2BAAA,EAAA;;;ACAAA,2BAAA,EAAA;AAEO,IAAMC,uBAAAA,mBAA0BC,mBAAA,CAAA,CAACC,gBAAAA,EAAkBC,WAAAA,EAAaC,MAAAA,KAAAA;AACnE,EAAA,MAAMC,kBAAAA,GAAqB;AACvBC,IAAAA,YAAAA,6CAAqBC,OAAAA,KAAAA;AACjB,MAAA,MAAM,EAAEC,QAAAA,EAAQ,GAAK,MAAM,OAAO,gBAAA,CAAA;AAClC,MAAA,MAAM,EAAEC,qBAAAA,EAAqB,GAAK,MAAM,OAAO,gBAAA,CAAA;AAC/CL,MAAAA,M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EAAMhG,OAAAA,CAAAA;AAC1D,EAAA;AACA,EAAA,MAAM,IAAIW,qCAAAA,CAAyB,CAAA,8CAAA,EAAiDf,WAAAA,CAAAA,uCAAAA,CAAAA,EAAsD;AAAEC,IAAAA,MAAAA,EAAQG,OAAAA,CAAQH;GAAO,CAAA;AACvK,CAAA,EArBkC,oBAAA,CAAA;;;ADJ3B,IAAMqG,OAAAA,mBAAUxG,mBAAA,CAAA,CAACyG,KAAAA,GAAQ,EAAC,KAAM,OAAO,EAAEC,kBAAAA,EAAkB,GAAK,EAAC,KAAC;AACrE,EAAA,MAAMC,IAAAA,GAAO;IACT,GAAGF,KAAAA;IACH7D,kBAAAA,EAAoB;MAChB,GAAG8D,kBAAAA;AACH,MAAA,GAAGD,KAAAA,CAAM7D;AACb;AACJ,GAAA;AACA+D,EAAAA,IAAAA,CAAKxG,MAAAA,EAAQM,MAAM,4CAAA,CAAA;AACnB,EAAA,MAAM2B,QAAAA,GAAW,MAAMwE,4BAAAA,CAAgBD,IAAAA,CAAAA;AACvC,EAAA,OAAOxD,mBAAmBL,2BAAAA,CAAe;IACrCxB,OAAAA,EAASmF,KAAAA,CAAMnF,WAAWoF,kBAAAA,EAAoBpF;GAClD,CAAA,EAAIc,UAAUuE,IAAAA,CAAAA;AAClB,CAAA,EAbuB,SAAA","file":"4KPRGHDI.cjs","sourcesContent":["export * from \"./fromIni\";\n","import { getProfileName, parseKnownFiles } from \"@smithy/shared-ini-file-loader\";\nimport { resolveProfileData } from \"./resolveProfileData\";\nexport const fromIni = (_init = {}) => async ({ callerClientConfig } = {}) => {\n const init = {\n ..._init,\n parentClientConfig: {\n ...callerClientConfig,\n ..._init.parentClientConfig,\n },\n };\n init.logger?.debug(\"@aws-sdk/credential-provider-ini - fromIni\");\n const profiles = await parseKnownFiles(init);\n return resolveProfileData(getProfileName({\n profile: _init.profile ?? callerClientConfig?.profile,\n }), profiles, init);\n};\n","import { CredentialsProviderError } from \"@smithy/property-provider\";\nimport { isAssumeRoleProfile, resolveAssumeRoleCredentials } from \"./resolveAssumeRoleCredentials\";\nimport { isProcessProfile, resolveProcessCredentials } from \"./resolveProcessCredentials\";\nimport { isSsoProfile, resolveSsoCredentials } from \"./resolveSsoCredentials\";\nimport { isStaticCredsProfile, resolveStaticCredentials } from \"./resolveStaticCredentials\";\nimport { isWebIdentityProfile, resolveWebIdentityCredentials } from \"./resolveWebIdentityCredentials\";\nexport const resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {\n const data = profiles[profileName];\n if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {\n return resolveStaticCredentials(data, options);\n }\n if (isAssumeRoleRecursiveCall || isAssumeRoleProfile(data, { profile: profileName, logger: options.logger })) {\n return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles);\n }\n if (isStaticCredsProfile(data)) {\n return resolveStaticCredentials(data, options);\n }\n if (isWebIdentityProfile(data)) {\n return resolveWebIdentityCredentials(data, options);\n }\n if (isProcessProfile(data)) {\n return resolveProcessCredentials(options, profileName);\n }\n if (isSsoProfile(data)) {\n return await resolveSsoCredentials(profileName, data, options);\n }\n throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });\n};\n","import { setCredentialFeature } from \"@aws-sdk/core/client\";\nimport { CredentialsProviderError } from \"@smithy/property-provider\";\nimport { getProfileName } from \"@smithy/shared-ini-file-loader\";\nimport { resolveCredentialSource } from \"./resolveCredentialSource\";\nimport { resolveProfileData } from \"./resolveProfileData\";\nexport const isAssumeRoleProfile = (arg, { profile = \"default\", logger } = {}) => {\n return (Boolean(arg) &&\n typeof arg === \"object\" &&\n typeof arg.role_arn === \"string\" &&\n [\"undefined\", \"string\"].indexOf(typeof arg.role_session_name) > -1 &&\n [\"undefined\", \"string\"].indexOf(typeof arg.external_id) > -1 &&\n [\"undefined\", \"string\"].indexOf(typeof arg.mfa_serial) > -1 &&\n (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger })));\n};\nconst isAssumeRoleWithSourceProfile = (arg, { profile, logger }) => {\n const withSourceProfile = typeof arg.source_profile === \"string\" && typeof arg.credential_source === \"undefined\";\n if (withSourceProfile) {\n logger?.debug?.(` ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`);\n }\n return withSourceProfile;\n};\nconst isCredentialSourceProfile = (arg, { profile, logger }) => {\n const withProviderProfile = typeof arg.credential_source === \"string\" && typeof arg.source_profile === \"undefined\";\n if (withProviderProfile) {\n logger?.debug?.(` ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`);\n }\n return withProviderProfile;\n};\nexport const resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => {\n options.logger?.debug(\"@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)\");\n const profileData = profiles[profileName];\n const { source_profile, region } = profileData;\n if (!options.roleAssumer) {\n const { getDefaultRoleAssumer } = await import(\"@aws-sdk/nested-clients/sts\");\n options.roleAssumer = getDefaultRoleAssumer({\n ...options.clientConfig,\n credentialProviderLogger: options.logger,\n parentClientConfig: {\n ...options?.parentClientConfig,\n region: region ?? options?.parentClientConfig?.region,\n },\n }, options.clientPlugins);\n }\n if (source_profile && source_profile in visitedProfiles) {\n throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile` +\n ` ${getProfileName(options)}. Profiles visited: ` +\n Object.keys(visitedProfiles).join(\", \"), { logger: options.logger });\n }\n options.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`);\n const sourceCredsProvider = source_profile\n ? resolveProfileData(source_profile, profiles, options, {\n ...visitedProfiles,\n [source_profile]: true,\n }, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {}))\n : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();\n if (isCredentialSourceWithoutRoleArn(profileData)) {\n return sourceCredsProvider.then((creds) => setCredentialFeature(creds, \"CREDENTIALS_PROFILE_SOURCE_PROFILE\", \"o\"));\n }\n else {\n const params = {\n RoleArn: profileData.role_arn,\n RoleSessionName: profileData.role_session_name || `aws-sdk-js-${Date.now()}`,\n ExternalId: profileData.external_id,\n DurationSeconds: parseInt(profileData.duration_seconds || \"3600\", 10),\n };\n const { mfa_serial } = profileData;\n if (mfa_serial) {\n if (!options.mfaCodeProvider) {\n throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });\n }\n params.SerialNumber = mfa_serial;\n params.TokenCode = await options.mfaCodeProvider(mfa_serial);\n }\n const sourceCreds = await sourceCredsProvider;\n return options.roleAssumer(sourceCreds, params).then((creds) => setCredentialFeature(creds, \"CREDENTIALS_PROFILE_SOURCE_PROFILE\", \"o\"));\n }\n};\nconst isCredentialSourceWithoutRoleArn = (section) => {\n return !section.role_arn && !!section.credential_source;\n};\n","import { setCredentialFeature } from \"@aws-sdk/core/client\";\nimport { chain, CredentialsProviderError } from \"@smithy/property-provider\";\nexport const resolveCredentialSource = (credentialSource, profileName, logger) => {\n const sourceProvidersMap = {\n EcsContainer: async (options) => {\n const { fromHttp } = await import(\"@aws-sdk/credential-provider-http\");\n const { fromContainerMetadata } = await import(\"@smithy/credential-provider-imds\");\n logger?.debug(\"@aws-sdk/credential-provider-ini - credential_source is EcsContainer\");\n return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);\n },\n Ec2InstanceMetadata: async (options) => {\n logger?.debug(\"@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata\");\n const { fromInstanceMetadata } = await import(\"@smithy/credential-provider-imds\");\n return async () => fromInstanceMetadata(options)().then(setNamedProvider);\n },\n Environment: async (options) => {\n logger?.debug(\"@aws-sdk/credential-provider-ini - credential_source is Environment\");\n const { fromEnv } = await import(\"@aws-sdk/credential-provider-env\");\n return async () => fromEnv(options)().then(setNamedProvider);\n },\n };\n if (credentialSource in sourceProvidersMap) {\n return sourceProvidersMap[credentialSource];\n }\n else {\n throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, ` +\n `expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger });\n }\n};\nconst setNamedProvider = (creds) => setCredentialFeature(creds, \"CREDENTIALS_PROFILE_NAMED_PROVIDER\", \"p\");\n","import { setCredentialFeature } from \"@aws-sdk/core/client\";\nexport const isProcessProfile = (arg) => Boolean(arg) && typeof arg === \"object\" && typeof arg.credential_process === \"string\";\nexport const resolveProcessCredentials = async (options, profile) => import(\"@aws-sdk/credential-provider-process\").then(({ fromProcess }) => fromProcess({\n ...options,\n profile,\n})().then((creds) => setCredentialFeature(creds, \"CREDENTIALS_PROFILE_PROCESS\", \"v\")));\n","import { setCredentialFeature } from \"@aws-sdk/core/client\";\nexport const resolveSsoCredentials = async (profile, profileData, options = {}) => {\n const { fromSSO } = await import(\"@aws-sdk/credential-provider-sso\");\n return fromSSO({\n profile,\n logger: options.logger,\n parentClientConfig: options.parentClientConfig,\n clientConfig: options.clientConfig,\n })().then((creds) => {\n if (profileData.sso_session) {\n return setCredentialFeature(creds, \"CREDENTIALS_PROFILE_SSO\", \"r\");\n }\n else {\n return setCredentialFeature(creds, \"CREDENTIALS_PROFILE_SSO_LEGACY\", \"t\");\n }\n });\n};\nexport const isSsoProfile = (arg) => arg &&\n (typeof arg.sso_start_url === \"string\" ||\n typeof arg.sso_account_id === \"string\" ||\n typeof arg.sso_session === \"string\" ||\n typeof arg.sso_region === \"string\" ||\n typeof arg.sso_role_name === \"string\");\n","import { setCredentialFeature } from \"@aws-sdk/core/client\";\nexport const isStaticCredsProfile = (arg) => Boolean(arg) &&\n typeof arg === \"object\" &&\n typeof arg.aws_access_key_id === \"string\" &&\n typeof arg.aws_secret_access_key === \"string\" &&\n [\"undefined\", \"string\"].indexOf(typeof arg.aws_session_token) > -1 &&\n [\"undefined\", \"string\"].indexOf(typeof arg.aws_account_id) > -1;\nexport const resolveStaticCredentials = async (profile, options) => {\n options?.logger?.debug(\"@aws-sdk/credential-provider-ini - resolveStaticCredentials\");\n const credentials = {\n accessKeyId: profile.aws_access_key_id,\n secretAccessKey: profile.aws_secret_access_key,\n sessionToken: profile.aws_session_token,\n ...(profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope }),\n ...(profile.aws_account_id && { accountId: profile.aws_account_id }),\n };\n return setCredentialFeature(credentials, \"CREDENTIALS_PROFILE\", \"n\");\n};\n","import { setCredentialFeature } from \"@aws-sdk/core/client\";\nexport const isWebIdentityProfile = (arg) => Boolean(arg) &&\n typeof arg === \"object\" &&\n typeof arg.web_identity_token_file === \"string\" &&\n typeof arg.role_arn === \"string\" &&\n [\"undefined\", \"string\"].indexOf(typeof arg.role_session_name) > -1;\nexport const resolveWebIdentityCredentials = async (profile, options) => import(\"@aws-sdk/credential-provider-web-identity\").then(({ fromTokenFile }) => fromTokenFile({\n webIdentityTokenFile: profile.web_identity_token_file,\n roleArn: profile.role_arn,\n roleSessionName: profile.role_session_name,\n roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,\n logger: options.logger,\n parentClientConfig: options.parentClientConfig,\n})().then((creds) => setCredentialFeature(creds, \"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN\", \"q\")));\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/index.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.879.0/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js"],"names":["init_cjs_shims","resolveCredentialSource","__name","credentialSource","profileName","logger","sourceProvidersMap","EcsContainer","options","fromHttp","fromContainerMetadata","debug","chain","then","setNamedProvider","Ec2InstanceMetadata","fromInstanceMetadata","Environment","fromEnv","CredentialsProviderError","creds","setCredentialFeature","isAssumeRoleProfile","arg","profile","Boolean","role_arn","indexOf","role_session_name","external_id","mfa_serial","isAssumeRoleWithSourceProfile","isCredentialSourceProfile","withSourceProfile","source_profile","credential_source","withProviderProfile","resolveAssumeRoleCredentials","profiles","visitedProfiles","profileData","region","roleAssumer","getDefaultRoleAssumer","clientConfig","credentialProviderLogger","parentClientConfig","clientPlugins","getProfileName","Object","keys","join","sourceCredsProvider","resolveProfileData","isCredentialSourceWithoutRoleArn","params","RoleArn","RoleSessionName","Date","now","ExternalId","DurationSeconds","parseInt","duration_seconds","mfaCodeProvider","tryNextLink","SerialNumber","TokenCode","sourceCreds","section","isProcessProfile","credential_process","resolveProcessCredentials","fromProcess","resolveSsoCredentials","fromSSO","sso_session","isSsoProfile","sso_start_url","sso_account_id","sso_region","sso_role_name","isStaticCredsProfile","aws_access_key_id","aws_secret_access_key","aws_session_token","aws_account_id","resolveStaticCredentials","credentials","accessKeyId","secretAccessKey","sessionToken","aws_credential_scope","credentialScope","accountId","isWebIdentityProfile","web_identity_token_file","resolveWebIdentityCredentials","fromTokenFile","webIdentityTokenFile","roleArn","roleSessionName","roleAssumerWithWebIdentity","isAssumeRoleRecursiveCall","data","length","fromIni","_init","callerClientConfig","init","parseKnownFiles"],"mappings":";;;;;;;;;AAAAA,2BAAA,EAAA;;;ACAAA,2BAAA,EAAA;;;ACAAA,2BAAA,EAAA;;;ACAAA,2BAAA,EAAA;;;ACAAA,2BAAA,EAAA;AAEO,IAAMC,uBAAAA,mBAA0BC,mBAAA,CAAA,CAACC,gBAAAA,EAAkBC,WAAAA,EAAaC,MAAAA,KAAAA;AACnE,EAAA,MAAMC,kBAAAA,GAAqB;AACvBC,IAAAA,YAAAA,6CAAqBC,OAAAA,KAAAA;AACjB,MAAA,MAAM,EAAEC,QAAAA,EAAQ,GAAK,MAAM,OAAO,gBAAA,CAAA;AAClC,MAAA,MAAM,EAAEC,qBAAAA,EAAqB,GAAK,MAAM,OAAO,gBAAA,CAAA;AAC/CL,MAAAA,MAAAA,EAAQM,MAAM,sEAAA,CAAA;AACd,MAAA,OAAO,YAAYC,kBAAAA,CAAMH,QAAAA,CAASD,OAAAA,IAAW,EAAC,CAAA,EAAIE,qBAAAA,CAAsBF,OAAAA,CAAAA,CAAAA,EAAAA,CAAYK,KAAKC,gBAAAA,CAAAA;IAC7F,CAAA,EALc,cAAA,CAAA;AAMdC,IAAAA,mBAAAA,6CAA4BP,OAAAA,KAAAA;AACxBH,MAAAA,MAAAA,EAAQM,MAAM,6EAAA,CAAA;AACd,MAAA,MAAM,EAAEK,oBAAAA,EAAoB,GAAK,MAAM,OAAO,gBAAA,CAAA;AAC9C,MAAA,OAAO,YAAYA,oBAAAA,CAAqBR,OAAAA,CAAAA,EAAAA,CAAWK,KAAKC,gBAAAA,CAAAA;IAC5D,CAAA,EAJqB,qBAAA,CAAA;AAKrBG,IAAAA,WAAAA,6CAAoBT,OAAAA,KAAAA;AAChBH,MAAAA,MAAAA,EAAQM,MAAM,qEAAA,CAAA;AACd,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gBD,IAAAA,CAAAA;AACvC,EAAA,OAAOxD,mBAAmBL,2BAAAA,CAAe;IACrCxB,OAAAA,EAASmF,KAAAA,CAAMnF,WAAWoF,kBAAAA,EAAoBpF;GAClD,CAAA,EAAIc,UAAUuE,IAAAA,CAAAA;AAClB,CAAA,EAbuB,SAAA","file":"SPOUVTPR.cjs","sourcesContent":["export * from \"./fromIni\";\n","import { getProfileName, parseKnownFiles } from \"@smithy/shared-ini-file-loader\";\nimport { resolveProfileData } from \"./resolveProfileData\";\nexport const fromIni = (_init = {}) => async ({ callerClientConfig } = {}) => {\n const init = {\n ..._init,\n parentClientConfig: {\n ...callerClientConfig,\n ..._init.parentClientConfig,\n },\n };\n init.logger?.debug(\"@aws-sdk/credential-provider-ini - fromIni\");\n const profiles = await parseKnownFiles(init);\n return resolveProfileData(getProfileName({\n profile: _init.profile ?? callerClientConfig?.profile,\n }), profiles, init);\n};\n","import { CredentialsProviderError } from \"@smithy/property-provider\";\nimport { isAssumeRoleProfile, resolveAssumeRoleCredentials } from \"./resolveAssumeRoleCredentials\";\nimport { isProcessProfile, resolveProcessCredentials } from \"./resolveProcessCredentials\";\nimport { isSsoProfile, resolveSsoCredentials } from \"./resolveSsoCredentials\";\nimport { isStaticCredsProfile, resolveStaticCredentials } from \"./resolveStaticCredentials\";\nimport { isWebIdentityProfile, resolveWebIdentityCredentials } from \"./resolveWebIdentityCredentials\";\nexport const resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {\n const data = profiles[profileName];\n if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {\n return resolveStaticCredentials(data, options);\n }\n if (isAssumeRoleRecursiveCall || isAssumeRoleProfile(data, { profile: profileName, logger: options.logger })) {\n return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles);\n }\n if (isStaticCredsProfile(data)) {\n return resolveStaticCredentials(data, options);\n }\n if (isWebIdentityProfile(data)) {\n return resolveWebIdentityCredentials(data, options);\n }\n if (isProcessProfile(data)) {\n return resolveProcessCredentials(options, profileName);\n }\n if (isSsoProfile(data)) {\n return await resolveSsoCredentials(profileName, data, options);\n }\n throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });\n};\n","import { setCredentialFeature } from \"@aws-sdk/core/client\";\nimport { CredentialsProviderError } from \"@smithy/property-provider\";\nimport { getProfileName } from \"@smithy/shared-ini-file-loader\";\nimport { resolveCredentialSource } from \"./resolveCredentialSource\";\nimport { resolveProfileData } from \"./resolveProfileData\";\nexport const isAssumeRoleProfile = (arg, { profile = \"default\", logger } = {}) => {\n return (Boolean(arg) &&\n typeof arg === \"object\" &&\n typeof arg.role_arn === \"string\" &&\n [\"undefined\", \"string\"].indexOf(typeof arg.role_session_name) > -1 &&\n [\"undefined\", \"string\"].indexOf(typeof arg.external_id) > -1 &&\n [\"undefined\", \"string\"].indexOf(typeof arg.mfa_serial) > -1 &&\n (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger })));\n};\nconst isAssumeRoleWithSourceProfile = (arg, { profile, logger }) => {\n const withSourceProfile = typeof arg.source_profile === \"string\" && typeof arg.credential_source === \"undefined\";\n if (withSourceProfile) {\n logger?.debug?.(` ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`);\n }\n return withSourceProfile;\n};\nconst isCredentialSourceProfile = (arg, { profile, logger }) => {\n const withProviderProfile = typeof arg.credential_source === \"string\" && typeof arg.source_profile === \"undefined\";\n if (withProviderProfile) {\n logger?.debug?.(` ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`);\n }\n return withProviderProfile;\n};\nexport const resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => {\n options.logger?.debug(\"@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)\");\n const profileData = profiles[profileName];\n const { source_profile, region } = profileData;\n if (!options.roleAssumer) {\n const { getDefaultRoleAssumer } = await import(\"@aws-sdk/nested-clients/sts\");\n options.roleAssumer = getDefaultRoleAssumer({\n ...options.clientConfig,\n credentialProviderLogger: options.logger,\n parentClientConfig: {\n ...options?.parentClientConfig,\n region: region ?? options?.parentClientConfig?.region,\n },\n }, options.clientPlugins);\n }\n if (source_profile && source_profile in visitedProfiles) {\n throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile` +\n ` ${getProfileName(options)}. Profiles visited: ` +\n Object.keys(visitedProfiles).join(\", \"), { logger: options.logger });\n }\n options.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`);\n const sourceCredsProvider = source_profile\n ? resolveProfileData(source_profile, profiles, options, {\n ...visitedProfiles,\n [source_profile]: true,\n }, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {}))\n : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();\n if (isCredentialSourceWithoutRoleArn(profileData)) {\n return sourceCredsProvider.then((creds) => setCredentialFeature(creds, \"CREDENTIALS_PROFILE_SOURCE_PROFILE\", \"o\"));\n }\n else {\n const params = {\n RoleArn: profileData.role_arn,\n RoleSessionName: profileData.role_session_name || `aws-sdk-js-${Date.now()}`,\n ExternalId: profileData.external_id,\n DurationSeconds: parseInt(profileData.duration_seconds || \"3600\", 10),\n };\n const { mfa_serial } = profileData;\n if (mfa_serial) {\n if (!options.mfaCodeProvider) {\n throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });\n }\n params.SerialNumber = mfa_serial;\n params.TokenCode = await options.mfaCodeProvider(mfa_serial);\n }\n const sourceCreds = await sourceCredsProvider;\n return options.roleAssumer(sourceCreds, params).then((creds) => setCredentialFeature(creds, \"CREDENTIALS_PROFILE_SOURCE_PROFILE\", \"o\"));\n }\n};\nconst isCredentialSourceWithoutRoleArn = (section) => {\n return !section.role_arn && !!section.credential_source;\n};\n","import { setCredentialFeature } from \"@aws-sdk/core/client\";\nimport { chain, CredentialsProviderError } from \"@smithy/property-provider\";\nexport const resolveCredentialSource = (credentialSource, profileName, logger) => {\n const sourceProvidersMap = {\n EcsContainer: async (options) => {\n const { fromHttp } = await import(\"@aws-sdk/credential-provider-http\");\n const { fromContainerMetadata } = await import(\"@smithy/credential-provider-imds\");\n logger?.debug(\"@aws-sdk/credential-provider-ini - credential_source is EcsContainer\");\n return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);\n },\n Ec2InstanceMetadata: async (options) => {\n logger?.debug(\"@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata\");\n const { fromInstanceMetadata } = await import(\"@smithy/credential-provider-imds\");\n return async () => fromInstanceMetadata(options)().then(setNamedProvider);\n },\n Environment: async (options) => {\n logger?.debug(\"@aws-sdk/credential-provider-ini - credential_source is Environment\");\n const { fromEnv } = await import(\"@aws-sdk/credential-provider-env\");\n return async () => fromEnv(options)().then(setNamedProvider);\n },\n };\n if (credentialSource in sourceProvidersMap) {\n return sourceProvidersMap[credentialSource];\n }\n else {\n throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, ` +\n `expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger });\n }\n};\nconst setNamedProvider = (creds) => setCredentialFeature(creds, \"CREDENTIALS_PROFILE_NAMED_PROVIDER\", \"p\");\n","import { setCredentialFeature } from \"@aws-sdk/core/client\";\nexport const isProcessProfile = (arg) => Boolean(arg) && typeof arg === \"object\" && typeof arg.credential_process === \"string\";\nexport const resolveProcessCredentials = async (options, profile) => import(\"@aws-sdk/credential-provider-process\").then(({ fromProcess }) => fromProcess({\n ...options,\n profile,\n})().then((creds) => setCredentialFeature(creds, \"CREDENTIALS_PROFILE_PROCESS\", \"v\")));\n","import { setCredentialFeature } from \"@aws-sdk/core/client\";\nexport const resolveSsoCredentials = async (profile, profileData, options = {}) => {\n const { fromSSO } = await import(\"@aws-sdk/credential-provider-sso\");\n return fromSSO({\n profile,\n logger: options.logger,\n parentClientConfig: options.parentClientConfig,\n clientConfig: options.clientConfig,\n })().then((creds) => {\n if (profileData.sso_session) {\n return setCredentialFeature(creds, \"CREDENTIALS_PROFILE_SSO\", \"r\");\n }\n else {\n return setCredentialFeature(creds, \"CREDENTIALS_PROFILE_SSO_LEGACY\", \"t\");\n }\n });\n};\nexport const isSsoProfile = (arg) => arg &&\n (typeof arg.sso_start_url === \"string\" ||\n typeof arg.sso_account_id === \"string\" ||\n typeof arg.sso_session === \"string\" ||\n typeof arg.sso_region === \"string\" ||\n typeof arg.sso_role_name === \"string\");\n","import { setCredentialFeature } from \"@aws-sdk/core/client\";\nexport const isStaticCredsProfile = (arg) => Boolean(arg) &&\n typeof arg === \"object\" &&\n typeof arg.aws_access_key_id === \"string\" &&\n typeof arg.aws_secret_access_key === \"string\" &&\n [\"undefined\", \"string\"].indexOf(typeof arg.aws_session_token) > -1 &&\n [\"undefined\", \"string\"].indexOf(typeof arg.aws_account_id) > -1;\nexport const resolveStaticCredentials = async (profile, options) => {\n options?.logger?.debug(\"@aws-sdk/credential-provider-ini - resolveStaticCredentials\");\n const credentials = {\n accessKeyId: profile.aws_access_key_id,\n secretAccessKey: profile.aws_secret_access_key,\n sessionToken: profile.aws_session_token,\n ...(profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope }),\n ...(profile.aws_account_id && { accountId: profile.aws_account_id }),\n };\n return setCredentialFeature(credentials, \"CREDENTIALS_PROFILE\", \"n\");\n};\n","import { setCredentialFeature } from \"@aws-sdk/core/client\";\nexport const isWebIdentityProfile = (arg) => Boolean(arg) &&\n typeof arg === \"object\" &&\n typeof arg.web_identity_token_file === \"string\" &&\n typeof arg.role_arn === \"string\" &&\n [\"undefined\", \"string\"].indexOf(typeof arg.role_session_name) > -1;\nexport const resolveWebIdentityCredentials = async (profile, options) => import(\"@aws-sdk/credential-provider-web-identity\").then(({ fromTokenFile }) => fromTokenFile({\n webIdentityTokenFile: profile.web_identity_token_file,\n roleArn: profile.role_arn,\n roleSessionName: profile.role_session_name,\n roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,\n logger: options.logger,\n parentClientConfig: options.parentClientConfig,\n})().then((creds) => setCredentialFeature(creds, \"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN\", \"q\")));\n"]}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { requestBuilder } from './IE5H7TSX.js';
|
|
2
1
|
import { package_default } from './LUG7USNZ.js';
|
|
2
|
+
import { requestBuilder } from './TNPXNMQM.js';
|
|
3
3
|
import { NoAuthSigner } from './GZ7KTF4Q.js';
|
|
4
|
-
import { parseJsonBody, parseJsonErrorBody, loadRestJsonErrorCode } from './
|
|
5
|
-
import { EndpointCache, awsEndpointFunctions, customEndpointFunctions, resolveUserAgentConfig, resolveRetryConfig, resolveRegionConfig, resolveHostHeaderConfig, resolveEndpointConfig, getUserAgentPlugin, getRetryPlugin, getContentLengthPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, getSerdePlugin, getEndpointPlugin, resolveDefaultsModeConfig, emitWarningIfUnsupportedVersion as emitWarningIfUnsupportedVersion$1, Hash, createDefaultUserAgentProvider, calculateBodyLength, NODE_APP_ID_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, DEFAULT_RETRY_MODE, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, resolveAwsSdkSigV4Config, normalizeProvider, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, getSmithyContext, AwsSdkSigV4Signer, resolveEndpoint } from './
|
|
4
|
+
import { parseJsonBody, parseJsonErrorBody, loadRestJsonErrorCode } from './CMSYZVLH.js';
|
|
5
|
+
import { EndpointCache, awsEndpointFunctions, customEndpointFunctions, resolveUserAgentConfig, resolveRetryConfig, resolveRegionConfig, resolveHostHeaderConfig, resolveEndpointConfig, getUserAgentPlugin, getRetryPlugin, getContentLengthPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, getSerdePlugin, getEndpointPlugin, resolveDefaultsModeConfig, emitWarningIfUnsupportedVersion as emitWarningIfUnsupportedVersion$1, Hash, createDefaultUserAgentProvider, calculateBodyLength, NODE_APP_ID_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, DEFAULT_RETRY_MODE, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, resolveAwsSdkSigV4Config, normalizeProvider, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, getSmithyContext, AwsSdkSigV4Signer, resolveEndpoint } from './FAOU2ZJO.js';
|
|
6
6
|
import { loadConfig, parseUrl } from './VLSIEZLM.js';
|
|
7
|
-
import { Client, ServiceException, withBaseException, Command, createAggregatedClient, emitWarningIfUnsupportedVersion, streamCollector, NodeHttpHandler, getDefaultExtensionConfiguration, getHttpHandlerExtensionConfiguration, resolveDefaultRuntimeConfig, resolveHttpHandlerRuntimeConfig, SENSITIVE_STRING, take, _json, map, expectNonNull, expectObject, expectString, expectInt32, NoOpLogger, toBase64, fromBase64, loadConfigsForDefaultMode, decorateServiceException } from './IMNIF2OY.js';
|
|
8
|
-
export { Command as $Command, Client as __Client } from './IMNIF2OY.js';
|
|
9
7
|
import './ELFNCT57.js';
|
|
8
|
+
import { Client, ServiceException, withBaseException, Command, createAggregatedClient, emitWarningIfUnsupportedVersion, streamCollector, NodeHttpHandler, getDefaultExtensionConfiguration, getHttpHandlerExtensionConfiguration, resolveDefaultRuntimeConfig, resolveHttpHandlerRuntimeConfig, SENSITIVE_STRING, take, _json, map, expectNonNull, expectObject, expectString, expectInt32, NoOpLogger, toBase64, fromBase64, loadConfigsForDefaultMode, decorateServiceException } from './4Q36MQI5.js';
|
|
9
|
+
export { Command as $Command, Client as __Client } from './4Q36MQI5.js';
|
|
10
|
+
import { toUtf8, fromUtf8 } from './LMCIXUBF.js';
|
|
10
11
|
import './NDUVZQ7S.js';
|
|
11
12
|
import './OH4A2VLX.js';
|
|
12
13
|
import './TTKDG2NN.js';
|
|
13
|
-
import { toUtf8, fromUtf8 } from './LMCIXUBF.js';
|
|
14
14
|
import { init_esm_shims, __name } from './4RNWLMHM.js';
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.879.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js
|
|
@@ -1099,5 +1099,5 @@ init_esm_shims();
|
|
|
1099
1099
|
init_esm_shims();
|
|
1100
1100
|
|
|
1101
1101
|
export { AccessDeniedException, AuthorizationPendingException, CreateTokenCommand, CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidGrantException, InvalidRequestException, InvalidScopeException, SSOOIDC, SSOOIDCClient, SSOOIDCServiceException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException };
|
|
1102
|
-
//# sourceMappingURL=
|
|
1103
|
-
//# sourceMappingURL=
|
|
1102
|
+
//# sourceMappingURL=TBDZQONT.js.map
|
|
1103
|
+
//# sourceMappingURL=TBDZQONT.js.map
|