vite 3.0.0-alpha.2 → 3.0.0-alpha.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/dist/node/chunks/{dep-205b15fe.js → dep-5eede05c.js} +2 -2
- package/dist/node/chunks/{dep-c15b7842.js → dep-6f5ac69c.js} +549 -537
- package/dist/node/chunks/{dep-c6d28e94.js → dep-b1fc04c1.js} +1 -1
- package/dist/node/chunks/{dep-df464a73.js → dep-da8244f4.js} +1 -1
- package/dist/node/cli.js +12 -16
- package/dist/node/config.d.ts +1 -4
- package/dist/node/constants.js +1 -1
- package/dist/node/env.d.ts +3 -0
- package/dist/node/index.js +2 -2
- package/dist/node/publicUtils.d.ts +1 -0
- package/dist/node/utils.d.ts +1 -2
- package/dist/node-cjs/publicUtils.cjs +288 -29
- package/package.json +1 -1
|
@@ -5,24 +5,24 @@ import require$$0$7, { URL as URL$3, pathToFileURL, URLSearchParams, fileURLToPa
|
|
|
5
5
|
import { performance } from 'perf_hooks';
|
|
6
6
|
import require$$0$6, { createRequire as createRequire$1, builtinModules } from 'module';
|
|
7
7
|
import require$$0$2 from 'tty';
|
|
8
|
-
import require$$2 from 'os';
|
|
9
8
|
import { transform as transform$2, formatMessages, build as build$3 } from 'esbuild';
|
|
10
9
|
import require$$0$3 from 'events';
|
|
11
10
|
import require$$5 from 'assert';
|
|
12
11
|
import __resolve from 'resolve';
|
|
13
12
|
import require$$0$4, { promisify as promisify$4 } from 'util';
|
|
14
13
|
import require$$3 from 'net';
|
|
15
|
-
import require$$1$
|
|
14
|
+
import require$$1$2, { STATUS_CODES } from 'http';
|
|
16
15
|
import require$$0$5 from 'stream';
|
|
17
|
-
import require$$
|
|
18
|
-
import require$$
|
|
16
|
+
import require$$1 from 'os';
|
|
17
|
+
import require$$2, { execSync } from 'child_process';
|
|
18
|
+
import require$$1$3, { createHash as createHash$2 } from 'crypto';
|
|
19
19
|
import { CLIENT_ENTRY, DEFAULT_EXTENSIONS as DEFAULT_EXTENSIONS$1, VALID_ID_PREFIX, FS_PREFIX, CLIENT_PUBLIC_PATH, ENV_PUBLIC_PATH, SPECIAL_QUERY_RE, KNOWN_ASSET_TYPES, JS_TYPES_RE, OPTIMIZABLE_ENTRY_RE, DEFAULT_MAIN_FIELDS, DEP_VERSION_RE, VERSION, NULL_BYTE_PLACEHOLDER, CLIENT_DIR, VITE_PACKAGE_DIR, ENV_ENTRY, DEFAULT_ASSETS_RE } from '../constants.js';
|
|
20
20
|
import require$$0$8 from 'buffer';
|
|
21
21
|
import * as qs from 'querystring';
|
|
22
22
|
import zlib$1, { gzip } from 'zlib';
|
|
23
|
-
import require$$1$
|
|
23
|
+
import require$$1$4, { createServer as createServer$2 } from 'https';
|
|
24
24
|
import require$$4 from 'tls';
|
|
25
|
-
import require$$1 from 'worker_threads';
|
|
25
|
+
import require$$1$1 from 'worker_threads';
|
|
26
26
|
import readline from 'readline';
|
|
27
27
|
|
|
28
28
|
import { fileURLToPath as __cjs_fileURLToPath } from 'url';
|
|
@@ -117,201 +117,9 @@ picocolors.exports.createColors = createColors;
|
|
|
117
117
|
|
|
118
118
|
var colors$1 = picocolors.exports;
|
|
119
119
|
|
|
120
|
-
var main$1 = {exports: {}};
|
|
121
|
-
|
|
122
|
-
const fs$m = fs__default;
|
|
123
|
-
const path$o = path$p;
|
|
124
|
-
const os$2 = require$$2;
|
|
125
|
-
|
|
126
|
-
function log (message) {
|
|
127
|
-
console.log(`[dotenv][DEBUG] ${message}`);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
const NEWLINE = '\n';
|
|
131
|
-
const RE_INI_KEY_VAL = /^\s*([\w.-]+)\s*=\s*("[^"]*"|'[^']*'|.*?)(\s+#.*)?$/;
|
|
132
|
-
const RE_NEWLINES = /\\n/g;
|
|
133
|
-
const NEWLINES_MATCH = /\r\n|\n|\r/;
|
|
134
|
-
|
|
135
|
-
// Parses src into an Object
|
|
136
|
-
function parse$m (src, options) {
|
|
137
|
-
const debug = Boolean(options && options.debug);
|
|
138
|
-
const multiline = Boolean(options && options.multiline);
|
|
139
|
-
const obj = {};
|
|
140
|
-
|
|
141
|
-
// convert Buffers before splitting into lines and processing
|
|
142
|
-
const lines = src.toString().split(NEWLINES_MATCH);
|
|
143
|
-
|
|
144
|
-
for (let idx = 0; idx < lines.length; idx++) {
|
|
145
|
-
let line = lines[idx];
|
|
146
|
-
|
|
147
|
-
// matching "KEY' and 'VAL' in 'KEY=VAL'
|
|
148
|
-
const keyValueArr = line.match(RE_INI_KEY_VAL);
|
|
149
|
-
// matched?
|
|
150
|
-
if (keyValueArr != null) {
|
|
151
|
-
const key = keyValueArr[1];
|
|
152
|
-
// default undefined or missing values to empty string
|
|
153
|
-
let val = (keyValueArr[2] || '');
|
|
154
|
-
let end = val.length - 1;
|
|
155
|
-
const isDoubleQuoted = val[0] === '"' && val[end] === '"';
|
|
156
|
-
const isSingleQuoted = val[0] === "'" && val[end] === "'";
|
|
157
|
-
|
|
158
|
-
const isMultilineDoubleQuoted = val[0] === '"' && val[end] !== '"';
|
|
159
|
-
const isMultilineSingleQuoted = val[0] === "'" && val[end] !== "'";
|
|
160
|
-
|
|
161
|
-
// if parsing line breaks and the value starts with a quote
|
|
162
|
-
if (multiline && (isMultilineDoubleQuoted || isMultilineSingleQuoted)) {
|
|
163
|
-
const quoteChar = isMultilineDoubleQuoted ? '"' : "'";
|
|
164
|
-
|
|
165
|
-
val = val.substring(1);
|
|
166
|
-
|
|
167
|
-
while (idx++ < lines.length - 1) {
|
|
168
|
-
line = lines[idx];
|
|
169
|
-
end = line.length - 1;
|
|
170
|
-
if (line[end] === quoteChar) {
|
|
171
|
-
val += NEWLINE + line.substring(0, end);
|
|
172
|
-
break
|
|
173
|
-
}
|
|
174
|
-
val += NEWLINE + line;
|
|
175
|
-
}
|
|
176
|
-
// if single or double quoted, remove quotes
|
|
177
|
-
} else if (isSingleQuoted || isDoubleQuoted) {
|
|
178
|
-
val = val.substring(1, end);
|
|
179
|
-
|
|
180
|
-
// if double quoted, expand newlines
|
|
181
|
-
if (isDoubleQuoted) {
|
|
182
|
-
val = val.replace(RE_NEWLINES, NEWLINE);
|
|
183
|
-
}
|
|
184
|
-
} else {
|
|
185
|
-
// remove surrounding whitespace
|
|
186
|
-
val = val.trim();
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
obj[key] = val;
|
|
190
|
-
} else if (debug) {
|
|
191
|
-
const trimmedLine = line.trim();
|
|
192
|
-
|
|
193
|
-
// ignore empty and commented lines
|
|
194
|
-
if (trimmedLine.length && trimmedLine[0] !== '#') {
|
|
195
|
-
log(`Failed to match key and value when parsing line ${idx + 1}: ${line}`);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
return obj
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
function resolveHome (envPath) {
|
|
204
|
-
return envPath[0] === '~' ? path$o.join(os$2.homedir(), envPath.slice(1)) : envPath
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
// Populates process.env from .env file
|
|
208
|
-
function config$1 (options) {
|
|
209
|
-
let dotenvPath = path$o.resolve(process.cwd(), '.env');
|
|
210
|
-
let encoding = 'utf8';
|
|
211
|
-
const debug = Boolean(options && options.debug);
|
|
212
|
-
const override = Boolean(options && options.override);
|
|
213
|
-
const multiline = Boolean(options && options.multiline);
|
|
214
|
-
|
|
215
|
-
if (options) {
|
|
216
|
-
if (options.path != null) {
|
|
217
|
-
dotenvPath = resolveHome(options.path);
|
|
218
|
-
}
|
|
219
|
-
if (options.encoding != null) {
|
|
220
|
-
encoding = options.encoding;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
try {
|
|
225
|
-
// specifying an encoding returns a string instead of a buffer
|
|
226
|
-
const parsed = DotenvModule.parse(fs$m.readFileSync(dotenvPath, { encoding }), { debug, multiline });
|
|
227
|
-
|
|
228
|
-
Object.keys(parsed).forEach(function (key) {
|
|
229
|
-
if (!Object.prototype.hasOwnProperty.call(process.env, key)) {
|
|
230
|
-
process.env[key] = parsed[key];
|
|
231
|
-
} else {
|
|
232
|
-
if (override === true) {
|
|
233
|
-
process.env[key] = parsed[key];
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
if (debug) {
|
|
237
|
-
if (override === true) {
|
|
238
|
-
log(`"${key}" is already defined in \`process.env\` and WAS overwritten`);
|
|
239
|
-
} else {
|
|
240
|
-
log(`"${key}" is already defined in \`process.env\` and was NOT overwritten`);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
});
|
|
245
|
-
|
|
246
|
-
return { parsed }
|
|
247
|
-
} catch (e) {
|
|
248
|
-
if (debug) {
|
|
249
|
-
log(`Failed to load ${dotenvPath} ${e.message}`);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
return { error: e }
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
const DotenvModule = {
|
|
257
|
-
config: config$1,
|
|
258
|
-
parse: parse$m
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
main$1.exports.config = DotenvModule.config;
|
|
262
|
-
main$1.exports.parse = DotenvModule.parse;
|
|
263
|
-
main$1.exports = DotenvModule;
|
|
264
|
-
|
|
265
|
-
var dotenv = main$1.exports;
|
|
266
|
-
|
|
267
|
-
var dotenvExpand = function (config) {
|
|
268
|
-
// if ignoring process.env, use a blank object
|
|
269
|
-
var environment = config.ignoreProcessEnv ? {} : process.env;
|
|
270
|
-
|
|
271
|
-
var interpolate = function (envValue) {
|
|
272
|
-
var matches = envValue.match(/(.?\${?(?:[a-zA-Z0-9_]+)?}?)/g) || [];
|
|
273
|
-
|
|
274
|
-
return matches.reduce(function (newEnv, match) {
|
|
275
|
-
var parts = /(.?)\${?([a-zA-Z0-9_]+)?}?/g.exec(match);
|
|
276
|
-
var prefix = parts[1];
|
|
277
|
-
|
|
278
|
-
var value, replacePart;
|
|
279
|
-
|
|
280
|
-
if (prefix === '\\') {
|
|
281
|
-
replacePart = parts[0];
|
|
282
|
-
value = replacePart.replace('\\$', '$');
|
|
283
|
-
} else {
|
|
284
|
-
var key = parts[2];
|
|
285
|
-
replacePart = parts[0].substring(prefix.length);
|
|
286
|
-
// process.env value 'wins' over .env file's value
|
|
287
|
-
value = environment.hasOwnProperty(key) ? environment[key] : (config.parsed[key] || '');
|
|
288
|
-
|
|
289
|
-
// Resolve recursive interpolations
|
|
290
|
-
value = interpolate(value);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
return newEnv.replace(replacePart, value)
|
|
294
|
-
}, envValue)
|
|
295
|
-
};
|
|
296
|
-
|
|
297
|
-
for (var configKey in config.parsed) {
|
|
298
|
-
var value = environment.hasOwnProperty(configKey) ? environment[configKey] : config.parsed[configKey];
|
|
299
|
-
|
|
300
|
-
config.parsed[configKey] = interpolate(value);
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
for (var processKey in config.parsed) {
|
|
304
|
-
environment[processKey] = config.parsed[processKey];
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
return config
|
|
308
|
-
};
|
|
309
|
-
|
|
310
|
-
var main = dotenvExpand;
|
|
311
|
-
|
|
312
120
|
var utils$k = {};
|
|
313
121
|
|
|
314
|
-
const path$
|
|
122
|
+
const path$o = path$p;
|
|
315
123
|
const WIN_SLASH = '\\\\/';
|
|
316
124
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
317
125
|
|
|
@@ -464,7 +272,7 @@ var constants$6 = {
|
|
|
464
272
|
CHAR_VERTICAL_LINE: 124, /* | */
|
|
465
273
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, /* \uFEFF */
|
|
466
274
|
|
|
467
|
-
SEP: path$
|
|
275
|
+
SEP: path$o.sep,
|
|
468
276
|
|
|
469
277
|
/**
|
|
470
278
|
* Create EXTGLOB_CHARS
|
|
@@ -990,7 +798,7 @@ const syntaxError$1 = (type, char) => {
|
|
|
990
798
|
* @return {Object}
|
|
991
799
|
*/
|
|
992
800
|
|
|
993
|
-
const parse$
|
|
801
|
+
const parse$m = (input, options) => {
|
|
994
802
|
if (typeof input !== 'string') {
|
|
995
803
|
throw new TypeError('Expected a string');
|
|
996
804
|
}
|
|
@@ -1193,7 +1001,7 @@ const parse$l = (input, options) => {
|
|
|
1193
1001
|
// Suitable patterns: `/!(*.d).ts`, `/!(*.d).{ts,tsx}`, `**/!(*-dbg).@(js)`.
|
|
1194
1002
|
//
|
|
1195
1003
|
// Disabling the `fastpaths` option due to a problem with parsing strings as `.ts` in the pattern like `**/!(*.d).ts`.
|
|
1196
|
-
const expression = parse$
|
|
1004
|
+
const expression = parse$m(rest, { ...options, fastpaths: false }).output;
|
|
1197
1005
|
|
|
1198
1006
|
output = token.close = `)${expression})${extglobStar})`;
|
|
1199
1007
|
}
|
|
@@ -1939,7 +1747,7 @@ const parse$l = (input, options) => {
|
|
|
1939
1747
|
* impact when none of the fast paths match.
|
|
1940
1748
|
*/
|
|
1941
1749
|
|
|
1942
|
-
parse$
|
|
1750
|
+
parse$m.fastpaths = (input, options) => {
|
|
1943
1751
|
const opts = { ...options };
|
|
1944
1752
|
const max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH$1, opts.maxLength) : MAX_LENGTH$1;
|
|
1945
1753
|
const len = input.length;
|
|
@@ -2026,11 +1834,11 @@ parse$l.fastpaths = (input, options) => {
|
|
|
2026
1834
|
return source;
|
|
2027
1835
|
};
|
|
2028
1836
|
|
|
2029
|
-
var parse_1$2 = parse$
|
|
1837
|
+
var parse_1$2 = parse$m;
|
|
2030
1838
|
|
|
2031
|
-
const path$
|
|
1839
|
+
const path$n = path$p;
|
|
2032
1840
|
const scan$1 = scan_1;
|
|
2033
|
-
const parse$
|
|
1841
|
+
const parse$l = parse_1$2;
|
|
2034
1842
|
const utils$h = utils$k;
|
|
2035
1843
|
const constants$4 = constants$6;
|
|
2036
1844
|
const isObject$4 = val => val && typeof val === 'object' && !Array.isArray(val);
|
|
@@ -2188,7 +1996,7 @@ picomatch$4.test = (input, regex, options, { glob, posix } = {}) => {
|
|
|
2188
1996
|
|
|
2189
1997
|
picomatch$4.matchBase = (input, glob, options, posix = utils$h.isWindows(options)) => {
|
|
2190
1998
|
const regex = glob instanceof RegExp ? glob : picomatch$4.makeRe(glob, options);
|
|
2191
|
-
return regex.test(path$
|
|
1999
|
+
return regex.test(path$n.basename(input));
|
|
2192
2000
|
};
|
|
2193
2001
|
|
|
2194
2002
|
/**
|
|
@@ -2226,7 +2034,7 @@ picomatch$4.isMatch = (str, patterns, options) => picomatch$4(patterns, options)
|
|
|
2226
2034
|
|
|
2227
2035
|
picomatch$4.parse = (pattern, options) => {
|
|
2228
2036
|
if (Array.isArray(pattern)) return pattern.map(p => picomatch$4.parse(p, options));
|
|
2229
|
-
return parse$
|
|
2037
|
+
return parse$l(pattern, { ...options, fastpaths: false });
|
|
2230
2038
|
};
|
|
2231
2039
|
|
|
2232
2040
|
/**
|
|
@@ -2319,11 +2127,11 @@ picomatch$4.makeRe = (input, options = {}, returnOutput = false, returnState = f
|
|
|
2319
2127
|
let parsed = { negated: false, fastpaths: true };
|
|
2320
2128
|
|
|
2321
2129
|
if (options.fastpaths !== false && (input[0] === '.' || input[0] === '*')) {
|
|
2322
|
-
parsed.output = parse$
|
|
2130
|
+
parsed.output = parse$l.fastpaths(input, options);
|
|
2323
2131
|
}
|
|
2324
2132
|
|
|
2325
2133
|
if (!parsed.output) {
|
|
2326
|
-
parsed = parse$
|
|
2134
|
+
parsed = parse$l(input, options);
|
|
2327
2135
|
}
|
|
2328
2136
|
|
|
2329
2137
|
return picomatch$4.compileRe(parsed, options, returnOutput, returnState);
|
|
@@ -2948,12 +2756,12 @@ const makeLegalIdentifier = function makeLegalIdentifier(str) {
|
|
|
2948
2756
|
return identifier || '_';
|
|
2949
2757
|
};
|
|
2950
2758
|
|
|
2951
|
-
var path$
|
|
2759
|
+
var path$m = path$p;
|
|
2952
2760
|
|
|
2953
2761
|
var commondir = function (basedir, relfiles) {
|
|
2954
2762
|
if (relfiles) {
|
|
2955
2763
|
var files = relfiles.map(function (r) {
|
|
2956
|
-
return path$
|
|
2764
|
+
return path$m.resolve(basedir, r);
|
|
2957
2765
|
});
|
|
2958
2766
|
}
|
|
2959
2767
|
else {
|
|
@@ -3003,7 +2811,7 @@ var old$1 = {};
|
|
|
3003
2811
|
|
|
3004
2812
|
var pathModule = path$p;
|
|
3005
2813
|
var isWindows$4 = process.platform === 'win32';
|
|
3006
|
-
var fs$
|
|
2814
|
+
var fs$m = fs__default;
|
|
3007
2815
|
|
|
3008
2816
|
// JavaScript implementation of realpath, ported from node pre-v6
|
|
3009
2817
|
|
|
@@ -3096,7 +2904,7 @@ old$1.realpathSync = function realpathSync(p, cache) {
|
|
|
3096
2904
|
|
|
3097
2905
|
// On windows, check that the root exists. On unix there is no need.
|
|
3098
2906
|
if (isWindows$4 && !knownHard[base]) {
|
|
3099
|
-
fs$
|
|
2907
|
+
fs$m.lstatSync(base);
|
|
3100
2908
|
knownHard[base] = true;
|
|
3101
2909
|
}
|
|
3102
2910
|
}
|
|
@@ -3123,7 +2931,7 @@ old$1.realpathSync = function realpathSync(p, cache) {
|
|
|
3123
2931
|
// some known symbolic link. no need to stat again.
|
|
3124
2932
|
resolvedLink = cache[base];
|
|
3125
2933
|
} else {
|
|
3126
|
-
var stat = fs$
|
|
2934
|
+
var stat = fs$m.lstatSync(base);
|
|
3127
2935
|
if (!stat.isSymbolicLink()) {
|
|
3128
2936
|
knownHard[base] = true;
|
|
3129
2937
|
if (cache) cache[base] = base;
|
|
@@ -3140,8 +2948,8 @@ old$1.realpathSync = function realpathSync(p, cache) {
|
|
|
3140
2948
|
}
|
|
3141
2949
|
}
|
|
3142
2950
|
if (linkTarget === null) {
|
|
3143
|
-
fs$
|
|
3144
|
-
linkTarget = fs$
|
|
2951
|
+
fs$m.statSync(base);
|
|
2952
|
+
linkTarget = fs$m.readlinkSync(base);
|
|
3145
2953
|
}
|
|
3146
2954
|
resolvedLink = pathModule.resolve(previous, linkTarget);
|
|
3147
2955
|
// track this, if given a cache.
|
|
@@ -3198,7 +3006,7 @@ old$1.realpath = function realpath(p, cache, cb) {
|
|
|
3198
3006
|
|
|
3199
3007
|
// On windows, check that the root exists. On unix there is no need.
|
|
3200
3008
|
if (isWindows$4 && !knownHard[base]) {
|
|
3201
|
-
fs$
|
|
3009
|
+
fs$m.lstat(base, function(err) {
|
|
3202
3010
|
if (err) return cb(err);
|
|
3203
3011
|
knownHard[base] = true;
|
|
3204
3012
|
LOOP();
|
|
@@ -3235,7 +3043,7 @@ old$1.realpath = function realpath(p, cache, cb) {
|
|
|
3235
3043
|
return gotResolvedLink(cache[base]);
|
|
3236
3044
|
}
|
|
3237
3045
|
|
|
3238
|
-
return fs$
|
|
3046
|
+
return fs$m.lstat(base, gotStat);
|
|
3239
3047
|
}
|
|
3240
3048
|
|
|
3241
3049
|
function gotStat(err, stat) {
|
|
@@ -3257,10 +3065,10 @@ old$1.realpath = function realpath(p, cache, cb) {
|
|
|
3257
3065
|
return gotTarget(null, seenLinks[id], base);
|
|
3258
3066
|
}
|
|
3259
3067
|
}
|
|
3260
|
-
fs$
|
|
3068
|
+
fs$m.stat(base, function(err) {
|
|
3261
3069
|
if (err) return cb(err);
|
|
3262
3070
|
|
|
3263
|
-
fs$
|
|
3071
|
+
fs$m.readlink(base, function(err, target) {
|
|
3264
3072
|
if (!isWindows$4) seenLinks[id] = target;
|
|
3265
3073
|
gotTarget(err, target);
|
|
3266
3074
|
});
|
|
@@ -3289,9 +3097,9 @@ realpath$2.realpathSync = realpathSync;
|
|
|
3289
3097
|
realpath$2.monkeypatch = monkeypatch;
|
|
3290
3098
|
realpath$2.unmonkeypatch = unmonkeypatch;
|
|
3291
3099
|
|
|
3292
|
-
var fs$
|
|
3293
|
-
var origRealpath = fs$
|
|
3294
|
-
var origRealpathSync = fs$
|
|
3100
|
+
var fs$l = fs__default;
|
|
3101
|
+
var origRealpath = fs$l.realpath;
|
|
3102
|
+
var origRealpathSync = fs$l.realpathSync;
|
|
3295
3103
|
|
|
3296
3104
|
var version$1 = process.version;
|
|
3297
3105
|
var ok = /^v[0-5]\./.test(version$1);
|
|
@@ -3340,13 +3148,13 @@ function realpathSync (p, cache) {
|
|
|
3340
3148
|
}
|
|
3341
3149
|
|
|
3342
3150
|
function monkeypatch () {
|
|
3343
|
-
fs$
|
|
3344
|
-
fs$
|
|
3151
|
+
fs$l.realpath = realpath$2;
|
|
3152
|
+
fs$l.realpathSync = realpathSync;
|
|
3345
3153
|
}
|
|
3346
3154
|
|
|
3347
3155
|
function unmonkeypatch () {
|
|
3348
|
-
fs$
|
|
3349
|
-
fs$
|
|
3156
|
+
fs$l.realpath = origRealpath;
|
|
3157
|
+
fs$l.realpathSync = origRealpathSync;
|
|
3350
3158
|
}
|
|
3351
3159
|
|
|
3352
3160
|
var concatMap$1 = function (xs, fn) {
|
|
@@ -3625,10 +3433,10 @@ function expand$3(str, isTop) {
|
|
|
3625
3433
|
var minimatch_1 = minimatch$3;
|
|
3626
3434
|
minimatch$3.Minimatch = Minimatch$1;
|
|
3627
3435
|
|
|
3628
|
-
var path$
|
|
3436
|
+
var path$l = (function () { try { return require('path') } catch (e) {}}()) || {
|
|
3629
3437
|
sep: '/'
|
|
3630
3438
|
};
|
|
3631
|
-
minimatch$3.sep = path$
|
|
3439
|
+
minimatch$3.sep = path$l.sep;
|
|
3632
3440
|
|
|
3633
3441
|
var GLOBSTAR$2 = minimatch$3.GLOBSTAR = Minimatch$1.GLOBSTAR = {};
|
|
3634
3442
|
var expand$2 = braceExpansion;
|
|
@@ -3761,8 +3569,8 @@ function Minimatch$1 (pattern, options) {
|
|
|
3761
3569
|
pattern = pattern.trim();
|
|
3762
3570
|
|
|
3763
3571
|
// windows support: need to use /, not \
|
|
3764
|
-
if (!options.allowWindowsEscape && path$
|
|
3765
|
-
pattern = pattern.split(path$
|
|
3572
|
+
if (!options.allowWindowsEscape && path$l.sep !== '/') {
|
|
3573
|
+
pattern = pattern.split(path$l.sep).join('/');
|
|
3766
3574
|
}
|
|
3767
3575
|
|
|
3768
3576
|
this.options = options;
|
|
@@ -3915,9 +3723,9 @@ var assertValidPattern = function (pattern) {
|
|
|
3915
3723
|
// when it is the *only* thing in a path portion. Otherwise, any series
|
|
3916
3724
|
// of * is equivalent to a single *. Globstar behavior is enabled by
|
|
3917
3725
|
// default, and can be disabled by setting options.noglobstar.
|
|
3918
|
-
Minimatch$1.prototype.parse = parse$
|
|
3726
|
+
Minimatch$1.prototype.parse = parse$k;
|
|
3919
3727
|
var SUBPARSE = {};
|
|
3920
|
-
function parse$
|
|
3728
|
+
function parse$k (pattern, isSub) {
|
|
3921
3729
|
assertValidPattern(pattern);
|
|
3922
3730
|
|
|
3923
3731
|
var options = this.options;
|
|
@@ -4358,8 +4166,8 @@ Minimatch$1.prototype.match = function match (f, partial) {
|
|
|
4358
4166
|
var options = this.options;
|
|
4359
4167
|
|
|
4360
4168
|
// windows: need to use /, not \
|
|
4361
|
-
if (path$
|
|
4362
|
-
f = f.split(path$
|
|
4169
|
+
if (path$l.sep !== '/') {
|
|
4170
|
+
f = f.split(path$l.sep).join('/');
|
|
4363
4171
|
}
|
|
4364
4172
|
|
|
4365
4173
|
// treat the test path as a set of pathparts.
|
|
@@ -4646,8 +4454,8 @@ function ownProp$2 (obj, field) {
|
|
|
4646
4454
|
return Object.prototype.hasOwnProperty.call(obj, field)
|
|
4647
4455
|
}
|
|
4648
4456
|
|
|
4649
|
-
var fs$
|
|
4650
|
-
var path$
|
|
4457
|
+
var fs$k = fs__default;
|
|
4458
|
+
var path$k = path$p;
|
|
4651
4459
|
var minimatch$2 = minimatch_1;
|
|
4652
4460
|
var isAbsolute$2 = pathIsAbsolute.exports;
|
|
4653
4461
|
var Minimatch = minimatch$2.Minimatch;
|
|
@@ -4712,7 +4520,7 @@ function setopts$2 (self, pattern, options) {
|
|
|
4712
4520
|
self.stat = !!options.stat;
|
|
4713
4521
|
self.noprocess = !!options.noprocess;
|
|
4714
4522
|
self.absolute = !!options.absolute;
|
|
4715
|
-
self.fs = options.fs || fs$
|
|
4523
|
+
self.fs = options.fs || fs$k;
|
|
4716
4524
|
|
|
4717
4525
|
self.maxLength = options.maxLength || Infinity;
|
|
4718
4526
|
self.cache = options.cache || Object.create(null);
|
|
@@ -4726,12 +4534,12 @@ function setopts$2 (self, pattern, options) {
|
|
|
4726
4534
|
if (!ownProp$2(options, "cwd"))
|
|
4727
4535
|
self.cwd = cwd;
|
|
4728
4536
|
else {
|
|
4729
|
-
self.cwd = path$
|
|
4537
|
+
self.cwd = path$k.resolve(options.cwd);
|
|
4730
4538
|
self.changedCwd = self.cwd !== cwd;
|
|
4731
4539
|
}
|
|
4732
4540
|
|
|
4733
|
-
self.root = options.root || path$
|
|
4734
|
-
self.root = path$
|
|
4541
|
+
self.root = options.root || path$k.resolve(self.cwd, "/");
|
|
4542
|
+
self.root = path$k.resolve(self.root);
|
|
4735
4543
|
if (process.platform === "win32")
|
|
4736
4544
|
self.root = self.root.replace(/\\/g, "/");
|
|
4737
4545
|
|
|
@@ -4835,13 +4643,13 @@ function mark (self, p) {
|
|
|
4835
4643
|
function makeAbs (self, f) {
|
|
4836
4644
|
var abs = f;
|
|
4837
4645
|
if (f.charAt(0) === '/') {
|
|
4838
|
-
abs = path$
|
|
4646
|
+
abs = path$k.join(self.root, f);
|
|
4839
4647
|
} else if (isAbsolute$2(f) || f === '') {
|
|
4840
4648
|
abs = f;
|
|
4841
4649
|
} else if (self.changedCwd) {
|
|
4842
|
-
abs = path$
|
|
4650
|
+
abs = path$k.resolve(self.cwd, f);
|
|
4843
4651
|
} else {
|
|
4844
|
-
abs = path$
|
|
4652
|
+
abs = path$k.resolve(f);
|
|
4845
4653
|
}
|
|
4846
4654
|
|
|
4847
4655
|
if (process.platform === 'win32')
|
|
@@ -4876,7 +4684,7 @@ globSync$1.GlobSync = GlobSync$1;
|
|
|
4876
4684
|
|
|
4877
4685
|
var rp$1 = fs_realpath;
|
|
4878
4686
|
var minimatch$1 = minimatch_1;
|
|
4879
|
-
var path$
|
|
4687
|
+
var path$j = path$p;
|
|
4880
4688
|
var assert$2 = require$$5;
|
|
4881
4689
|
var isAbsolute$1 = pathIsAbsolute.exports;
|
|
4882
4690
|
var common$d = common$e;
|
|
@@ -5053,7 +4861,7 @@ GlobSync$1.prototype._processReaddir = function (prefix, read, abs, remain, inde
|
|
|
5053
4861
|
}
|
|
5054
4862
|
|
|
5055
4863
|
if (e.charAt(0) === '/' && !this.nomount) {
|
|
5056
|
-
e = path$
|
|
4864
|
+
e = path$j.join(this.root, e);
|
|
5057
4865
|
}
|
|
5058
4866
|
this._emitMatch(index, e);
|
|
5059
4867
|
}
|
|
@@ -5264,9 +5072,9 @@ GlobSync$1.prototype._processSimple = function (prefix, index) {
|
|
|
5264
5072
|
if (prefix && isAbsolute$1(prefix) && !this.nomount) {
|
|
5265
5073
|
var trail = /[\/\\]$/.test(prefix);
|
|
5266
5074
|
if (prefix.charAt(0) === '/') {
|
|
5267
|
-
prefix = path$
|
|
5075
|
+
prefix = path$j.join(this.root, prefix);
|
|
5268
5076
|
} else {
|
|
5269
|
-
prefix = path$
|
|
5077
|
+
prefix = path$j.resolve(this.root, prefix);
|
|
5270
5078
|
if (trail)
|
|
5271
5079
|
prefix += '/';
|
|
5272
5080
|
}
|
|
@@ -5528,7 +5336,7 @@ var rp = fs_realpath;
|
|
|
5528
5336
|
var minimatch = minimatch_1;
|
|
5529
5337
|
var inherits = inherits$1.exports;
|
|
5530
5338
|
var EE = require$$0$3.EventEmitter;
|
|
5531
|
-
var path$
|
|
5339
|
+
var path$i = path$p;
|
|
5532
5340
|
var assert$1 = require$$5;
|
|
5533
5341
|
var isAbsolute = pathIsAbsolute.exports;
|
|
5534
5342
|
var globSync = sync$c;
|
|
@@ -5905,7 +5713,7 @@ Glob.prototype._processReaddir2 = function (prefix, read, abs, remain, index, in
|
|
|
5905
5713
|
}
|
|
5906
5714
|
|
|
5907
5715
|
if (e.charAt(0) === '/' && !this.nomount) {
|
|
5908
|
-
e = path$
|
|
5716
|
+
e = path$i.join(this.root, e);
|
|
5909
5717
|
}
|
|
5910
5718
|
this._emitMatch(index, e);
|
|
5911
5719
|
}
|
|
@@ -6168,9 +5976,9 @@ Glob.prototype._processSimple2 = function (prefix, index, er, exists, cb) {
|
|
|
6168
5976
|
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
6169
5977
|
var trail = /[\/\\]$/.test(prefix);
|
|
6170
5978
|
if (prefix.charAt(0) === '/') {
|
|
6171
|
-
prefix = path$
|
|
5979
|
+
prefix = path$i.join(this.root, prefix);
|
|
6172
5980
|
} else {
|
|
6173
|
-
prefix = path$
|
|
5981
|
+
prefix = path$i.resolve(this.root, prefix);
|
|
6174
5982
|
if (trail)
|
|
6175
5983
|
prefix += '/';
|
|
6176
5984
|
}
|
|
@@ -10473,7 +10281,7 @@ var ms$1 = function(val, options) {
|
|
|
10473
10281
|
options = options || {};
|
|
10474
10282
|
var type = typeof val;
|
|
10475
10283
|
if (type === 'string' && val.length > 0) {
|
|
10476
|
-
return parse$
|
|
10284
|
+
return parse$j(val);
|
|
10477
10285
|
} else if (type === 'number' && isFinite(val)) {
|
|
10478
10286
|
return options.long ? fmtLong$1(val) : fmtShort$1(val);
|
|
10479
10287
|
}
|
|
@@ -10491,7 +10299,7 @@ var ms$1 = function(val, options) {
|
|
|
10491
10299
|
* @api private
|
|
10492
10300
|
*/
|
|
10493
10301
|
|
|
10494
|
-
function parse$
|
|
10302
|
+
function parse$j(str) {
|
|
10495
10303
|
str = String(str);
|
|
10496
10304
|
if (str.length > 100) {
|
|
10497
10305
|
return;
|
|
@@ -11527,7 +11335,7 @@ function testCaseInsensitiveFS() {
|
|
|
11527
11335
|
return fs__default.existsSync(CLIENT_ENTRY.replace('client.mjs', 'cLiEnT.mjs'));
|
|
11528
11336
|
}
|
|
11529
11337
|
const isCaseInsensitiveFS = testCaseInsensitiveFS();
|
|
11530
|
-
const isWindows$3 = require$$
|
|
11338
|
+
const isWindows$3 = require$$1.platform() === 'win32';
|
|
11531
11339
|
const VOLUME_RE = /^[A-Z]:/i;
|
|
11532
11340
|
function normalizePath$3(id) {
|
|
11533
11341
|
return path$p.posix.normalize(isWindows$3 ? slash$1(id) : id);
|
|
@@ -11799,15 +11607,7 @@ function emptyDir(dir, skip) {
|
|
|
11799
11607
|
if (skip?.includes(file)) {
|
|
11800
11608
|
continue;
|
|
11801
11609
|
}
|
|
11802
|
-
|
|
11803
|
-
// baseline is Node 12 so can't use rmSync :(
|
|
11804
|
-
if (fs__default.lstatSync(abs).isDirectory()) {
|
|
11805
|
-
emptyDir(abs);
|
|
11806
|
-
fs__default.rmdirSync(abs);
|
|
11807
|
-
}
|
|
11808
|
-
else {
|
|
11809
|
-
fs__default.unlinkSync(abs);
|
|
11810
|
-
}
|
|
11610
|
+
fs__default.rmSync(path$p.resolve(dir, file), { recursive: true, force: true });
|
|
11811
11611
|
}
|
|
11812
11612
|
}
|
|
11813
11613
|
function copyDir(srcDir, destDir) {
|
|
@@ -11827,15 +11627,11 @@ function copyDir(srcDir, destDir) {
|
|
|
11827
11627
|
}
|
|
11828
11628
|
}
|
|
11829
11629
|
}
|
|
11830
|
-
function removeDirSync(dir) {
|
|
11831
|
-
if (fs__default.existsSync(dir)) {
|
|
11832
|
-
const rmSync = fs__default.rmSync ?? fs__default.rmdirSync; // TODO: Remove after support for Node 12 is dropped
|
|
11833
|
-
rmSync(dir, { recursive: true });
|
|
11834
|
-
}
|
|
11835
|
-
}
|
|
11836
11630
|
const removeDir = isWindows$3
|
|
11837
11631
|
? promisify$4(gracefulRemoveDir)
|
|
11838
|
-
: removeDirSync
|
|
11632
|
+
: function removeDirSync(dir) {
|
|
11633
|
+
fs__default.rmSync(dir, { recursive: true, force: true });
|
|
11634
|
+
};
|
|
11839
11635
|
const renameDir = isWindows$3 ? promisify$4(gracefulRename) : fs__default.renameSync;
|
|
11840
11636
|
function ensureWatchedFile(watcher, file, root) {
|
|
11841
11637
|
if (file &&
|
|
@@ -12054,17 +11850,16 @@ function gracefulRename(from, to, cb) {
|
|
|
12054
11850
|
}
|
|
12055
11851
|
const GRACEFUL_REMOVE_DIR_TIMEOUT = 5000;
|
|
12056
11852
|
function gracefulRemoveDir(dir, cb) {
|
|
12057
|
-
const rmdir = fs__default.rm ?? fs__default.rmdir; // TODO: Remove after support for Node 12 is dropped
|
|
12058
11853
|
const start = Date.now();
|
|
12059
11854
|
let backoff = 0;
|
|
12060
|
-
|
|
11855
|
+
fs__default.rm(dir, { recursive: true }, function CB(er) {
|
|
12061
11856
|
if (er) {
|
|
12062
11857
|
if ((er.code === 'ENOTEMPTY' ||
|
|
12063
11858
|
er.code === 'EACCES' ||
|
|
12064
11859
|
er.code === 'EPERM') &&
|
|
12065
11860
|
Date.now() - start < GRACEFUL_REMOVE_DIR_TIMEOUT) {
|
|
12066
11861
|
setTimeout(function () {
|
|
12067
|
-
|
|
11862
|
+
fs__default.rm(dir, { recursive: true }, CB);
|
|
12068
11863
|
}, backoff);
|
|
12069
11864
|
if (backoff < 100)
|
|
12070
11865
|
backoff += 10;
|
|
@@ -12270,15 +12065,21 @@ function printCommonServerUrls(server, options, config) {
|
|
|
12270
12065
|
}
|
|
12271
12066
|
}
|
|
12272
12067
|
function printServerUrls(hostname, protocol, port, base, info) {
|
|
12068
|
+
const urls = [];
|
|
12273
12069
|
if (hostname.host === '127.0.0.1') {
|
|
12274
|
-
|
|
12275
|
-
|
|
12070
|
+
urls.push({
|
|
12071
|
+
label: 'Local',
|
|
12072
|
+
url: colors$1.cyan(`${protocol}://${hostname.name}:${colors$1.bold(port)}${base}`)
|
|
12073
|
+
});
|
|
12276
12074
|
if (hostname.name !== '127.0.0.1') {
|
|
12277
|
-
|
|
12075
|
+
urls.push({
|
|
12076
|
+
label: 'Network',
|
|
12077
|
+
url: colors$1.dim(`use ${colors$1.white(colors$1.bold('--host'))} to expose`)
|
|
12078
|
+
});
|
|
12278
12079
|
}
|
|
12279
12080
|
}
|
|
12280
12081
|
else {
|
|
12281
|
-
Object.values(require$$
|
|
12082
|
+
Object.values(require$$1.networkInterfaces())
|
|
12282
12083
|
.flatMap((nInterface) => nInterface ?? [])
|
|
12283
12084
|
.filter((detail) => detail &&
|
|
12284
12085
|
detail.address &&
|
|
@@ -12286,16 +12087,17 @@ function printServerUrls(hostname, protocol, port, base, info) {
|
|
|
12286
12087
|
((typeof detail.family === 'string' && detail.family === 'IPv4') ||
|
|
12287
12088
|
// Node >= v18
|
|
12288
12089
|
(typeof detail.family === 'number' && detail.family === 4)))
|
|
12289
|
-
.
|
|
12290
|
-
const type = detail.address.includes('127.0.0.1')
|
|
12291
|
-
? 'Local: '
|
|
12292
|
-
: 'Network: ';
|
|
12090
|
+
.forEach((detail) => {
|
|
12293
12091
|
const host = detail.address.replace('127.0.0.1', hostname.name);
|
|
12294
12092
|
const url = `${protocol}://${host}:${colors$1.bold(port)}${base}`;
|
|
12295
|
-
|
|
12296
|
-
|
|
12297
|
-
|
|
12093
|
+
const label = detail.address.includes('127.0.0.1') ? 'Local' : 'Network';
|
|
12094
|
+
urls.push({ label, url: colors$1.cyan(url) });
|
|
12095
|
+
});
|
|
12298
12096
|
}
|
|
12097
|
+
const length = urls.reduce((length, { label }) => Math.max(length, label.length), 0);
|
|
12098
|
+
urls.forEach(({ label, url: text }) => {
|
|
12099
|
+
info(` ${colors$1.green('➜')} ${colors$1.bold(label)}: ${' '.repeat(length - label.length)}${text}`);
|
|
12100
|
+
});
|
|
12299
12101
|
}
|
|
12300
12102
|
|
|
12301
12103
|
const writeColors = {
|
|
@@ -12799,7 +12601,7 @@ function pattern2regex(resolvedPattern) {
|
|
|
12799
12601
|
}
|
|
12800
12602
|
|
|
12801
12603
|
// src/parse.ts
|
|
12802
|
-
async function parse$
|
|
12604
|
+
async function parse$i(filename, options) {
|
|
12803
12605
|
const cache = options == null ? void 0 : options.cache;
|
|
12804
12606
|
if (cache == null ? void 0 : cache.has(filename)) {
|
|
12805
12607
|
return cache.get(filename);
|
|
@@ -13212,7 +13014,7 @@ async function initTSConfck(config) {
|
|
|
13212
13014
|
}
|
|
13213
13015
|
async function loadTsconfigJsonForFile(filename) {
|
|
13214
13016
|
try {
|
|
13215
|
-
const result = await parse$
|
|
13017
|
+
const result = await parse$i(filename, tsconfckParseOptions);
|
|
13216
13018
|
// tsconfig could be out of root, make sure it is watched on dev
|
|
13217
13019
|
if (server && result.tsconfigFile !== 'no_tsconfig_file_found') {
|
|
13218
13020
|
ensureWatchedFile(server.watcher, result.tsconfigFile, server.config.root);
|
|
@@ -13256,8 +13058,8 @@ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || func
|
|
|
13256
13058
|
};
|
|
13257
13059
|
Object.defineProperty(dist$2, "__esModule", { value: true });
|
|
13258
13060
|
var Worker_1 = dist$2.Worker = void 0;
|
|
13259
|
-
const os_1 = __importDefault(require$$
|
|
13260
|
-
const worker_threads_1 = require$$1;
|
|
13061
|
+
const os_1 = __importDefault(require$$1);
|
|
13062
|
+
const worker_threads_1 = require$$1$1;
|
|
13261
13063
|
class Worker {
|
|
13262
13064
|
constructor(fn, options = {}) {
|
|
13263
13065
|
this.code = genWorkerCode(fn);
|
|
@@ -14599,7 +14401,7 @@ class MagicString {
|
|
|
14599
14401
|
}
|
|
14600
14402
|
|
|
14601
14403
|
/* es-module-lexer 0.10.5 */
|
|
14602
|
-
const A=1===new Uint8Array(new Uint16Array([1]).buffer)[0];function parse$g(E,g="@"){if(!C)return init.then((()=>parse$g(E)));const I=E.length+1,o=(C.__heap_base.value||C.__heap_base)+4*I-C.memory.buffer.byteLength;o>0&&C.memory.grow(Math.ceil(o/65536));const k=C.sa(I-1);if((A?B:Q)(E,new Uint16Array(C.memory.buffer,k,I)),!C.parse())throw Object.assign(new Error(`Parse error ${g}:${E.slice(0,C.e()).split("\n").length}:${C.e()-E.lastIndexOf("\n",C.e()-1)}`),{idx:C.e()});const J=[],i=[];for(;C.ri();){const A=C.is(),Q=C.ie(),B=C.ai(),g=C.id(),I=C.ss(),o=C.se();let k;C.ip()&&(k=w(E.slice(-1===g?A-1:A,-1===g?Q+1:Q))),J.push({n:k,s:A,e:Q,ss:I,se:o,d:g,a:B});}for(;C.re();){const A=E.slice(C.es(),C.ee()),Q=A[0];i.push('"'===Q||"'"===Q?w(A):A);}function w(A){try{return (0, eval)(A)}catch(A){}}return [J,i,!!C.f()]}function Q(A,Q){const B=A.length;let C=0;for(;C<B;){const B=A.charCodeAt(C);Q[C++]=(255&B)<<8|B>>>8;}}function B(A,Q){const B=A.length;let C=0;for(;C<B;)Q[C]=A.charCodeAt(C++);}let C;const init=WebAssembly.compile((E="AGFzbQEAAAABKghgAX8Bf2AEf39/fwBgAn9/AGAAAX9gAABgAX8AYAN/f38Bf2ACf38BfwMqKQABAgMDAwMDAwMDAwMDAwMAAAQEBAUEBQAAAAAEBAAGBwACAAAABwMGBAUBcAEBAQUDAQABBg8CfwFBkPIAC38AQZDyAAsHZBEGbWVtb3J5AgACc2EAAAFlAAMCaXMABAJpZQAFAnNzAAYCc2UABwJhaQAIAmlkAAkCaXAACgJlcwALAmVlAAwCcmkADQJyZQAOAWYADwVwYXJzZQAQC19faGVhcF9iYXNlAwEKhjQpaAEBf0EAIAA2AtQJQQAoArAJIgEgAEEBdGoiAEEAOwEAQQAgAEECaiIANgLYCUEAIAA2AtwJQQBBADYCtAlBAEEANgLECUEAQQA2ArwJQQBBADYCuAlBAEEANgLMCUEAQQA2AsAJIAELnwEBA39BACgCxAkhBEEAQQAoAtwJIgU2AsQJQQAgBDYCyAlBACAFQSBqNgLcCSAEQRxqQbQJIAQbIAU2AgBBACgCqAkhBEEAKAKkCSEGIAUgATYCACAFIAA2AgggBSACIAJBAmpBACAGIANGGyAEIANGGzYCDCAFIAM2AhQgBUEANgIQIAUgAjYCBCAFQQA2AhwgBUEAKAKkCSADRjoAGAtIAQF/QQAoAswJIgJBCGpBuAkgAhtBACgC3AkiAjYCAEEAIAI2AswJQQAgAkEMajYC3AkgAkEANgIIIAIgATYC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wBHDQBBAEEAKAKICkF+ajYCiAoPC0EAKAKICiIDIAJGDQEgAiADEAICQEEBECEiAkEsRg0AAkAgAkE9Rw0AQQBBACgCiApBfmo2AogKDwtBAEEAKAKICkF+ajYCiAoPC0EAKAKICiECDAALCw8LQQAgA0EKajYCiApBARAhGkEAKAKICiEDC0EAIANBEGo2AogKAkBBARAhIgJBKkcNAEEAQQAoAogKQQJqNgKICkEBECEhAgtBACgCiAohAyACECQaIANBACgCiAoQAkEAQQAoAogKQX5qNgKICg8LIAMgA0EOahACC6sGAQR/QQBBACgCiAoiAEEMaiIBNgKICgJAAkACQAJAAkACQAJAAkACQAJAQQEQISICQVlqDggCCAECAQEBBwALIAJBIkYNASACQfsARg0CC0EAKAKICiABRg0HC0EALwHqCQ0BQQAoAogKIQJBACgCjAohAwNAIAIgA08NBAJAAkAgAi8BACIBQSdGDQAgAUEiRw0BCyAAIAEQIg8LQQAgAkECaiICNgKICgwACwtBACgCiAohAkEALwHqCQ0BAkADQAJAAkACQCACQQAoAowKTw0AQQEQISICQSJGDQEgAkEnRg0BIAJB/QBHDQJBAEEAKAKICkECajYCiAoLQQEQIRpBACgCiAoiAikAAELmgMiD8I3ANlINBkEAIAJBCGo2AogKQQEQISICQSJGDQMgAkEnRg0DDAYLIAIQFwtBAEEAKAKICkECaiICNgKICgwACwsgACACECIMBQtBAEEAKAKICkF+ajYCiAoPC0EAIAJBfmo2AogKDwsQHQ8LQQBBACgCiApBAmo2AogKQQEQIUHtAEcNAUEAKAKICiICQQJqQZYIQQYQKA0BQQAoAvAJLwEAQS5GDQEgACAAIAJBCGpBACgCqAkQAQ8LQQAoAvwJQQAvAeoJIgJBAnRqQQAoAogKNgIAQQAgAkEBajsB6glBACgC8AkvAQBBLkYNAEEAQQAoAogKIgFBAmo2AogKQQEQISECIABBACgCiApBACABEAFBAEEALwHoCSIBQQFqOwHoCUEAKAKACiABQQJ0akEAKALECTYCAAJAIAJBIkYNACACQSdGDQBBAEEAKAKICkF+ajYCiA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UGgAUYNASAAIQIgARAlDQJBACECQQBBACgCiAoiAEECajYCiAogAC8BAiIADQAMAgsLIAAhAgsgAkH//wNxC2gBAn9BASEBAkACQCAAQV9qIgJBBUsNAEEBIAJ0QTFxDQELIABB+P8DcUEoRg0AIABBRmpB//8DcUEGSQ0AAkAgAEGlf2oiAkEDSw0AIAJBAUcNAQsgAEGFf2pB//8DcUEESSEBCyABC4sBAQJ/AkBBACgCiAoiAi8BACIDQeEARw0AQQAgAkEEajYCiApBARAhIQJBACgCiAohAAJAAkAgAkEiRg0AIAJBJ0YNACACECQaQQAoAogKIQEMAQsgAhAXQQBBACgCiApBAmoiATYCiAoLQQEQISEDQQAoAogKIQILAkAgAiAARg0AIAAgARACCyADC3IBBH9BACgCiAohAEEAKAKMCiEBAkACQANAIABBAmohAiAAIAFPDQECQAJAIAIvAQAiA0Gkf2oOAgEEAAsgAiEAIANBdmoOBAIBAQIBCyAAQQRqIQAMAAsLQQAgAjYCiAoQHUEADwtBACACNgKICkHdAAtJAQN/QQAhAwJAIAJFDQACQANAIAAtAAAiBCABLQAAIgVHDQEgAUEBaiEBIABBAWohACACQX9qIgINAAwCCwsgBCAFayEDCyADCwvCAQIAQYAIC6QBAAB4AHAAbwByAHQAbQBwAG8AcgB0AGUAdABhAGYAcgBvAG0AcwBzAGUAcgB0AHYAbwB5AGkAZQBkAGUAbABlAGkAbgBzAHQAYQBuAHQAeQByAGUAdAB1AHIAZABlAGIAdQBnAGcAZQBhAHcAYQBpAHQAaAByAHcAaABpAGwAZQBmAG8AcgBpAGYAYwBhAHQAYwBmAGkAbgBhAGwAbABlAGwAcwAAQaQJCxABAAAAAgAAAAAEAAAQOQAA","undefined"!=typeof Buffer?Buffer.from(E,"base64"):Uint8Array.from(atob(E),(A=>A.charCodeAt(0))))).then(WebAssembly.instantiate).then((({exports:A})=>{C=A;}));var E;
|
|
14404
|
+
const A=1===new Uint8Array(new Uint16Array([1]).buffer)[0];function parse$h(E,g="@"){if(!C)return init.then((()=>parse$h(E)));const I=E.length+1,o=(C.__heap_base.value||C.__heap_base)+4*I-C.memory.buffer.byteLength;o>0&&C.memory.grow(Math.ceil(o/65536));const k=C.sa(I-1);if((A?B:Q)(E,new Uint16Array(C.memory.buffer,k,I)),!C.parse())throw Object.assign(new Error(`Parse error ${g}:${E.slice(0,C.e()).split("\n").length}:${C.e()-E.lastIndexOf("\n",C.e()-1)}`),{idx:C.e()});const J=[],i=[];for(;C.ri();){const A=C.is(),Q=C.ie(),B=C.ai(),g=C.id(),I=C.ss(),o=C.se();let k;C.ip()&&(k=w(E.slice(-1===g?A-1:A,-1===g?Q+1:Q))),J.push({n:k,s:A,e:Q,ss:I,se:o,d:g,a:B});}for(;C.re();){const A=E.slice(C.es(),C.ee()),Q=A[0];i.push('"'===Q||"'"===Q?w(A):A);}function w(A){try{return (0, eval)(A)}catch(A){}}return [J,i,!!C.f()]}function Q(A,Q){const B=A.length;let C=0;for(;C<B;){const B=A.charCodeAt(C);Q[C++]=(255&B)<<8|B>>>8;}}function B(A,Q){const B=A.length;let C=0;for(;C<B;)Q[C]=A.charCodeAt(C++);}let C;const init=WebAssembly.compile((E="AGFzbQEAAAABKghgAX8Bf2AEf39/fwBgAn9/AGAAAX9gAABgAX8AYAN/f38Bf2ACf38BfwMqKQABAgMDAwMDAwMDAwMDAwMAAAQEBAUEBQAAAAAEBAAGBwACAAAABwMGBAUBcAEBAQUDAQABBg8CfwFBkPIAC38AQZDyAAsHZBEGbWVtb3J5AgACc2EAAAFlAAMCaXMABAJpZQAFAnNzAAYCc2UABwJhaQAIAmlkAAkCaXAACgJlcwALAmVlAAwCcmkADQJyZQAOAWYADwVwYXJzZQAQC19faGVhcF9iYXNlAwEKhjQpaAEBf0EAIAA2AtQJQQAoArAJIgEgAEEBdGoiAEEAOwEAQQAgAEECaiIANgLYCUEAIAA2AtwJQQBBADYCtAlBAEEANgLECUEAQQA2ArwJQQBBADYCuAlBAEEANgLMCUEAQQA2AsAJIAELnwEBA39BACgCxAkhBE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AwJAIAJB5gBHDQAgA0ECakGeCEEGECgNAEEAIANBCGo2AogKIABBARAhECIPC0EAIANBfmo2AogKDAMLEB0PCwJAIAMpAAJC7ICEg7COwDlSDQAgAy8BChAeRQ0AQQAgA0EKajYCiApBARAhIQJBACgCiAohAyACECQaIANBACgCiAoQAkEAQQAoAogKQX5qNgKICg8LQQAgA0EEaiIDNgKICgtBACADQQRqIgI2AogKQQBBADoA5AkDQEEAIAJBAmo2AogKQQEQISEDQQAoAogKIQICQCADECRBIHJB+wBHDQBBAEEAKAKICkF+ajYCiAoPC0EAKAKICiIDIAJGDQEgAiADEAICQEEBECEiAkEsRg0AAkAgAkE9Rw0AQQBBACgCiApBfmo2AogKDwtBAEEAKAKICkF+ajYCiAoPC0EAKAKICiECDAALCw8LQQAgA0EKajYCiApBARAhGkEAKAKICiEDC0EAIANBEGo2AogKAkBBARAhIgJBKkcNAEEAQQAoAogKQQJqNgKICkEBECEhAgtBACgCiAohAyACECQaIANBACgCiAoQAkEAQQAoAogKQX5qNgKICg8LIAMgA0EOahACC6sGAQR/QQBBACgCiAoiAEEMaiIBNgKICgJAAkACQAJAAkACQAJAAkACQAJAQQEQISICQVlqDggCCAECAQEBBwALIAJBIkYNASACQfsARg0CC0EAKAKICiABRg0HC0EALwHqCQ0BQQAoAogKIQJBACgCjAohAwNAIAIgA08NBAJAAkAgAi8BACIBQSdGDQAgAUEiRw0BCyAAIAEQIg8LQQAgAkECaiICNgKICgwACwtBACgCiAohAkEALwHqCQ0BAkADQAJAAkACQCACQQAoAowKTw0AQQEQISICQSJGDQEgAkEnRg0BIAJB/QBHDQJBAEEAKAKICkECajYCiAoLQQEQIRpBACgCiAoiAikAAELmgMiD8I3ANlINBkEAIAJBCGo2AogKQQEQISICQSJGDQMgAkEnRg0DDAYLIAIQFwtBAEEAKAKICkECaiICNgKICgwACwsgACACECIMBQtBAEEAKAKICkF+ajYCiAoPC0EAIAJBfmo2AogKDwsQHQ8LQQBBACgCiApBAmo2AogKQQEQIUHtAEcNAUEAKAKICiICQQJqQZYIQQYQKA0BQQAoAvAJLwEAQS5GDQEgACAAIAJBCGpBACgCqAkQAQ8LQQAoAvwJQQAvAeoJIgJBAnRqQQAoAogKNgIAQQAgAkEBajsB6glBACgC8AkvAQBBLkYNAEEAQQAoAogKIgFBAmo2AogKQQEQISECIABBACgCiApBACABEAFBAEEALwHoCSIBQQFqOwHoCUEAKAKACiABQQJ0akEAKALECTYCAAJAIAJBIkYNACACQSdGDQBBAEEAKAKICkF+ajYCiAoPCyACEBdBAEEAKAKICkECaiICNgKICgJAAkACQEEBECFBV2oOBAECAgACC0EAQQAoAogKQQJqNgKICkEBECEaQQAoAsQJIgEgAjYCBCABQQE6ABggAUEAKAKICiICNgIQQQAgAkF+ajYCiAoPC0EAKALECSIBIAI2AgQgAUEBOgAYQQBBAC8B6glBf2o7AeoJIAFBACgCiApBAmo2AgxBAEEALwHoCUF/ajsB6AkPC0EAQQAoAogKQX5qNgKICg8LC0cBA39BACgCiApBAmohAEEAKAKMCiEBAkADQCAAIgJBfmogAU8NASACQQJqIQAgAi8BAEF2ag4EAQAAAQALC0EAIAI2AogKC5gBAQN/QQBBACgCiAoiAUECajYCiAogAUEGaiEBQQAoAowKIQIDQAJAAkACQCABQXxqIAJPDQAgAUF+ai8BACEDAkACQCAADQAgA0EqRg0BIANBdmoOBAIEBAIECyADQSpHDQMLIAEvAQBBL0cNAkEAIAFBfmo2AogKDAELIAFBfmohAQtBACABNgKICg8LIAFBAmohAQwACwu/AQEEf0EAKAKICiEAQQAoAowKIQECQAJAA0AgACICQQJqIQAgAiABTw0BAkACQCAALwEAIgNBpH9qDgUBAgICBAALIANBJEcNASACLwEEQfsARw0BQQBBAC8B5gkiAEEBajsB5glBACgC+AkgAEEBdGpBAC8B7Ak7AQBBACACQQRqNgKICkEAQQAvAeoJQQFqIgA7AewJQQAgADsB6gkPCyACQQRqIQAMAAsLQQAgADYCiAoQHQ8LQQAgADYCiAoLiAEBBH9BACgCiAohAUEAK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AYQBpAHQAaAByAHcAaABpAGwAZQBmAG8AcgBpAGYAYwBhAHQAYwBmAGkAbgBhAGwAbABlAGwAcwAAQaQJCxABAAAAAgAAAAAEAAAQOQAA","undefined"!=typeof Buffer?Buffer.from(E,"base64"):Uint8Array.from(atob(E),(A=>A.charCodeAt(0))))).then(WebAssembly.instantiate).then((({exports:A})=>{C=A;}));var E;
|
|
14603
14405
|
|
|
14604
14406
|
const isDebug$6 = !!process.env.DEBUG;
|
|
14605
14407
|
const debug$e = createDebugger('vite:sourcemap', {
|
|
@@ -14694,10 +14496,10 @@ function isEnoentCodeError(error) {
|
|
|
14694
14496
|
}
|
|
14695
14497
|
errno$1.isEnoentCodeError = isEnoentCodeError;
|
|
14696
14498
|
|
|
14697
|
-
var fs$
|
|
14499
|
+
var fs$j = {};
|
|
14698
14500
|
|
|
14699
|
-
Object.defineProperty(fs$
|
|
14700
|
-
fs$
|
|
14501
|
+
Object.defineProperty(fs$j, "__esModule", { value: true });
|
|
14502
|
+
fs$j.createDirentFromStats = void 0;
|
|
14701
14503
|
class DirentFromStats$1 {
|
|
14702
14504
|
constructor(name, stats) {
|
|
14703
14505
|
this.name = name;
|
|
@@ -14713,13 +14515,13 @@ class DirentFromStats$1 {
|
|
|
14713
14515
|
function createDirentFromStats$1(name, stats) {
|
|
14714
14516
|
return new DirentFromStats$1(name, stats);
|
|
14715
14517
|
}
|
|
14716
|
-
fs$
|
|
14518
|
+
fs$j.createDirentFromStats = createDirentFromStats$1;
|
|
14717
14519
|
|
|
14718
|
-
var path$
|
|
14520
|
+
var path$h = {};
|
|
14719
14521
|
|
|
14720
|
-
Object.defineProperty(path$
|
|
14721
|
-
path$
|
|
14722
|
-
const path$
|
|
14522
|
+
Object.defineProperty(path$h, "__esModule", { value: true });
|
|
14523
|
+
path$h.removeLeadingDotSegment = path$h.escape = path$h.makeAbsolute = path$h.unixify = void 0;
|
|
14524
|
+
const path$g = path$p;
|
|
14723
14525
|
const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2; // ./ or .\\
|
|
14724
14526
|
const UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;
|
|
14725
14527
|
/**
|
|
@@ -14728,15 +14530,15 @@ const UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;
|
|
|
14728
14530
|
function unixify(filepath) {
|
|
14729
14531
|
return filepath.replace(/\\/g, '/');
|
|
14730
14532
|
}
|
|
14731
|
-
path$
|
|
14533
|
+
path$h.unixify = unixify;
|
|
14732
14534
|
function makeAbsolute(cwd, filepath) {
|
|
14733
|
-
return path$
|
|
14535
|
+
return path$g.resolve(cwd, filepath);
|
|
14734
14536
|
}
|
|
14735
|
-
path$
|
|
14537
|
+
path$h.makeAbsolute = makeAbsolute;
|
|
14736
14538
|
function escape$2(pattern) {
|
|
14737
14539
|
return pattern.replace(UNESCAPED_GLOB_SYMBOLS_RE, '\\$2');
|
|
14738
14540
|
}
|
|
14739
|
-
path$
|
|
14541
|
+
path$h.escape = escape$2;
|
|
14740
14542
|
function removeLeadingDotSegment(entry) {
|
|
14741
14543
|
// We do not use `startsWith` because this is 10x slower than current implementation for some cases.
|
|
14742
14544
|
// eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
|
|
@@ -14748,7 +14550,7 @@ function removeLeadingDotSegment(entry) {
|
|
|
14748
14550
|
}
|
|
14749
14551
|
return entry;
|
|
14750
14552
|
}
|
|
14751
|
-
path$
|
|
14553
|
+
path$h.removeLeadingDotSegment = removeLeadingDotSegment;
|
|
14752
14554
|
|
|
14753
14555
|
var pattern$1 = {};
|
|
14754
14556
|
|
|
@@ -14926,7 +14728,7 @@ var isGlob$2 = function isGlob(str, options) {
|
|
|
14926
14728
|
|
|
14927
14729
|
var isGlob$1 = isGlob$2;
|
|
14928
14730
|
var pathPosixDirname = path$p.posix.dirname;
|
|
14929
|
-
var isWin32 = require$$
|
|
14731
|
+
var isWin32 = require$$1.platform() === 'win32';
|
|
14930
14732
|
|
|
14931
14733
|
var slash = '/';
|
|
14932
14734
|
var backslash = /\\/g;
|
|
@@ -15915,7 +15717,7 @@ const {
|
|
|
15915
15717
|
* parse
|
|
15916
15718
|
*/
|
|
15917
15719
|
|
|
15918
|
-
const parse$
|
|
15720
|
+
const parse$g = (input, options = {}) => {
|
|
15919
15721
|
if (typeof input !== 'string') {
|
|
15920
15722
|
throw new TypeError('Expected a string');
|
|
15921
15723
|
}
|
|
@@ -16214,12 +16016,12 @@ const parse$f = (input, options = {}) => {
|
|
|
16214
16016
|
return ast;
|
|
16215
16017
|
};
|
|
16216
16018
|
|
|
16217
|
-
var parse_1$1 = parse$
|
|
16019
|
+
var parse_1$1 = parse$g;
|
|
16218
16020
|
|
|
16219
16021
|
const stringify$3 = stringify$7;
|
|
16220
16022
|
const compile = compile_1;
|
|
16221
16023
|
const expand = expand_1;
|
|
16222
|
-
const parse$
|
|
16024
|
+
const parse$f = parse_1$1;
|
|
16223
16025
|
|
|
16224
16026
|
/**
|
|
16225
16027
|
* Expand the given pattern or create a regex-compatible string.
|
|
@@ -16271,7 +16073,7 @@ const braces$2 = (input, options = {}) => {
|
|
|
16271
16073
|
* @api public
|
|
16272
16074
|
*/
|
|
16273
16075
|
|
|
16274
|
-
braces$2.parse = (input, options = {}) => parse$
|
|
16076
|
+
braces$2.parse = (input, options = {}) => parse$f(input, options);
|
|
16275
16077
|
|
|
16276
16078
|
/**
|
|
16277
16079
|
* Creates a braces string from an AST, or an AST node.
|
|
@@ -16853,7 +16655,7 @@ var micromatch_1 = micromatch$1;
|
|
|
16853
16655
|
|
|
16854
16656
|
Object.defineProperty(pattern$1, "__esModule", { value: true });
|
|
16855
16657
|
pattern$1.matchAny = pattern$1.convertPatternsToRe = pattern$1.makeRe = pattern$1.getPatternParts = pattern$1.expandBraceExpansion = pattern$1.expandPatternsWithBraceExpansion = pattern$1.isAffectDepthOfReadingPattern = pattern$1.endsWithSlashGlobStar = pattern$1.hasGlobStar = pattern$1.getBaseDirectory = pattern$1.isPatternRelatedToParentDirectory = pattern$1.getPatternsOutsideCurrentDirectory = pattern$1.getPatternsInsideCurrentDirectory = pattern$1.getPositivePatterns = pattern$1.getNegativePatterns = pattern$1.isPositivePattern = pattern$1.isNegativePattern = pattern$1.convertToNegativePattern = pattern$1.convertToPositivePattern = pattern$1.isDynamicPattern = pattern$1.isStaticPattern = void 0;
|
|
16856
|
-
const path$
|
|
16658
|
+
const path$f = path$p;
|
|
16857
16659
|
const globParent$1 = globParent$2;
|
|
16858
16660
|
const micromatch = micromatch_1;
|
|
16859
16661
|
const GLOBSTAR$1 = '**';
|
|
@@ -16970,7 +16772,7 @@ function endsWithSlashGlobStar(pattern) {
|
|
|
16970
16772
|
}
|
|
16971
16773
|
pattern$1.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
16972
16774
|
function isAffectDepthOfReadingPattern(pattern) {
|
|
16973
|
-
const basename = path$
|
|
16775
|
+
const basename = path$f.basename(pattern);
|
|
16974
16776
|
return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
|
|
16975
16777
|
}
|
|
16976
16778
|
pattern$1.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
|
|
@@ -17202,10 +17004,10 @@ const array = array$1;
|
|
|
17202
17004
|
utils$g.array = array;
|
|
17203
17005
|
const errno = errno$1;
|
|
17204
17006
|
utils$g.errno = errno;
|
|
17205
|
-
const fs$
|
|
17206
|
-
utils$g.fs = fs$
|
|
17207
|
-
const path$
|
|
17208
|
-
utils$g.path = path$
|
|
17007
|
+
const fs$i = fs$j;
|
|
17008
|
+
utils$g.fs = fs$i;
|
|
17009
|
+
const path$e = path$h;
|
|
17010
|
+
utils$g.path = path$e;
|
|
17209
17011
|
const pattern = pattern$1;
|
|
17210
17012
|
utils$g.pattern = pattern;
|
|
17211
17013
|
const stream$3 = stream$4;
|
|
@@ -17387,7 +17189,7 @@ sync$a.read = read$3;
|
|
|
17387
17189
|
|
|
17388
17190
|
var settings$3 = {};
|
|
17389
17191
|
|
|
17390
|
-
var fs$
|
|
17192
|
+
var fs$h = {};
|
|
17391
17193
|
|
|
17392
17194
|
(function (exports) {
|
|
17393
17195
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -17406,15 +17208,15 @@ function createFileSystemAdapter(fsMethods) {
|
|
|
17406
17208
|
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
17407
17209
|
}
|
|
17408
17210
|
exports.createFileSystemAdapter = createFileSystemAdapter;
|
|
17409
|
-
}(fs$
|
|
17211
|
+
}(fs$h));
|
|
17410
17212
|
|
|
17411
17213
|
Object.defineProperty(settings$3, "__esModule", { value: true });
|
|
17412
|
-
const fs$
|
|
17214
|
+
const fs$g = fs$h;
|
|
17413
17215
|
class Settings$2 {
|
|
17414
17216
|
constructor(_options = {}) {
|
|
17415
17217
|
this._options = _options;
|
|
17416
17218
|
this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
|
|
17417
|
-
this.fs = fs$
|
|
17219
|
+
this.fs = fs$g.createFileSystemAdapter(this._options.fs);
|
|
17418
17220
|
this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
|
|
17419
17221
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
17420
17222
|
}
|
|
@@ -17545,10 +17347,10 @@ constants$2.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCH
|
|
|
17545
17347
|
|
|
17546
17348
|
var utils$9 = {};
|
|
17547
17349
|
|
|
17548
|
-
var fs$
|
|
17350
|
+
var fs$f = {};
|
|
17549
17351
|
|
|
17550
|
-
Object.defineProperty(fs$
|
|
17551
|
-
fs$
|
|
17352
|
+
Object.defineProperty(fs$f, "__esModule", { value: true });
|
|
17353
|
+
fs$f.createDirentFromStats = void 0;
|
|
17552
17354
|
class DirentFromStats {
|
|
17553
17355
|
constructor(name, stats) {
|
|
17554
17356
|
this.name = name;
|
|
@@ -17564,12 +17366,12 @@ class DirentFromStats {
|
|
|
17564
17366
|
function createDirentFromStats(name, stats) {
|
|
17565
17367
|
return new DirentFromStats(name, stats);
|
|
17566
17368
|
}
|
|
17567
|
-
fs$
|
|
17369
|
+
fs$f.createDirentFromStats = createDirentFromStats;
|
|
17568
17370
|
|
|
17569
17371
|
Object.defineProperty(utils$9, "__esModule", { value: true });
|
|
17570
17372
|
utils$9.fs = void 0;
|
|
17571
|
-
const fs$
|
|
17572
|
-
utils$9.fs = fs$
|
|
17373
|
+
const fs$e = fs$f;
|
|
17374
|
+
utils$9.fs = fs$e;
|
|
17573
17375
|
|
|
17574
17376
|
var common$a = {};
|
|
17575
17377
|
|
|
@@ -17748,7 +17550,7 @@ sync$8.readdir = readdir$2;
|
|
|
17748
17550
|
|
|
17749
17551
|
var settings$2 = {};
|
|
17750
17552
|
|
|
17751
|
-
var fs$
|
|
17553
|
+
var fs$d = {};
|
|
17752
17554
|
|
|
17753
17555
|
(function (exports) {
|
|
17754
17556
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -17769,18 +17571,18 @@ function createFileSystemAdapter(fsMethods) {
|
|
|
17769
17571
|
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
17770
17572
|
}
|
|
17771
17573
|
exports.createFileSystemAdapter = createFileSystemAdapter;
|
|
17772
|
-
}(fs$
|
|
17574
|
+
}(fs$d));
|
|
17773
17575
|
|
|
17774
17576
|
Object.defineProperty(settings$2, "__esModule", { value: true });
|
|
17775
|
-
const path$
|
|
17577
|
+
const path$d = path$p;
|
|
17776
17578
|
const fsStat$3 = out$3;
|
|
17777
|
-
const fs$
|
|
17579
|
+
const fs$c = fs$d;
|
|
17778
17580
|
class Settings$1 {
|
|
17779
17581
|
constructor(_options = {}) {
|
|
17780
17582
|
this._options = _options;
|
|
17781
17583
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
17782
|
-
this.fs = fs$
|
|
17783
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$
|
|
17584
|
+
this.fs = fs$c.createFileSystemAdapter(this._options.fs);
|
|
17585
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$d.sep);
|
|
17784
17586
|
this.stats = this._getValue(this._options.stats, false);
|
|
17785
17587
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
17786
17588
|
this.fsStatSettings = new fsStat$3.Settings({
|
|
@@ -18426,7 +18228,7 @@ sync$6.default = SyncProvider;
|
|
|
18426
18228
|
var settings$1 = {};
|
|
18427
18229
|
|
|
18428
18230
|
Object.defineProperty(settings$1, "__esModule", { value: true });
|
|
18429
|
-
const path$
|
|
18231
|
+
const path$c = path$p;
|
|
18430
18232
|
const fsScandir = out$1;
|
|
18431
18233
|
class Settings {
|
|
18432
18234
|
constructor(_options = {}) {
|
|
@@ -18436,7 +18238,7 @@ class Settings {
|
|
|
18436
18238
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
18437
18239
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
18438
18240
|
this.errorFilter = this._getValue(this._options.errorFilter, null);
|
|
18439
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$
|
|
18241
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$c.sep);
|
|
18440
18242
|
this.fsScandirSettings = new fsScandir.Settings({
|
|
18441
18243
|
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
18442
18244
|
fs: this._options.fs,
|
|
@@ -18488,7 +18290,7 @@ function getSettings(settingsOrOptions = {}) {
|
|
|
18488
18290
|
var reader = {};
|
|
18489
18291
|
|
|
18490
18292
|
Object.defineProperty(reader, "__esModule", { value: true });
|
|
18491
|
-
const path$
|
|
18293
|
+
const path$b = path$p;
|
|
18492
18294
|
const fsStat$2 = out$3;
|
|
18493
18295
|
const utils$6 = utils$g;
|
|
18494
18296
|
class Reader {
|
|
@@ -18501,7 +18303,7 @@ class Reader {
|
|
|
18501
18303
|
});
|
|
18502
18304
|
}
|
|
18503
18305
|
_getFullEntryPath(filepath) {
|
|
18504
|
-
return path$
|
|
18306
|
+
return path$b.resolve(this._settings.cwd, filepath);
|
|
18505
18307
|
}
|
|
18506
18308
|
_makeEntry(stats, pattern) {
|
|
18507
18309
|
const entry = {
|
|
@@ -18841,7 +18643,7 @@ class EntryTransformer {
|
|
|
18841
18643
|
entry.default = EntryTransformer;
|
|
18842
18644
|
|
|
18843
18645
|
Object.defineProperty(provider, "__esModule", { value: true });
|
|
18844
|
-
const path$
|
|
18646
|
+
const path$a = path$p;
|
|
18845
18647
|
const deep_1 = deep;
|
|
18846
18648
|
const entry_1 = entry$1;
|
|
18847
18649
|
const error_1 = error$2;
|
|
@@ -18855,7 +18657,7 @@ class Provider {
|
|
|
18855
18657
|
this.entryTransformer = new entry_2.default(this._settings);
|
|
18856
18658
|
}
|
|
18857
18659
|
_getRootDirectory(task) {
|
|
18858
|
-
return path$
|
|
18660
|
+
return path$a.resolve(this._settings.cwd, task.base);
|
|
18859
18661
|
}
|
|
18860
18662
|
_getReaderOptions(task) {
|
|
18861
18663
|
const basePath = task.base === '.' ? '' : task.base;
|
|
@@ -19025,7 +18827,7 @@ var settings = {};
|
|
|
19025
18827
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19026
18828
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
19027
18829
|
const fs = fs__default;
|
|
19028
|
-
const os = require$$
|
|
18830
|
+
const os = require$$1;
|
|
19029
18831
|
/**
|
|
19030
18832
|
* The `os.cpus` method can return zero. We expect the number of cores to be greater than zero.
|
|
19031
18833
|
* https://github.com/nodejs/node/blob/7faeddf23a98c53896f8b574a6e66589e8fb1eb8/lib/os.js#L106-L107
|
|
@@ -19155,7 +18957,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19155
18957
|
exports.lilconfigSync = exports.lilconfig = exports.defaultLoaders = void 0;
|
|
19156
18958
|
const path = path$p;
|
|
19157
18959
|
const fs = fs__default;
|
|
19158
|
-
const os = require$$
|
|
18960
|
+
const os = require$$1;
|
|
19159
18961
|
const fsReadFileAsync = fs.promises.readFile;
|
|
19160
18962
|
function getDefaultSearchPlaces(name) {
|
|
19161
18963
|
return [
|
|
@@ -21988,7 +21790,7 @@ class ParseContext {
|
|
|
21988
21790
|
}
|
|
21989
21791
|
|
|
21990
21792
|
// Published as 'yaml/parse-cst'
|
|
21991
|
-
function parse$
|
|
21793
|
+
function parse$e(src) {
|
|
21992
21794
|
const cr = [];
|
|
21993
21795
|
|
|
21994
21796
|
if (src.indexOf('\r') !== -1) {
|
|
@@ -22030,7 +21832,7 @@ function parse$d(src) {
|
|
|
22030
21832
|
return documents;
|
|
22031
21833
|
}
|
|
22032
21834
|
|
|
22033
|
-
parseCst$1.parse = parse$
|
|
21835
|
+
parseCst$1.parse = parse$e;
|
|
22034
21836
|
|
|
22035
21837
|
var Document9b4560a1 = {};
|
|
22036
21838
|
|
|
@@ -25946,7 +25748,7 @@ function parseDocument(src, options) {
|
|
|
25946
25748
|
return doc;
|
|
25947
25749
|
}
|
|
25948
25750
|
|
|
25949
|
-
function parse$
|
|
25751
|
+
function parse$d(src, options) {
|
|
25950
25752
|
const doc = parseDocument(src, options);
|
|
25951
25753
|
doc.warnings.forEach(warning => warnings.warn(warning));
|
|
25952
25754
|
if (doc.errors.length > 0) throw doc.errors[0];
|
|
@@ -25963,7 +25765,7 @@ const YAML = {
|
|
|
25963
25765
|
createNode,
|
|
25964
25766
|
defaultOptions: Document$1.defaultOptions,
|
|
25965
25767
|
Document,
|
|
25966
|
-
parse: parse$
|
|
25768
|
+
parse: parse$d,
|
|
25967
25769
|
parseAllDocuments,
|
|
25968
25770
|
parseCST: parseCst.parse,
|
|
25969
25771
|
parseDocument,
|
|
@@ -26118,7 +25920,7 @@ var plugins_1 = plugins;
|
|
|
26118
25920
|
|
|
26119
25921
|
const resolve$1 = path$p.resolve;
|
|
26120
25922
|
|
|
26121
|
-
const config = dist$1;
|
|
25923
|
+
const config$1 = dist$1;
|
|
26122
25924
|
const yaml = yaml$1;
|
|
26123
25925
|
|
|
26124
25926
|
const loadOptions = options_1;
|
|
@@ -26257,7 +26059,7 @@ const rc = withTypeScriptLoader((ctx, path, options) => {
|
|
|
26257
26059
|
*/
|
|
26258
26060
|
path = path ? resolve$1(path) : process.cwd();
|
|
26259
26061
|
|
|
26260
|
-
return config.lilconfig('postcss', options)
|
|
26062
|
+
return config$1.lilconfig('postcss', options)
|
|
26261
26063
|
.search(path)
|
|
26262
26064
|
.then((result) => {
|
|
26263
26065
|
if (!result) {
|
|
@@ -26279,7 +26081,7 @@ rc.sync = withTypeScriptLoader((ctx, path, options) => {
|
|
|
26279
26081
|
*/
|
|
26280
26082
|
path = path ? resolve$1(path) : process.cwd();
|
|
26281
26083
|
|
|
26282
|
-
const result = config.lilconfigSync('postcss', options).search(path);
|
|
26084
|
+
const result = config$1.lilconfigSync('postcss', options).search(path);
|
|
26283
26085
|
|
|
26284
26086
|
if (!result) {
|
|
26285
26087
|
throw new Error(`No PostCSS Config found in: ${path}`)
|
|
@@ -31860,7 +31662,7 @@ Parser.acorn = {
|
|
|
31860
31662
|
//
|
|
31861
31663
|
// [api]: https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API
|
|
31862
31664
|
|
|
31863
|
-
function parse$
|
|
31665
|
+
function parse$c(input, options) {
|
|
31864
31666
|
return Parser.parse(input, options)
|
|
31865
31667
|
}
|
|
31866
31668
|
|
|
@@ -31897,7 +31699,7 @@ var acorn = {
|
|
|
31897
31699
|
lineBreak: lineBreak,
|
|
31898
31700
|
lineBreakG: lineBreakG,
|
|
31899
31701
|
nonASCIIwhitespace: nonASCIIwhitespace,
|
|
31900
|
-
parse: parse$
|
|
31702
|
+
parse: parse$c,
|
|
31901
31703
|
parseExpressionAt: parseExpressionAt,
|
|
31902
31704
|
tokContexts: types,
|
|
31903
31705
|
tokTypes: types$1,
|
|
@@ -32795,7 +32597,7 @@ const assetAttrsConfig = {
|
|
|
32795
32597
|
const isAsyncScriptMap = new WeakMap();
|
|
32796
32598
|
async function traverseHtml(html, filePath, visitor) {
|
|
32797
32599
|
// lazy load compiler
|
|
32798
|
-
const { parse, transform } = await import('./dep-
|
|
32600
|
+
const { parse, transform } = await import('./dep-da8244f4.js').then(function (n) { return n.c; });
|
|
32799
32601
|
// @vue/compiler-core doesn't like lowercase doctypes
|
|
32800
32602
|
html = html.replace(/<!doctype\s/i, '<!DOCTYPE ');
|
|
32801
32603
|
try {
|
|
@@ -33900,7 +33702,7 @@ async function compileCSS(id, code, config, urlReplacer, atImportResolvers, serv
|
|
|
33900
33702
|
logger: config.logger
|
|
33901
33703
|
}));
|
|
33902
33704
|
if (isModule) {
|
|
33903
|
-
postcssPlugins.unshift((await import('./dep-
|
|
33705
|
+
postcssPlugins.unshift((await import('./dep-b1fc04c1.js').then(function (n) { return n.i; })).default({
|
|
33904
33706
|
...modulesOptions,
|
|
33905
33707
|
getJSON(cssFileName, _modules, outputFileName) {
|
|
33906
33708
|
modules = _modules;
|
|
@@ -34646,7 +34448,7 @@ function buildImportAnalysisPlugin(config) {
|
|
|
34646
34448
|
await init;
|
|
34647
34449
|
let imports = [];
|
|
34648
34450
|
try {
|
|
34649
|
-
imports = parse$
|
|
34451
|
+
imports = parse$h(source)[0];
|
|
34650
34452
|
}
|
|
34651
34453
|
catch (e) {
|
|
34652
34454
|
this.error(e, e.idx);
|
|
@@ -34712,7 +34514,7 @@ function buildImportAnalysisPlugin(config) {
|
|
|
34712
34514
|
const code = chunk.code;
|
|
34713
34515
|
let imports;
|
|
34714
34516
|
try {
|
|
34715
|
-
imports = parse$
|
|
34517
|
+
imports = parse$h(code)[0].filter((i) => i.d > -1);
|
|
34716
34518
|
}
|
|
34717
34519
|
catch (e) {
|
|
34718
34520
|
this.error(e, e.idx);
|
|
@@ -35208,6 +35010,12 @@ async function createPluginContainer({ plugins, logger, root, build: { rollupOpt
|
|
|
35208
35010
|
const debugPluginTransform = createDebugger('vite:plugin-transform', {
|
|
35209
35011
|
onlyWhenFocused: 'vite:plugin'
|
|
35210
35012
|
});
|
|
35013
|
+
const debugSourcemapCombineFlag = 'vite:sourcemap-combine';
|
|
35014
|
+
const isDebugSourcemapCombineFocused = process.env.DEBUG?.includes(debugSourcemapCombineFlag);
|
|
35015
|
+
const debugSourcemapCombineFilter = process.env.DEBUG_VITE_SOURCEMAP_COMBINE_FILTER;
|
|
35016
|
+
const debugSourcemapCombine = createDebugger('vite:sourcemap-combine', {
|
|
35017
|
+
onlyWhenFocused: true
|
|
35018
|
+
});
|
|
35211
35019
|
// ---------------------------------------------------------------------------
|
|
35212
35020
|
const watchFiles = new Set();
|
|
35213
35021
|
// TODO: use import()
|
|
@@ -35421,6 +35229,13 @@ async function createPluginContainer({ plugins, logger, root, build: { rollupOpt
|
|
|
35421
35229
|
}
|
|
35422
35230
|
}
|
|
35423
35231
|
_getCombinedSourcemap(createIfNull = false) {
|
|
35232
|
+
if (debugSourcemapCombineFilter &&
|
|
35233
|
+
this.filename.includes(debugSourcemapCombineFilter)) {
|
|
35234
|
+
debugSourcemapCombine('----------', this.filename);
|
|
35235
|
+
debugSourcemapCombine(this.combinedMap);
|
|
35236
|
+
debugSourcemapCombine(this.sourcemapChain);
|
|
35237
|
+
debugSourcemapCombine('----------');
|
|
35238
|
+
}
|
|
35424
35239
|
let combinedMap = this.combinedMap;
|
|
35425
35240
|
for (let m of this.sourcemapChain) {
|
|
35426
35241
|
if (typeof m === 'string')
|
|
@@ -35584,6 +35399,10 @@ async function createPluginContainer({ plugins, logger, root, build: { rollupOpt
|
|
|
35584
35399
|
if (result.code !== undefined) {
|
|
35585
35400
|
code = result.code;
|
|
35586
35401
|
if (result.map) {
|
|
35402
|
+
if (isDebugSourcemapCombineFocused) {
|
|
35403
|
+
// @ts-expect-error inject plugin name for debug purpose
|
|
35404
|
+
result.map.name = plugin.name;
|
|
35405
|
+
}
|
|
35587
35406
|
ctx.sourcemapChain.push(result.map);
|
|
35588
35407
|
}
|
|
35589
35408
|
}
|
|
@@ -36466,7 +36285,7 @@ function loadCachedDepOptimizationMetadata(config, force = config.server.force,
|
|
|
36466
36285
|
config.logger.info('Forced re-optimization of dependencies');
|
|
36467
36286
|
}
|
|
36468
36287
|
// Start with a fresh cache
|
|
36469
|
-
|
|
36288
|
+
fs__default.rmSync(depsCacheDir, { recursive: true, force: true });
|
|
36470
36289
|
}
|
|
36471
36290
|
/**
|
|
36472
36291
|
* Initial optimizeDeps at server start. Perform a fast scan using esbuild to
|
|
@@ -36572,12 +36391,12 @@ async function runOptimizeDeps(config, depsInfo) {
|
|
|
36572
36391
|
write: false,
|
|
36573
36392
|
format: 'esm'
|
|
36574
36393
|
});
|
|
36575
|
-
exportsData = parse$
|
|
36394
|
+
exportsData = parse$h(result.outputFiles[0].text);
|
|
36576
36395
|
}
|
|
36577
36396
|
else {
|
|
36578
36397
|
const entryContent = fs__default.readFileSync(filePath, 'utf-8');
|
|
36579
36398
|
try {
|
|
36580
|
-
exportsData = parse$
|
|
36399
|
+
exportsData = parse$h(entryContent);
|
|
36581
36400
|
}
|
|
36582
36401
|
catch {
|
|
36583
36402
|
const loader = esbuildOptions.loader?.[path$p.extname(filePath)] || 'jsx';
|
|
@@ -36591,7 +36410,7 @@ async function runOptimizeDeps(config, depsInfo) {
|
|
|
36591
36410
|
'.js': 'jsx',
|
|
36592
36411
|
...esbuildOptions.loader
|
|
36593
36412
|
};
|
|
36594
|
-
exportsData = parse$
|
|
36413
|
+
exportsData = parse$h(transformed.code);
|
|
36595
36414
|
}
|
|
36596
36415
|
for (const { ss, se } of exportsData[0]) {
|
|
36597
36416
|
const exp = entryContent.slice(ss, se);
|
|
@@ -36679,7 +36498,7 @@ async function runOptimizeDeps(config, depsInfo) {
|
|
|
36679
36498
|
await renameDir(processingCacheDir, depsCacheDir);
|
|
36680
36499
|
}
|
|
36681
36500
|
function cancel() {
|
|
36682
|
-
|
|
36501
|
+
fs__default.rmSync(processingCacheDir, { recursive: true, force: true });
|
|
36683
36502
|
}
|
|
36684
36503
|
}
|
|
36685
36504
|
async function findKnownImports(config) {
|
|
@@ -37895,7 +37714,7 @@ function ssrManifestPlugin(config) {
|
|
|
37895
37714
|
const code = chunk.code;
|
|
37896
37715
|
let imports;
|
|
37897
37716
|
try {
|
|
37898
|
-
imports = parse$
|
|
37717
|
+
imports = parse$h(code)[0].filter((i) => i.d > -1);
|
|
37899
37718
|
}
|
|
37900
37719
|
catch (e) {
|
|
37901
37720
|
this.error(e, e.idx);
|
|
@@ -38540,7 +38359,7 @@ var ms = function(val, options) {
|
|
|
38540
38359
|
options = options || {};
|
|
38541
38360
|
var type = typeof val;
|
|
38542
38361
|
if (type === 'string' && val.length > 0) {
|
|
38543
|
-
return parse$
|
|
38362
|
+
return parse$b(val);
|
|
38544
38363
|
} else if (type === 'number' && isNaN(val) === false) {
|
|
38545
38364
|
return options.long ? fmtLong(val) : fmtShort(val);
|
|
38546
38365
|
}
|
|
@@ -38558,7 +38377,7 @@ var ms = function(val, options) {
|
|
|
38558
38377
|
* @api private
|
|
38559
38378
|
*/
|
|
38560
38379
|
|
|
38561
|
-
function parse$
|
|
38380
|
+
function parse$b(str) {
|
|
38562
38381
|
str = String(str);
|
|
38563
38382
|
if (str.length > 100) {
|
|
38564
38383
|
return;
|
|
@@ -39763,7 +39582,7 @@ var parseurl$1 = {exports: {}};
|
|
|
39763
39582
|
*/
|
|
39764
39583
|
|
|
39765
39584
|
var url$3 = require$$0$7;
|
|
39766
|
-
var parse$
|
|
39585
|
+
var parse$a = url$3.parse;
|
|
39767
39586
|
var Url = url$3.Url;
|
|
39768
39587
|
|
|
39769
39588
|
/**
|
|
@@ -39842,7 +39661,7 @@ function originalurl (req) {
|
|
|
39842
39661
|
|
|
39843
39662
|
function fastparse (str) {
|
|
39844
39663
|
if (typeof str !== 'string' || str.charCodeAt(0) !== 0x2f /* / */) {
|
|
39845
|
-
return parse$
|
|
39664
|
+
return parse$a(str)
|
|
39846
39665
|
}
|
|
39847
39666
|
|
|
39848
39667
|
var pathname = str;
|
|
@@ -39869,7 +39688,7 @@ function fastparse (str) {
|
|
|
39869
39688
|
case 0x23: /* # */
|
|
39870
39689
|
case 0xa0:
|
|
39871
39690
|
case 0xfeff:
|
|
39872
|
-
return parse$
|
|
39691
|
+
return parse$a(str)
|
|
39873
39692
|
}
|
|
39874
39693
|
}
|
|
39875
39694
|
|
|
@@ -40526,7 +40345,7 @@ module.exports = function(a, b){
|
|
|
40526
40345
|
var debug$6 = src.exports('connect:dispatcher');
|
|
40527
40346
|
var EventEmitter$3 = require$$0$3.EventEmitter;
|
|
40528
40347
|
var finalhandler = finalhandler_1;
|
|
40529
|
-
var http$4 = require$$1$
|
|
40348
|
+
var http$4 = require$$1$2;
|
|
40530
40349
|
var merge = utilsMerge.exports;
|
|
40531
40350
|
var parseUrl = parseurl$1.exports;
|
|
40532
40351
|
|
|
@@ -40927,7 +40746,7 @@ function append (header, field) {
|
|
|
40927
40746
|
|
|
40928
40747
|
// get fields array
|
|
40929
40748
|
var fields = !Array.isArray(field)
|
|
40930
|
-
? parse$
|
|
40749
|
+
? parse$9(String(field))
|
|
40931
40750
|
: field;
|
|
40932
40751
|
|
|
40933
40752
|
// assert on invalid field names
|
|
@@ -40944,7 +40763,7 @@ function append (header, field) {
|
|
|
40944
40763
|
|
|
40945
40764
|
// enumerate current values
|
|
40946
40765
|
var val = header;
|
|
40947
|
-
var vals = parse$
|
|
40766
|
+
var vals = parse$9(header.toLowerCase());
|
|
40948
40767
|
|
|
40949
40768
|
// unspecified vary
|
|
40950
40769
|
if (fields.indexOf('*') !== -1 || vals.indexOf('*') !== -1) {
|
|
@@ -40974,7 +40793,7 @@ function append (header, field) {
|
|
|
40974
40793
|
* @private
|
|
40975
40794
|
*/
|
|
40976
40795
|
|
|
40977
|
-
function parse$
|
|
40796
|
+
function parse$9 (header) {
|
|
40978
40797
|
var end = 0;
|
|
40979
40798
|
var list = [];
|
|
40980
40799
|
var start = 0;
|
|
@@ -41270,16 +41089,16 @@ var corsMiddleware = lib$2.exports;
|
|
|
41270
41089
|
|
|
41271
41090
|
var chokidar = {};
|
|
41272
41091
|
|
|
41273
|
-
const fs$
|
|
41092
|
+
const fs$b = fs__default;
|
|
41274
41093
|
const { Readable } = require$$0$5;
|
|
41275
41094
|
const sysPath$3 = path$p;
|
|
41276
41095
|
const { promisify: promisify$3 } = require$$0$4;
|
|
41277
41096
|
const picomatch$1 = picomatch$3;
|
|
41278
41097
|
|
|
41279
|
-
const readdir$1 = promisify$3(fs$
|
|
41280
|
-
const stat$3 = promisify$3(fs$
|
|
41281
|
-
const lstat$2 = promisify$3(fs$
|
|
41282
|
-
const realpath$1 = promisify$3(fs$
|
|
41098
|
+
const readdir$1 = promisify$3(fs$b.readdir);
|
|
41099
|
+
const stat$3 = promisify$3(fs$b.stat);
|
|
41100
|
+
const lstat$2 = promisify$3(fs$b.lstat);
|
|
41101
|
+
const realpath$1 = promisify$3(fs$b.realpath);
|
|
41283
41102
|
|
|
41284
41103
|
/**
|
|
41285
41104
|
* @typedef {Object} EntryInfo
|
|
@@ -41375,7 +41194,7 @@ class ReaddirpStream extends Readable {
|
|
|
41375
41194
|
this._wantsFile = [FILE_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE].includes(type);
|
|
41376
41195
|
this._wantsEverything = type === EVERYTHING_TYPE;
|
|
41377
41196
|
this._root = sysPath$3.resolve(root);
|
|
41378
|
-
this._isDirent = ('Dirent' in fs$
|
|
41197
|
+
this._isDirent = ('Dirent' in fs$b) && !opts.alwaysStat;
|
|
41379
41198
|
this._statsProp = this._isDirent ? 'dirent' : 'stats';
|
|
41380
41199
|
this._rdOptions = { encoding: 'utf8', withFileTypes: this._isDirent };
|
|
41381
41200
|
|
|
@@ -41960,12 +41779,12 @@ var require$$0 = [
|
|
|
41960
41779
|
|
|
41961
41780
|
var binaryExtensions$1 = require$$0;
|
|
41962
41781
|
|
|
41963
|
-
const path$
|
|
41782
|
+
const path$9 = path$p;
|
|
41964
41783
|
const binaryExtensions = binaryExtensions$1;
|
|
41965
41784
|
|
|
41966
41785
|
const extensions = new Set(binaryExtensions);
|
|
41967
41786
|
|
|
41968
|
-
var isBinaryPath$1 = filePath => extensions.has(path$
|
|
41787
|
+
var isBinaryPath$1 = filePath => extensions.has(path$9.extname(filePath).slice(1).toLowerCase());
|
|
41969
41788
|
|
|
41970
41789
|
var constants$1 = {};
|
|
41971
41790
|
|
|
@@ -41973,7 +41792,7 @@ var constants$1 = {};
|
|
|
41973
41792
|
|
|
41974
41793
|
const {sep} = path$p;
|
|
41975
41794
|
const {platform} = process;
|
|
41976
|
-
const os = require$$
|
|
41795
|
+
const os = require$$1;
|
|
41977
41796
|
|
|
41978
41797
|
exports.EV_ALL = 'all';
|
|
41979
41798
|
exports.EV_READY = 'ready';
|
|
@@ -42036,7 +41855,7 @@ exports.isLinux = platform === 'linux';
|
|
|
42036
41855
|
exports.isIBMi = os.type() === 'OS400';
|
|
42037
41856
|
}(constants$1));
|
|
42038
41857
|
|
|
42039
|
-
const fs$
|
|
41858
|
+
const fs$a = fs__default;
|
|
42040
41859
|
const sysPath$2 = path$p;
|
|
42041
41860
|
const { promisify: promisify$2 } = require$$0$4;
|
|
42042
41861
|
const isBinaryPath = isBinaryPath$1;
|
|
@@ -42061,11 +41880,11 @@ const {
|
|
|
42061
41880
|
|
|
42062
41881
|
const THROTTLE_MODE_WATCH = 'watch';
|
|
42063
41882
|
|
|
42064
|
-
const open$1 = promisify$2(fs$
|
|
42065
|
-
const stat$2 = promisify$2(fs$
|
|
42066
|
-
const lstat$1 = promisify$2(fs$
|
|
42067
|
-
const close = promisify$2(fs$
|
|
42068
|
-
const fsrealpath = promisify$2(fs$
|
|
41883
|
+
const open$1 = promisify$2(fs$a.open);
|
|
41884
|
+
const stat$2 = promisify$2(fs$a.stat);
|
|
41885
|
+
const lstat$1 = promisify$2(fs$a.lstat);
|
|
41886
|
+
const close = promisify$2(fs$a.close);
|
|
41887
|
+
const fsrealpath = promisify$2(fs$a.realpath);
|
|
42069
41888
|
|
|
42070
41889
|
const statMethods$1 = { lstat: lstat$1, stat: stat$2 };
|
|
42071
41890
|
|
|
@@ -42152,7 +41971,7 @@ function createFsWatchInstance(path, options, listener, errHandler, emitRaw) {
|
|
|
42152
41971
|
}
|
|
42153
41972
|
};
|
|
42154
41973
|
try {
|
|
42155
|
-
return fs$
|
|
41974
|
+
return fs$a.watch(path, options, handleEvent);
|
|
42156
41975
|
} catch (error) {
|
|
42157
41976
|
errHandler(error);
|
|
42158
41977
|
}
|
|
@@ -42271,7 +42090,7 @@ const setFsWatchFileListener = (path, fullPath, options, handlers) => {
|
|
|
42271
42090
|
|
|
42272
42091
|
const copts = cont && cont.options;
|
|
42273
42092
|
if (copts && (copts.persistent < options.persistent || copts.interval > options.interval)) {
|
|
42274
|
-
fs$
|
|
42093
|
+
fs$a.unwatchFile(fullPath);
|
|
42275
42094
|
cont = undefined;
|
|
42276
42095
|
}
|
|
42277
42096
|
|
|
@@ -42288,7 +42107,7 @@ const setFsWatchFileListener = (path, fullPath, options, handlers) => {
|
|
|
42288
42107
|
listeners: listener,
|
|
42289
42108
|
rawEmitters: rawEmitter,
|
|
42290
42109
|
options,
|
|
42291
|
-
watcher: fs$
|
|
42110
|
+
watcher: fs$a.watchFile(fullPath, options, (curr, prev) => {
|
|
42292
42111
|
foreach(cont.rawEmitters, (rawEmitter) => {
|
|
42293
42112
|
rawEmitter(EV_CHANGE$2, fullPath, {curr, prev});
|
|
42294
42113
|
});
|
|
@@ -42309,7 +42128,7 @@ const setFsWatchFileListener = (path, fullPath, options, handlers) => {
|
|
|
42309
42128
|
delFromSet(cont, KEY_RAW, rawEmitter);
|
|
42310
42129
|
if (isEmptySet(cont.listeners)) {
|
|
42311
42130
|
FsWatchFileInstances.delete(fullPath);
|
|
42312
|
-
fs$
|
|
42131
|
+
fs$a.unwatchFile(fullPath);
|
|
42313
42132
|
cont.options = cont.watcher = undefined;
|
|
42314
42133
|
Object.freeze(cont);
|
|
42315
42134
|
}
|
|
@@ -42681,7 +42500,7 @@ var nodefsHandler = NodeFsHandler$1;
|
|
|
42681
42500
|
|
|
42682
42501
|
var fseventsHandler = {exports: {}};
|
|
42683
42502
|
|
|
42684
|
-
const fs$
|
|
42503
|
+
const fs$9 = fs__default;
|
|
42685
42504
|
const sysPath$1 = path$p;
|
|
42686
42505
|
const { promisify: promisify$1 } = require$$0$4;
|
|
42687
42506
|
|
|
@@ -42732,9 +42551,9 @@ const {
|
|
|
42732
42551
|
|
|
42733
42552
|
const Depth = (value) => isNaN(value) ? {} : {depth: value};
|
|
42734
42553
|
|
|
42735
|
-
const stat$1 = promisify$1(fs$
|
|
42736
|
-
const lstat = promisify$1(fs$
|
|
42737
|
-
const realpath = promisify$1(fs$
|
|
42554
|
+
const stat$1 = promisify$1(fs$9.stat);
|
|
42555
|
+
const lstat = promisify$1(fs$9.lstat);
|
|
42556
|
+
const realpath = promisify$1(fs$9.realpath);
|
|
42738
42557
|
|
|
42739
42558
|
const statMethods = { stat: stat$1, lstat };
|
|
42740
42559
|
|
|
@@ -43205,7 +43024,7 @@ fseventsHandler.exports = FsEventsHandler$1;
|
|
|
43205
43024
|
fseventsHandler.exports.canUse = canUse;
|
|
43206
43025
|
|
|
43207
43026
|
const { EventEmitter: EventEmitter$2 } = require$$0$3;
|
|
43208
|
-
const fs$
|
|
43027
|
+
const fs$8 = fs__default;
|
|
43209
43028
|
const sysPath = path$p;
|
|
43210
43029
|
const { promisify } = require$$0$4;
|
|
43211
43030
|
const readdirp = readdirp_1;
|
|
@@ -43256,8 +43075,8 @@ const {
|
|
|
43256
43075
|
isIBMi
|
|
43257
43076
|
} = constants$1;
|
|
43258
43077
|
|
|
43259
|
-
const stat = promisify(fs$
|
|
43260
|
-
const readdir = promisify(fs$
|
|
43078
|
+
const stat = promisify(fs$8.stat);
|
|
43079
|
+
const readdir = promisify(fs$8.readdir);
|
|
43261
43080
|
|
|
43262
43081
|
/**
|
|
43263
43082
|
* @typedef {String} Path
|
|
@@ -43913,7 +43732,7 @@ _awaitWriteFinish(path, threshold, event, awfEmit) {
|
|
|
43913
43732
|
const now = new Date();
|
|
43914
43733
|
|
|
43915
43734
|
const awaitWriteFinish = (prevStat) => {
|
|
43916
|
-
fs$
|
|
43735
|
+
fs$8.stat(fullPath, (err, curStat) => {
|
|
43917
43736
|
if (err || !this._pendingWrites.has(path)) {
|
|
43918
43737
|
if (err && err.code !== 'ENOENT') awfEmit(err);
|
|
43919
43738
|
return;
|
|
@@ -44211,7 +44030,7 @@ for (var i = 0; i < 4; i++) {
|
|
|
44211
44030
|
}
|
|
44212
44031
|
|
|
44213
44032
|
shellQuote$1.parse = function (s, env, opts) {
|
|
44214
|
-
var mapped = parse$
|
|
44033
|
+
var mapped = parse$8(s, env, opts);
|
|
44215
44034
|
if (typeof env !== 'function') return mapped;
|
|
44216
44035
|
return mapped.reduce(function (acc, s) {
|
|
44217
44036
|
if (typeof s === 'object') return acc.concat(s);
|
|
@@ -44226,7 +44045,7 @@ shellQuote$1.parse = function (s, env, opts) {
|
|
|
44226
44045
|
}, []);
|
|
44227
44046
|
};
|
|
44228
44047
|
|
|
44229
|
-
function parse$
|
|
44048
|
+
function parse$8 (s, env, opts) {
|
|
44230
44049
|
var chunker = new RegExp([
|
|
44231
44050
|
'(' + CONTROL + ')', // control chars
|
|
44232
44051
|
'(' + BAREWORD + '|' + SINGLE_QUOTE + '|' + DOUBLE_QUOTE + ')*'
|
|
@@ -44446,9 +44265,9 @@ var windows$1 = [
|
|
|
44446
44265
|
'webstorm64.exe'
|
|
44447
44266
|
];
|
|
44448
44267
|
|
|
44449
|
-
const path$
|
|
44268
|
+
const path$8 = path$p;
|
|
44450
44269
|
const shellQuote = shellQuote$1;
|
|
44451
|
-
const childProcess$2 = require$$2
|
|
44270
|
+
const childProcess$2 = require$$2;
|
|
44452
44271
|
|
|
44453
44272
|
// Map from full process name to binary that starts the process
|
|
44454
44273
|
// We can't just re-use full process name, because it will spawn a new instance
|
|
@@ -44488,7 +44307,7 @@ var guess = function guessEditor (specifiedEditor) {
|
|
|
44488
44307
|
}
|
|
44489
44308
|
|
|
44490
44309
|
const fullProcessPath = runningProcesses[i].trim();
|
|
44491
|
-
const shortProcessName = path$
|
|
44310
|
+
const shortProcessName = path$8.basename(fullProcessPath);
|
|
44492
44311
|
|
|
44493
44312
|
if (COMMON_EDITORS_WIN.indexOf(shortProcessName) !== -1) {
|
|
44494
44313
|
return [fullProcessPath]
|
|
@@ -44523,7 +44342,7 @@ var guess = function guessEditor (specifiedEditor) {
|
|
|
44523
44342
|
return [null]
|
|
44524
44343
|
};
|
|
44525
44344
|
|
|
44526
|
-
const path$
|
|
44345
|
+
const path$7 = path$p;
|
|
44527
44346
|
|
|
44528
44347
|
// normalize file/line numbers into command line args for specific editors
|
|
44529
44348
|
var getArgs = function getArgumentsForPosition (
|
|
@@ -44532,7 +44351,7 @@ var getArgs = function getArgumentsForPosition (
|
|
|
44532
44351
|
lineNumber,
|
|
44533
44352
|
columnNumber = 1
|
|
44534
44353
|
) {
|
|
44535
|
-
const editorBasename = path$
|
|
44354
|
+
const editorBasename = path$7.basename(editor).replace(/\.(exe|cmd|bat)$/i, '');
|
|
44536
44355
|
switch (editorBasename) {
|
|
44537
44356
|
case 'atom':
|
|
44538
44357
|
case 'Atom':
|
|
@@ -44593,11 +44412,11 @@ var getArgs = function getArgumentsForPosition (
|
|
|
44593
44412
|
* Modified by Yuxi Evan You
|
|
44594
44413
|
*/
|
|
44595
44414
|
|
|
44596
|
-
const fs$
|
|
44597
|
-
const os$
|
|
44598
|
-
const path$
|
|
44415
|
+
const fs$7 = fs__default;
|
|
44416
|
+
const os$2 = require$$1;
|
|
44417
|
+
const path$6 = path$p;
|
|
44599
44418
|
const colors = picocolors.exports;
|
|
44600
|
-
const childProcess$1 = require$$2
|
|
44419
|
+
const childProcess$1 = require$$2;
|
|
44601
44420
|
|
|
44602
44421
|
const guessEditor = guess;
|
|
44603
44422
|
const getArgumentsForPosition = getArgs;
|
|
@@ -44606,7 +44425,7 @@ function wrapErrorCallback (cb) {
|
|
|
44606
44425
|
return (fileName, errorMessage) => {
|
|
44607
44426
|
console.log();
|
|
44608
44427
|
console.log(
|
|
44609
|
-
colors.red('Could not open ' + path$
|
|
44428
|
+
colors.red('Could not open ' + path$6.basename(fileName) + ' in the editor.')
|
|
44610
44429
|
);
|
|
44611
44430
|
if (errorMessage) {
|
|
44612
44431
|
if (errorMessage[errorMessage.length - 1] !== '.') {
|
|
@@ -44651,7 +44470,7 @@ function launchEditor (file, specifiedEditor, onErrorCallback) {
|
|
|
44651
44470
|
let { fileName } = parsed;
|
|
44652
44471
|
const { lineNumber, columnNumber } = parsed;
|
|
44653
44472
|
|
|
44654
|
-
if (!fs$
|
|
44473
|
+
if (!fs$7.existsSync(fileName)) {
|
|
44655
44474
|
return
|
|
44656
44475
|
}
|
|
44657
44476
|
|
|
@@ -44671,7 +44490,7 @@ function launchEditor (file, specifiedEditor, onErrorCallback) {
|
|
|
44671
44490
|
if (
|
|
44672
44491
|
process.platform === 'linux' &&
|
|
44673
44492
|
fileName.startsWith('/mnt/') &&
|
|
44674
|
-
/Microsoft/i.test(os$
|
|
44493
|
+
/Microsoft/i.test(os$2.release())
|
|
44675
44494
|
) {
|
|
44676
44495
|
// Assume WSL / "Bash on Ubuntu on Windows" is being used, and
|
|
44677
44496
|
// that the file exists on the Windows file system.
|
|
@@ -44679,7 +44498,7 @@ function launchEditor (file, specifiedEditor, onErrorCallback) {
|
|
|
44679
44498
|
// build of WSL, see: https://github.com/Microsoft/BashOnWindows/issues/423#issuecomment-221627364
|
|
44680
44499
|
// When a Windows editor is specified, interop functionality can
|
|
44681
44500
|
// handle the path translation, but only if a relative path is used.
|
|
44682
|
-
fileName = path$
|
|
44501
|
+
fileName = path$6.relative('', fileName);
|
|
44683
44502
|
}
|
|
44684
44503
|
|
|
44685
44504
|
if (lineNumber) {
|
|
@@ -44723,7 +44542,7 @@ function launchEditor (file, specifiedEditor, onErrorCallback) {
|
|
|
44723
44542
|
var launchEditor_1 = launchEditor;
|
|
44724
44543
|
|
|
44725
44544
|
const url$2 = require$$0$7;
|
|
44726
|
-
const path$
|
|
44545
|
+
const path$5 = path$p;
|
|
44727
44546
|
const launch = launchEditor_1;
|
|
44728
44547
|
|
|
44729
44548
|
var launchEditorMiddleware = (specifiedEditor, srcRoot, onErrorCallback) => {
|
|
@@ -44745,7 +44564,7 @@ var launchEditorMiddleware = (specifiedEditor, srcRoot, onErrorCallback) => {
|
|
|
44745
44564
|
res.statusCode = 500;
|
|
44746
44565
|
res.end(`launch-editor-middleware: required query param "file" is missing.`);
|
|
44747
44566
|
} else {
|
|
44748
|
-
launch(path$
|
|
44567
|
+
launch(path$5.resolve(srcRoot, file), specifiedEditor, onErrorCallback);
|
|
44749
44568
|
res.end();
|
|
44750
44569
|
}
|
|
44751
44570
|
}
|
|
@@ -44814,7 +44633,7 @@ async function getCertificate(cacheDir) {
|
|
|
44814
44633
|
return content;
|
|
44815
44634
|
}
|
|
44816
44635
|
catch {
|
|
44817
|
-
const content = (await import('./dep-
|
|
44636
|
+
const content = (await import('./dep-5eede05c.js')).createCertificate();
|
|
44818
44637
|
promises
|
|
44819
44638
|
.mkdir(cacheDir, { recursive: true })
|
|
44820
44639
|
.then(() => promises.writeFile(cachePath, content))
|
|
@@ -44867,7 +44686,7 @@ var etag_1 = etag;
|
|
|
44867
44686
|
* @private
|
|
44868
44687
|
*/
|
|
44869
44688
|
|
|
44870
|
-
var crypto = require$$1$
|
|
44689
|
+
var crypto = require$$1$3;
|
|
44871
44690
|
var Stats = fs__default.Stats;
|
|
44872
44691
|
|
|
44873
44692
|
/**
|
|
@@ -45748,7 +45567,7 @@ function totalist(dir, callback, pre='') {
|
|
|
45748
45567
|
* @param {Request} req
|
|
45749
45568
|
* @returns {ParsedURL|void}
|
|
45750
45569
|
*/
|
|
45751
|
-
function parse$
|
|
45570
|
+
function parse$7(req) {
|
|
45752
45571
|
let raw = req.url;
|
|
45753
45572
|
if (raw == null) return;
|
|
45754
45573
|
|
|
@@ -45929,7 +45748,7 @@ function sirv (dir, opts={}) {
|
|
|
45929
45748
|
|
|
45930
45749
|
return function (req, res, next) {
|
|
45931
45750
|
let extns = [''];
|
|
45932
|
-
let pathname = parse$
|
|
45751
|
+
let pathname = parse$7(req).pathname;
|
|
45933
45752
|
let val = req.headers['accept-encoding'] || '';
|
|
45934
45753
|
if (gzips && val.includes('gzip')) extns.unshift(...gzips);
|
|
45935
45754
|
if (brots && /(br|brotli)/i.test(val)) extns.unshift(...brots);
|
|
@@ -48366,7 +48185,7 @@ function error$1(ErrorCtor, message, prefix, statusCode, errorCode) {
|
|
|
48366
48185
|
}
|
|
48367
48186
|
|
|
48368
48187
|
/* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^net|tls$" }] */
|
|
48369
|
-
const { randomFillSync } = require$$1$
|
|
48188
|
+
const { randomFillSync } = require$$1$3;
|
|
48370
48189
|
|
|
48371
48190
|
const PerMessageDeflate$2 = permessageDeflate;
|
|
48372
48191
|
const { EMPTY_BUFFER: EMPTY_BUFFER$1 } = constants;
|
|
@@ -49128,7 +48947,7 @@ function push$1(dest, name, elem) {
|
|
|
49128
48947
|
* @return {Object} The parsed object
|
|
49129
48948
|
* @public
|
|
49130
48949
|
*/
|
|
49131
|
-
function parse$
|
|
48950
|
+
function parse$6(header) {
|
|
49132
48951
|
const offers = Object.create(null);
|
|
49133
48952
|
let params = Object.create(null);
|
|
49134
48953
|
let mustUnescape = false;
|
|
@@ -49304,16 +49123,16 @@ function format$1(extensions) {
|
|
|
49304
49123
|
.join(', ');
|
|
49305
49124
|
}
|
|
49306
49125
|
|
|
49307
|
-
var extension$1 = { format: format$1, parse: parse$
|
|
49126
|
+
var extension$1 = { format: format$1, parse: parse$6 };
|
|
49308
49127
|
|
|
49309
49128
|
/* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^Readable$" }] */
|
|
49310
49129
|
|
|
49311
49130
|
const EventEmitter$1 = require$$0$3;
|
|
49312
|
-
const https$2 = require$$1$
|
|
49313
|
-
const http$3 = require$$1$
|
|
49131
|
+
const https$2 = require$$1$4;
|
|
49132
|
+
const http$3 = require$$1$2;
|
|
49314
49133
|
const net = require$$3;
|
|
49315
49134
|
const tls = require$$4;
|
|
49316
|
-
const { randomBytes, createHash: createHash$1 } = require$$1$
|
|
49135
|
+
const { randomBytes, createHash: createHash$1 } = require$$1$3;
|
|
49317
49136
|
const { URL: URL$2 } = require$$0$7;
|
|
49318
49137
|
|
|
49319
49138
|
const PerMessageDeflate$1 = permessageDeflate;
|
|
@@ -49332,7 +49151,7 @@ const {
|
|
|
49332
49151
|
const {
|
|
49333
49152
|
EventTarget: { addEventListener, removeEventListener }
|
|
49334
49153
|
} = eventTarget;
|
|
49335
|
-
const { format, parse: parse$
|
|
49154
|
+
const { format, parse: parse$5 } = extension$1;
|
|
49336
49155
|
const { toBuffer } = bufferUtil$1.exports;
|
|
49337
49156
|
|
|
49338
49157
|
const closeTimeout = 30 * 1000;
|
|
@@ -50237,7 +50056,7 @@ function initAsClient(websocket, address, protocols, options) {
|
|
|
50237
50056
|
let extensions;
|
|
50238
50057
|
|
|
50239
50058
|
try {
|
|
50240
|
-
extensions = parse$
|
|
50059
|
+
extensions = parse$5(secWebSocketExtensions);
|
|
50241
50060
|
} catch (err) {
|
|
50242
50061
|
const message = 'Invalid Sec-WebSocket-Extensions header';
|
|
50243
50062
|
abortHandshake$1(websocket, socket, message);
|
|
@@ -50600,7 +50419,7 @@ const { tokenChars } = validation.exports;
|
|
|
50600
50419
|
* @return {Set} The subprotocol names
|
|
50601
50420
|
* @public
|
|
50602
50421
|
*/
|
|
50603
|
-
function parse$
|
|
50422
|
+
function parse$4(header) {
|
|
50604
50423
|
const protocols = new Set();
|
|
50605
50424
|
let start = -1;
|
|
50606
50425
|
let end = -1;
|
|
@@ -50650,13 +50469,13 @@ function parse$3(header) {
|
|
|
50650
50469
|
return protocols;
|
|
50651
50470
|
}
|
|
50652
50471
|
|
|
50653
|
-
var subprotocol$1 = { parse: parse$
|
|
50472
|
+
var subprotocol$1 = { parse: parse$4 };
|
|
50654
50473
|
|
|
50655
50474
|
/* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^net|tls|https$" }] */
|
|
50656
50475
|
|
|
50657
50476
|
const EventEmitter = require$$0$3;
|
|
50658
|
-
const http$2 = require$$1$
|
|
50659
|
-
const { createHash } = require$$1$
|
|
50477
|
+
const http$2 = require$$1$2;
|
|
50478
|
+
const { createHash } = require$$1$3;
|
|
50660
50479
|
|
|
50661
50480
|
const extension = extension$1;
|
|
50662
50481
|
const PerMessageDeflate = permessageDeflate;
|
|
@@ -52171,8 +51990,8 @@ var debug_1 = function () {
|
|
|
52171
51990
|
|
|
52172
51991
|
var url = require$$0$7;
|
|
52173
51992
|
var URL$1 = url.URL;
|
|
52174
|
-
var http$1 = require$$1$
|
|
52175
|
-
var https$1 = require$$1$
|
|
51993
|
+
var http$1 = require$$1$2;
|
|
51994
|
+
var https$1 = require$$1$4;
|
|
52176
51995
|
var Writable = require$$0$5.Writable;
|
|
52177
51996
|
var assert = require$$5;
|
|
52178
51997
|
var debug$4 = debug_1;
|
|
@@ -52763,8 +52582,8 @@ function isSubdomain(subdomain, domain) {
|
|
|
52763
52582
|
followRedirects$1.exports = wrap({ http: http$1, https: https$1 });
|
|
52764
52583
|
followRedirects$1.exports.wrap = wrap;
|
|
52765
52584
|
|
|
52766
|
-
var httpNative = require$$1$
|
|
52767
|
-
httpsNative = require$$1$
|
|
52585
|
+
var httpNative = require$$1$2,
|
|
52586
|
+
httpsNative = require$$1$4,
|
|
52768
52587
|
web_o = webOutgoing,
|
|
52769
52588
|
common$1 = common$3,
|
|
52770
52589
|
followRedirects = followRedirects$1.exports;
|
|
@@ -52958,8 +52777,8 @@ var webIncoming = {
|
|
|
52958
52777
|
|
|
52959
52778
|
};
|
|
52960
52779
|
|
|
52961
|
-
var http = require$$1$
|
|
52962
|
-
https = require$$1$
|
|
52780
|
+
var http = require$$1$2,
|
|
52781
|
+
https = require$$1$4,
|
|
52963
52782
|
common = common$3;
|
|
52964
52783
|
|
|
52965
52784
|
/*!
|
|
@@ -53126,8 +52945,8 @@ var httpProxy = module.exports,
|
|
|
53126
52945
|
extend = require$$0$4._extend,
|
|
53127
52946
|
parse_url = require$$0$7.parse,
|
|
53128
52947
|
EE3 = eventemitter3.exports,
|
|
53129
|
-
http = require$$1$
|
|
53130
|
-
https = require$$1$
|
|
52948
|
+
http = require$$1$2,
|
|
52949
|
+
https = require$$1$4,
|
|
53131
52950
|
web = webIncoming,
|
|
53132
52951
|
ws = wsIncoming;
|
|
53133
52952
|
|
|
@@ -54505,7 +54324,7 @@ function importAnalysisPlugin(config) {
|
|
|
54505
54324
|
source = source.slice(1);
|
|
54506
54325
|
}
|
|
54507
54326
|
try {
|
|
54508
|
-
imports = parse$
|
|
54327
|
+
imports = parse$h(source)[0];
|
|
54509
54328
|
}
|
|
54510
54329
|
catch (e) {
|
|
54511
54330
|
const isVue = importer.endsWith('.vue');
|
|
@@ -54885,7 +54704,7 @@ function importAnalysisPlugin(config) {
|
|
|
54885
54704
|
* Credits \@csr632 via #837
|
|
54886
54705
|
*/
|
|
54887
54706
|
function transformCjsImport(importExp, url, rawUrl, importIndex) {
|
|
54888
|
-
const node = parse$
|
|
54707
|
+
const node = parse$c(importExp, {
|
|
54889
54708
|
ecmaVersion: 'latest',
|
|
54890
54709
|
sourceType: 'module'
|
|
54891
54710
|
}).body[0];
|
|
@@ -55132,13 +54951,13 @@ class ModuleGraph {
|
|
|
55132
54951
|
|
|
55133
54952
|
var isWsl$2 = {exports: {}};
|
|
55134
54953
|
|
|
55135
|
-
const fs$
|
|
54954
|
+
const fs$6 = fs__default;
|
|
55136
54955
|
|
|
55137
54956
|
let isDocker$2;
|
|
55138
54957
|
|
|
55139
54958
|
function hasDockerEnv() {
|
|
55140
54959
|
try {
|
|
55141
|
-
fs$
|
|
54960
|
+
fs$6.statSync('/.dockerenv');
|
|
55142
54961
|
return true;
|
|
55143
54962
|
} catch (_) {
|
|
55144
54963
|
return false;
|
|
@@ -55147,7 +54966,7 @@ function hasDockerEnv() {
|
|
|
55147
54966
|
|
|
55148
54967
|
function hasDockerCGroup() {
|
|
55149
54968
|
try {
|
|
55150
|
-
return fs$
|
|
54969
|
+
return fs$6.readFileSync('/proc/self/cgroup', 'utf8').includes('docker');
|
|
55151
54970
|
} catch (_) {
|
|
55152
54971
|
return false;
|
|
55153
54972
|
}
|
|
@@ -55161,8 +54980,8 @@ var isDocker_1 = () => {
|
|
|
55161
54980
|
return isDocker$2;
|
|
55162
54981
|
};
|
|
55163
54982
|
|
|
55164
|
-
const os = require$$
|
|
55165
|
-
const fs$
|
|
54983
|
+
const os$1 = require$$1;
|
|
54984
|
+
const fs$5 = fs__default;
|
|
55166
54985
|
const isDocker$1 = isDocker_1;
|
|
55167
54986
|
|
|
55168
54987
|
const isWsl$1 = () => {
|
|
@@ -55170,7 +54989,7 @@ const isWsl$1 = () => {
|
|
|
55170
54989
|
return false;
|
|
55171
54990
|
}
|
|
55172
54991
|
|
|
55173
|
-
if (os.release().toLowerCase().includes('microsoft')) {
|
|
54992
|
+
if (os$1.release().toLowerCase().includes('microsoft')) {
|
|
55174
54993
|
if (isDocker$1()) {
|
|
55175
54994
|
return false;
|
|
55176
54995
|
}
|
|
@@ -55179,7 +54998,7 @@ const isWsl$1 = () => {
|
|
|
55179
54998
|
}
|
|
55180
54999
|
|
|
55181
55000
|
try {
|
|
55182
|
-
return fs$
|
|
55001
|
+
return fs$5.readFileSync('/proc/version', 'utf8').toLowerCase().includes('microsoft') ?
|
|
55183
55002
|
!isDocker$1() : false;
|
|
55184
55003
|
} catch (_) {
|
|
55185
55004
|
return false;
|
|
@@ -55211,15 +55030,15 @@ var defineLazyProp = (object, propertyName, fn) => {
|
|
|
55211
55030
|
return object;
|
|
55212
55031
|
};
|
|
55213
55032
|
|
|
55214
|
-
const path$
|
|
55215
|
-
const childProcess = require$$2
|
|
55216
|
-
const {promises: fs$
|
|
55033
|
+
const path$4 = path$p;
|
|
55034
|
+
const childProcess = require$$2;
|
|
55035
|
+
const {promises: fs$4, constants: fsConstants} = fs__default;
|
|
55217
55036
|
const isWsl = isWsl$2.exports;
|
|
55218
55037
|
const isDocker = isDocker_1;
|
|
55219
55038
|
const defineLazyProperty = defineLazyProp;
|
|
55220
55039
|
|
|
55221
55040
|
// Path to included `xdg-open`.
|
|
55222
|
-
const localXdgOpenPath = path$
|
|
55041
|
+
const localXdgOpenPath = path$4.join(__dirname, 'xdg-open');
|
|
55223
55042
|
|
|
55224
55043
|
const {platform, arch} = process;
|
|
55225
55044
|
|
|
@@ -55246,7 +55065,7 @@ const getWslDrivesMountPoint = (() => {
|
|
|
55246
55065
|
|
|
55247
55066
|
let isConfigFileExists = false;
|
|
55248
55067
|
try {
|
|
55249
|
-
await fs$
|
|
55068
|
+
await fs$4.access(configFilePath, fsConstants.F_OK);
|
|
55250
55069
|
isConfigFileExists = true;
|
|
55251
55070
|
} catch {}
|
|
55252
55071
|
|
|
@@ -55254,7 +55073,7 @@ const getWslDrivesMountPoint = (() => {
|
|
|
55254
55073
|
return defaultMountPoint;
|
|
55255
55074
|
}
|
|
55256
55075
|
|
|
55257
|
-
const configContent = await fs$
|
|
55076
|
+
const configContent = await fs$4.readFile(configFilePath, {encoding: 'utf8'});
|
|
55258
55077
|
const configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
|
|
55259
55078
|
|
|
55260
55079
|
if (!configMountPoint) {
|
|
@@ -55386,7 +55205,7 @@ const baseOpen = async options => {
|
|
|
55386
55205
|
// Check if local `xdg-open` exists and is executable.
|
|
55387
55206
|
let exeLocalXdgOpen = false;
|
|
55388
55207
|
try {
|
|
55389
|
-
await fs$
|
|
55208
|
+
await fs$4.access(localXdgOpenPath, fsConstants.X_OK);
|
|
55390
55209
|
exeLocalXdgOpen = true;
|
|
55391
55210
|
} catch {}
|
|
55392
55211
|
|
|
@@ -55532,7 +55351,7 @@ var crossSpawn = {exports: {}};
|
|
|
55532
55351
|
var windows = isexe$3;
|
|
55533
55352
|
isexe$3.sync = sync$2;
|
|
55534
55353
|
|
|
55535
|
-
var fs$
|
|
55354
|
+
var fs$3 = fs__default;
|
|
55536
55355
|
|
|
55537
55356
|
function checkPathExt (path, options) {
|
|
55538
55357
|
var pathext = options.pathExt !== undefined ?
|
|
@@ -55563,28 +55382,28 @@ function checkStat$1 (stat, path, options) {
|
|
|
55563
55382
|
}
|
|
55564
55383
|
|
|
55565
55384
|
function isexe$3 (path, options, cb) {
|
|
55566
|
-
fs$
|
|
55385
|
+
fs$3.stat(path, function (er, stat) {
|
|
55567
55386
|
cb(er, er ? false : checkStat$1(stat, path, options));
|
|
55568
55387
|
});
|
|
55569
55388
|
}
|
|
55570
55389
|
|
|
55571
55390
|
function sync$2 (path, options) {
|
|
55572
|
-
return checkStat$1(fs$
|
|
55391
|
+
return checkStat$1(fs$3.statSync(path), path, options)
|
|
55573
55392
|
}
|
|
55574
55393
|
|
|
55575
55394
|
var mode = isexe$2;
|
|
55576
55395
|
isexe$2.sync = sync$1;
|
|
55577
55396
|
|
|
55578
|
-
var fs$
|
|
55397
|
+
var fs$2 = fs__default;
|
|
55579
55398
|
|
|
55580
55399
|
function isexe$2 (path, options, cb) {
|
|
55581
|
-
fs$
|
|
55400
|
+
fs$2.stat(path, function (er, stat) {
|
|
55582
55401
|
cb(er, er ? false : checkStat(stat, options));
|
|
55583
55402
|
});
|
|
55584
55403
|
}
|
|
55585
55404
|
|
|
55586
55405
|
function sync$1 (path, options) {
|
|
55587
|
-
return checkStat(fs$
|
|
55406
|
+
return checkStat(fs$2.statSync(path), options)
|
|
55588
55407
|
}
|
|
55589
55408
|
|
|
55590
55409
|
function checkStat (stat, options) {
|
|
@@ -55675,7 +55494,7 @@ const isWindows = process.platform === 'win32' ||
|
|
|
55675
55494
|
process.env.OSTYPE === 'cygwin' ||
|
|
55676
55495
|
process.env.OSTYPE === 'msys';
|
|
55677
55496
|
|
|
55678
|
-
const path$
|
|
55497
|
+
const path$3 = path$p;
|
|
55679
55498
|
const COLON = isWindows ? ';' : ':';
|
|
55680
55499
|
const isexe = isexe_1;
|
|
55681
55500
|
|
|
@@ -55732,7 +55551,7 @@ const which$1 = (cmd, opt, cb) => {
|
|
|
55732
55551
|
const ppRaw = pathEnv[i];
|
|
55733
55552
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
55734
55553
|
|
|
55735
|
-
const pCmd = path$
|
|
55554
|
+
const pCmd = path$3.join(pathPart, cmd);
|
|
55736
55555
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd
|
|
55737
55556
|
: pCmd;
|
|
55738
55557
|
|
|
@@ -55767,7 +55586,7 @@ const whichSync = (cmd, opt) => {
|
|
|
55767
55586
|
const ppRaw = pathEnv[i];
|
|
55768
55587
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
55769
55588
|
|
|
55770
|
-
const pCmd = path$
|
|
55589
|
+
const pCmd = path$3.join(pathPart, cmd);
|
|
55771
55590
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd
|
|
55772
55591
|
: pCmd;
|
|
55773
55592
|
|
|
@@ -55814,7 +55633,7 @@ pathKey$1.exports = pathKey;
|
|
|
55814
55633
|
// TODO: Remove this for the next major release
|
|
55815
55634
|
pathKey$1.exports.default = pathKey;
|
|
55816
55635
|
|
|
55817
|
-
const path$
|
|
55636
|
+
const path$2 = path$p;
|
|
55818
55637
|
const which = which_1;
|
|
55819
55638
|
const getPathKey = pathKey$1.exports;
|
|
55820
55639
|
|
|
@@ -55840,7 +55659,7 @@ function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
|
55840
55659
|
try {
|
|
55841
55660
|
resolved = which.sync(parsed.command, {
|
|
55842
55661
|
path: env[getPathKey({ env })],
|
|
55843
|
-
pathExt: withoutPathExt ? path$
|
|
55662
|
+
pathExt: withoutPathExt ? path$2.delimiter : undefined,
|
|
55844
55663
|
});
|
|
55845
55664
|
} catch (e) {
|
|
55846
55665
|
/* Empty */
|
|
@@ -55853,7 +55672,7 @@ function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
|
55853
55672
|
// If we successfully resolved, ensure that an absolute path is returned
|
|
55854
55673
|
// Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it
|
|
55855
55674
|
if (resolved) {
|
|
55856
|
-
resolved = path$
|
|
55675
|
+
resolved = path$2.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);
|
|
55857
55676
|
}
|
|
55858
55677
|
|
|
55859
55678
|
return resolved;
|
|
@@ -55932,7 +55751,7 @@ var shebangCommand$1 = (string = '') => {
|
|
|
55932
55751
|
return argument ? `${binary} ${argument}` : binary;
|
|
55933
55752
|
};
|
|
55934
55753
|
|
|
55935
|
-
const fs = fs__default;
|
|
55754
|
+
const fs$1 = fs__default;
|
|
55936
55755
|
const shebangCommand = shebangCommand$1;
|
|
55937
55756
|
|
|
55938
55757
|
function readShebang$1(command) {
|
|
@@ -55943,9 +55762,9 @@ function readShebang$1(command) {
|
|
|
55943
55762
|
let fd;
|
|
55944
55763
|
|
|
55945
55764
|
try {
|
|
55946
|
-
fd = fs.openSync(command, 'r');
|
|
55947
|
-
fs.readSync(fd, buffer, 0, size, 0);
|
|
55948
|
-
fs.closeSync(fd);
|
|
55765
|
+
fd = fs$1.openSync(command, 'r');
|
|
55766
|
+
fs$1.readSync(fd, buffer, 0, size, 0);
|
|
55767
|
+
fs$1.closeSync(fd);
|
|
55949
55768
|
} catch (e) { /* Empty */ }
|
|
55950
55769
|
|
|
55951
55770
|
// Attempt to extract shebang (null is returned if not a shebang)
|
|
@@ -55954,7 +55773,7 @@ function readShebang$1(command) {
|
|
|
55954
55773
|
|
|
55955
55774
|
var readShebang_1 = readShebang$1;
|
|
55956
55775
|
|
|
55957
|
-
const path = path$p;
|
|
55776
|
+
const path$1 = path$p;
|
|
55958
55777
|
const resolveCommand = resolveCommand_1;
|
|
55959
55778
|
const escape$1 = _escape;
|
|
55960
55779
|
const readShebang = readShebang_1;
|
|
@@ -56000,7 +55819,7 @@ function parseNonShell(parsed) {
|
|
|
56000
55819
|
|
|
56001
55820
|
// Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar)
|
|
56002
55821
|
// This is necessary otherwise it will always fail with ENOENT in those cases
|
|
56003
|
-
parsed.command = path.normalize(parsed.command);
|
|
55822
|
+
parsed.command = path$1.normalize(parsed.command);
|
|
56004
55823
|
|
|
56005
55824
|
// Escape command & arguments
|
|
56006
55825
|
parsed.command = escape$1.command(parsed.command);
|
|
@@ -56016,7 +55835,7 @@ function parseNonShell(parsed) {
|
|
|
56016
55835
|
return parsed;
|
|
56017
55836
|
}
|
|
56018
55837
|
|
|
56019
|
-
function parse$
|
|
55838
|
+
function parse$3(command, args, options) {
|
|
56020
55839
|
// Normalize arguments, similar to nodejs
|
|
56021
55840
|
if (args && !Array.isArray(args)) {
|
|
56022
55841
|
options = args;
|
|
@@ -56042,7 +55861,7 @@ function parse$2(command, args, options) {
|
|
|
56042
55861
|
return options.shell ? parsed : parseNonShell(parsed);
|
|
56043
55862
|
}
|
|
56044
55863
|
|
|
56045
|
-
var parse_1 = parse$
|
|
55864
|
+
var parse_1 = parse$3;
|
|
56046
55865
|
|
|
56047
55866
|
const isWin = process.platform === 'win32';
|
|
56048
55867
|
|
|
@@ -56102,13 +55921,13 @@ var enoent$1 = {
|
|
|
56102
55921
|
notFoundError,
|
|
56103
55922
|
};
|
|
56104
55923
|
|
|
56105
|
-
const cp = require$$2
|
|
56106
|
-
const parse$
|
|
55924
|
+
const cp = require$$2;
|
|
55925
|
+
const parse$2 = parse_1;
|
|
56107
55926
|
const enoent = enoent$1;
|
|
56108
55927
|
|
|
56109
55928
|
function spawn(command, args, options) {
|
|
56110
55929
|
// Parse the arguments
|
|
56111
|
-
const parsed = parse$
|
|
55930
|
+
const parsed = parse$2(command, args, options);
|
|
56112
55931
|
|
|
56113
55932
|
// Spawn the child process
|
|
56114
55933
|
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
@@ -56122,7 +55941,7 @@ function spawn(command, args, options) {
|
|
|
56122
55941
|
|
|
56123
55942
|
function spawnSync(command, args, options) {
|
|
56124
55943
|
// Parse the arguments
|
|
56125
|
-
const parsed = parse$
|
|
55944
|
+
const parsed = parse$2(command, args, options);
|
|
56126
55945
|
|
|
56127
55946
|
// Spawn the child process
|
|
56128
55947
|
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
@@ -56137,7 +55956,7 @@ crossSpawn.exports = spawn;
|
|
|
56137
55956
|
crossSpawn.exports.spawn = spawn;
|
|
56138
55957
|
crossSpawn.exports.sync = spawnSync;
|
|
56139
55958
|
|
|
56140
|
-
crossSpawn.exports._parse = parse$
|
|
55959
|
+
crossSpawn.exports._parse = parse$2;
|
|
56141
55960
|
crossSpawn.exports._enoent = enoent;
|
|
56142
55961
|
|
|
56143
55962
|
var spawn$1 = crossSpawn.exports;
|
|
@@ -57477,7 +57296,7 @@ let token;
|
|
|
57477
57296
|
let key;
|
|
57478
57297
|
let root;
|
|
57479
57298
|
|
|
57480
|
-
var parse = function parse (text, reviver) {
|
|
57299
|
+
var parse$1 = function parse (text, reviver) {
|
|
57481
57300
|
source = String(text);
|
|
57482
57301
|
parseState = 'start';
|
|
57483
57302
|
stack = [];
|
|
@@ -58814,7 +58633,7 @@ var stringify = function stringify (value, replacer, space) {
|
|
|
58814
58633
|
};
|
|
58815
58634
|
|
|
58816
58635
|
const JSON5 = {
|
|
58817
|
-
parse,
|
|
58636
|
+
parse: parse$1,
|
|
58818
58637
|
stringify,
|
|
58819
58638
|
};
|
|
58820
58639
|
|
|
@@ -59051,7 +58870,7 @@ function parseDynamicImportPattern(strings) {
|
|
|
59051
58870
|
const filename = strings.slice(1, -1);
|
|
59052
58871
|
const rawQuery = parseRequest(filename);
|
|
59053
58872
|
let globParams = null;
|
|
59054
|
-
const ast = parse$
|
|
58873
|
+
const ast = parse$c(strings, {
|
|
59055
58874
|
ecmaVersion: 'latest',
|
|
59056
58875
|
sourceType: 'module'
|
|
59057
58876
|
}).body[0].expression;
|
|
@@ -59121,7 +58940,7 @@ function dynamicImportVarsPlugin(config) {
|
|
|
59121
58940
|
await init;
|
|
59122
58941
|
let imports = [];
|
|
59123
58942
|
try {
|
|
59124
|
-
imports = parse$
|
|
58943
|
+
imports = parse$h(source)[0];
|
|
59125
58944
|
}
|
|
59126
58945
|
catch (e) {
|
|
59127
58946
|
// ignore as it might not be a JS file, the subsequent plugins will catch the error
|
|
@@ -59224,6 +59043,255 @@ async function resolvePlugins(config, prePlugins, normalPlugins, postPlugins) {
|
|
|
59224
59043
|
].filter(Boolean);
|
|
59225
59044
|
}
|
|
59226
59045
|
|
|
59046
|
+
var main$1 = {exports: {}};
|
|
59047
|
+
|
|
59048
|
+
const fs = fs__default;
|
|
59049
|
+
const path = path$p;
|
|
59050
|
+
const os = require$$1;
|
|
59051
|
+
|
|
59052
|
+
function log (message) {
|
|
59053
|
+
console.log(`[dotenv][DEBUG] ${message}`);
|
|
59054
|
+
}
|
|
59055
|
+
|
|
59056
|
+
const NEWLINE = '\n';
|
|
59057
|
+
const RE_INI_KEY_VAL = /^\s*([\w.-]+)\s*=\s*("[^"]*"|'[^']*'|.*?)(\s+#.*)?$/;
|
|
59058
|
+
const RE_NEWLINES = /\\n/g;
|
|
59059
|
+
const NEWLINES_MATCH = /\r\n|\n|\r/;
|
|
59060
|
+
|
|
59061
|
+
// Parses src into an Object
|
|
59062
|
+
function parse (src, options) {
|
|
59063
|
+
const debug = Boolean(options && options.debug);
|
|
59064
|
+
const multiline = Boolean(options && options.multiline);
|
|
59065
|
+
const obj = {};
|
|
59066
|
+
|
|
59067
|
+
// convert Buffers before splitting into lines and processing
|
|
59068
|
+
const lines = src.toString().split(NEWLINES_MATCH);
|
|
59069
|
+
|
|
59070
|
+
for (let idx = 0; idx < lines.length; idx++) {
|
|
59071
|
+
let line = lines[idx];
|
|
59072
|
+
|
|
59073
|
+
// matching "KEY' and 'VAL' in 'KEY=VAL'
|
|
59074
|
+
const keyValueArr = line.match(RE_INI_KEY_VAL);
|
|
59075
|
+
// matched?
|
|
59076
|
+
if (keyValueArr != null) {
|
|
59077
|
+
const key = keyValueArr[1];
|
|
59078
|
+
// default undefined or missing values to empty string
|
|
59079
|
+
let val = (keyValueArr[2] || '');
|
|
59080
|
+
let end = val.length - 1;
|
|
59081
|
+
const isDoubleQuoted = val[0] === '"' && val[end] === '"';
|
|
59082
|
+
const isSingleQuoted = val[0] === "'" && val[end] === "'";
|
|
59083
|
+
|
|
59084
|
+
const isMultilineDoubleQuoted = val[0] === '"' && val[end] !== '"';
|
|
59085
|
+
const isMultilineSingleQuoted = val[0] === "'" && val[end] !== "'";
|
|
59086
|
+
|
|
59087
|
+
// if parsing line breaks and the value starts with a quote
|
|
59088
|
+
if (multiline && (isMultilineDoubleQuoted || isMultilineSingleQuoted)) {
|
|
59089
|
+
const quoteChar = isMultilineDoubleQuoted ? '"' : "'";
|
|
59090
|
+
|
|
59091
|
+
val = val.substring(1);
|
|
59092
|
+
|
|
59093
|
+
while (idx++ < lines.length - 1) {
|
|
59094
|
+
line = lines[idx];
|
|
59095
|
+
end = line.length - 1;
|
|
59096
|
+
if (line[end] === quoteChar) {
|
|
59097
|
+
val += NEWLINE + line.substring(0, end);
|
|
59098
|
+
break
|
|
59099
|
+
}
|
|
59100
|
+
val += NEWLINE + line;
|
|
59101
|
+
}
|
|
59102
|
+
// if single or double quoted, remove quotes
|
|
59103
|
+
} else if (isSingleQuoted || isDoubleQuoted) {
|
|
59104
|
+
val = val.substring(1, end);
|
|
59105
|
+
|
|
59106
|
+
// if double quoted, expand newlines
|
|
59107
|
+
if (isDoubleQuoted) {
|
|
59108
|
+
val = val.replace(RE_NEWLINES, NEWLINE);
|
|
59109
|
+
}
|
|
59110
|
+
} else {
|
|
59111
|
+
// remove surrounding whitespace
|
|
59112
|
+
val = val.trim();
|
|
59113
|
+
}
|
|
59114
|
+
|
|
59115
|
+
obj[key] = val;
|
|
59116
|
+
} else if (debug) {
|
|
59117
|
+
const trimmedLine = line.trim();
|
|
59118
|
+
|
|
59119
|
+
// ignore empty and commented lines
|
|
59120
|
+
if (trimmedLine.length && trimmedLine[0] !== '#') {
|
|
59121
|
+
log(`Failed to match key and value when parsing line ${idx + 1}: ${line}`);
|
|
59122
|
+
}
|
|
59123
|
+
}
|
|
59124
|
+
}
|
|
59125
|
+
|
|
59126
|
+
return obj
|
|
59127
|
+
}
|
|
59128
|
+
|
|
59129
|
+
function resolveHome (envPath) {
|
|
59130
|
+
return envPath[0] === '~' ? path.join(os.homedir(), envPath.slice(1)) : envPath
|
|
59131
|
+
}
|
|
59132
|
+
|
|
59133
|
+
// Populates process.env from .env file
|
|
59134
|
+
function config (options) {
|
|
59135
|
+
let dotenvPath = path.resolve(process.cwd(), '.env');
|
|
59136
|
+
let encoding = 'utf8';
|
|
59137
|
+
const debug = Boolean(options && options.debug);
|
|
59138
|
+
const override = Boolean(options && options.override);
|
|
59139
|
+
const multiline = Boolean(options && options.multiline);
|
|
59140
|
+
|
|
59141
|
+
if (options) {
|
|
59142
|
+
if (options.path != null) {
|
|
59143
|
+
dotenvPath = resolveHome(options.path);
|
|
59144
|
+
}
|
|
59145
|
+
if (options.encoding != null) {
|
|
59146
|
+
encoding = options.encoding;
|
|
59147
|
+
}
|
|
59148
|
+
}
|
|
59149
|
+
|
|
59150
|
+
try {
|
|
59151
|
+
// specifying an encoding returns a string instead of a buffer
|
|
59152
|
+
const parsed = DotenvModule.parse(fs.readFileSync(dotenvPath, { encoding }), { debug, multiline });
|
|
59153
|
+
|
|
59154
|
+
Object.keys(parsed).forEach(function (key) {
|
|
59155
|
+
if (!Object.prototype.hasOwnProperty.call(process.env, key)) {
|
|
59156
|
+
process.env[key] = parsed[key];
|
|
59157
|
+
} else {
|
|
59158
|
+
if (override === true) {
|
|
59159
|
+
process.env[key] = parsed[key];
|
|
59160
|
+
}
|
|
59161
|
+
|
|
59162
|
+
if (debug) {
|
|
59163
|
+
if (override === true) {
|
|
59164
|
+
log(`"${key}" is already defined in \`process.env\` and WAS overwritten`);
|
|
59165
|
+
} else {
|
|
59166
|
+
log(`"${key}" is already defined in \`process.env\` and was NOT overwritten`);
|
|
59167
|
+
}
|
|
59168
|
+
}
|
|
59169
|
+
}
|
|
59170
|
+
});
|
|
59171
|
+
|
|
59172
|
+
return { parsed }
|
|
59173
|
+
} catch (e) {
|
|
59174
|
+
if (debug) {
|
|
59175
|
+
log(`Failed to load ${dotenvPath} ${e.message}`);
|
|
59176
|
+
}
|
|
59177
|
+
|
|
59178
|
+
return { error: e }
|
|
59179
|
+
}
|
|
59180
|
+
}
|
|
59181
|
+
|
|
59182
|
+
const DotenvModule = {
|
|
59183
|
+
config,
|
|
59184
|
+
parse
|
|
59185
|
+
};
|
|
59186
|
+
|
|
59187
|
+
main$1.exports.config = DotenvModule.config;
|
|
59188
|
+
main$1.exports.parse = DotenvModule.parse;
|
|
59189
|
+
main$1.exports = DotenvModule;
|
|
59190
|
+
|
|
59191
|
+
var dotenv = main$1.exports;
|
|
59192
|
+
|
|
59193
|
+
var dotenvExpand = function (config) {
|
|
59194
|
+
// if ignoring process.env, use a blank object
|
|
59195
|
+
var environment = config.ignoreProcessEnv ? {} : process.env;
|
|
59196
|
+
|
|
59197
|
+
var interpolate = function (envValue) {
|
|
59198
|
+
var matches = envValue.match(/(.?\${?(?:[a-zA-Z0-9_]+)?}?)/g) || [];
|
|
59199
|
+
|
|
59200
|
+
return matches.reduce(function (newEnv, match) {
|
|
59201
|
+
var parts = /(.?)\${?([a-zA-Z0-9_]+)?}?/g.exec(match);
|
|
59202
|
+
var prefix = parts[1];
|
|
59203
|
+
|
|
59204
|
+
var value, replacePart;
|
|
59205
|
+
|
|
59206
|
+
if (prefix === '\\') {
|
|
59207
|
+
replacePart = parts[0];
|
|
59208
|
+
value = replacePart.replace('\\$', '$');
|
|
59209
|
+
} else {
|
|
59210
|
+
var key = parts[2];
|
|
59211
|
+
replacePart = parts[0].substring(prefix.length);
|
|
59212
|
+
// process.env value 'wins' over .env file's value
|
|
59213
|
+
value = environment.hasOwnProperty(key) ? environment[key] : (config.parsed[key] || '');
|
|
59214
|
+
|
|
59215
|
+
// Resolve recursive interpolations
|
|
59216
|
+
value = interpolate(value);
|
|
59217
|
+
}
|
|
59218
|
+
|
|
59219
|
+
return newEnv.replace(replacePart, value)
|
|
59220
|
+
}, envValue)
|
|
59221
|
+
};
|
|
59222
|
+
|
|
59223
|
+
for (var configKey in config.parsed) {
|
|
59224
|
+
var value = environment.hasOwnProperty(configKey) ? environment[configKey] : config.parsed[configKey];
|
|
59225
|
+
|
|
59226
|
+
config.parsed[configKey] = interpolate(value);
|
|
59227
|
+
}
|
|
59228
|
+
|
|
59229
|
+
for (var processKey in config.parsed) {
|
|
59230
|
+
environment[processKey] = config.parsed[processKey];
|
|
59231
|
+
}
|
|
59232
|
+
|
|
59233
|
+
return config
|
|
59234
|
+
};
|
|
59235
|
+
|
|
59236
|
+
var main = dotenvExpand;
|
|
59237
|
+
|
|
59238
|
+
function loadEnv(mode, envDir, prefixes = 'VITE_') {
|
|
59239
|
+
if (mode === 'local') {
|
|
59240
|
+
throw new Error(`"local" cannot be used as a mode name because it conflicts with ` +
|
|
59241
|
+
`the .local postfix for .env files.`);
|
|
59242
|
+
}
|
|
59243
|
+
prefixes = arraify(prefixes);
|
|
59244
|
+
const env = {};
|
|
59245
|
+
const envFiles = [
|
|
59246
|
+
/** mode local file */ `.env.${mode}.local`,
|
|
59247
|
+
/** mode file */ `.env.${mode}`,
|
|
59248
|
+
/** local file */ `.env.local`,
|
|
59249
|
+
/** default file */ `.env`
|
|
59250
|
+
];
|
|
59251
|
+
// check if there are actual env variables starting with VITE_*
|
|
59252
|
+
// these are typically provided inline and should be prioritized
|
|
59253
|
+
for (const key in process.env) {
|
|
59254
|
+
if (prefixes.some((prefix) => key.startsWith(prefix)) &&
|
|
59255
|
+
env[key] === undefined) {
|
|
59256
|
+
env[key] = process.env[key];
|
|
59257
|
+
}
|
|
59258
|
+
}
|
|
59259
|
+
for (const file of envFiles) {
|
|
59260
|
+
const path = lookupFile(envDir, [file], { pathOnly: true, rootDir: envDir });
|
|
59261
|
+
if (path) {
|
|
59262
|
+
const parsed = dotenv.parse(fs__default.readFileSync(path), {
|
|
59263
|
+
debug: process.env.DEBUG?.includes('vite:dotenv') || undefined
|
|
59264
|
+
});
|
|
59265
|
+
// let environment variables use each other
|
|
59266
|
+
main({
|
|
59267
|
+
parsed,
|
|
59268
|
+
// prevent process.env mutation
|
|
59269
|
+
ignoreProcessEnv: true
|
|
59270
|
+
});
|
|
59271
|
+
// only keys that start with prefix are exposed to client
|
|
59272
|
+
for (const [key, value] of Object.entries(parsed)) {
|
|
59273
|
+
if (prefixes.some((prefix) => key.startsWith(prefix)) &&
|
|
59274
|
+
env[key] === undefined) {
|
|
59275
|
+
env[key] = value;
|
|
59276
|
+
}
|
|
59277
|
+
else if (key === 'NODE_ENV' &&
|
|
59278
|
+
process.env.VITE_USER_NODE_ENV === undefined) {
|
|
59279
|
+
// NODE_ENV override in .env file
|
|
59280
|
+
process.env.VITE_USER_NODE_ENV = value;
|
|
59281
|
+
}
|
|
59282
|
+
}
|
|
59283
|
+
}
|
|
59284
|
+
}
|
|
59285
|
+
return env;
|
|
59286
|
+
}
|
|
59287
|
+
function resolveEnvPrefix({ envPrefix = 'VITE_' }) {
|
|
59288
|
+
envPrefix = arraify(envPrefix);
|
|
59289
|
+
if (envPrefix.some((prefix) => prefix === '')) {
|
|
59290
|
+
throw new Error(`envPrefix option contains value '', which could lead unexpected exposure of sensitive information.`);
|
|
59291
|
+
}
|
|
59292
|
+
return envPrefix;
|
|
59293
|
+
}
|
|
59294
|
+
|
|
59227
59295
|
const debug = createDebugger('vite:config');
|
|
59228
59296
|
/**
|
|
59229
59297
|
* Type helper to make it easier to use vite.config.ts
|
|
@@ -59678,61 +59746,5 @@ async function loadConfigFromBundledFile(fileName, bundledCode) {
|
|
|
59678
59746
|
_require.extensions[extension] = defaultLoader;
|
|
59679
59747
|
return config;
|
|
59680
59748
|
}
|
|
59681
|
-
function loadEnv(mode, envDir, prefixes = 'VITE_') {
|
|
59682
|
-
if (mode === 'local') {
|
|
59683
|
-
throw new Error(`"local" cannot be used as a mode name because it conflicts with ` +
|
|
59684
|
-
`the .local postfix for .env files.`);
|
|
59685
|
-
}
|
|
59686
|
-
prefixes = arraify(prefixes);
|
|
59687
|
-
const env = {};
|
|
59688
|
-
const envFiles = [
|
|
59689
|
-
/** mode local file */ `.env.${mode}.local`,
|
|
59690
|
-
/** mode file */ `.env.${mode}`,
|
|
59691
|
-
/** local file */ `.env.local`,
|
|
59692
|
-
/** default file */ `.env`
|
|
59693
|
-
];
|
|
59694
|
-
// check if there are actual env variables starting with VITE_*
|
|
59695
|
-
// these are typically provided inline and should be prioritized
|
|
59696
|
-
for (const key in process.env) {
|
|
59697
|
-
if (prefixes.some((prefix) => key.startsWith(prefix)) &&
|
|
59698
|
-
env[key] === undefined) {
|
|
59699
|
-
env[key] = process.env[key];
|
|
59700
|
-
}
|
|
59701
|
-
}
|
|
59702
|
-
for (const file of envFiles) {
|
|
59703
|
-
const path = lookupFile(envDir, [file], { pathOnly: true, rootDir: envDir });
|
|
59704
|
-
if (path) {
|
|
59705
|
-
const parsed = dotenv.parse(fs__default.readFileSync(path), {
|
|
59706
|
-
debug: process.env.DEBUG?.includes('vite:dotenv') || undefined
|
|
59707
|
-
});
|
|
59708
|
-
// let environment variables use each other
|
|
59709
|
-
main({
|
|
59710
|
-
parsed,
|
|
59711
|
-
// prevent process.env mutation
|
|
59712
|
-
ignoreProcessEnv: true
|
|
59713
|
-
});
|
|
59714
|
-
// only keys that start with prefix are exposed to client
|
|
59715
|
-
for (const [key, value] of Object.entries(parsed)) {
|
|
59716
|
-
if (prefixes.some((prefix) => key.startsWith(prefix)) &&
|
|
59717
|
-
env[key] === undefined) {
|
|
59718
|
-
env[key] = value;
|
|
59719
|
-
}
|
|
59720
|
-
else if (key === 'NODE_ENV' &&
|
|
59721
|
-
process.env.VITE_USER_NODE_ENV === undefined) {
|
|
59722
|
-
// NODE_ENV override in .env file
|
|
59723
|
-
process.env.VITE_USER_NODE_ENV = value;
|
|
59724
|
-
}
|
|
59725
|
-
}
|
|
59726
|
-
}
|
|
59727
|
-
}
|
|
59728
|
-
return env;
|
|
59729
|
-
}
|
|
59730
|
-
function resolveEnvPrefix({ envPrefix = 'VITE_' }) {
|
|
59731
|
-
envPrefix = arraify(envPrefix);
|
|
59732
|
-
if (envPrefix.some((prefix) => prefix === '')) {
|
|
59733
|
-
throw new Error(`envPrefix option contains value '', which could lead unexpected exposure of sensitive information.`);
|
|
59734
|
-
}
|
|
59735
|
-
return envPrefix;
|
|
59736
|
-
}
|
|
59737
59749
|
|
|
59738
|
-
export { index as A, preview$1 as B, resolvePackageData as a, build as b, createServer as c, defineConfig as d, resolveConfig as e, formatPostcssSourceMap as f,
|
|
59750
|
+
export { index as A, preview$1 as B, resolvePackageData as a, build as b, createServer as c, defineConfig as d, resolveConfig as e, formatPostcssSourceMap as f, mergeAlias as g, send as h, createLogger as i, searchForWorkspaceRoot as j, loadEnv as k, loadConfigFromFile as l, mergeConfig as m, normalizePath$3 as n, optimizeDeps as o, preview as p, resolveEnvPrefix as q, resolvePackageEntry as r, sortUserPlugins as s, transformWithEsbuild as t, colors$1 as u, commonjsGlobal as v, getAugmentedNamespace as w, getDefaultExportFromCjs as x, index$1 as y, build$1 as z };
|