@storm-software/config-tools 1.138.2 → 1.138.3
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/README.md +1 -1
- package/dist/{acorn-BKIQKJ4F.js → acorn-L4DOC4MD.cjs} +104 -104
- package/dist/{acorn-646RJR5S.mjs → acorn-W3WKDYQS.js} +1 -1
- package/dist/{angular-IJH6AEQ2.js → angular-KZBUGLAB.cjs} +158 -158
- package/dist/{angular-BK32YZBC.mjs → angular-QCZRQONA.js} +1 -1
- package/dist/{babel-MD4YJE3Y.js → babel-2YQL7BNO.cjs} +192 -192
- package/dist/{babel-FTNSNFRG.mjs → babel-66ARC5Z7.js} +1 -1
- package/dist/chunk-2AAM5DJO.cjs +70 -0
- package/dist/{chunk-D7EEDW3J.mjs → chunk-2CJNMJST.js} +1 -1
- package/dist/{chunk-SNQO46A7.mjs → chunk-2NUTLYUV.js} +1 -1
- package/dist/{chunk-RN6XO6AG.mjs → chunk-2VY6OHKB.js} +2 -2
- package/dist/{chunk-N34NGVL6.js → chunk-3ALZEFKM.cjs} +76 -75
- package/dist/{chunk-TELFFQLC.mjs → chunk-3ONY7NB3.js} +9 -9
- package/dist/chunk-3W5JECK3.cjs +6 -0
- package/dist/{chunk-CMYWKSBB.mjs → chunk-46O7IOH6.js} +1 -1
- package/dist/{chunk-GVQZFZ6E.js → chunk-4AYNBMPP.cjs} +3 -3
- package/dist/{chunk-L5GOANHL.mjs → chunk-4OURELB7.js} +1 -1
- package/dist/{chunk-DANGEXD7.js → chunk-56YHC4NM.cjs} +6 -6
- package/dist/chunk-5C56XWG7.cjs +50 -0
- package/dist/{chunk-5QGWRJPB.mjs → chunk-5EL2OHUB.js} +1 -1
- package/dist/{chunk-QP46I4IQ.js → chunk-6E5A2ZAH.cjs} +44 -44
- package/dist/{chunk-RRSNGPTK.js → chunk-6KJOU57T.cjs} +388 -388
- package/dist/{chunk-FMJGAM5D.js → chunk-6O7E2ODJ.cjs} +4 -4
- package/dist/chunk-6X6TZM2G.cjs +51 -0
- package/dist/{chunk-CALEYND5.mjs → chunk-BDW32BZK.js} +3 -3
- package/dist/{chunk-5Z3NLDDE.mjs → chunk-BVYQ2BKK.js} +2 -2
- package/dist/{chunk-R4TY5O2X.mjs → chunk-C47MHGNY.js} +1 -1
- package/dist/{chunk-3FDEYZAK.js → chunk-DBERGKMJ.cjs} +32 -32
- package/dist/{chunk-2VOSOR3T.mjs → chunk-E6R4LOUF.js} +4 -4
- package/dist/{chunk-UFIZSM4F.js → chunk-EG6MZ74D.cjs} +27 -27
- package/dist/{chunk-P4J2TNZ7.mjs → chunk-EGAP6KEW.js} +3 -3
- package/dist/{chunk-WVJHCVAR.js → chunk-FBGCL5ZA.cjs} +3 -3
- package/dist/chunk-G5KDHCJJ.cjs +28 -0
- package/dist/{chunk-SZUBX3MF.js → chunk-GNNKAT6C.cjs} +10 -10
- package/dist/{chunk-7IQFOM5E.js → chunk-GTJILL6U.cjs} +23 -23
- package/dist/{chunk-GWRO5VMM.js → chunk-GWLF37RE.cjs} +3 -3
- package/dist/{chunk-OW5ANXN5.mjs → chunk-GYCLBSTB.js} +3 -2
- package/dist/{chunk-Q5A4EAHJ.mjs → chunk-HBVGMJMF.js} +1 -1
- package/dist/{chunk-YZQZ4M2I.mjs → chunk-HKXAGPSU.js} +2 -2
- package/dist/{chunk-HHCEURYJ.mjs → chunk-JMTLS4UN.js} +1 -1
- package/dist/{chunk-O3Q5GFR2.js → chunk-JPL6SA45.cjs} +4 -4
- package/dist/{chunk-UMD3QNEF.js → chunk-KRV5ZLBN.cjs} +40 -40
- package/dist/{chunk-J3YI5D2E.mjs → chunk-KZ2WZ3XN.js} +7 -7
- package/dist/{chunk-GGBZLABE.mjs → chunk-LQFUWYSF.js} +2 -2
- package/dist/{chunk-IUNS4YZO.js → chunk-MUKNCWDC.cjs} +8 -8
- package/dist/{chunk-D6HJ3XEE.mjs → chunk-N3ELM5YV.js} +3 -3
- package/dist/{chunk-4NFOBMSM.mjs → chunk-NLLVE3DA.js} +3 -3
- package/dist/{chunk-OL53L7AE.mjs → chunk-NO5ZHAIA.js} +2 -2
- package/dist/{chunk-NZRYCDJ5.js → chunk-NXXPCLO3.cjs} +2741 -2741
- package/dist/{chunk-X3LZL2FA.js → chunk-O4SGVAEB.cjs} +2 -2
- package/dist/{chunk-E25ESST2.mjs → chunk-OL4KMEX5.js} +2 -2
- package/dist/{chunk-EMP3EUPT.mjs → chunk-PEPDFP2O.js} +1 -1
- package/dist/{chunk-G6TE7BPR.js → chunk-PKJKHCLN.cjs} +11 -11
- package/dist/chunk-QHDHDNID.cjs +6 -0
- package/dist/{chunk-LAHKY3SQ.js → chunk-QQSU3QR2.cjs} +27 -27
- package/dist/{chunk-PDBEDRIM.mjs → chunk-RFXZQQFC.js} +4 -4
- package/dist/chunk-SKMG52TD.cjs +6 -0
- package/dist/{chunk-NJBMJX5P.mjs → chunk-SPZ2RSU7.js} +11 -11
- package/dist/{chunk-JTLTCOIF.mjs → chunk-TRG5FOW5.js} +1 -1
- package/dist/{chunk-N3H7WTUT.mjs → chunk-TVUMXFOR.js} +1 -1
- package/dist/{chunk-A2B7JKBP.js → chunk-UIA5EFWJ.cjs} +163 -163
- package/dist/{chunk-35WYVRRU.js → chunk-VPMAS2N2.cjs} +138 -138
- package/dist/{chunk-NTEE4J2K.js → chunk-VSGLIY6F.cjs} +7 -7
- package/dist/{chunk-WDQJ7FQS.mjs → chunk-WTEHBMCM.js} +1 -1
- package/dist/{chunk-USQ3J2G6.js → chunk-XFNPYG4X.cjs} +111 -111
- package/dist/chunk-XFZK7476.js +50 -0
- package/dist/{chunk-ARQBMHSM.mjs → chunk-XQXUMNEU.js} +2 -2
- package/dist/chunk-YJSIQHKP.cjs +6 -0
- package/dist/chunk-ZBZWMZ72.cjs +137 -0
- package/dist/{chunk-OKAFRVSY.mjs → chunk-ZQV3QSH5.js} +2 -2
- package/dist/{chunk-5YZA7ARA.mjs → chunk-ZY35TVMB.js} +2 -2
- package/dist/config-file/get-config-file.cjs +32 -0
- package/dist/config-file/{get-config-file.d.mts → get-config-file.d.cts} +1 -1
- package/dist/config-file/get-config-file.js +32 -32
- package/dist/config-file/index.cjs +33 -0
- package/dist/config-file/{index.d.mts → index.d.cts} +2 -2
- package/dist/config-file/index.js +33 -33
- package/dist/create-storm-config.cjs +39 -0
- package/dist/{create-storm-config.d.mts → create-storm-config.d.cts} +1 -1
- package/dist/create-storm-config.js +39 -39
- package/dist/{dist-IKT3RN2B.js → dist-M3E36L2G.cjs} +1020 -1020
- package/dist/{dist-ESY54GEK.mjs → dist-M5DWQXRA.js} +9 -9
- package/dist/env/get-env.cjs +13 -0
- package/dist/env/{get-env.d.mts → get-env.d.cts} +2 -2
- package/dist/env/get-env.js +13 -13
- package/dist/env/index.cjs +20 -0
- package/dist/env/index.d.cts +5 -0
- package/dist/env/index.js +20 -20
- package/dist/env/set-env.cjs +12 -0
- package/dist/env/{set-env.d.mts → set-env.d.cts} +1 -1
- package/dist/env/set-env.js +12 -12
- package/dist/{esm-CHY33BEA.js → esm-HOUHOM6T.cjs} +46 -46
- package/dist/{esm-GXBYTNSY.mjs → esm-KALGCEZT.js} +1 -1
- package/dist/{estree-OISRK7S3.mjs → estree-OTYURYPI.js} +1 -1
- package/dist/{estree-ROOTGONW.js → estree-VNPZ3XG5.cjs} +517 -517
- package/dist/{execa-OBTCQJ4R.js → execa-XEKRORBS.cjs} +220 -220
- package/dist/{execa-Q37TRODQ.mjs → execa-XN4WNY2K.js} +1 -1
- package/dist/{flow-6CYXU2JU.js → flow-3RTSTJJN.cjs} +1231 -1231
- package/dist/{flow-CVR7JYJR.mjs → flow-BEGL6EBU.js} +1 -1
- package/dist/{glimmer-KC46TXCG.js → glimmer-SJ3NEFEI.cjs} +287 -287
- package/dist/{glimmer-HPLV3CEI.mjs → glimmer-T7L4DGCA.js} +1 -1
- package/dist/{graphql-QEQ22DRF.js → graphql-N7VNZRCY.cjs} +97 -97
- package/dist/{graphql-HGTQLI6G.mjs → graphql-ZGKSF4HS.js} +1 -1
- package/dist/{html-SQTQQXQE.js → html-76MY4VK3.cjs} +284 -284
- package/dist/{html-BQF3QJLP.mjs → html-PSA3ZLF3.js} +1 -1
- package/dist/index.cjs +154 -0
- package/dist/{index.d.mts → index.d.cts} +20 -20
- package/dist/index.js +152 -152
- package/dist/json5-AWKL3VDN.js +10 -0
- package/dist/json5-H2TAIKSA.cjs +10 -0
- package/dist/{jsonc-QMXWMKWV.mjs → jsonc-AGNNV3TC.js} +3 -3
- package/dist/jsonc-QNZQN4WT.cjs +15 -0
- package/dist/logger/chalk.cjs +7 -0
- package/dist/logger/chalk.js +7 -7
- package/dist/logger/console-icons.cjs +9 -0
- package/dist/logger/{console-icons.d.mts → console-icons.d.cts} +2 -2
- package/dist/logger/console-icons.js +9 -9
- package/dist/logger/console.cjs +38 -0
- package/dist/logger/{console.d.mts → console.d.cts} +3 -3
- package/dist/logger/console.js +38 -38
- package/dist/logger/create-logger.cjs +19 -0
- package/dist/logger/{create-logger.d.mts → create-logger.d.cts} +2 -2
- package/dist/logger/create-logger.js +19 -19
- package/dist/logger/format-timestamp.cjs +7 -0
- package/dist/logger/format-timestamp.js +7 -7
- package/dist/logger/get-log-level.cjs +12 -0
- package/dist/logger/{get-log-level.d.mts → get-log-level.d.cts} +2 -2
- package/dist/logger/get-log-level.js +12 -12
- package/dist/logger/index.cjs +62 -0
- package/dist/logger/index.d.cts +10 -0
- package/dist/logger/index.js +62 -62
- package/dist/logger/is-unicode-supported.cjs +7 -0
- package/dist/logger/is-unicode-supported.js +7 -7
- package/dist/{markdown-GDAB6YZK.mjs → markdown-C7FDHMIG.js} +1 -1
- package/dist/{markdown-VAH7N2ZD.js → markdown-GO2SD6ZH.cjs} +390 -390
- package/dist/{meriyah-KXJRAU2O.js → meriyah-BAACQM2N.cjs} +243 -243
- package/dist/{meriyah-64TJZ2NR.mjs → meriyah-ED62ZUKL.js} +1 -1
- package/dist/{multipart-parser-XTEGLYUH.mjs → multipart-parser-6JNXK7VG.js} +2 -2
- package/dist/{multipart-parser-ACF3MON7.js → multipart-parser-MXQWMODT.cjs} +11 -11
- package/dist/{postcss-ULTRDB4V.js → postcss-2EUHH6PK.cjs} +337 -337
- package/dist/{postcss-CTT2C6VM.mjs → postcss-KWRUITUE.js} +1 -1
- package/dist/{prettier-RSMQU2HG.js → prettier-U2A22JOI.cjs} +1079 -1079
- package/dist/{prettier-A4TSHMHI.mjs → prettier-XP4HJJUI.js} +14 -14
- package/dist/toml-E3DJZTNR.js +10 -0
- package/dist/toml-VAFZQSC5.cjs +10 -0
- package/dist/types.cjs +9 -0
- package/dist/{types.d.mts → types.d.cts} +1 -1
- package/dist/types.js +9 -9
- package/dist/{typescript-DSR4LFJ2.mjs → typescript-YFBMA3EY.js} +1 -1
- package/dist/{typescript-CCR5BUC6.js → typescript-ZI3EJ455.cjs} +1893 -1893
- package/dist/utilities/apply-workspace-tokens.cjs +14 -0
- package/dist/utilities/{apply-workspace-tokens.d.mts → apply-workspace-tokens.d.cts} +2 -2
- package/dist/utilities/apply-workspace-tokens.js +14 -14
- package/dist/utilities/correct-paths.cjs +9 -0
- package/dist/utilities/correct-paths.js +9 -9
- package/dist/utilities/file-path-utils.cjs +9 -0
- package/dist/utilities/file-path-utils.js +9 -9
- package/dist/utilities/find-up.cjs +7 -0
- package/dist/utilities/find-up.js +7 -7
- package/dist/utilities/find-workspace-root.cjs +11 -0
- package/dist/utilities/find-workspace-root.js +11 -11
- package/dist/utilities/get-default-config.cjs +13 -0
- package/dist/utilities/{get-default-config.d.mts → get-default-config.d.cts} +1 -1
- package/dist/utilities/get-default-config.js +13 -13
- package/dist/utilities/index.cjs +61 -0
- package/dist/utilities/{index.d.mts → index.d.cts} +9 -9
- package/dist/utilities/index.js +61 -61
- package/dist/utilities/process-handler.cjs +23 -0
- package/dist/utilities/{process-handler.d.mts → process-handler.d.cts} +1 -1
- package/dist/utilities/process-handler.js +23 -23
- package/dist/utilities/run.cjs +11 -0
- package/dist/utilities/{run.d.mts → run.d.cts} +1 -1
- package/dist/utilities/run.js +11 -11
- package/dist/yaml-2WY5XICX.js +10 -0
- package/dist/{yaml-SVET52GC.mjs → yaml-6R64VIIN.js} +1 -1
- package/dist/{yaml-I7POIORV.js → yaml-KDDF5JAF.cjs} +325 -325
- package/dist/yaml-X7EHFDS4.cjs +10 -0
- package/package.json +52 -51
- package/dist/chunk-2CB5TTMS.mjs +0 -51
- package/dist/chunk-4C5ULXHZ.js +0 -6
- package/dist/chunk-4GHDOSDL.js +0 -6
- package/dist/chunk-C4XTMKFS.js +0 -51
- package/dist/chunk-HDZVYW2P.js +0 -70
- package/dist/chunk-LNE3WDH6.js +0 -6
- package/dist/chunk-PHAIVEXJ.js +0 -6
- package/dist/chunk-TPPODXVQ.js +0 -51
- package/dist/chunk-UMKNQWMO.js +0 -137
- package/dist/chunk-WT74SYKM.js +0 -28
- package/dist/config-file/get-config-file.mjs +0 -32
- package/dist/config-file/index.mjs +0 -33
- package/dist/create-storm-config.mjs +0 -39
- package/dist/env/get-env.mjs +0 -13
- package/dist/env/index.d.mts +0 -5
- package/dist/env/index.mjs +0 -20
- package/dist/env/set-env.mjs +0 -12
- package/dist/index.mjs +0 -154
- package/dist/json5-FGCHX2C5.js +0 -10
- package/dist/json5-PFHFTE3S.mjs +0 -10
- package/dist/jsonc-JYPKWISW.js +0 -15
- package/dist/logger/chalk.mjs +0 -7
- package/dist/logger/console-icons.mjs +0 -9
- package/dist/logger/console.mjs +0 -38
- package/dist/logger/create-logger.mjs +0 -19
- package/dist/logger/format-timestamp.mjs +0 -7
- package/dist/logger/get-log-level.mjs +0 -12
- package/dist/logger/index.d.mts +0 -10
- package/dist/logger/index.mjs +0 -62
- package/dist/logger/is-unicode-supported.mjs +0 -7
- package/dist/toml-5DG5WNM7.mjs +0 -10
- package/dist/toml-S745O2YV.js +0 -10
- package/dist/types.mjs +0 -9
- package/dist/utilities/apply-workspace-tokens.mjs +0 -14
- package/dist/utilities/correct-paths.mjs +0 -9
- package/dist/utilities/file-path-utils.mjs +0 -9
- package/dist/utilities/find-up.mjs +0 -7
- package/dist/utilities/find-workspace-root.mjs +0 -11
- package/dist/utilities/get-default-config.mjs +0 -13
- package/dist/utilities/index.mjs +0 -61
- package/dist/utilities/process-handler.mjs +0 -23
- package/dist/utilities/run.mjs +0 -11
- package/dist/yaml-FXUEXKW3.js +0 -10
- package/dist/yaml-KYTKYGLP.mjs +0 -10
- /package/dist/{chunk-RZYA76H7.mjs → chunk-BFNZYC5O.js} +0 -0
- /package/dist/{chunk-5YOGYZEG.js → chunk-DFJNOFN2.cjs} +0 -0
- /package/dist/logger/{chalk.d.mts → chalk.d.cts} +0 -0
- /package/dist/logger/{format-timestamp.d.mts → format-timestamp.d.cts} +0 -0
- /package/dist/logger/{is-unicode-supported.d.mts → is-unicode-supported.d.cts} +0 -0
- /package/dist/{types-CN4ccKlk.d.mts → types-CN4ccKlk.d.cts} +0 -0
- /package/dist/utilities/{correct-paths.d.mts → correct-paths.d.cts} +0 -0
- /package/dist/utilities/{file-path-utils.d.mts → file-path-utils.d.cts} +0 -0
- /package/dist/utilities/{find-up.d.mts → find-up.d.cts} +0 -0
- /package/dist/utilities/{find-workspace-root.d.mts → find-workspace-root.d.cts} +0 -0
|
@@ -8,26 +8,26 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkUIA5EFWJcjs = require('./chunk-UIA5EFWJ.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkZBZWMZ72cjs = require('./chunk-ZBZWMZ72.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkMUKNCWDCcjs = require('./chunk-MUKNCWDC.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkNXXPCLO3cjs = require('./chunk-NXXPCLO3.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkDFJNOFN2cjs = require('./chunk-DFJNOFN2.cjs');
|
|
28
28
|
|
|
29
29
|
// ../../node_modules/.pnpm/dotenv@16.4.7/node_modules/dotenv/package.json
|
|
30
|
-
var require_package =
|
|
30
|
+
var require_package = _chunkDFJNOFN2cjs.__commonJS.call(void 0, {
|
|
31
31
|
"../../node_modules/.pnpm/dotenv@16.4.7/node_modules/dotenv/package.json"(exports, module) {
|
|
32
32
|
module.exports = {
|
|
33
33
|
name: "dotenv",
|
|
@@ -94,13 +94,13 @@ var require_package = _chunk5YOGYZEGjs.__commonJS.call(void 0, {
|
|
|
94
94
|
});
|
|
95
95
|
|
|
96
96
|
// ../../node_modules/.pnpm/dotenv@16.4.7/node_modules/dotenv/lib/main.js
|
|
97
|
-
var require_main =
|
|
97
|
+
var require_main = _chunkDFJNOFN2cjs.__commonJS.call(void 0, {
|
|
98
98
|
"../../node_modules/.pnpm/dotenv@16.4.7/node_modules/dotenv/lib/main.js"(exports, module) {
|
|
99
|
-
|
|
100
|
-
var fs =
|
|
101
|
-
var path =
|
|
102
|
-
var os =
|
|
103
|
-
var crypto =
|
|
99
|
+
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );
|
|
100
|
+
var fs = _chunkDFJNOFN2cjs.__require.call(void 0, "fs");
|
|
101
|
+
var path = _chunkDFJNOFN2cjs.__require.call(void 0, "path");
|
|
102
|
+
var os = _chunkDFJNOFN2cjs.__require.call(void 0, "os");
|
|
103
|
+
var crypto = _chunkDFJNOFN2cjs.__require.call(void 0, "crypto");
|
|
104
104
|
var packageJson = require_package();
|
|
105
105
|
var version = packageJson.version;
|
|
106
106
|
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
@@ -123,7 +123,7 @@ var require_main = _chunk5YOGYZEGjs.__commonJS.call(void 0, {
|
|
|
123
123
|
}
|
|
124
124
|
return obj;
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, parse3, "parse");
|
|
127
127
|
function _parseVault(options) {
|
|
128
128
|
const vaultPath = _vaultPath(options);
|
|
129
129
|
const result = DotenvModule.configDotenv({
|
|
@@ -151,19 +151,19 @@ var require_main = _chunk5YOGYZEGjs.__commonJS.call(void 0, {
|
|
|
151
151
|
}
|
|
152
152
|
return DotenvModule.parse(decrypted);
|
|
153
153
|
}
|
|
154
|
-
|
|
154
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, _parseVault, "_parseVault");
|
|
155
155
|
function _log(message) {
|
|
156
156
|
console.log(`[dotenv@${version}][INFO] ${message}`);
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, _log, "_log");
|
|
159
159
|
function _warn(message) {
|
|
160
160
|
console.log(`[dotenv@${version}][WARN] ${message}`);
|
|
161
161
|
}
|
|
162
|
-
|
|
162
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, _warn, "_warn");
|
|
163
163
|
function _debug(message) {
|
|
164
164
|
console.log(`[dotenv@${version}][DEBUG] ${message}`);
|
|
165
165
|
}
|
|
166
|
-
|
|
166
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, _debug, "_debug");
|
|
167
167
|
function _dotenvKey(options) {
|
|
168
168
|
if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
|
|
169
169
|
return options.DOTENV_KEY;
|
|
@@ -173,7 +173,7 @@ var require_main = _chunk5YOGYZEGjs.__commonJS.call(void 0, {
|
|
|
173
173
|
}
|
|
174
174
|
return "";
|
|
175
175
|
}
|
|
176
|
-
|
|
176
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, _dotenvKey, "_dotenvKey");
|
|
177
177
|
function _instructions(result, dotenvKey) {
|
|
178
178
|
let uri;
|
|
179
179
|
try {
|
|
@@ -210,7 +210,7 @@ var require_main = _chunk5YOGYZEGjs.__commonJS.call(void 0, {
|
|
|
210
210
|
key
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
|
-
|
|
213
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, _instructions, "_instructions");
|
|
214
214
|
function _vaultPath(options) {
|
|
215
215
|
let possibleVaultPath = null;
|
|
216
216
|
if (options && options.path && options.path.length > 0) {
|
|
@@ -231,11 +231,11 @@ var require_main = _chunk5YOGYZEGjs.__commonJS.call(void 0, {
|
|
|
231
231
|
}
|
|
232
232
|
return null;
|
|
233
233
|
}
|
|
234
|
-
|
|
234
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, _vaultPath, "_vaultPath");
|
|
235
235
|
function _resolveHome(envPath) {
|
|
236
236
|
return envPath[0] === "~" ? path.join(os.homedir(), envPath.slice(1)) : envPath;
|
|
237
237
|
}
|
|
238
|
-
|
|
238
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, _resolveHome, "_resolveHome");
|
|
239
239
|
function _configVault(options) {
|
|
240
240
|
_log("Loading env from encrypted .env.vault");
|
|
241
241
|
const parsed = DotenvModule._parseVault(options);
|
|
@@ -248,7 +248,7 @@ var require_main = _chunk5YOGYZEGjs.__commonJS.call(void 0, {
|
|
|
248
248
|
parsed
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, _configVault, "_configVault");
|
|
252
252
|
function configDotenv(options) {
|
|
253
253
|
const dotenvPath = path.resolve(process.cwd(), ".env");
|
|
254
254
|
let encoding = "utf8";
|
|
@@ -306,7 +306,7 @@ var require_main = _chunk5YOGYZEGjs.__commonJS.call(void 0, {
|
|
|
306
306
|
};
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
|
|
309
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, configDotenv, "configDotenv");
|
|
310
310
|
function config(options) {
|
|
311
311
|
if (_dotenvKey(options).length === 0) {
|
|
312
312
|
return DotenvModule.configDotenv(options);
|
|
@@ -318,7 +318,7 @@ var require_main = _chunk5YOGYZEGjs.__commonJS.call(void 0, {
|
|
|
318
318
|
}
|
|
319
319
|
return DotenvModule._configVault(options);
|
|
320
320
|
}
|
|
321
|
-
|
|
321
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, config, "config");
|
|
322
322
|
function decrypt(encrypted, keyStr) {
|
|
323
323
|
const key = Buffer.from(keyStr.slice(-64), "hex");
|
|
324
324
|
let ciphertext = Buffer.from(encrypted, "base64");
|
|
@@ -346,7 +346,7 @@ var require_main = _chunk5YOGYZEGjs.__commonJS.call(void 0, {
|
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
|
|
349
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, decrypt, "decrypt");
|
|
350
350
|
function populate(processEnv, parsed, options = {}) {
|
|
351
351
|
const debug = Boolean(options && options.debug);
|
|
352
352
|
const override = Boolean(options && options.override);
|
|
@@ -372,7 +372,7 @@ var require_main = _chunk5YOGYZEGjs.__commonJS.call(void 0, {
|
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
|
-
|
|
375
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, populate, "populate");
|
|
376
376
|
var DotenvModule = {
|
|
377
377
|
configDotenv,
|
|
378
378
|
_configVault,
|
|
@@ -394,26 +394,26 @@ var require_main = _chunk5YOGYZEGjs.__commonJS.call(void 0, {
|
|
|
394
394
|
});
|
|
395
395
|
|
|
396
396
|
// src/config-file/get-config-file.ts
|
|
397
|
-
|
|
397
|
+
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );
|
|
398
398
|
|
|
399
399
|
// ../../node_modules/.pnpm/c12@2.0.1/node_modules/c12/dist/index.mjs
|
|
400
|
-
|
|
400
|
+
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );
|
|
401
401
|
|
|
402
402
|
// ../../node_modules/.pnpm/c12@2.0.1/node_modules/c12/dist/shared/c12.B4fc1S0C.mjs
|
|
403
|
-
|
|
403
|
+
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );
|
|
404
404
|
var _fs = require('fs');
|
|
405
405
|
var _promises = require('fs/promises');
|
|
406
406
|
var _os = require('os');
|
|
407
407
|
var _jiti = require('jiti');
|
|
408
408
|
|
|
409
409
|
// ../../node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs
|
|
410
|
-
|
|
410
|
+
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );
|
|
411
411
|
|
|
412
412
|
var _path = require('path');
|
|
413
413
|
|
|
414
414
|
|
|
415
415
|
// ../../node_modules/.pnpm/destr@2.0.3/node_modules/destr/dist/index.mjs
|
|
416
|
-
|
|
416
|
+
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );
|
|
417
417
|
var suspectProtoRx = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/;
|
|
418
418
|
var suspectConstructorRx = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
|
|
419
419
|
var JsonSigRx = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
@@ -424,11 +424,11 @@ function jsonParseTransform(key, value) {
|
|
|
424
424
|
}
|
|
425
425
|
return value;
|
|
426
426
|
}
|
|
427
|
-
|
|
427
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, jsonParseTransform, "jsonParseTransform");
|
|
428
428
|
function warnKeyDropped(key) {
|
|
429
429
|
console.warn(`[destr] Dropping "${key}" key to prevent prototype pollution.`);
|
|
430
430
|
}
|
|
431
|
-
|
|
431
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, warnKeyDropped, "warnKeyDropped");
|
|
432
432
|
function destr(value, options = {}) {
|
|
433
433
|
if (typeof value !== "string") {
|
|
434
434
|
return value;
|
|
@@ -485,17 +485,17 @@ function destr(value, options = {}) {
|
|
|
485
485
|
return value;
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
|
|
488
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, destr, "destr");
|
|
489
489
|
|
|
490
490
|
// ../../node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs
|
|
491
491
|
function isBuffer(obj) {
|
|
492
492
|
return obj && obj.constructor && typeof obj.constructor.isBuffer === "function" && obj.constructor.isBuffer(obj);
|
|
493
493
|
}
|
|
494
|
-
|
|
494
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, isBuffer, "isBuffer");
|
|
495
495
|
function keyIdentity(key) {
|
|
496
496
|
return key;
|
|
497
497
|
}
|
|
498
|
-
|
|
498
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, keyIdentity, "keyIdentity");
|
|
499
499
|
function flatten(target, opts) {
|
|
500
500
|
opts = opts || {};
|
|
501
501
|
const delimiter = opts.delimiter || ".";
|
|
@@ -517,11 +517,11 @@ function flatten(target, opts) {
|
|
|
517
517
|
output[newKey] = value;
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
|
|
520
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, step, "step");
|
|
521
521
|
step(target);
|
|
522
522
|
return output;
|
|
523
523
|
}
|
|
524
|
-
|
|
524
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, flatten, "flatten");
|
|
525
525
|
function unflatten(target, opts) {
|
|
526
526
|
opts = opts || {};
|
|
527
527
|
const delimiter = opts.delimiter || ".";
|
|
@@ -536,14 +536,14 @@ function unflatten(target, opts) {
|
|
|
536
536
|
const parsedKey = Number(key);
|
|
537
537
|
return isNaN(parsedKey) || key.indexOf(".") !== -1 || opts.object ? key : parsedKey;
|
|
538
538
|
}
|
|
539
|
-
|
|
539
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, getkey, "getkey");
|
|
540
540
|
function addKeys(keyPrefix, recipient, target2) {
|
|
541
541
|
return Object.keys(target2).reduce(function(result2, key) {
|
|
542
542
|
result2[keyPrefix + delimiter + key] = target2[key];
|
|
543
543
|
return result2;
|
|
544
544
|
}, recipient);
|
|
545
545
|
}
|
|
546
|
-
|
|
546
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, addKeys, "addKeys");
|
|
547
547
|
function isEmpty(val) {
|
|
548
548
|
const type = Object.prototype.toString.call(val);
|
|
549
549
|
const isArray = type === "[object Array]";
|
|
@@ -556,7 +556,7 @@ function unflatten(target, opts) {
|
|
|
556
556
|
return !Object.keys(val).length;
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
|
|
559
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, isEmpty, "isEmpty");
|
|
560
560
|
target = Object.keys(target).reduce(function(result2, key) {
|
|
561
561
|
const type = Object.prototype.toString.call(target[key]);
|
|
562
562
|
const isObject = type === "[object Object]" || type === "[object Array]";
|
|
@@ -598,7 +598,7 @@ function unflatten(target, opts) {
|
|
|
598
598
|
});
|
|
599
599
|
return result;
|
|
600
600
|
}
|
|
601
|
-
|
|
601
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, unflatten, "unflatten");
|
|
602
602
|
var RE_KEY_VAL = /^\s*([^\s=]+)\s*=\s*(.*)?\s*$/;
|
|
603
603
|
var RE_LINES = /\n|\r|\r\n/;
|
|
604
604
|
var defaults = {
|
|
@@ -612,7 +612,7 @@ function withDefaults(options) {
|
|
|
612
612
|
}
|
|
613
613
|
return { ...defaults, ...options };
|
|
614
614
|
}
|
|
615
|
-
|
|
615
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, withDefaults, "withDefaults");
|
|
616
616
|
function parse(contents, options = {}) {
|
|
617
617
|
const config = {};
|
|
618
618
|
const lines = contents.split(RE_LINES);
|
|
@@ -638,28 +638,28 @@ function parse(contents, options = {}) {
|
|
|
638
638
|
}
|
|
639
639
|
return options.flat ? config : unflatten(config, { overwrite: true });
|
|
640
640
|
}
|
|
641
|
-
|
|
641
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, parse, "parse");
|
|
642
642
|
function parseFile(path, options) {
|
|
643
643
|
if (!_fs.existsSync.call(void 0, path)) {
|
|
644
644
|
return {};
|
|
645
645
|
}
|
|
646
646
|
return parse(_fs.readFileSync.call(void 0, path, "utf8"), options);
|
|
647
647
|
}
|
|
648
|
-
|
|
648
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, parseFile, "parseFile");
|
|
649
649
|
function read(options) {
|
|
650
650
|
options = withDefaults(options);
|
|
651
651
|
return parseFile(_path.resolve.call(void 0, options.dir, options.name), options);
|
|
652
652
|
}
|
|
653
|
-
|
|
653
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, read, "read");
|
|
654
654
|
function readUser(options) {
|
|
655
655
|
options = withDefaults(options);
|
|
656
656
|
options.dir = process.env.XDG_CONFIG_HOME || _os.homedir.call(void 0, );
|
|
657
657
|
return read(options);
|
|
658
658
|
}
|
|
659
|
-
|
|
659
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, readUser, "readUser");
|
|
660
660
|
|
|
661
661
|
// ../../node_modules/.pnpm/ohash@1.1.4/node_modules/ohash/dist/index.mjs
|
|
662
|
-
|
|
662
|
+
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );
|
|
663
663
|
var defaults2 = Object.freeze({
|
|
664
664
|
ignoreUnknown: false,
|
|
665
665
|
respectType: false,
|
|
@@ -682,7 +682,7 @@ function objectHash(object, options) {
|
|
|
682
682
|
hasher.dispatch(object);
|
|
683
683
|
return hasher.toString();
|
|
684
684
|
}
|
|
685
|
-
|
|
685
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, objectHash, "objectHash");
|
|
686
686
|
var defaultPrototypesKeys = Object.freeze([
|
|
687
687
|
"prototype",
|
|
688
688
|
"__proto__",
|
|
@@ -691,7 +691,7 @@ var defaultPrototypesKeys = Object.freeze([
|
|
|
691
691
|
function createHasher(options) {
|
|
692
692
|
let buff = "";
|
|
693
693
|
let context = /* @__PURE__ */ new Map();
|
|
694
|
-
const write = /* @__PURE__ */
|
|
694
|
+
const write = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (str) => {
|
|
695
695
|
buff += str;
|
|
696
696
|
}, "write");
|
|
697
697
|
return {
|
|
@@ -755,7 +755,7 @@ function createHasher(options) {
|
|
|
755
755
|
});
|
|
756
756
|
}
|
|
757
757
|
write("object:" + (keys.length + extraKeys.length) + ":");
|
|
758
|
-
const dispatchForKey = /* @__PURE__ */
|
|
758
|
+
const dispatchForKey = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (key) => {
|
|
759
759
|
this.dispatch(key);
|
|
760
760
|
write(":");
|
|
761
761
|
if (!options.excludeValues) {
|
|
@@ -977,7 +977,7 @@ function createHasher(options) {
|
|
|
977
977
|
}
|
|
978
978
|
};
|
|
979
979
|
}
|
|
980
|
-
|
|
980
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, createHasher, "createHasher");
|
|
981
981
|
var nativeFunc = "[native code] }";
|
|
982
982
|
var nativeFuncLength = nativeFunc.length;
|
|
983
983
|
function isNativeFunction(f) {
|
|
@@ -986,16 +986,16 @@ function isNativeFunction(f) {
|
|
|
986
986
|
}
|
|
987
987
|
return Function.prototype.toString.call(f).slice(-nativeFuncLength) === nativeFunc;
|
|
988
988
|
}
|
|
989
|
-
|
|
989
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, isNativeFunction, "isNativeFunction");
|
|
990
990
|
var __defProp$1 = Object.defineProperty;
|
|
991
|
-
var __defNormalProp$1 = /* @__PURE__ */
|
|
992
|
-
var __publicField$1 = /* @__PURE__ */
|
|
991
|
+
var __defNormalProp$1 = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value, "__defNormalProp$1");
|
|
992
|
+
var __publicField$1 = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (obj, key, value) => {
|
|
993
993
|
__defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
994
994
|
return value;
|
|
995
995
|
}, "__publicField$1");
|
|
996
996
|
var WordArray = class _WordArray {
|
|
997
997
|
static {
|
|
998
|
-
|
|
998
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, this, "WordArray");
|
|
999
999
|
}
|
|
1000
1000
|
constructor(words, sigBytes) {
|
|
1001
1001
|
__publicField$1(this, "words");
|
|
@@ -1072,7 +1072,7 @@ var Utf8 = {
|
|
|
1072
1072
|
};
|
|
1073
1073
|
var BufferedBlockAlgorithm = class {
|
|
1074
1074
|
static {
|
|
1075
|
-
|
|
1075
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, this, "BufferedBlockAlgorithm");
|
|
1076
1076
|
}
|
|
1077
1077
|
constructor() {
|
|
1078
1078
|
__publicField$1(this, "_data", new WordArray());
|
|
@@ -1115,7 +1115,7 @@ var BufferedBlockAlgorithm = class {
|
|
|
1115
1115
|
};
|
|
1116
1116
|
var Hasher = class extends BufferedBlockAlgorithm {
|
|
1117
1117
|
static {
|
|
1118
|
-
|
|
1118
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, this, "Hasher");
|
|
1119
1119
|
}
|
|
1120
1120
|
update(messageUpdate) {
|
|
1121
1121
|
this._append(messageUpdate);
|
|
@@ -1129,8 +1129,8 @@ var Hasher = class extends BufferedBlockAlgorithm {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
};
|
|
1131
1131
|
var __defProp = Object.defineProperty;
|
|
1132
|
-
var __defNormalProp = /* @__PURE__ */
|
|
1133
|
-
var __publicField = /* @__PURE__ */
|
|
1132
|
+
var __defNormalProp = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value, "__defNormalProp");
|
|
1133
|
+
var __publicField = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (obj, key, value) => {
|
|
1134
1134
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1135
1135
|
return value;
|
|
1136
1136
|
}, "__publicField");
|
|
@@ -1213,7 +1213,7 @@ var K = [
|
|
|
1213
1213
|
var W = [];
|
|
1214
1214
|
var SHA256 = class extends Hasher {
|
|
1215
1215
|
static {
|
|
1216
|
-
|
|
1216
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, this, "SHA256");
|
|
1217
1217
|
}
|
|
1218
1218
|
constructor() {
|
|
1219
1219
|
super(...arguments);
|
|
@@ -1293,15 +1293,15 @@ var SHA256 = class extends Hasher {
|
|
|
1293
1293
|
function sha256base64(message) {
|
|
1294
1294
|
return new SHA256().finalize(message).toString(Base64);
|
|
1295
1295
|
}
|
|
1296
|
-
|
|
1296
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, sha256base64, "sha256base64");
|
|
1297
1297
|
function hash(object, options = {}) {
|
|
1298
1298
|
const hashed = typeof object === "string" ? object : objectHash(object, options);
|
|
1299
1299
|
return sha256base64(hashed).slice(0, 10);
|
|
1300
1300
|
}
|
|
1301
|
-
|
|
1301
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, hash, "hash");
|
|
1302
1302
|
|
|
1303
1303
|
// ../../node_modules/.pnpm/c12@2.0.1/node_modules/c12/dist/shared/c12.B4fc1S0C.mjs
|
|
1304
|
-
var dotenv =
|
|
1304
|
+
var dotenv = _chunkDFJNOFN2cjs.__toESM.call(void 0, require_main(), 1);
|
|
1305
1305
|
async function setupDotenv(options) {
|
|
1306
1306
|
const targetEnvironment = _nullishCoalesce(options.env, () => ( process.env));
|
|
1307
1307
|
const environment = await loadDotenv({
|
|
@@ -1317,10 +1317,10 @@ async function setupDotenv(options) {
|
|
|
1317
1317
|
}
|
|
1318
1318
|
return environment;
|
|
1319
1319
|
}
|
|
1320
|
-
|
|
1320
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, setupDotenv, "setupDotenv");
|
|
1321
1321
|
async function loadDotenv(options) {
|
|
1322
1322
|
const environment = /* @__PURE__ */ Object.create(null);
|
|
1323
|
-
const dotenvFile =
|
|
1323
|
+
const dotenvFile = _chunkUIA5EFWJcjs.resolve.call(void 0, options.cwd, options.fileName);
|
|
1324
1324
|
if (_fs.existsSync.call(void 0, dotenvFile)) {
|
|
1325
1325
|
const parsed = dotenv.parse(await _fs.promises.readFile(dotenvFile, "utf8"));
|
|
1326
1326
|
Object.assign(environment, parsed);
|
|
@@ -1334,12 +1334,12 @@ async function loadDotenv(options) {
|
|
|
1334
1334
|
}
|
|
1335
1335
|
return environment;
|
|
1336
1336
|
}
|
|
1337
|
-
|
|
1337
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, loadDotenv, "loadDotenv");
|
|
1338
1338
|
function interpolate(target, source = {}, parse3 = (v) => v) {
|
|
1339
1339
|
function getValue(key) {
|
|
1340
1340
|
return source[key] === void 0 ? target[key] : source[key];
|
|
1341
1341
|
}
|
|
1342
|
-
|
|
1342
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, getValue, "getValue");
|
|
1343
1343
|
function interpolate2(value, parents = []) {
|
|
1344
1344
|
if (typeof value !== "string") {
|
|
1345
1345
|
return value;
|
|
@@ -1372,19 +1372,19 @@ function interpolate(target, source = {}, parse3 = (v) => v) {
|
|
|
1372
1372
|
}, value)
|
|
1373
1373
|
);
|
|
1374
1374
|
}
|
|
1375
|
-
|
|
1375
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, interpolate2, "interpolate2");
|
|
1376
1376
|
for (const key in target) {
|
|
1377
1377
|
target[key] = interpolate2(getValue(key));
|
|
1378
1378
|
}
|
|
1379
1379
|
}
|
|
1380
|
-
|
|
1381
|
-
var _normalize = /* @__PURE__ */
|
|
1380
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, interpolate, "interpolate");
|
|
1381
|
+
var _normalize = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (p) => _optionalChain([p, 'optionalAccess', _3 => _3.replace, 'call', _4 => _4(/\\/g, "/")]), "_normalize");
|
|
1382
1382
|
var ASYNC_LOADERS = {
|
|
1383
|
-
".yaml": /* @__PURE__ */
|
|
1384
|
-
".yml": /* @__PURE__ */
|
|
1385
|
-
".jsonc": /* @__PURE__ */
|
|
1386
|
-
".json5": /* @__PURE__ */
|
|
1387
|
-
".toml": /* @__PURE__ */
|
|
1383
|
+
".yaml": /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./yaml-X7EHFDS4.cjs"))).then((r) => r.parseYAML), ".yaml"),
|
|
1384
|
+
".yml": /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./yaml-X7EHFDS4.cjs"))).then((r) => r.parseYAML), ".yml"),
|
|
1385
|
+
".jsonc": /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./jsonc-QNZQN4WT.cjs"))).then((r) => r.parseJSONC), ".jsonc"),
|
|
1386
|
+
".json5": /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./json5-H2TAIKSA.cjs"))).then((r) => r.parseJSON5), ".json5"),
|
|
1387
|
+
".toml": /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./toml-VAFZQSC5.cjs"))).then((r) => r.parseTOML), ".toml")
|
|
1388
1388
|
};
|
|
1389
1389
|
var SUPPORTED_EXTENSIONS = [
|
|
1390
1390
|
// with jiti
|
|
@@ -1403,7 +1403,7 @@ var SUPPORTED_EXTENSIONS = [
|
|
|
1403
1403
|
".toml"
|
|
1404
1404
|
];
|
|
1405
1405
|
async function loadConfig(options) {
|
|
1406
|
-
options.cwd =
|
|
1406
|
+
options.cwd = _chunkUIA5EFWJcjs.resolve.call(void 0, process.cwd(), options.cwd || ".");
|
|
1407
1407
|
options.name = options.name || "config";
|
|
1408
1408
|
options.envName = _nullishCoalesce(options.envName, () => ( process.env.NODE_ENV));
|
|
1409
1409
|
options.configFile = _nullishCoalesce(options.configFile, () => ( (options.name === "config" ? "config" : `${options.name}.config`)));
|
|
@@ -1414,8 +1414,8 @@ async function loadConfig(options) {
|
|
|
1414
1414
|
...options.extend
|
|
1415
1415
|
};
|
|
1416
1416
|
}
|
|
1417
|
-
const _merger = options.merger ||
|
|
1418
|
-
options.jiti = options.jiti || _jiti.createJiti.call(void 0,
|
|
1417
|
+
const _merger = options.merger || _chunkUIA5EFWJcjs.defu;
|
|
1418
|
+
options.jiti = options.jiti || _jiti.createJiti.call(void 0, _chunkUIA5EFWJcjs.join.call(void 0, options.cwd, options.configFile), {
|
|
1419
1419
|
interopDefault: true,
|
|
1420
1420
|
moduleCache: false,
|
|
1421
1421
|
extensions: [...SUPPORTED_EXTENSIONS],
|
|
@@ -1424,7 +1424,7 @@ async function loadConfig(options) {
|
|
|
1424
1424
|
const r = {
|
|
1425
1425
|
config: {},
|
|
1426
1426
|
cwd: options.cwd,
|
|
1427
|
-
configFile:
|
|
1427
|
+
configFile: _chunkUIA5EFWJcjs.resolve.call(void 0, options.cwd, options.configFile),
|
|
1428
1428
|
layers: []
|
|
1429
1429
|
};
|
|
1430
1430
|
const _configs = {
|
|
@@ -1449,7 +1449,7 @@ async function loadConfig(options) {
|
|
|
1449
1449
|
const rcSources = [];
|
|
1450
1450
|
rcSources.push(read({ name: options.rcFile, dir: options.cwd }));
|
|
1451
1451
|
if (options.globalRc) {
|
|
1452
|
-
const workspaceDir = await
|
|
1452
|
+
const workspaceDir = await _chunkUIA5EFWJcjs.findWorkspaceDir.call(void 0, options.cwd).catch(() => {
|
|
1453
1453
|
});
|
|
1454
1454
|
if (workspaceDir) {
|
|
1455
1455
|
rcSources.push(read({ name: options.rcFile, dir: workspaceDir }));
|
|
@@ -1462,7 +1462,7 @@ async function loadConfig(options) {
|
|
|
1462
1462
|
const keys = (Array.isArray(options.packageJson) ? options.packageJson : [
|
|
1463
1463
|
typeof options.packageJson === "string" ? options.packageJson : options.name
|
|
1464
1464
|
]).filter((t) => t && typeof t === "string");
|
|
1465
|
-
const pkgJsonFile = await
|
|
1465
|
+
const pkgJsonFile = await _chunkUIA5EFWJcjs.readPackageJSON.call(void 0, options.cwd).catch(() => {
|
|
1466
1466
|
});
|
|
1467
1467
|
const values = keys.map((key) => _optionalChain([pkgJsonFile, 'optionalAccess', _5 => _5[key]]));
|
|
1468
1468
|
_configs.packageJson = _merger({}, ...values);
|
|
@@ -1511,7 +1511,7 @@ async function loadConfig(options) {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
return r;
|
|
1513
1513
|
}
|
|
1514
|
-
|
|
1514
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, loadConfig, "loadConfig");
|
|
1515
1515
|
async function extendConfig(config, options) {
|
|
1516
1516
|
config._layers = config._layers || [];
|
|
1517
1517
|
if (!options.extend) {
|
|
@@ -1564,7 +1564,7 @@ async function extendConfig(config, options) {
|
|
|
1564
1564
|
}
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
|
-
|
|
1567
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, extendConfig, "extendConfig");
|
|
1568
1568
|
var GIGET_PREFIXES = [
|
|
1569
1569
|
"gh:",
|
|
1570
1570
|
"github:",
|
|
@@ -1581,19 +1581,19 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
1581
1581
|
return res2;
|
|
1582
1582
|
}
|
|
1583
1583
|
}
|
|
1584
|
-
const _merger = options.merger ||
|
|
1584
|
+
const _merger = options.merger || _chunkUIA5EFWJcjs.defu;
|
|
1585
1585
|
if (options.giget !== false && GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
|
|
1586
|
-
const { downloadTemplate } = await Promise.resolve().then(() => _interopRequireWildcard(require("./dist-
|
|
1586
|
+
const { downloadTemplate } = await Promise.resolve().then(() => _interopRequireWildcard(require("./dist-M3E36L2G.cjs")));
|
|
1587
1587
|
const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + hash(source);
|
|
1588
1588
|
let cloneDir;
|
|
1589
|
-
const localNodeModules =
|
|
1590
|
-
const parentDir =
|
|
1591
|
-
if (
|
|
1592
|
-
cloneDir =
|
|
1589
|
+
const localNodeModules = _chunkUIA5EFWJcjs.resolve.call(void 0, options.cwd, "node_modules");
|
|
1590
|
+
const parentDir = _chunkUIA5EFWJcjs.dirname.call(void 0, options.cwd);
|
|
1591
|
+
if (_chunkUIA5EFWJcjs.basename.call(void 0, parentDir) === ".c12") {
|
|
1592
|
+
cloneDir = _chunkUIA5EFWJcjs.join.call(void 0, parentDir, cloneName);
|
|
1593
1593
|
} else if (_fs.existsSync.call(void 0, localNodeModules)) {
|
|
1594
|
-
cloneDir =
|
|
1594
|
+
cloneDir = _chunkUIA5EFWJcjs.join.call(void 0, localNodeModules, ".c12", cloneName);
|
|
1595
1595
|
} else {
|
|
1596
|
-
cloneDir = process.env.XDG_CACHE_HOME ?
|
|
1596
|
+
cloneDir = process.env.XDG_CACHE_HOME ? _chunkUIA5EFWJcjs.resolve.call(void 0, process.env.XDG_CACHE_HOME, "c12", cloneName) : _chunkUIA5EFWJcjs.resolve.call(void 0, _os.homedir.call(void 0, ), ".cache/c12", cloneName);
|
|
1597
1597
|
}
|
|
1598
1598
|
if (_fs.existsSync.call(void 0, cloneDir) && !sourceOptions.install) {
|
|
1599
1599
|
await _promises.rm.call(void 0, cloneDir, { recursive: true });
|
|
@@ -1608,16 +1608,16 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
1608
1608
|
});
|
|
1609
1609
|
source = cloned.dir;
|
|
1610
1610
|
}
|
|
1611
|
-
const tryResolve = /* @__PURE__ */
|
|
1611
|
+
const tryResolve = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (id) => {
|
|
1612
1612
|
const resolved = options.jiti.esmResolve(id, { try: true });
|
|
1613
|
-
return resolved ?
|
|
1613
|
+
return resolved ? _chunkUIA5EFWJcjs.fileURLToPath.call(void 0, resolved) : void 0;
|
|
1614
1614
|
}, "tryResolve");
|
|
1615
1615
|
if (NPM_PACKAGE_RE.test(source)) {
|
|
1616
1616
|
source = tryResolve(source) || source;
|
|
1617
1617
|
}
|
|
1618
|
-
const ext =
|
|
1619
|
-
const isDir = !ext || ext ===
|
|
1620
|
-
const cwd =
|
|
1618
|
+
const ext = _chunkUIA5EFWJcjs.extname.call(void 0, source);
|
|
1619
|
+
const isDir = !ext || ext === _chunkUIA5EFWJcjs.basename.call(void 0, source);
|
|
1620
|
+
const cwd = _chunkUIA5EFWJcjs.resolve.call(void 0, options.cwd, isDir ? source : _chunkUIA5EFWJcjs.dirname.call(void 0, source));
|
|
1621
1621
|
if (isDir) {
|
|
1622
1622
|
source = options.configFile;
|
|
1623
1623
|
}
|
|
@@ -1628,11 +1628,11 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
1628
1628
|
source,
|
|
1629
1629
|
sourceOptions
|
|
1630
1630
|
};
|
|
1631
|
-
res.configFile = tryResolve(
|
|
1631
|
+
res.configFile = tryResolve(_chunkUIA5EFWJcjs.resolve.call(void 0, cwd, source)) || tryResolve(_chunkUIA5EFWJcjs.resolve.call(void 0, cwd, ".config", source.replace(/\.config$/, ""))) || tryResolve(_chunkUIA5EFWJcjs.resolve.call(void 0, cwd, ".config", source)) || source;
|
|
1632
1632
|
if (!_fs.existsSync.call(void 0, res.configFile)) {
|
|
1633
1633
|
return res;
|
|
1634
1634
|
}
|
|
1635
|
-
const configFileExt =
|
|
1635
|
+
const configFileExt = _chunkUIA5EFWJcjs.extname.call(void 0, res.configFile) || "";
|
|
1636
1636
|
if (configFileExt in ASYNC_LOADERS) {
|
|
1637
1637
|
const asyncLoader = await ASYNC_LOADERS[configFileExt]();
|
|
1638
1638
|
const contents = await _promises.readFile.call(void 0, res.configFile, "utf8");
|
|
@@ -1654,7 +1654,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
1654
1654
|
res.config = _merger(envConfig, res.config);
|
|
1655
1655
|
}
|
|
1656
1656
|
}
|
|
1657
|
-
res.meta =
|
|
1657
|
+
res.meta = _chunkUIA5EFWJcjs.defu.call(void 0, res.sourceOptions.meta, res.config.$meta);
|
|
1658
1658
|
delete res.config.$meta;
|
|
1659
1659
|
if (res.sourceOptions.overrides) {
|
|
1660
1660
|
res.config = _merger(res.sourceOptions.overrides, res.config);
|
|
@@ -1663,18 +1663,18 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
1663
1663
|
res.source = _normalize(res.source);
|
|
1664
1664
|
return res;
|
|
1665
1665
|
}
|
|
1666
|
-
|
|
1666
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, resolveConfig, "resolveConfig");
|
|
1667
1667
|
|
|
1668
1668
|
// ../../node_modules/.pnpm/c12@2.0.1/node_modules/c12/dist/index.mjs
|
|
1669
1669
|
|
|
1670
1670
|
|
|
1671
1671
|
|
|
1672
1672
|
|
|
1673
|
-
var import_dotenv =
|
|
1673
|
+
var import_dotenv = _chunkDFJNOFN2cjs.__toESM.call(void 0, require_main(), 1);
|
|
1674
1674
|
|
|
1675
1675
|
// src/config-file/get-config-file.ts
|
|
1676
|
-
var getConfigFileByName = /* @__PURE__ */
|
|
1677
|
-
const workspacePath = filePath ||
|
|
1676
|
+
var getConfigFileByName = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
1677
|
+
const workspacePath = filePath || _chunkMUKNCWDCcjs.findWorkspaceRoot.call(void 0, filePath);
|
|
1678
1678
|
let config = await loadConfig({
|
|
1679
1679
|
cwd: workspacePath,
|
|
1680
1680
|
packageJson: true,
|
|
@@ -1682,7 +1682,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunk5YOGYZEGjs.__name.call(void 0, a
|
|
|
1682
1682
|
envName: _optionalChain([fileName, 'optionalAccess', _9 => _9.toUpperCase, 'call', _10 => _10()]),
|
|
1683
1683
|
jitiOptions: {
|
|
1684
1684
|
debug: false,
|
|
1685
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1685
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkNXXPCLO3cjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
1686
1686
|
},
|
|
1687
1687
|
...options
|
|
1688
1688
|
});
|
|
@@ -1694,7 +1694,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunk5YOGYZEGjs.__name.call(void 0, a
|
|
|
1694
1694
|
envName: _optionalChain([fileName, 'optionalAccess', _11 => _11.toUpperCase, 'call', _12 => _12()]),
|
|
1695
1695
|
jitiOptions: {
|
|
1696
1696
|
debug: false,
|
|
1697
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1697
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkNXXPCLO3cjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
1698
1698
|
},
|
|
1699
1699
|
configFile: fileName,
|
|
1700
1700
|
...options
|
|
@@ -1702,13 +1702,13 @@ var getConfigFileByName = /* @__PURE__ */ _chunk5YOGYZEGjs.__name.call(void 0, a
|
|
|
1702
1702
|
}
|
|
1703
1703
|
return config;
|
|
1704
1704
|
}, "getConfigFileByName");
|
|
1705
|
-
var getConfigFile = /* @__PURE__ */
|
|
1706
|
-
const workspacePath = filePath ? filePath :
|
|
1705
|
+
var getConfigFile = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
1706
|
+
const workspacePath = filePath ? filePath : _chunkMUKNCWDCcjs.findWorkspaceRoot.call(void 0, filePath);
|
|
1707
1707
|
const result = await getConfigFileByName("storm", workspacePath);
|
|
1708
1708
|
let config = result.config;
|
|
1709
1709
|
const configFile = result.configFile;
|
|
1710
1710
|
if (config && configFile && Object.keys(config).length > 0) {
|
|
1711
|
-
|
|
1711
|
+
_chunkZBZWMZ72cjs.writeSystem.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
1712
1712
|
logLevel: "all"
|
|
1713
1713
|
});
|
|
1714
1714
|
}
|
|
@@ -1716,10 +1716,10 @@ var getConfigFile = /* @__PURE__ */ _chunk5YOGYZEGjs.__name.call(void 0, async (
|
|
|
1716
1716
|
const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
|
|
1717
1717
|
for (const result2 of results) {
|
|
1718
1718
|
if (_optionalChain([result2, 'optionalAccess', _13 => _13.config]) && _optionalChain([result2, 'optionalAccess', _14 => _14.configFile]) && Object.keys(result2.config).length > 0) {
|
|
1719
|
-
|
|
1719
|
+
_chunkZBZWMZ72cjs.writeSystem.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
1720
1720
|
logLevel: "all"
|
|
1721
1721
|
});
|
|
1722
|
-
config =
|
|
1722
|
+
config = _chunkUIA5EFWJcjs.defu.call(void 0, _nullishCoalesce(result2.config, () => ( {})), _nullishCoalesce(config, () => ( {})));
|
|
1723
1723
|
}
|
|
1724
1724
|
}
|
|
1725
1725
|
}
|