@layerzerolabs/vm-tooling 0.0.48 → 0.0.51
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/{PGRNZALP.cjs → 2ASNEWIN.cjs} +668 -246
- package/dist/2ASNEWIN.cjs.map +1 -0
- package/dist/{OESMGGGL.js → 2FM75RYQ.js} +48 -16
- package/dist/2FM75RYQ.js.map +1 -0
- package/dist/{7SRULFYS.cjs → 2RWEJQEO.cjs} +12 -8
- package/dist/2RWEJQEO.cjs.map +1 -0
- package/dist/{BA2LAHMY.js → 3CLGGUZ6.js} +5 -3
- package/dist/3CLGGUZ6.js.map +1 -0
- package/dist/{DXKVHPTB.js → 43WEMDCI.js} +47 -60
- package/dist/43WEMDCI.js.map +1 -0
- package/dist/{RVTTXEXB.cjs → 4KPRGHDI.cjs} +64 -47
- package/dist/4KPRGHDI.cjs.map +1 -0
- package/dist/{WAGFMHUT.js → 4LRYG53T.js} +37 -10
- package/dist/4LRYG53T.js.map +1 -0
- package/dist/4RNWLMHM.js +45 -0
- package/dist/4RNWLMHM.js.map +1 -0
- package/dist/4RWETOR3.cjs +1332 -0
- package/dist/4RWETOR3.cjs.map +1 -0
- package/dist/{CQHBPXZ2.cjs → 4UZKQNSD.cjs} +26 -16
- package/dist/4UZKQNSD.cjs.map +1 -0
- package/dist/{BHBC6Q3Y.js → 5CI7X2D4.js} +9 -5
- package/dist/5CI7X2D4.js.map +1 -0
- package/dist/{QNKHVJNZ.js → 5OKX3IYN.js} +6 -4
- package/dist/5OKX3IYN.js.map +1 -0
- package/dist/{3EOFF6NK.cjs → 5RAWDGJY.cjs} +7 -5
- package/dist/5RAWDGJY.cjs.map +1 -0
- package/dist/{7PDYKZMF.cjs → 7ALZ3CAZ.cjs} +21 -19
- package/dist/7ALZ3CAZ.cjs.map +1 -0
- package/dist/7DH3URRX.js +6 -0
- package/dist/7DH3URRX.js.map +1 -0
- package/dist/{WDWUP4NU.cjs → 7F6M5VM7.cjs} +59 -71
- package/dist/7F6M5VM7.cjs.map +1 -0
- package/dist/{WBKUP4MX.js → 7G26DPK3.js} +17 -8
- package/dist/7G26DPK3.js.map +1 -0
- package/dist/7PP2QA5H.cjs +8 -0
- package/dist/7PP2QA5H.cjs.map +1 -0
- package/dist/AY3IP22W.cjs +39 -0
- package/dist/AY3IP22W.cjs.map +1 -0
- package/dist/{63H5FLN6.cjs → BVLAV47O.cjs} +11 -7
- package/dist/BVLAV47O.cjs.map +1 -0
- package/dist/{VDH76SF6.cjs → BXO3RC75.cjs} +19 -10
- package/dist/BXO3RC75.cjs.map +1 -0
- package/dist/{EQPMZDRH.js → CH3GQSOI.js} +13 -6
- package/dist/CH3GQSOI.js.map +1 -0
- package/dist/{RVOOJEDH.js → CNLWPLWD.js} +433 -11
- package/dist/CNLWPLWD.js.map +1 -0
- package/dist/DPDVRYLI.cjs +234 -0
- package/dist/DPDVRYLI.cjs.map +1 -0
- package/dist/{Z5NOJAAG.cjs → DW3OZE6F.cjs} +163 -133
- package/dist/DW3OZE6F.cjs.map +1 -0
- package/dist/{QWROCDWJ.cjs → EE3HP6UB.cjs} +76 -49
- package/dist/EE3HP6UB.cjs.map +1 -0
- package/dist/{EASTPCLB.js → ELFNCT57.js} +44 -4
- package/dist/ELFNCT57.js.map +1 -0
- package/dist/{RVM7QRW3.cjs → F5LIDCLG.cjs} +21 -20
- package/dist/F5LIDCLG.cjs.map +1 -0
- package/dist/{LBQPL6VK.cjs → FLI6L2YX.cjs} +8 -6
- package/dist/FLI6L2YX.cjs.map +1 -0
- package/dist/{LXXIBLJQ.js → GZ7KTF4Q.js} +4 -3
- package/dist/GZ7KTF4Q.js.map +1 -0
- package/dist/{L3BNN3KF.cjs → HHS2B7YE.cjs} +395 -175
- package/dist/HHS2B7YE.cjs.map +1 -0
- package/dist/{GAZMRBLT.js → HR64SZQX.js} +4 -3
- package/dist/HR64SZQX.js.map +1 -0
- package/dist/{OVH4V3F6.js → IE5H7TSX.js} +8 -4
- package/dist/IE5H7TSX.js.map +1 -0
- package/dist/{F5UPK5ZZ.js → IMNIF2OY.js} +225 -5
- package/dist/IMNIF2OY.js.map +1 -0
- package/dist/{XJWXQV6E.js → IVTNKY37.js} +30 -30
- package/dist/IVTNKY37.js.map +1 -0
- package/dist/{4NINFZK7.cjs → JJXZWB7K.cjs} +5 -4
- package/dist/JJXZWB7K.cjs.map +1 -0
- package/dist/{7LKSKL4C.cjs → L34TQNQN.cjs} +10 -9
- package/dist/L34TQNQN.cjs.map +1 -0
- package/dist/L3JULKNZ.js +6 -0
- package/dist/L3JULKNZ.js.map +1 -0
- package/dist/{33GUXAT7.js → LMCIXUBF.js} +16 -3
- package/dist/LMCIXUBF.js.map +1 -0
- package/dist/{YVV5I7A5.js → NDUVZQ7S.js} +4 -3
- package/dist/NDUVZQ7S.js.map +1 -0
- package/dist/{5MIIPWV7.cjs → NEQ3DTUV.cjs} +22 -9
- package/dist/NEQ3DTUV.cjs.map +1 -0
- package/dist/NSZHKDNY.cjs +82 -0
- package/dist/NSZHKDNY.cjs.map +1 -0
- package/dist/{JBULQDMK.js → NTYIDZH3.js} +54 -15
- package/dist/NTYIDZH3.js.map +1 -0
- package/dist/OAO7CCJW.js +6 -0
- package/dist/OAO7CCJW.js.map +1 -0
- package/dist/{L75NPWJX.cjs → OAYLBSRH.cjs} +64 -24
- package/dist/OAYLBSRH.cjs.map +1 -0
- package/dist/OH4A2VLX.js +232 -0
- package/dist/OH4A2VLX.js.map +1 -0
- package/dist/OOTZHKMN.cjs +8 -0
- package/dist/OOTZHKMN.cjs.map +1 -0
- package/dist/PDSRUQEX.js +78 -0
- package/dist/PDSRUQEX.js.map +1 -0
- package/dist/{QMIU5HY3.cjs → PYQO5EUZ.cjs} +34 -25
- package/dist/PYQO5EUZ.cjs.map +1 -0
- package/dist/{PXT4MQYT.cjs → Q4F544X2.cjs} +316 -252
- package/dist/Q4F544X2.cjs.map +1 -0
- package/dist/{OU33HN4T.js → QMXX45TO.js} +17 -7
- package/dist/QMXX45TO.js.map +1 -0
- package/dist/{KTOZRP5U.cjs → QO6IEDLG.cjs} +74 -45
- package/dist/QO6IEDLG.cjs.map +1 -0
- package/dist/{E75FXJNJ.js → RH2W4KPM.js} +36 -7
- package/dist/RH2W4KPM.js.map +1 -0
- package/dist/{PC55ZLZD.cjs → RRJYWXRS.cjs} +17 -10
- package/dist/RRJYWXRS.cjs.map +1 -0
- package/dist/{6FHMI4HI.cjs → SGF5U4QO.cjs} +48 -16
- package/dist/SGF5U4QO.cjs.map +1 -0
- package/dist/{IU7G43CF.cjs → SL653IYR.cjs} +45 -45
- package/dist/SL653IYR.cjs.map +1 -0
- package/dist/{OWJM6QQP.js → TO3FUAEA.js} +32 -15
- package/dist/TO3FUAEA.js.map +1 -0
- package/dist/{7EXYTS34.js → TTKDG2NN.js} +12 -3
- package/dist/TTKDG2NN.js.map +1 -0
- package/dist/{4XKJ5GJB.js → UL4OVG5P.js} +44 -14
- package/dist/UL4OVG5P.js.map +1 -0
- package/dist/{6A3MRQDI.js → VAAP26JC.js} +77 -13
- package/dist/VAAP26JC.js.map +1 -0
- package/dist/{THMQMWYA.cjs → VGCATKI5.cjs} +5 -4
- package/dist/VGCATKI5.cjs.map +1 -0
- package/dist/{CSNPKKTO.js → VLSIEZLM.js} +21 -5
- package/dist/VLSIEZLM.js.map +1 -0
- package/dist/VO65XOWD.cjs +54 -0
- package/dist/VO65XOWD.cjs.map +1 -0
- package/dist/{3BKFBGX3.cjs → VVTDADG7.cjs} +5 -4
- package/dist/VVTDADG7.cjs.map +1 -0
- package/dist/{6NLXVH5R.cjs → VYFY2754.cjs} +233 -194
- package/dist/VYFY2754.cjs.map +1 -0
- package/dist/{NMC54VEB.cjs → W7QMZBXR.cjs} +34 -18
- package/dist/W7QMZBXR.cjs.map +1 -0
- package/dist/XM743A75.js +1326 -0
- package/dist/XM743A75.js.map +1 -0
- package/dist/{RAIK357L.js → YIS2J6NC.js} +8 -4
- package/dist/YIS2J6NC.js.map +1 -0
- package/dist/{S3DLREDC.js → YU6A7BNZ.js} +7 -6
- package/dist/YU6A7BNZ.js.map +1 -0
- package/dist/{JY6PMFYV.js → YYBFDJRD.js} +5 -4
- package/dist/YYBFDJRD.js.map +1 -0
- package/dist/{3AX3IZXK.cjs → Z7BVBO5K.cjs} +12 -8
- package/dist/Z7BVBO5K.cjs.map +1 -0
- package/dist/{FYBVGT35.js → Z7OWTALH.js} +8 -6
- package/dist/Z7OWTALH.js.map +1 -0
- package/dist/config/index.cjs +8 -8
- package/dist/config/index.js +4 -4
- package/dist/config/tools.cjs +5 -5
- package/dist/config/tools.d.ts.map +1 -1
- package/dist/config/tools.js +4 -4
- package/dist/config/version-matrices.cjs +3 -3
- package/dist/config/version-matrices.d.ts.map +1 -1
- package/dist/config/version-matrices.js +2 -2
- package/dist/core/compatibility.cjs +3 -3
- package/dist/core/compatibility.js +2 -2
- package/dist/core/index.cjs +14 -13
- package/dist/core/index.js +9 -8
- package/dist/core/lock.cjs +21 -0
- package/dist/core/lock.cjs.map +1 -0
- package/dist/core/lock.d.ts +9 -0
- package/dist/core/lock.d.ts.map +1 -0
- package/dist/core/lock.js +4 -0
- package/dist/core/lock.js.map +1 -0
- package/dist/core/lock.test.cjs +18294 -0
- package/dist/core/lock.test.cjs.map +1 -0
- package/dist/core/lock.test.js +18292 -0
- package/dist/core/lock.test.js.map +1 -0
- package/dist/core/tool-executor.cjs +13 -8
- package/dist/core/tool-executor.d.ts +6 -1
- package/dist/core/tool-executor.d.ts.map +1 -1
- package/dist/core/tool-executor.js +8 -7
- package/dist/core/version-resolver.cjs +9 -9
- package/dist/core/version-resolver.js +6 -6
- package/dist/display/formatters.cjs +4 -4
- package/dist/display/formatters.d.ts +1 -1
- package/dist/display/formatters.d.ts.map +1 -1
- package/dist/display/formatters.js +2 -2
- package/dist/display/index.cjs +11 -11
- package/dist/display/index.js +7 -7
- package/dist/display/version-display.cjs +8 -8
- package/dist/display/version-display.js +6 -6
- package/dist/index.cjs +24 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -13
- package/dist/index.js.map +1 -1
- package/dist/scripts/generate-github-matrix.cjs +325 -290
- package/dist/scripts/generate-github-matrix.cjs.map +1 -1
- package/dist/scripts/generate-github-matrix.js +67 -32
- package/dist/scripts/generate-github-matrix.js.map +1 -1
- package/dist/types/docker.cjs +3 -1
- package/dist/types/docker.cjs.map +1 -1
- package/dist/types/docker.d.ts +15 -6
- package/dist/types/docker.d.ts.map +1 -1
- package/dist/types/docker.js +3 -0
- package/dist/types/docker.js.map +1 -1
- package/dist/types/index.cjs +3 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/tool.cjs +3 -1
- package/dist/types/tool.cjs.map +1 -1
- package/dist/types/tool.d.ts +0 -4
- package/dist/types/tool.d.ts.map +1 -1
- package/dist/types/tool.js +3 -0
- package/dist/types/tool.js.map +1 -1
- package/dist/types/version.cjs +3 -1
- package/dist/types/version.cjs.map +1 -1
- package/dist/types/version.d.ts +1 -0
- package/dist/types/version.d.ts.map +1 -1
- package/dist/types/version.js +3 -0
- package/dist/types/version.js.map +1 -1
- package/dist/utils/finder-utils.cjs +11 -11
- package/dist/utils/finder-utils.js +4 -4
- package/dist/utils/index.cjs +17 -16
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +7 -4
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/version-utils.cjs +8 -8
- package/dist/utils/version-utils.js +4 -4
- package/dist/utils.cjs +4 -4
- package/dist/utils.js +2 -2
- package/package.json +7 -5
- package/dist/33GUXAT7.js.map +0 -1
- package/dist/3AX3IZXK.cjs.map +0 -1
- package/dist/3BKFBGX3.cjs.map +0 -1
- package/dist/3EOFF6NK.cjs.map +0 -1
- package/dist/4NINFZK7.cjs.map +0 -1
- package/dist/4XKJ5GJB.js.map +0 -1
- package/dist/5MIIPWV7.cjs.map +0 -1
- package/dist/5N3Q6FCT.cjs +0 -4
- package/dist/5N3Q6FCT.cjs.map +0 -1
- package/dist/63H5FLN6.cjs.map +0 -1
- package/dist/6A3MRQDI.js.map +0 -1
- package/dist/6FHMI4HI.cjs.map +0 -1
- package/dist/6NLXVH5R.cjs.map +0 -1
- package/dist/6UWCX7SA.js +0 -60
- package/dist/6UWCX7SA.js.map +0 -1
- package/dist/7EXYTS34.js.map +0 -1
- package/dist/7LKSKL4C.cjs.map +0 -1
- package/dist/7PDYKZMF.cjs.map +0 -1
- package/dist/7SRULFYS.cjs.map +0 -1
- package/dist/AH2UQL5E.js +0 -6
- package/dist/AH2UQL5E.js.map +0 -1
- package/dist/BA2LAHMY.js.map +0 -1
- package/dist/BHBC6Q3Y.js.map +0 -1
- package/dist/CQHBPXZ2.cjs.map +0 -1
- package/dist/CSNPKKTO.js.map +0 -1
- package/dist/DXKVHPTB.js.map +0 -1
- package/dist/E75FXJNJ.js.map +0 -1
- package/dist/EASTPCLB.js.map +0 -1
- package/dist/EKUFNO5X.js +0 -3
- package/dist/EKUFNO5X.js.map +0 -1
- package/dist/EQPMZDRH.js.map +0 -1
- package/dist/F5UPK5ZZ.js.map +0 -1
- package/dist/FYBVGT35.js.map +0 -1
- package/dist/GAZMRBLT.js.map +0 -1
- package/dist/IU7G43CF.cjs.map +0 -1
- package/dist/JBULQDMK.js.map +0 -1
- package/dist/JY6PMFYV.js.map +0 -1
- package/dist/KTOZRP5U.cjs.map +0 -1
- package/dist/L3BNN3KF.cjs.map +0 -1
- package/dist/L75NPWJX.cjs.map +0 -1
- package/dist/LBQPL6VK.cjs.map +0 -1
- package/dist/LXXIBLJQ.js.map +0 -1
- package/dist/MBTHP667.cjs +0 -39
- package/dist/MBTHP667.cjs.map +0 -1
- package/dist/NMC54VEB.cjs.map +0 -1
- package/dist/NX4KBEWA.cjs +0 -13
- package/dist/NX4KBEWA.cjs.map +0 -1
- package/dist/OESMGGGL.js.map +0 -1
- package/dist/OU33HN4T.js.map +0 -1
- package/dist/OVH4V3F6.js.map +0 -1
- package/dist/OWJM6QQP.js.map +0 -1
- package/dist/PC55ZLZD.cjs.map +0 -1
- package/dist/PGRNZALP.cjs.map +0 -1
- package/dist/PXT4MQYT.cjs.map +0 -1
- package/dist/QMIU5HY3.cjs.map +0 -1
- package/dist/QNKHVJNZ.js.map +0 -1
- package/dist/QWROCDWJ.cjs.map +0 -1
- package/dist/RAIK357L.js.map +0 -1
- package/dist/RLUL6JFM.cjs +0 -4
- package/dist/RLUL6JFM.cjs.map +0 -1
- package/dist/RVM7QRW3.cjs.map +0 -1
- package/dist/RVOOJEDH.js.map +0 -1
- package/dist/RVTTXEXB.cjs.map +0 -1
- package/dist/S3DLREDC.js.map +0 -1
- package/dist/THMQMWYA.cjs.map +0 -1
- package/dist/VDH76SF6.cjs.map +0 -1
- package/dist/VUOMXK5T.js +0 -6
- package/dist/VUOMXK5T.js.map +0 -1
- package/dist/WAGFMHUT.js.map +0 -1
- package/dist/WBKUP4MX.js.map +0 -1
- package/dist/WDWUP4NU.cjs.map +0 -1
- package/dist/XH4FQTBY.cjs +0 -62
- package/dist/XH4FQTBY.cjs.map +0 -1
- package/dist/XJWXQV6E.js.map +0 -1
- package/dist/YVV5I7A5.js.map +0 -1
- package/dist/Z5NOJAAG.cjs.map +0 -1
- package/dist/ZEW74YLA.js +0 -3
- package/dist/ZEW74YLA.js.map +0 -1
package/dist/OH4A2VLX.js
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { init_esm_shims } from './4RNWLMHM.js';
|
|
2
|
+
|
|
3
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/middleware.js
|
|
4
|
+
init_esm_shims();
|
|
5
|
+
var SMITHY_CONTEXT_KEY = "__smithy_context";
|
|
6
|
+
|
|
7
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/index.js
|
|
8
|
+
init_esm_shims();
|
|
9
|
+
|
|
10
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/abort.js
|
|
11
|
+
init_esm_shims();
|
|
12
|
+
|
|
13
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/auth/index.js
|
|
14
|
+
init_esm_shims();
|
|
15
|
+
|
|
16
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/auth/auth.js
|
|
17
|
+
init_esm_shims();
|
|
18
|
+
var HttpAuthLocation;
|
|
19
|
+
(function(HttpAuthLocation2) {
|
|
20
|
+
HttpAuthLocation2["HEADER"] = "header";
|
|
21
|
+
HttpAuthLocation2["QUERY"] = "query";
|
|
22
|
+
})(HttpAuthLocation || (HttpAuthLocation = {}));
|
|
23
|
+
|
|
24
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/auth/HttpApiKeyAuth.js
|
|
25
|
+
init_esm_shims();
|
|
26
|
+
var HttpApiKeyAuthLocation;
|
|
27
|
+
(function(HttpApiKeyAuthLocation2) {
|
|
28
|
+
HttpApiKeyAuthLocation2["HEADER"] = "header";
|
|
29
|
+
HttpApiKeyAuthLocation2["QUERY"] = "query";
|
|
30
|
+
})(HttpApiKeyAuthLocation || (HttpApiKeyAuthLocation = {}));
|
|
31
|
+
|
|
32
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/auth/HttpAuthScheme.js
|
|
33
|
+
init_esm_shims();
|
|
34
|
+
|
|
35
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/auth/HttpAuthSchemeProvider.js
|
|
36
|
+
init_esm_shims();
|
|
37
|
+
|
|
38
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/auth/HttpSigner.js
|
|
39
|
+
init_esm_shims();
|
|
40
|
+
|
|
41
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/auth/IdentityProviderConfig.js
|
|
42
|
+
init_esm_shims();
|
|
43
|
+
|
|
44
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/blob/blob-payload-input-types.js
|
|
45
|
+
init_esm_shims();
|
|
46
|
+
|
|
47
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/checksum.js
|
|
48
|
+
init_esm_shims();
|
|
49
|
+
|
|
50
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/client.js
|
|
51
|
+
init_esm_shims();
|
|
52
|
+
|
|
53
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/command.js
|
|
54
|
+
init_esm_shims();
|
|
55
|
+
|
|
56
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/connection/index.js
|
|
57
|
+
init_esm_shims();
|
|
58
|
+
|
|
59
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/connection/config.js
|
|
60
|
+
init_esm_shims();
|
|
61
|
+
|
|
62
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/connection/manager.js
|
|
63
|
+
init_esm_shims();
|
|
64
|
+
|
|
65
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/connection/pool.js
|
|
66
|
+
init_esm_shims();
|
|
67
|
+
|
|
68
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/crypto.js
|
|
69
|
+
init_esm_shims();
|
|
70
|
+
|
|
71
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/encode.js
|
|
72
|
+
init_esm_shims();
|
|
73
|
+
|
|
74
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/endpoint.js
|
|
75
|
+
init_esm_shims();
|
|
76
|
+
var EndpointURLScheme;
|
|
77
|
+
(function(EndpointURLScheme2) {
|
|
78
|
+
EndpointURLScheme2["HTTP"] = "http";
|
|
79
|
+
EndpointURLScheme2["HTTPS"] = "https";
|
|
80
|
+
})(EndpointURLScheme || (EndpointURLScheme = {}));
|
|
81
|
+
|
|
82
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/endpoints/index.js
|
|
83
|
+
init_esm_shims();
|
|
84
|
+
|
|
85
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/endpoints/EndpointRuleObject.js
|
|
86
|
+
init_esm_shims();
|
|
87
|
+
|
|
88
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/endpoints/ErrorRuleObject.js
|
|
89
|
+
init_esm_shims();
|
|
90
|
+
|
|
91
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/endpoints/RuleSetObject.js
|
|
92
|
+
init_esm_shims();
|
|
93
|
+
|
|
94
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/endpoints/shared.js
|
|
95
|
+
init_esm_shims();
|
|
96
|
+
|
|
97
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/endpoints/TreeRuleObject.js
|
|
98
|
+
init_esm_shims();
|
|
99
|
+
|
|
100
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/eventStream.js
|
|
101
|
+
init_esm_shims();
|
|
102
|
+
|
|
103
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/extensions/index.js
|
|
104
|
+
init_esm_shims();
|
|
105
|
+
|
|
106
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/extensions/defaultClientConfiguration.js
|
|
107
|
+
init_esm_shims();
|
|
108
|
+
|
|
109
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/extensions/checksum.js
|
|
110
|
+
init_esm_shims();
|
|
111
|
+
var AlgorithmId;
|
|
112
|
+
(function(AlgorithmId2) {
|
|
113
|
+
AlgorithmId2["MD5"] = "md5";
|
|
114
|
+
AlgorithmId2["CRC32"] = "crc32";
|
|
115
|
+
AlgorithmId2["CRC32C"] = "crc32c";
|
|
116
|
+
AlgorithmId2["SHA1"] = "sha1";
|
|
117
|
+
AlgorithmId2["SHA256"] = "sha256";
|
|
118
|
+
})(AlgorithmId || (AlgorithmId = {}));
|
|
119
|
+
|
|
120
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/extensions/defaultExtensionConfiguration.js
|
|
121
|
+
init_esm_shims();
|
|
122
|
+
|
|
123
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/feature-ids.js
|
|
124
|
+
init_esm_shims();
|
|
125
|
+
|
|
126
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/http.js
|
|
127
|
+
init_esm_shims();
|
|
128
|
+
var FieldPosition;
|
|
129
|
+
(function(FieldPosition2) {
|
|
130
|
+
FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER";
|
|
131
|
+
FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER";
|
|
132
|
+
})(FieldPosition || (FieldPosition = {}));
|
|
133
|
+
|
|
134
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/http/httpHandlerInitialization.js
|
|
135
|
+
init_esm_shims();
|
|
136
|
+
|
|
137
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/identity/index.js
|
|
138
|
+
init_esm_shims();
|
|
139
|
+
|
|
140
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/identity/apiKeyIdentity.js
|
|
141
|
+
init_esm_shims();
|
|
142
|
+
|
|
143
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/identity/awsCredentialIdentity.js
|
|
144
|
+
init_esm_shims();
|
|
145
|
+
|
|
146
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/identity/identity.js
|
|
147
|
+
init_esm_shims();
|
|
148
|
+
|
|
149
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/identity/tokenIdentity.js
|
|
150
|
+
init_esm_shims();
|
|
151
|
+
|
|
152
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/logger.js
|
|
153
|
+
init_esm_shims();
|
|
154
|
+
|
|
155
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/pagination.js
|
|
156
|
+
init_esm_shims();
|
|
157
|
+
|
|
158
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/profile.js
|
|
159
|
+
init_esm_shims();
|
|
160
|
+
var IniSectionType;
|
|
161
|
+
(function(IniSectionType2) {
|
|
162
|
+
IniSectionType2["PROFILE"] = "profile";
|
|
163
|
+
IniSectionType2["SSO_SESSION"] = "sso-session";
|
|
164
|
+
IniSectionType2["SERVICES"] = "services";
|
|
165
|
+
})(IniSectionType || (IniSectionType = {}));
|
|
166
|
+
|
|
167
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/response.js
|
|
168
|
+
init_esm_shims();
|
|
169
|
+
|
|
170
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/retry.js
|
|
171
|
+
init_esm_shims();
|
|
172
|
+
|
|
173
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/schema/schema.js
|
|
174
|
+
init_esm_shims();
|
|
175
|
+
|
|
176
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/schema/sentinels.js
|
|
177
|
+
init_esm_shims();
|
|
178
|
+
|
|
179
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/serde.js
|
|
180
|
+
init_esm_shims();
|
|
181
|
+
|
|
182
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/shapes.js
|
|
183
|
+
init_esm_shims();
|
|
184
|
+
|
|
185
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/signature.js
|
|
186
|
+
init_esm_shims();
|
|
187
|
+
|
|
188
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/stream.js
|
|
189
|
+
init_esm_shims();
|
|
190
|
+
|
|
191
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-common-types.js
|
|
192
|
+
init_esm_shims();
|
|
193
|
+
|
|
194
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-input-types.js
|
|
195
|
+
init_esm_shims();
|
|
196
|
+
|
|
197
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-output-types.js
|
|
198
|
+
init_esm_shims();
|
|
199
|
+
|
|
200
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/transfer.js
|
|
201
|
+
init_esm_shims();
|
|
202
|
+
var RequestHandlerProtocol;
|
|
203
|
+
(function(RequestHandlerProtocol2) {
|
|
204
|
+
RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9";
|
|
205
|
+
RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0";
|
|
206
|
+
RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0";
|
|
207
|
+
})(RequestHandlerProtocol || (RequestHandlerProtocol = {}));
|
|
208
|
+
|
|
209
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/transform/client-payload-blob-type-narrow.js
|
|
210
|
+
init_esm_shims();
|
|
211
|
+
|
|
212
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/transform/mutable.js
|
|
213
|
+
init_esm_shims();
|
|
214
|
+
|
|
215
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/transform/no-undefined.js
|
|
216
|
+
init_esm_shims();
|
|
217
|
+
|
|
218
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/transform/type-transform.js
|
|
219
|
+
init_esm_shims();
|
|
220
|
+
|
|
221
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/uri.js
|
|
222
|
+
init_esm_shims();
|
|
223
|
+
|
|
224
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/util.js
|
|
225
|
+
init_esm_shims();
|
|
226
|
+
|
|
227
|
+
// ../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/waiter.js
|
|
228
|
+
init_esm_shims();
|
|
229
|
+
|
|
230
|
+
export { AlgorithmId, EndpointURLScheme, IniSectionType, SMITHY_CONTEXT_KEY };
|
|
231
|
+
//# sourceMappingURL=OH4A2VLX.js.map
|
|
232
|
+
//# sourceMappingURL=OH4A2VLX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/middleware.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/index.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/abort.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/auth/index.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/auth/auth.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/auth/HttpApiKeyAuth.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/auth/HttpAuthScheme.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/auth/HttpAuthSchemeProvider.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/auth/HttpSigner.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/auth/IdentityProviderConfig.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/blob/blob-payload-input-types.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/checksum.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/client.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/command.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/connection/index.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/connection/config.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/connection/manager.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/connection/pool.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/crypto.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/encode.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/endpoint.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/endpoints/index.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/endpoints/EndpointRuleObject.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/endpoints/ErrorRuleObject.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/endpoints/RuleSetObject.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/endpoints/shared.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/endpoints/TreeRuleObject.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/eventStream.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/extensions/index.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/extensions/defaultClientConfiguration.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/extensions/checksum.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/extensions/defaultExtensionConfiguration.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/feature-ids.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/http.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/http/httpHandlerInitialization.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/identity/index.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/identity/apiKeyIdentity.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/identity/awsCredentialIdentity.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/identity/identity.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/identity/tokenIdentity.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/logger.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/pagination.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/profile.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/response.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/retry.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/schema/schema.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/schema/sentinels.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/serde.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/shapes.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/signature.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/stream.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-common-types.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-input-types.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-output-types.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/transfer.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/transform/client-payload-blob-type-narrow.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/transform/mutable.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/transform/no-undefined.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/transform/type-transform.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/uri.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/util.js","../../../node_modules/.pnpm/@smithy+types@4.3.2/node_modules/@smithy/types/dist-es/waiter.js"],"names":["SMITHY_CONTEXT_KEY","HttpAuthLocation","HttpApiKeyAuthLocation","EndpointURLScheme","AlgorithmId","FieldPosition","IniSectionType","RequestHandlerProtocol"],"mappings":";;;AAAA,cAAA,EAAA;AAAO,IAAMA,kBAAAA,GAAqB;;;ACAlC,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;AAAO,IAAIC,gBAAAA;AACV,CAAA,SAAUA,iBAAAA,EAAgB;AACvBA,EAAAA,iBAAAA,CAAiB,QAAA,CAAA,GAAY,QAAA;AAC7BA,EAAAA,iBAAAA,CAAiB,OAAA,CAAA,GAAW,OAAA;AAChC,CAAA,EAAGA,gBAAAA,KAAqBA,gBAAAA,GAAmB,EAAC,CAAA,CAAA;;;ACJ5C,cAAA,EAAA;AAAO,IAAIC,sBAAAA;AACV,CAAA,SAAUA,uBAAAA,EAAsB;AAC7BA,EAAAA,uBAAAA,CAAuB,QAAA,CAAA,GAAY,QAAA;AACnCA,EAAAA,uBAAAA,CAAuB,OAAA,CAAA,GAAW,OAAA;AACtC,CAAA,EAAGA,sBAAAA,KAA2BA,sBAAAA,GAAyB,EAAC,CAAA,CAAA;;;ACJxD,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;AA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AA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;AAAO,IAAIC;AACV,CAAA,SAAUA,eAAAA,EAAc;AACrBA,EAAAA,eAAAA,CAAe,SAAA,CAAA,GAAa,SAAA;AAC5BA,EAAAA,eAAAA,CAAe,aAAA,CAAA,GAAiB,aAAA;AAChCA,EAAAA,eAAAA,CAAe,UAAA,CAAA,GAAc,UAAA;AACjC,CAAA,EAAGA,cAAAA,KAAmBA,cAAAA,GAAiB,EAAC,CAAA,CAAA;;;ACLxC,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;AAAO,IAAIC,sBAAAA;AACV,CAAA,SAAUA,uBAAAA,EAAsB;AAC7BA,EAAAA,uBAAAA,CAAuB,UAAA,CAAA,GAAc,UAAA;AACrCA,EAAAA,uBAAAA,CAAuB,UAAA,CAAA,GAAc,UAAA;AACrCA,EAAAA,uBAAAA,CAAuB,SAAA,CAAA,GAAa,SAAA;AACxC,CAAA,EAAGA,sBAAAA,KAA2BA,sBAAAA,GAAyB,EAAC,CAAA,CAAA;;;ACLxD,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA","file":"OH4A2VLX.js","sourcesContent":["export const SMITHY_CONTEXT_KEY = \"__smithy_context\";\n","export * from \"./abort\";\nexport * from \"./auth\";\nexport * from \"./blob/blob-payload-input-types\";\nexport * from \"./checksum\";\nexport * from \"./client\";\nexport * from \"./command\";\nexport * from \"./connection\";\nexport * from \"./crypto\";\nexport * from \"./encode\";\nexport * from \"./endpoint\";\nexport * from \"./endpoints\";\nexport * from \"./eventStream\";\nexport * from \"./extensions\";\nexport * from \"./feature-ids\";\nexport * from \"./http\";\nexport * from \"./http/httpHandlerInitialization\";\nexport * from \"./identity\";\nexport * from \"./logger\";\nexport * from \"./middleware\";\nexport * from \"./pagination\";\nexport * from \"./profile\";\nexport * from \"./response\";\nexport * from \"./retry\";\nexport * from \"./schema/schema\";\nexport * from \"./schema/sentinels\";\nexport * from \"./serde\";\nexport * from \"./shapes\";\nexport * from \"./signature\";\nexport * from \"./stream\";\nexport * from \"./streaming-payload/streaming-blob-common-types\";\nexport * from \"./streaming-payload/streaming-blob-payload-input-types\";\nexport * from \"./streaming-payload/streaming-blob-payload-output-types\";\nexport * from \"./transfer\";\nexport * from \"./transform/client-payload-blob-type-narrow\";\nexport * from \"./transform/mutable\";\nexport * from \"./transform/no-undefined\";\nexport * from \"./transform/type-transform\";\nexport * from \"./uri\";\nexport * from \"./util\";\nexport * from \"./waiter\";\n","export {};\n","export * from \"./auth\";\nexport * from \"./HttpApiKeyAuth\";\nexport * from \"./HttpAuthScheme\";\nexport * from \"./HttpAuthSchemeProvider\";\nexport * from \"./HttpSigner\";\nexport * from \"./IdentityProviderConfig\";\n","export var HttpAuthLocation;\n(function (HttpAuthLocation) {\n HttpAuthLocation[\"HEADER\"] = \"header\";\n HttpAuthLocation[\"QUERY\"] = \"query\";\n})(HttpAuthLocation || (HttpAuthLocation = {}));\n","export var HttpApiKeyAuthLocation;\n(function (HttpApiKeyAuthLocation) {\n HttpApiKeyAuthLocation[\"HEADER\"] = \"header\";\n HttpApiKeyAuthLocation[\"QUERY\"] = \"query\";\n})(HttpApiKeyAuthLocation || (HttpApiKeyAuthLocation = {}));\n","export {};\n","export {};\n","export {};\n","export {};\n","export {};\n","export {};\n","export {};\n","export {};\n","export * from \"./config\";\nexport * from \"./manager\";\nexport * from \"./pool\";\n","export {};\n","export {};\n","export {};\n","export {};\n","export {};\n","export var EndpointURLScheme;\n(function (EndpointURLScheme) {\n EndpointURLScheme[\"HTTP\"] = \"http\";\n EndpointURLScheme[\"HTTPS\"] = \"https\";\n})(EndpointURLScheme || (EndpointURLScheme = {}));\n","export * from \"./EndpointRuleObject\";\nexport * from \"./ErrorRuleObject\";\nexport * from \"./RuleSetObject\";\nexport * from \"./shared\";\nexport * from \"./TreeRuleObject\";\n","export {};\n","export {};\n","export {};\n","export {};\n","export {};\n","export {};\n","export * from \"./defaultClientConfiguration\";\nexport * from \"./defaultExtensionConfiguration\";\nexport { AlgorithmId } from \"./checksum\";\n","import { getChecksumConfiguration, resolveChecksumRuntimeConfig } from \"./checksum\";\nexport const getDefaultClientConfiguration = (runtimeConfig) => {\n return getChecksumConfiguration(runtimeConfig);\n};\nexport const resolveDefaultRuntimeConfig = (config) => {\n return resolveChecksumRuntimeConfig(config);\n};\n","export var AlgorithmId;\n(function (AlgorithmId) {\n AlgorithmId[\"MD5\"] = \"md5\";\n AlgorithmId[\"CRC32\"] = \"crc32\";\n AlgorithmId[\"CRC32C\"] = \"crc32c\";\n AlgorithmId[\"SHA1\"] = \"sha1\";\n AlgorithmId[\"SHA256\"] = \"sha256\";\n})(AlgorithmId || (AlgorithmId = {}));\nexport const getChecksumConfiguration = (runtimeConfig) => {\n const checksumAlgorithms = [];\n if (runtimeConfig.sha256 !== undefined) {\n checksumAlgorithms.push({\n algorithmId: () => AlgorithmId.SHA256,\n checksumConstructor: () => runtimeConfig.sha256,\n });\n }\n if (runtimeConfig.md5 != undefined) {\n checksumAlgorithms.push({\n algorithmId: () => AlgorithmId.MD5,\n checksumConstructor: () => runtimeConfig.md5,\n });\n }\n return {\n addChecksumAlgorithm(algo) {\n checksumAlgorithms.push(algo);\n },\n checksumAlgorithms() {\n return checksumAlgorithms;\n },\n };\n};\nexport const resolveChecksumRuntimeConfig = (clientConfig) => {\n const runtimeConfig = {};\n clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {\n runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();\n });\n return runtimeConfig;\n};\n","export {};\n","export {};\n","export var FieldPosition;\n(function (FieldPosition) {\n FieldPosition[FieldPosition[\"HEADER\"] = 0] = \"HEADER\";\n FieldPosition[FieldPosition[\"TRAILER\"] = 1] = \"TRAILER\";\n})(FieldPosition || (FieldPosition = {}));\n","export {};\n","export * from \"./apiKeyIdentity\";\nexport * from \"./awsCredentialIdentity\";\nexport * from \"./identity\";\nexport * from \"./tokenIdentity\";\n","export {};\n","export {};\n","export {};\n","export {};\n","export {};\n","export {};\n","export var IniSectionType;\n(function (IniSectionType) {\n IniSectionType[\"PROFILE\"] = \"profile\";\n IniSectionType[\"SSO_SESSION\"] = \"sso-session\";\n IniSectionType[\"SERVICES\"] = \"services\";\n})(IniSectionType || (IniSectionType = {}));\n","export {};\n","export {};\n","export {};\n","export {};\n","export {};\n","export {};\n","export {};\n","export {};\n","export {};\n","export {};\n","export {};\n","export var RequestHandlerProtocol;\n(function (RequestHandlerProtocol) {\n RequestHandlerProtocol[\"HTTP_0_9\"] = \"http/0.9\";\n RequestHandlerProtocol[\"HTTP_1_0\"] = \"http/1.0\";\n RequestHandlerProtocol[\"TDS_8_0\"] = \"tds/8.0\";\n})(RequestHandlerProtocol || (RequestHandlerProtocol = {}));\n","export {};\n","export {};\n","export {};\n","export {};\n","export {};\n","export {};\n","export {};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core/index.ts"],"names":["init_cjs_shims"],"mappings":";;;;;AAAAA,2BAAA,EAAA","file":"OOTZHKMN.cjs","sourcesContent":["// Export core functionality\nexport { findBestCompatibleCombination } from './compatibility';\nexport { executeToolCommand } from './tool-executor';\nexport { extractUserVersions, resolveToolVersion, resolveTypeVersions } from './version-resolver';\n"]}
|
package/dist/PDSRUQEX.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { init_esm_shims, __name } from './4RNWLMHM.js';
|
|
2
|
+
import { delay } from 'es-toolkit';
|
|
3
|
+
import { rmSync } from 'node:fs';
|
|
4
|
+
import { mkdir, open, constants } from 'node:fs/promises';
|
|
5
|
+
import { homedir } from 'node:os';
|
|
6
|
+
import { join } from 'node:path';
|
|
7
|
+
|
|
8
|
+
// src/core/lock.ts
|
|
9
|
+
init_esm_shims();
|
|
10
|
+
var directory = join(homedir(), ".cache/vm-tooling/locks");
|
|
11
|
+
var defaultOptions = {
|
|
12
|
+
interval: 1e3,
|
|
13
|
+
timeout: 3e5
|
|
14
|
+
};
|
|
15
|
+
var signals = [
|
|
16
|
+
"SIGINT",
|
|
17
|
+
"SIGTERM",
|
|
18
|
+
"SIGHUP"
|
|
19
|
+
];
|
|
20
|
+
var buildLockFilePath = /* @__PURE__ */ __name((key) => join(directory, key), "buildLockFilePath");
|
|
21
|
+
var lock = /* @__PURE__ */ __name(async (key, run, options = {}) => {
|
|
22
|
+
const { interval, timeout } = {
|
|
23
|
+
...defaultOptions,
|
|
24
|
+
...options
|
|
25
|
+
};
|
|
26
|
+
const path = buildLockFilePath(key);
|
|
27
|
+
const packageName = process.env.npm_package_name;
|
|
28
|
+
const info = [
|
|
29
|
+
...packageName ? [
|
|
30
|
+
"for",
|
|
31
|
+
packageName
|
|
32
|
+
] : [],
|
|
33
|
+
"at",
|
|
34
|
+
path
|
|
35
|
+
].join(" ");
|
|
36
|
+
const time = Date.now();
|
|
37
|
+
const unlock = /* @__PURE__ */ __name(() => rmSync(path, {
|
|
38
|
+
force: true
|
|
39
|
+
}), "unlock");
|
|
40
|
+
while (true) {
|
|
41
|
+
let lockError;
|
|
42
|
+
try {
|
|
43
|
+
await mkdir(directory, {
|
|
44
|
+
recursive: true
|
|
45
|
+
});
|
|
46
|
+
await open(path, constants.O_CREAT | constants.O_EXCL);
|
|
47
|
+
break;
|
|
48
|
+
} catch (error) {
|
|
49
|
+
lockError = error;
|
|
50
|
+
}
|
|
51
|
+
if (Date.now() - time > timeout) {
|
|
52
|
+
unlock();
|
|
53
|
+
throw new Error(`Timeout waiting for lock file ${info}: ${lockError.message}`);
|
|
54
|
+
}
|
|
55
|
+
await delay(interval);
|
|
56
|
+
}
|
|
57
|
+
for (const signal of signals) {
|
|
58
|
+
process.addListener(signal, unlock);
|
|
59
|
+
}
|
|
60
|
+
console.log(`Acquired lock ${info}`);
|
|
61
|
+
try {
|
|
62
|
+
return await run();
|
|
63
|
+
} finally {
|
|
64
|
+
for (const signal of signals) {
|
|
65
|
+
process.removeListener(signal, unlock);
|
|
66
|
+
}
|
|
67
|
+
unlock();
|
|
68
|
+
console.log(`Released lock ${info}`);
|
|
69
|
+
}
|
|
70
|
+
}, "lock");
|
|
71
|
+
var lockMany = /* @__PURE__ */ __name(async (keys, run) => (
|
|
72
|
+
// Sort keys to avoid deadlocks.
|
|
73
|
+
keys.sort().reduce((run2, key) => () => lock(key, run2), run)()
|
|
74
|
+
), "lockMany");
|
|
75
|
+
|
|
76
|
+
export { buildLockFilePath, lock, lockMany };
|
|
77
|
+
//# sourceMappingURL=PDSRUQEX.js.map
|
|
78
|
+
//# sourceMappingURL=PDSRUQEX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core/lock.ts"],"names":["directory","join","homedir","defaultOptions","interval","timeout","signals","buildLockFilePath","key","lock","run","options","path","packageName","process","env","npm_package_name","info","time","Date","now","unlock","rmSync","force","lockError","mkdir","recursive","open","constants","O_CREAT","O_EXCL","error","Error","message","delay","signal","addListener","console","log","removeListener","lockMany","keys","sort","reduce"],"mappings":";;;;;;;;AAAA,cAAA,EAAA;AAWA,IAAMA,SAAAA,GAAYC,IAAAA,CAAKC,OAAAA,EAAAA,EAAW,yBAAA,CAAA;AAClC,IAAMC,cAAAA,GAAiB;EAAEC,QAAAA,EAAU,GAAA;EAAMC,OAAAA,EAAS;AAAQ,CAAA;AAC1D,IAAMC,OAAAA,GAAU;AAAC,EAAA,QAAA;AAAU,EAAA,SAAA;AAAW,EAAA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,GAAOb,OAAAA,EAAS;AAI7BgB,MAAAA,MAAAA,EAAAA;AACA,MAAA,MAAM,IAAIW,KAAAA,CAAM,CAAA,8BAAA,EAAiCf,IAAAA,CAAAA,EAAAA,EAASO,SAAAA,CAAUS,OAAO,CAAA,CAAE,CAAA;AACjF,IAAA;AAEA,IAAA,MAAMC,MAAM9B,QAAAA,CAAAA;AAChB,EAAA;AAEA,EAAA,KAAA,MAAW+B,UAAU7B,OAAAA,EAAS;AAC1BQ,IAAAA,OAAAA,CAAQsB,WAAAA,CAAYD,QAAQd,MAAAA,CAAAA;AAChC,EAAA;AAEAgB,EAAAA,OAAAA,CAAQC,GAAAA,CAAI,CAAA,cAAA,EAAiBrB,IAAAA,CAAAA,CAAM,CAAA;AAEnC,EAAA,IAAI;AACA,IAAA,OAAO,MAAMP,GAAAA,EAAAA;EACjB,CAAA,SAAA;AACI,IAAA,KAAA,MAAWyB,UAAU7B,OAAAA,EAAS;AAC1BQ,MAAAA,OAAAA,CAAQyB,cAAAA,CAAeJ,QAAQd,MAAAA,CAAAA;AACnC,IAAA;AAEAA,IAAAA,MAAAA,EAAAA;AAEAgB,IAAAA,OAAAA,CAAQC,GAAAA,CAAI,CAAA,cAAA,EAAiBrB,IAAAA,CAAAA,CAAM,CAAA;AACvC,EAAA;AACJ,CAAA,EAlDoB,MAAA;AAoDb,IAAMuB,QAAAA,iCAAqBC,IAAAA,EAAgB/B,GAAAA;;AAE9C+B,EAAAA,IAAAA,CAAKC,IAAAA,EAAI,CAAGC,MAAAA,CAAO,CAACjC,IAAAA,EAAKF,GAAAA,KAAQ,MAAMC,IAAAA,CAAKD,GAAAA,EAAKE,IAAAA,CAAAA,EAAMA,GAAAA,CAAAA;AAFnC,CAAA,EAAA,UAAA","file":"PDSRUQEX.js","sourcesContent":["import { delay } from 'es-toolkit';\nimport { rmSync } from 'node:fs';\nimport { constants, mkdir, open } from 'node:fs/promises';\nimport { homedir } from 'node:os';\nimport { join } from 'node:path';\n\ninterface LockOptions {\n interval?: number;\n timeout?: number;\n}\n\nconst directory = join(homedir(), '.cache/vm-tooling/locks');\nconst defaultOptions = { interval: 1000, timeout: 300_000 };\nconst signals = ['SIGINT', 'SIGTERM', 'SIGHUP'] as const;\n\nexport const buildLockFilePath = (key: string): string => join(directory, key);\n\nexport const lock = async <T>(key: string, run: () => Promise<T>, options: LockOptions = {}) => {\n const { interval, timeout } = { ...defaultOptions, ...options };\n\n const path = buildLockFilePath(key);\n // eslint-disable-next-line turbo/no-undeclared-env-vars\n const packageName = process.env.npm_package_name;\n const info = [...(packageName ? ['for', packageName] : []), 'at', path].join(' ');\n\n const time = Date.now();\n const unlock = () => rmSync(path, { force: true });\n\n while (true) {\n let lockError;\n\n try {\n await mkdir(directory, { recursive: true });\n await open(path, constants.O_CREAT | constants.O_EXCL);\n break;\n } catch (error: unknown) {\n lockError = error as Error;\n }\n\n if (Date.now() - time > timeout) {\n // If the timeout is reached, we assume that the previous run is\n // in a bad state and recover automatically by removing the lock file\n // even when it is actually running still.\n unlock();\n throw new Error(`Timeout waiting for lock file ${info}: ${lockError.message}`);\n }\n\n await delay(interval);\n }\n\n for (const signal of signals) {\n process.addListener(signal, unlock);\n }\n\n console.log(`Acquired lock ${info}`);\n\n try {\n return await run();\n } finally {\n for (const signal of signals) {\n process.removeListener(signal, unlock);\n }\n\n unlock();\n\n console.log(`Released lock ${info}`);\n }\n};\n\nexport const lockMany = async <T>(keys: string[], run: () => Promise<T>): Promise<T> =>\n // Sort keys to avoid deadlocks.\n keys.sort().reduce((run, key) => () => lock(key, run), run)();\n"]}
|
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./
|
|
5
|
-
|
|
6
|
-
require('./
|
|
7
|
-
|
|
8
|
-
var
|
|
3
|
+
var HHS2B7YE_cjs = require('./HHS2B7YE.cjs');
|
|
4
|
+
var VVTDADG7_cjs = require('./VVTDADG7.cjs');
|
|
5
|
+
require('./DPDVRYLI.cjs');
|
|
6
|
+
var BXO3RC75_cjs = require('./BXO3RC75.cjs');
|
|
7
|
+
require('./NEQ3DTUV.cjs');
|
|
8
|
+
var VO65XOWD_cjs = require('./VO65XOWD.cjs');
|
|
9
9
|
var fs = require('fs/promises');
|
|
10
10
|
|
|
11
11
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
|
|
13
13
|
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
14
14
|
|
|
15
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.879.0/node_modules/@aws-sdk/credential-provider-http/dist-es/index.js
|
|
16
|
+
VO65XOWD_cjs.init_cjs_shims();
|
|
17
|
+
|
|
18
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.879.0/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
19
|
+
VO65XOWD_cjs.init_cjs_shims();
|
|
20
|
+
|
|
15
21
|
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.879.0/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js
|
|
22
|
+
VO65XOWD_cjs.init_cjs_shims();
|
|
16
23
|
var ECS_CONTAINER_HOST = "169.254.170.2";
|
|
17
24
|
var EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
|
|
18
25
|
var EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
|
|
19
|
-
var checkUrl = /* @__PURE__ */
|
|
26
|
+
var checkUrl = /* @__PURE__ */ VO65XOWD_cjs.__name((url, logger) => {
|
|
20
27
|
if (url.protocol === "https:") {
|
|
21
28
|
return;
|
|
22
29
|
}
|
|
@@ -32,7 +39,7 @@ var checkUrl = /* @__PURE__ */ NX4KBEWA_cjs.__name((url, logger) => {
|
|
|
32
39
|
return;
|
|
33
40
|
}
|
|
34
41
|
const ipComponents = url.hostname.split(".");
|
|
35
|
-
const inRange = /* @__PURE__ */
|
|
42
|
+
const inRange = /* @__PURE__ */ VO65XOWD_cjs.__name((component) => {
|
|
36
43
|
const num = parseInt(component, 10);
|
|
37
44
|
return 0 <= num && num <= 255;
|
|
38
45
|
}, "inRange");
|
|
@@ -40,7 +47,7 @@ var checkUrl = /* @__PURE__ */ NX4KBEWA_cjs.__name((url, logger) => {
|
|
|
40
47
|
return;
|
|
41
48
|
}
|
|
42
49
|
}
|
|
43
|
-
throw new
|
|
50
|
+
throw new BXO3RC75_cjs.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
44
51
|
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
45
52
|
- ECS container host 169.254.170.2
|
|
46
53
|
- EKS container host 169.254.170.23 or [fd00:ec2::23]`, {
|
|
@@ -49,8 +56,9 @@ var checkUrl = /* @__PURE__ */ NX4KBEWA_cjs.__name((url, logger) => {
|
|
|
49
56
|
}, "checkUrl");
|
|
50
57
|
|
|
51
58
|
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.879.0/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js
|
|
59
|
+
VO65XOWD_cjs.init_cjs_shims();
|
|
52
60
|
function createGetRequest(url) {
|
|
53
|
-
return new
|
|
61
|
+
return new HHS2B7YE_cjs.HttpRequest({
|
|
54
62
|
protocol: url.protocol,
|
|
55
63
|
hostname: url.hostname,
|
|
56
64
|
port: Number(url.port),
|
|
@@ -62,14 +70,14 @@ function createGetRequest(url) {
|
|
|
62
70
|
fragment: url.hash
|
|
63
71
|
});
|
|
64
72
|
}
|
|
65
|
-
|
|
73
|
+
VO65XOWD_cjs.__name(createGetRequest, "createGetRequest");
|
|
66
74
|
async function getCredentials(response, logger) {
|
|
67
|
-
const stream =
|
|
75
|
+
const stream = HHS2B7YE_cjs.sdkStreamMixin(response.body);
|
|
68
76
|
const str = await stream.transformToString();
|
|
69
77
|
if (response.statusCode === 200) {
|
|
70
78
|
const parsed = JSON.parse(str);
|
|
71
79
|
if (typeof parsed.AccessKeyId !== "string" || typeof parsed.SecretAccessKey !== "string" || typeof parsed.Token !== "string" || typeof parsed.Expiration !== "string") {
|
|
72
|
-
throw new
|
|
80
|
+
throw new BXO3RC75_cjs.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", {
|
|
73
81
|
logger
|
|
74
82
|
});
|
|
75
83
|
}
|
|
@@ -77,7 +85,7 @@ async function getCredentials(response, logger) {
|
|
|
77
85
|
accessKeyId: parsed.AccessKeyId,
|
|
78
86
|
secretAccessKey: parsed.SecretAccessKey,
|
|
79
87
|
sessionToken: parsed.Token,
|
|
80
|
-
expiration:
|
|
88
|
+
expiration: HHS2B7YE_cjs.parseRfc3339DateTime(parsed.Expiration)
|
|
81
89
|
};
|
|
82
90
|
}
|
|
83
91
|
if (response.statusCode >= 400 && response.statusCode < 500) {
|
|
@@ -86,21 +94,22 @@ async function getCredentials(response, logger) {
|
|
|
86
94
|
parsedBody = JSON.parse(str);
|
|
87
95
|
} catch (e) {
|
|
88
96
|
}
|
|
89
|
-
throw Object.assign(new
|
|
97
|
+
throw Object.assign(new BXO3RC75_cjs.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, {
|
|
90
98
|
logger
|
|
91
99
|
}), {
|
|
92
100
|
Code: parsedBody.Code,
|
|
93
101
|
Message: parsedBody.Message
|
|
94
102
|
});
|
|
95
103
|
}
|
|
96
|
-
throw new
|
|
104
|
+
throw new BXO3RC75_cjs.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, {
|
|
97
105
|
logger
|
|
98
106
|
});
|
|
99
107
|
}
|
|
100
|
-
|
|
108
|
+
VO65XOWD_cjs.__name(getCredentials, "getCredentials");
|
|
101
109
|
|
|
102
110
|
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.879.0/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js
|
|
103
|
-
|
|
111
|
+
VO65XOWD_cjs.init_cjs_shims();
|
|
112
|
+
var retryWrapper = /* @__PURE__ */ VO65XOWD_cjs.__name((toRetry, maxRetries, delayMs) => {
|
|
104
113
|
return async () => {
|
|
105
114
|
for (let i = 0; i < maxRetries; ++i) {
|
|
106
115
|
try {
|
|
@@ -119,7 +128,7 @@ var DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2";
|
|
|
119
128
|
var AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
|
|
120
129
|
var AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE";
|
|
121
130
|
var AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
|
|
122
|
-
var fromHttp = /* @__PURE__ */
|
|
131
|
+
var fromHttp = /* @__PURE__ */ VO65XOWD_cjs.__name((options = {}) => {
|
|
123
132
|
options.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");
|
|
124
133
|
let host;
|
|
125
134
|
const relative = options.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];
|
|
@@ -140,14 +149,14 @@ var fromHttp = /* @__PURE__ */ NX4KBEWA_cjs.__name((options = {}) => {
|
|
|
140
149
|
} else if (relative) {
|
|
141
150
|
host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;
|
|
142
151
|
} else {
|
|
143
|
-
throw new
|
|
152
|
+
throw new BXO3RC75_cjs.CredentialsProviderError(`No HTTP credential provider host provided.
|
|
144
153
|
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, {
|
|
145
154
|
logger: options.logger
|
|
146
155
|
});
|
|
147
156
|
}
|
|
148
157
|
const url = new URL(host);
|
|
149
158
|
checkUrl(url, options.logger);
|
|
150
|
-
const requestHandler = new
|
|
159
|
+
const requestHandler = new HHS2B7YE_cjs.NodeHttpHandler({
|
|
151
160
|
requestTimeout: options.timeout ?? 1e3,
|
|
152
161
|
connectionTimeout: options.timeout ?? 1e3
|
|
153
162
|
});
|
|
@@ -160,9 +169,9 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
|
|
160
169
|
}
|
|
161
170
|
try {
|
|
162
171
|
const result = await requestHandler.handle(request);
|
|
163
|
-
return getCredentials(result.response).then((creds) =>
|
|
172
|
+
return getCredentials(result.response).then((creds) => VVTDADG7_cjs.setCredentialFeature(creds, "CREDENTIALS_HTTP", "z"));
|
|
164
173
|
} catch (e) {
|
|
165
|
-
throw new
|
|
174
|
+
throw new BXO3RC75_cjs.CredentialsProviderError(String(e), {
|
|
166
175
|
logger: options.logger
|
|
167
176
|
});
|
|
168
177
|
}
|
|
@@ -170,5 +179,5 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
|
|
170
179
|
}, "fromHttp");
|
|
171
180
|
|
|
172
181
|
exports.fromHttp = fromHttp;
|
|
173
|
-
//# sourceMappingURL=
|
|
174
|
-
//# sourceMappingURL=
|
|
182
|
+
//# sourceMappingURL=PYQO5EUZ.cjs.map
|
|
183
|
+
//# sourceMappingURL=PYQO5EUZ.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.879.0/node_modules/@aws-sdk/credential-provider-http/dist-es/index.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.879.0/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.879.0/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.879.0/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js","../../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.879.0/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js"],"names":["init_cjs_shims","ECS_CONTAINER_HOST","EKS_CONTAINER_HOST_IPv4","EKS_CONTAINER_HOST_IPv6","checkUrl","__name","url","logger","protocol","hostname","includes","ipComponents","split","inRange","component","num","parseInt","length","CredentialsProviderError","createGetRequest","HttpRequest","port","Number","path","pathname","query","Array","from","searchParams","entries","reduce","acc","k","v","fragment","hash","getCredentials","response","stream","sdkStreamMixin","body","str","transformToString","statusCode","parsed","JSON","parse","AccessKeyId","SecretAccessKey","Token","Expiration","accessKeyId","secretAccessKey","sessionToken","expiration","parseRfc3339DateTime","parsedBody","e","Object","assign","Code","Message","retryWrapper","toRetry","maxRetries","delayMs","i","Promise","resolve","setTimeout","AWS_CONTAINER_CREDENTIALS_RELATIVE_URI","DEFAULT_LINK_LOCAL_HOST","AWS_CONTAINER_CREDENTIALS_FULL_URI","AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE","AWS_CONTAINER_AUTHORIZATION_TOKEN","fromHttp","options","debug","host","relative","awsContainerCredentialsRelativeUri","process","env","full","awsContainerCredentialsFullUri","token","awsContainerAuthorizationToken","tokenFile","awsContainerAuthorizationTokenFile","warn","name","console","URL","requestHandler","NodeHttpHandler","requestTimeout","timeout","connectionTimeout","request","headers","Authorization","fs","readFile","toString","result","handle","then","creds","setCredentialFeature","String"],"mappings":";;;;;;;;;;;;;;;AAAAA,2BAAA,EAAA;;;ACAAA,2BAAA,EAAA;;;ACAAA,2BAAA,EAAA;AAGA,IAAMC,kBAAAA,GAAqB,eAAA;AAC3B,IAAMC,uBAAAA,GAA0B,gBAAA;AAChC,IAAMC,uBAAAA,GAA0B,gBAAA;AACzB,IAAMC,QAAAA,mBAAWC,mBAAA,CAAA,CAACC,GAAAA,EAAKC,MAAAA,KAAAA;AAC1B,EAAA,IAAID,GAAAA,CAAIE,aAAa,QAAA,EAAU;AAC3B,IAAA;AACJ,EA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AAW;AAChBW,MAAAA,OAAAA,CAAQC,QAAQC,aAAAA,GAAAA,CAAiB,MAAMC,oBAAGC,QAAAA,CAASf,SAAAA,GAAYgB,QAAAA,EAAQ;AAC3E,IAAA;AACA,IAAA,IAAI;AACA,MAAA,MAAMC,MAAAA,GAAS,MAAMX,cAAAA,CAAeY,MAAAA,CAAOP,OAAAA,CAAAA;AAC3C,MAAA,OAAO9D,cAAAA,CAAeoE,MAAAA,CAAOnE,QAAQ,CAAA,CAAEqE,IAAAA,CAAK,CAACC,KAAAA,KAAUC,iCAAAA,CAAqBD,KAAAA,EAAO,kBAAA,EAAoB,GAAA,CAAA,CAAA;AAC3G,IAAA,CAAA,CAAA,OACOlD,CAAAA,EAAG;AACN,MAAA,MAAM,IAAIvC,qCAAAA,CAAyB2F,MAAAA,CAAOpD,CAAAA,CAAAA,EAAI;AAAElD,QAAAA,MAAAA,EAAQqE,OAAAA,CAAQrE;OAAO,CAAA;AAC3E,IAAA;AACJ,EAAA,CAAA,EAAGqE,OAAAA,CAAQZ,UAAAA,IAAc,CAAA,EAAGY,OAAAA,CAAQoB,WAAW,GAAA,CAAA;AACnD,CAAA,EAlDwB,UAAA","file":"PYQO5EUZ.cjs","sourcesContent":["export { fromHttp } from \"./fromHttp/fromHttp\";\n","import { setCredentialFeature } from \"@aws-sdk/core/client\";\nimport { NodeHttpHandler } from \"@smithy/node-http-handler\";\nimport { CredentialsProviderError } from \"@smithy/property-provider\";\nimport fs from \"fs/promises\";\nimport { checkUrl } from \"./checkUrl\";\nimport { createGetRequest, getCredentials } from \"./requestHelpers\";\nimport { retryWrapper } from \"./retry-wrapper\";\nconst AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = \"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI\";\nconst DEFAULT_LINK_LOCAL_HOST = \"http://169.254.170.2\";\nconst AWS_CONTAINER_CREDENTIALS_FULL_URI = \"AWS_CONTAINER_CREDENTIALS_FULL_URI\";\nconst AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = \"AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE\";\nconst AWS_CONTAINER_AUTHORIZATION_TOKEN = \"AWS_CONTAINER_AUTHORIZATION_TOKEN\";\nexport const fromHttp = (options = {}) => {\n options.logger?.debug(\"@aws-sdk/credential-provider-http - fromHttp\");\n let host;\n const relative = options.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];\n const full = options.awsContainerCredentialsFullUri ?? process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI];\n const token = options.awsContainerAuthorizationToken ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN];\n const tokenFile = options.awsContainerAuthorizationTokenFile ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE];\n const warn = options.logger?.constructor?.name === \"NoOpLogger\" || !options.logger ? console.warn : options.logger.warn;\n if (relative && full) {\n warn(\"@aws-sdk/credential-provider-http: \" +\n \"you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.\");\n warn(\"awsContainerCredentialsFullUri will take precedence.\");\n }\n if (token && tokenFile) {\n warn(\"@aws-sdk/credential-provider-http: \" +\n \"you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.\");\n warn(\"awsContainerAuthorizationToken will take precedence.\");\n }\n if (full) {\n host = full;\n }\n else if (relative) {\n host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;\n }\n else {\n throw new CredentialsProviderError(`No HTTP credential provider host provided.\nSet AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options.logger });\n }\n const url = new URL(host);\n checkUrl(url, options.logger);\n const requestHandler = new NodeHttpHandler({\n requestTimeout: options.timeout ?? 1000,\n connectionTimeout: options.timeout ?? 1000,\n });\n return retryWrapper(async () => {\n const request = createGetRequest(url);\n if (token) {\n request.headers.Authorization = token;\n }\n else if (tokenFile) {\n request.headers.Authorization = (await fs.readFile(tokenFile)).toString();\n }\n try {\n const result = await requestHandler.handle(request);\n return getCredentials(result.response).then((creds) => setCredentialFeature(creds, \"CREDENTIALS_HTTP\", \"z\"));\n }\n catch (e) {\n throw new CredentialsProviderError(String(e), { logger: options.logger });\n }\n }, options.maxRetries ?? 3, options.timeout ?? 1000);\n};\n","import { CredentialsProviderError } from \"@smithy/property-provider\";\nconst LOOPBACK_CIDR_IPv4 = \"127.0.0.0/8\";\nconst LOOPBACK_CIDR_IPv6 = \"::1/128\";\nconst ECS_CONTAINER_HOST = \"169.254.170.2\";\nconst EKS_CONTAINER_HOST_IPv4 = \"169.254.170.23\";\nconst EKS_CONTAINER_HOST_IPv6 = \"[fd00:ec2::23]\";\nexport const checkUrl = (url, logger) => {\n if (url.protocol === \"https:\") {\n return;\n }\n if (url.hostname === ECS_CONTAINER_HOST ||\n url.hostname === EKS_CONTAINER_HOST_IPv4 ||\n url.hostname === EKS_CONTAINER_HOST_IPv6) {\n return;\n }\n if (url.hostname.includes(\"[\")) {\n if (url.hostname === \"[::1]\" || url.hostname === \"[0000:0000:0000:0000:0000:0000:0000:0001]\") {\n return;\n }\n }\n else {\n if (url.hostname === \"localhost\") {\n return;\n }\n const ipComponents = url.hostname.split(\".\");\n const inRange = (component) => {\n const num = parseInt(component, 10);\n return 0 <= num && num <= 255;\n };\n if (ipComponents[0] === \"127\" &&\n inRange(ipComponents[1]) &&\n inRange(ipComponents[2]) &&\n inRange(ipComponents[3]) &&\n ipComponents.length === 4) {\n return;\n }\n }\n throw new CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:\n - loopback CIDR 127.0.0.0/8 or [::1/128]\n - ECS container host 169.254.170.2\n - EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger });\n};\n","import { CredentialsProviderError } from \"@smithy/property-provider\";\nimport { HttpRequest } from \"@smithy/protocol-http\";\nimport { parseRfc3339DateTime } from \"@smithy/smithy-client\";\nimport { sdkStreamMixin } from \"@smithy/util-stream\";\nexport function createGetRequest(url) {\n return new HttpRequest({\n protocol: url.protocol,\n hostname: url.hostname,\n port: Number(url.port),\n path: url.pathname,\n query: Array.from(url.searchParams.entries()).reduce((acc, [k, v]) => {\n acc[k] = v;\n return acc;\n }, {}),\n fragment: url.hash,\n });\n}\nexport async function getCredentials(response, logger) {\n const stream = sdkStreamMixin(response.body);\n const str = await stream.transformToString();\n if (response.statusCode === 200) {\n const parsed = JSON.parse(str);\n if (typeof parsed.AccessKeyId !== \"string\" ||\n typeof parsed.SecretAccessKey !== \"string\" ||\n typeof parsed.Token !== \"string\" ||\n typeof parsed.Expiration !== \"string\") {\n throw new CredentialsProviderError(\"HTTP credential provider response not of the required format, an object matching: \" +\n \"{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }\", { logger });\n }\n return {\n accessKeyId: parsed.AccessKeyId,\n secretAccessKey: parsed.SecretAccessKey,\n sessionToken: parsed.Token,\n expiration: parseRfc3339DateTime(parsed.Expiration),\n };\n }\n if (response.statusCode >= 400 && response.statusCode < 500) {\n let parsedBody = {};\n try {\n parsedBody = JSON.parse(str);\n }\n catch (e) { }\n throw Object.assign(new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), {\n Code: parsedBody.Code,\n Message: parsedBody.Message,\n });\n }\n throw new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });\n}\n","export const retryWrapper = (toRetry, maxRetries, delayMs) => {\n return async () => {\n for (let i = 0; i < maxRetries; ++i) {\n try {\n return await toRetry();\n }\n catch (e) {\n await new Promise((resolve) => setTimeout(resolve, delayMs));\n }\n }\n return await toRetry();\n };\n};\n"]}
|