nitro-nightly 3.0.1-20260106-122901-e9c3a660 → 3.0.1-20260106-182834-5019d347

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.
Files changed (72) hide show
  1. package/dist/_build/rolldown.mjs +11 -11
  2. package/dist/_build/rollup.mjs +19 -11
  3. package/dist/_build/shared.mjs +3 -2
  4. package/dist/_build/shared2.mjs +1 -1
  5. package/dist/_build/shared3.mjs +2 -2
  6. package/dist/_build/vite.build.mjs +8 -9
  7. package/dist/_dev.mjs +4 -3
  8. package/dist/_libs/@hiogawa/vite-plugin-fullstack.mjs +6 -1561
  9. package/dist/_libs/@jridgewell/gen-mapping.mjs +2 -304
  10. package/dist/_libs/@jridgewell/remapping.mjs +2 -1
  11. package/dist/_libs/@jridgewell/resolve-uri.mjs +166 -0
  12. package/dist/_libs/@jridgewell/sourcemap-codec.mjs +167 -0
  13. package/dist/_libs/@jridgewell/trace-mapping.mjs +141 -0
  14. package/dist/_libs/@rolldown/pluginutils.mjs +31 -0
  15. package/dist/_libs/@rollup/plugin-commonjs.mjs +33 -2636
  16. package/dist/_libs/@rollup/plugin-inject.mjs +3 -2
  17. package/dist/_libs/@rollup/plugin-json.mjs +1 -1
  18. package/dist/_libs/@rollup/plugin-node-resolve.mjs +8 -1112
  19. package/dist/_libs/@rollup/plugin-replace.mjs +2 -2
  20. package/dist/_libs/@rollup/pluginutils.mjs +241 -0
  21. package/dist/_libs/c12.mjs +63 -2513
  22. package/dist/_libs/chokidar.mjs +2 -235
  23. package/dist/_libs/commondir.mjs +22 -0
  24. package/dist/_libs/confbox.mjs +1511 -911
  25. package/dist/_libs/deepmerge.mjs +86 -0
  26. package/dist/_libs/dotenv.mjs +345 -0
  27. package/dist/_libs/estree-walker.mjs +144 -1
  28. package/dist/_libs/exsolve.mjs +1007 -0
  29. package/dist/_libs/fdir.mjs +514 -0
  30. package/dist/_libs/function-bind.mjs +63 -0
  31. package/dist/_libs/giget.mjs +1380 -2238
  32. package/dist/_libs/hasown.mjs +14 -0
  33. package/dist/_libs/is-core-module.mjs +220 -0
  34. package/dist/_libs/is-module.mjs +13 -0
  35. package/dist/_libs/is-reference.mjs +33 -0
  36. package/dist/_libs/js-tokens.mjs +382 -0
  37. package/dist/_libs/local-pkg.mjs +7 -1561
  38. package/dist/_libs/magic-string.mjs +939 -0
  39. package/dist/_libs/mlly.mjs +1415 -0
  40. package/dist/_libs/node-fetch-native.mjs +7 -0
  41. package/dist/_libs/nypm.mjs +239 -0
  42. package/dist/_libs/path-parse.mjs +47 -0
  43. package/dist/_libs/pathe.mjs +163 -2
  44. package/dist/_libs/perfect-debounce.mjs +89 -0
  45. package/dist/_libs/picomatch.mjs +1673 -0
  46. package/dist/_libs/pkg-types.mjs +197 -0
  47. package/dist/_libs/quansync.mjs +90 -0
  48. package/dist/_libs/rc9.mjs +136 -0
  49. package/dist/_libs/readdirp.mjs +237 -0
  50. package/dist/_libs/resolve.mjs +689 -0
  51. package/dist/_libs/strip-literal.mjs +51 -0
  52. package/dist/_libs/tinyexec.mjs +627 -0
  53. package/dist/_libs/tinyglobby.mjs +2 -1
  54. package/dist/_libs/tsconfck.mjs +1 -1
  55. package/dist/_libs/unimport.mjs +93 -1617
  56. package/dist/_libs/unplugin-utils.mjs +61 -0
  57. package/dist/_libs/unplugin.mjs +1225 -0
  58. package/dist/_libs/unwasm.mjs +3 -2
  59. package/dist/_libs/webpack-virtual-modules.mjs +272 -0
  60. package/dist/_nitro.mjs +9 -7
  61. package/dist/_nitro2.mjs +6 -7
  62. package/dist/_presets.mjs +9 -7
  63. package/dist/builder.mjs +5 -5
  64. package/dist/cli/_chunks/build.mjs +1 -1
  65. package/dist/cli/_chunks/dev.mjs +1 -1
  66. package/dist/cli/_chunks/list.mjs +1 -1
  67. package/dist/cli/_chunks/prepare.mjs +1 -1
  68. package/dist/cli/_chunks/run.mjs +1 -1
  69. package/dist/vite.mjs +1825 -22
  70. package/package.json +2 -2
  71. package/dist/_build/shared4.mjs +0 -1112
  72. package/dist/_build/vite.plugin.mjs +0 -712
@@ -0,0 +1,86 @@
1
+ import { t as __commonJSMin } from "../_rolldown.mjs";
2
+
3
+ //#region node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js
4
+ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
+ var isMergeableObject = function isMergeableObject(value) {
6
+ return isNonNullObject(value) && !isSpecial(value);
7
+ };
8
+ function isNonNullObject(value) {
9
+ return !!value && typeof value === "object";
10
+ }
11
+ function isSpecial(value) {
12
+ var stringValue = Object.prototype.toString.call(value);
13
+ return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
14
+ }
15
+ var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for ? Symbol.for("react.element") : 60103;
16
+ function isReactElement(value) {
17
+ return value.$$typeof === REACT_ELEMENT_TYPE;
18
+ }
19
+ function emptyTarget(val) {
20
+ return Array.isArray(val) ? [] : {};
21
+ }
22
+ function cloneUnlessOtherwiseSpecified(value, options) {
23
+ return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;
24
+ }
25
+ function defaultArrayMerge(target, source, options) {
26
+ return target.concat(source).map(function(element) {
27
+ return cloneUnlessOtherwiseSpecified(element, options);
28
+ });
29
+ }
30
+ function getMergeFunction(key, options) {
31
+ if (!options.customMerge) return deepmerge;
32
+ var customMerge = options.customMerge(key);
33
+ return typeof customMerge === "function" ? customMerge : deepmerge;
34
+ }
35
+ function getEnumerableOwnPropertySymbols(target) {
36
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
37
+ return Object.propertyIsEnumerable.call(target, symbol);
38
+ }) : [];
39
+ }
40
+ function getKeys(target) {
41
+ return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
42
+ }
43
+ function propertyIsOnObject(object, property) {
44
+ try {
45
+ return property in object;
46
+ } catch (_) {
47
+ return false;
48
+ }
49
+ }
50
+ function propertyIsUnsafe(target, key) {
51
+ return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
52
+ }
53
+ function mergeObject(target, source, options) {
54
+ var destination = {};
55
+ if (options.isMergeableObject(target)) getKeys(target).forEach(function(key) {
56
+ destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
57
+ });
58
+ getKeys(source).forEach(function(key) {
59
+ if (propertyIsUnsafe(target, key)) return;
60
+ if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
61
+ else destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
62
+ });
63
+ return destination;
64
+ }
65
+ function deepmerge(target, source, options) {
66
+ options = options || {};
67
+ options.arrayMerge = options.arrayMerge || defaultArrayMerge;
68
+ options.isMergeableObject = options.isMergeableObject || isMergeableObject;
69
+ options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
70
+ var sourceIsArray = Array.isArray(source);
71
+ if (!(sourceIsArray === Array.isArray(target))) return cloneUnlessOtherwiseSpecified(source, options);
72
+ else if (sourceIsArray) return options.arrayMerge(target, source, options);
73
+ else return mergeObject(target, source, options);
74
+ }
75
+ deepmerge.all = function deepmergeAll(array, options) {
76
+ if (!Array.isArray(array)) throw new Error("first argument should be an array");
77
+ return array.reduce(function(prev, next) {
78
+ return deepmerge(prev, next, options);
79
+ }, {});
80
+ };
81
+ var deepmerge_1 = deepmerge;
82
+ module.exports = deepmerge_1;
83
+ }));
84
+
85
+ //#endregion
86
+ export { require_cjs as t };
@@ -0,0 +1,345 @@
1
+ import { r as __require, t as __commonJSMin } from "../_rolldown.mjs";
2
+
3
+ //#region node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.json
4
+ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
+ module.exports = {
6
+ "name": "dotenv",
7
+ "version": "17.2.3",
8
+ "description": "Loads environment variables from .env file",
9
+ "main": "lib/main.js",
10
+ "types": "lib/main.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./lib/main.d.ts",
14
+ "require": "./lib/main.js",
15
+ "default": "./lib/main.js"
16
+ },
17
+ "./config": "./config.js",
18
+ "./config.js": "./config.js",
19
+ "./lib/env-options": "./lib/env-options.js",
20
+ "./lib/env-options.js": "./lib/env-options.js",
21
+ "./lib/cli-options": "./lib/cli-options.js",
22
+ "./lib/cli-options.js": "./lib/cli-options.js",
23
+ "./package.json": "./package.json"
24
+ },
25
+ "scripts": {
26
+ "dts-check": "tsc --project tests/types/tsconfig.json",
27
+ "lint": "standard",
28
+ "pretest": "npm run lint && npm run dts-check",
29
+ "test": "tap run tests/**/*.js --allow-empty-coverage --disable-coverage --timeout=60000",
30
+ "test:coverage": "tap run tests/**/*.js --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov",
31
+ "prerelease": "npm test",
32
+ "release": "standard-version"
33
+ },
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "git://github.com/motdotla/dotenv.git"
37
+ },
38
+ "homepage": "https://github.com/motdotla/dotenv#readme",
39
+ "funding": "https://dotenvx.com",
40
+ "keywords": [
41
+ "dotenv",
42
+ "env",
43
+ ".env",
44
+ "environment",
45
+ "variables",
46
+ "config",
47
+ "settings"
48
+ ],
49
+ "readmeFilename": "README.md",
50
+ "license": "BSD-2-Clause",
51
+ "devDependencies": {
52
+ "@types/node": "^18.11.3",
53
+ "decache": "^4.6.2",
54
+ "sinon": "^14.0.1",
55
+ "standard": "^17.0.0",
56
+ "standard-version": "^9.5.0",
57
+ "tap": "^19.2.0",
58
+ "typescript": "^4.8.4"
59
+ },
60
+ "engines": { "node": ">=12" },
61
+ "browser": { "fs": false }
62
+ };
63
+ }));
64
+
65
+ //#endregion
66
+ //#region node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.js
67
+ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
68
+ const fs = __require("fs");
69
+ const path = __require("path");
70
+ const os = __require("os");
71
+ const crypto = __require("crypto");
72
+ const version = require_package().version;
73
+ const TIPS = [
74
+ "🔐 encrypt with Dotenvx: https://dotenvx.com",
75
+ "🔐 prevent committing .env to code: https://dotenvx.com/precommit",
76
+ "🔐 prevent building .env in docker: https://dotenvx.com/prebuild",
77
+ "📡 add observability to secrets: https://dotenvx.com/ops",
78
+ "👥 sync secrets across teammates & machines: https://dotenvx.com/ops",
79
+ "🗂️ backup and recover secrets: https://dotenvx.com/ops",
80
+ "✅ audit secrets and track compliance: https://dotenvx.com/ops",
81
+ "🔄 add secrets lifecycle management: https://dotenvx.com/ops",
82
+ "🔑 add access controls to secrets: https://dotenvx.com/ops",
83
+ "🛠️ run anywhere with `dotenvx run -- yourcommand`",
84
+ "⚙️ specify custom .env file path with { path: '/custom/path/.env' }",
85
+ "⚙️ enable debug logging with { debug: true }",
86
+ "⚙️ override existing env vars with { override: true }",
87
+ "⚙️ suppress all logs with { quiet: true }",
88
+ "⚙️ write to custom object with { processEnv: myObject }",
89
+ "⚙️ load multiple .env files with { path: ['.env.local', '.env'] }"
90
+ ];
91
+ function _getRandomTip() {
92
+ return TIPS[Math.floor(Math.random() * TIPS.length)];
93
+ }
94
+ function parseBoolean(value) {
95
+ if (typeof value === "string") return ![
96
+ "false",
97
+ "0",
98
+ "no",
99
+ "off",
100
+ ""
101
+ ].includes(value.toLowerCase());
102
+ return Boolean(value);
103
+ }
104
+ function supportsAnsi() {
105
+ return process.stdout.isTTY;
106
+ }
107
+ function dim(text) {
108
+ return supportsAnsi() ? `\x1b[2m${text}\x1b[0m` : text;
109
+ }
110
+ const LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;
111
+ function parse(src) {
112
+ const obj = {};
113
+ let lines = src.toString();
114
+ lines = lines.replace(/\r\n?/gm, "\n");
115
+ let match;
116
+ while ((match = LINE.exec(lines)) != null) {
117
+ const key = match[1];
118
+ let value = match[2] || "";
119
+ value = value.trim();
120
+ const maybeQuote = value[0];
121
+ value = value.replace(/^(['"`])([\s\S]*)\1$/gm, "$2");
122
+ if (maybeQuote === "\"") {
123
+ value = value.replace(/\\n/g, "\n");
124
+ value = value.replace(/\\r/g, "\r");
125
+ }
126
+ obj[key] = value;
127
+ }
128
+ return obj;
129
+ }
130
+ function _parseVault(options) {
131
+ options = options || {};
132
+ const vaultPath = _vaultPath(options);
133
+ options.path = vaultPath;
134
+ const result = DotenvModule.configDotenv(options);
135
+ if (!result.parsed) {
136
+ const err = /* @__PURE__ */ new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
137
+ err.code = "MISSING_DATA";
138
+ throw err;
139
+ }
140
+ const keys = _dotenvKey(options).split(",");
141
+ const length = keys.length;
142
+ let decrypted;
143
+ for (let i = 0; i < length; i++) try {
144
+ const attrs = _instructions(result, keys[i].trim());
145
+ decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
146
+ break;
147
+ } catch (error) {
148
+ if (i + 1 >= length) throw error;
149
+ }
150
+ return DotenvModule.parse(decrypted);
151
+ }
152
+ function _warn(message) {
153
+ console.error(`[dotenv@${version}][WARN] ${message}`);
154
+ }
155
+ function _debug(message) {
156
+ console.log(`[dotenv@${version}][DEBUG] ${message}`);
157
+ }
158
+ function _log(message) {
159
+ console.log(`[dotenv@${version}] ${message}`);
160
+ }
161
+ function _dotenvKey(options) {
162
+ if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) return options.DOTENV_KEY;
163
+ if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) return process.env.DOTENV_KEY;
164
+ return "";
165
+ }
166
+ function _instructions(result, dotenvKey) {
167
+ let uri;
168
+ try {
169
+ uri = new URL(dotenvKey);
170
+ } catch (error) {
171
+ if (error.code === "ERR_INVALID_URL") {
172
+ const err = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
173
+ err.code = "INVALID_DOTENV_KEY";
174
+ throw err;
175
+ }
176
+ throw error;
177
+ }
178
+ const key = uri.password;
179
+ if (!key) {
180
+ const err = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Missing key part");
181
+ err.code = "INVALID_DOTENV_KEY";
182
+ throw err;
183
+ }
184
+ const environment = uri.searchParams.get("environment");
185
+ if (!environment) {
186
+ const err = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Missing environment part");
187
+ err.code = "INVALID_DOTENV_KEY";
188
+ throw err;
189
+ }
190
+ const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
191
+ const ciphertext = result.parsed[environmentKey];
192
+ if (!ciphertext) {
193
+ const err = /* @__PURE__ */ new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
194
+ err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
195
+ throw err;
196
+ }
197
+ return {
198
+ ciphertext,
199
+ key
200
+ };
201
+ }
202
+ function _vaultPath(options) {
203
+ let possibleVaultPath = null;
204
+ if (options && options.path && options.path.length > 0) if (Array.isArray(options.path)) {
205
+ for (const filepath of options.path) if (fs.existsSync(filepath)) possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
206
+ } else possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
207
+ else possibleVaultPath = path.resolve(process.cwd(), ".env.vault");
208
+ if (fs.existsSync(possibleVaultPath)) return possibleVaultPath;
209
+ return null;
210
+ }
211
+ function _resolveHome(envPath) {
212
+ return envPath[0] === "~" ? path.join(os.homedir(), envPath.slice(1)) : envPath;
213
+ }
214
+ function _configVault(options) {
215
+ const debug = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || options && options.debug);
216
+ const quiet = parseBoolean(process.env.DOTENV_CONFIG_QUIET || options && options.quiet);
217
+ if (debug || !quiet) _log("Loading env from encrypted .env.vault");
218
+ const parsed = DotenvModule._parseVault(options);
219
+ let processEnv = process.env;
220
+ if (options && options.processEnv != null) processEnv = options.processEnv;
221
+ DotenvModule.populate(processEnv, parsed, options);
222
+ return { parsed };
223
+ }
224
+ function configDotenv(options) {
225
+ const dotenvPath = path.resolve(process.cwd(), ".env");
226
+ let encoding = "utf8";
227
+ let processEnv = process.env;
228
+ if (options && options.processEnv != null) processEnv = options.processEnv;
229
+ let debug = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || options && options.debug);
230
+ let quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || options && options.quiet);
231
+ if (options && options.encoding) encoding = options.encoding;
232
+ else if (debug) _debug("No encoding is specified. UTF-8 is used by default");
233
+ let optionPaths = [dotenvPath];
234
+ if (options && options.path) if (!Array.isArray(options.path)) optionPaths = [_resolveHome(options.path)];
235
+ else {
236
+ optionPaths = [];
237
+ for (const filepath of options.path) optionPaths.push(_resolveHome(filepath));
238
+ }
239
+ let lastError;
240
+ const parsedAll = {};
241
+ for (const path$1 of optionPaths) try {
242
+ const parsed = DotenvModule.parse(fs.readFileSync(path$1, { encoding }));
243
+ DotenvModule.populate(parsedAll, parsed, options);
244
+ } catch (e) {
245
+ if (debug) _debug(`Failed to load ${path$1} ${e.message}`);
246
+ lastError = e;
247
+ }
248
+ const populated = DotenvModule.populate(processEnv, parsedAll, options);
249
+ debug = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || debug);
250
+ quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || quiet);
251
+ if (debug || !quiet) {
252
+ const keysCount = Object.keys(populated).length;
253
+ const shortPaths = [];
254
+ for (const filePath of optionPaths) try {
255
+ const relative = path.relative(process.cwd(), filePath);
256
+ shortPaths.push(relative);
257
+ } catch (e) {
258
+ if (debug) _debug(`Failed to load ${filePath} ${e.message}`);
259
+ lastError = e;
260
+ }
261
+ _log(`injecting env (${keysCount}) from ${shortPaths.join(",")} ${dim(`-- tip: ${_getRandomTip()}`)}`);
262
+ }
263
+ if (lastError) return {
264
+ parsed: parsedAll,
265
+ error: lastError
266
+ };
267
+ else return { parsed: parsedAll };
268
+ }
269
+ function config(options) {
270
+ if (_dotenvKey(options).length === 0) return DotenvModule.configDotenv(options);
271
+ const vaultPath = _vaultPath(options);
272
+ if (!vaultPath) {
273
+ _warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`);
274
+ return DotenvModule.configDotenv(options);
275
+ }
276
+ return DotenvModule._configVault(options);
277
+ }
278
+ function decrypt(encrypted, keyStr) {
279
+ const key = Buffer.from(keyStr.slice(-64), "hex");
280
+ let ciphertext = Buffer.from(encrypted, "base64");
281
+ const nonce = ciphertext.subarray(0, 12);
282
+ const authTag = ciphertext.subarray(-16);
283
+ ciphertext = ciphertext.subarray(12, -16);
284
+ try {
285
+ const aesgcm = crypto.createDecipheriv("aes-256-gcm", key, nonce);
286
+ aesgcm.setAuthTag(authTag);
287
+ return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
288
+ } catch (error) {
289
+ const isRange = error instanceof RangeError;
290
+ const invalidKeyLength = error.message === "Invalid key length";
291
+ const decryptionFailed = error.message === "Unsupported state or unable to authenticate data";
292
+ if (isRange || invalidKeyLength) {
293
+ const err = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
294
+ err.code = "INVALID_DOTENV_KEY";
295
+ throw err;
296
+ } else if (decryptionFailed) {
297
+ const err = /* @__PURE__ */ new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
298
+ err.code = "DECRYPTION_FAILED";
299
+ throw err;
300
+ } else throw error;
301
+ }
302
+ }
303
+ function populate(processEnv, parsed, options = {}) {
304
+ const debug = Boolean(options && options.debug);
305
+ const override = Boolean(options && options.override);
306
+ const populated = {};
307
+ if (typeof parsed !== "object") {
308
+ const err = /* @__PURE__ */ new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
309
+ err.code = "OBJECT_REQUIRED";
310
+ throw err;
311
+ }
312
+ for (const key of Object.keys(parsed)) if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
313
+ if (override === true) {
314
+ processEnv[key] = parsed[key];
315
+ populated[key] = parsed[key];
316
+ }
317
+ if (debug) if (override === true) _debug(`"${key}" is already defined and WAS overwritten`);
318
+ else _debug(`"${key}" is already defined and was NOT overwritten`);
319
+ } else {
320
+ processEnv[key] = parsed[key];
321
+ populated[key] = parsed[key];
322
+ }
323
+ return populated;
324
+ }
325
+ const DotenvModule = {
326
+ configDotenv,
327
+ _configVault,
328
+ _parseVault,
329
+ config,
330
+ decrypt,
331
+ parse,
332
+ populate
333
+ };
334
+ module.exports.configDotenv = DotenvModule.configDotenv;
335
+ module.exports._configVault = DotenvModule._configVault;
336
+ module.exports._parseVault = DotenvModule._parseVault;
337
+ module.exports.config = DotenvModule.config;
338
+ module.exports.decrypt = DotenvModule.decrypt;
339
+ module.exports.parse = DotenvModule.parse;
340
+ module.exports.populate = DotenvModule.populate;
341
+ module.exports = DotenvModule;
342
+ }));
343
+
344
+ //#endregion
345
+ export { require_main as t };
@@ -1,3 +1,146 @@
1
+ //#region node_modules/.pnpm/estree-walker@2.0.2/node_modules/estree-walker/dist/esm/estree-walker.js
2
+ /** @typedef { import('estree').BaseNode} BaseNode */
3
+ /** @typedef {{
4
+ skip: () => void;
5
+ remove: () => void;
6
+ replace: (node: BaseNode) => void;
7
+ }} WalkerContext */
8
+ var WalkerBase$1 = class {
9
+ constructor() {
10
+ /** @type {boolean} */
11
+ this.should_skip = false;
12
+ /** @type {boolean} */
13
+ this.should_remove = false;
14
+ /** @type {BaseNode | null} */
15
+ this.replacement = null;
16
+ /** @type {WalkerContext} */
17
+ this.context = {
18
+ skip: () => this.should_skip = true,
19
+ remove: () => this.should_remove = true,
20
+ replace: (node) => this.replacement = node
21
+ };
22
+ }
23
+ /**
24
+ *
25
+ * @param {any} parent
26
+ * @param {string} prop
27
+ * @param {number} index
28
+ * @param {BaseNode} node
29
+ */
30
+ replace(parent, prop, index, node) {
31
+ if (parent) if (index !== null) parent[prop][index] = node;
32
+ else parent[prop] = node;
33
+ }
34
+ /**
35
+ *
36
+ * @param {any} parent
37
+ * @param {string} prop
38
+ * @param {number} index
39
+ */
40
+ remove(parent, prop, index) {
41
+ if (parent) if (index !== null) parent[prop].splice(index, 1);
42
+ else delete parent[prop];
43
+ }
44
+ };
45
+ /** @typedef { import('estree').BaseNode} BaseNode */
46
+ /** @typedef { import('./walker.js').WalkerContext} WalkerContext */
47
+ /** @typedef {(
48
+ * this: WalkerContext,
49
+ * node: BaseNode,
50
+ * parent: BaseNode,
51
+ * key: string,
52
+ * index: number
53
+ * ) => void} SyncHandler */
54
+ var SyncWalker$1 = class extends WalkerBase$1 {
55
+ /**
56
+ *
57
+ * @param {SyncHandler} enter
58
+ * @param {SyncHandler} leave
59
+ */
60
+ constructor(enter, leave) {
61
+ super();
62
+ /** @type {SyncHandler} */
63
+ this.enter = enter;
64
+ /** @type {SyncHandler} */
65
+ this.leave = leave;
66
+ }
67
+ /**
68
+ *
69
+ * @param {BaseNode} node
70
+ * @param {BaseNode} parent
71
+ * @param {string} [prop]
72
+ * @param {number} [index]
73
+ * @returns {BaseNode}
74
+ */
75
+ visit(node, parent, prop, index) {
76
+ if (node) {
77
+ if (this.enter) {
78
+ const _should_skip = this.should_skip;
79
+ const _should_remove = this.should_remove;
80
+ const _replacement = this.replacement;
81
+ this.should_skip = false;
82
+ this.should_remove = false;
83
+ this.replacement = null;
84
+ this.enter.call(this.context, node, parent, prop, index);
85
+ if (this.replacement) {
86
+ node = this.replacement;
87
+ this.replace(parent, prop, index, node);
88
+ }
89
+ if (this.should_remove) this.remove(parent, prop, index);
90
+ const skipped = this.should_skip;
91
+ const removed = this.should_remove;
92
+ this.should_skip = _should_skip;
93
+ this.should_remove = _should_remove;
94
+ this.replacement = _replacement;
95
+ if (skipped) return node;
96
+ if (removed) return null;
97
+ }
98
+ for (const key in node) {
99
+ const value = node[key];
100
+ if (typeof value !== "object") continue;
101
+ else if (Array.isArray(value)) {
102
+ for (let i = 0; i < value.length; i += 1) if (value[i] !== null && typeof value[i].type === "string") {
103
+ if (!this.visit(value[i], node, key, i)) i--;
104
+ }
105
+ } else if (value !== null && typeof value.type === "string") this.visit(value, node, key, null);
106
+ }
107
+ if (this.leave) {
108
+ const _replacement = this.replacement;
109
+ const _should_remove = this.should_remove;
110
+ this.replacement = null;
111
+ this.should_remove = false;
112
+ this.leave.call(this.context, node, parent, prop, index);
113
+ if (this.replacement) {
114
+ node = this.replacement;
115
+ this.replace(parent, prop, index, node);
116
+ }
117
+ if (this.should_remove) this.remove(parent, prop, index);
118
+ const removed = this.should_remove;
119
+ this.replacement = _replacement;
120
+ this.should_remove = _should_remove;
121
+ if (removed) return null;
122
+ }
123
+ }
124
+ return node;
125
+ }
126
+ };
127
+ /** @typedef { import('estree').BaseNode} BaseNode */
128
+ /** @typedef { import('./sync.js').SyncHandler} SyncHandler */
129
+ /** @typedef { import('./async.js').AsyncHandler} AsyncHandler */
130
+ /**
131
+ *
132
+ * @param {BaseNode} ast
133
+ * @param {{
134
+ * enter?: SyncHandler
135
+ * leave?: SyncHandler
136
+ * }} walker
137
+ * @returns {BaseNode}
138
+ */
139
+ function walk$1(ast, { enter, leave }) {
140
+ return new SyncWalker$1(enter, leave).visit(ast, null);
141
+ }
142
+
143
+ //#endregion
1
144
  //#region node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/walker.js
2
145
  /**
3
146
  * @typedef { import('estree').Node} Node
@@ -184,4 +327,4 @@ function walk(ast, { enter, leave }) {
184
327
  }
185
328
 
186
329
  //#endregion
187
- export { walk as t };
330
+ export { walk$1 as n, walk as t };