@rspack/dev-server 2.0.0-rc.0 → 2.0.0-rc.1
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/0~connect-history-api-fallback.js +76 -0
- package/dist/0~debug.js +621 -0
- package/dist/0~http-proxy-middleware.js +4447 -0
- package/dist/0~http-proxy-middleware.js.LICENSE.txt +69 -0
- package/dist/0~launch-editor.js +2 -2
- package/dist/0~serve-static.js +3 -619
- package/dist/{831.js → 621.js} +15 -3
- package/dist/index.js +1 -1
- package/dist/server.d.ts +3 -2
- package/dist/types.d.ts +1 -2
- package/package.json +6 -5
package/dist/0~serve-static.js
CHANGED
|
@@ -1,445 +1,8 @@
|
|
|
1
1
|
/*! LICENSE: 0~serve-static.js.LICENSE.txt */
|
|
2
|
-
import { __webpack_require__ } from "./
|
|
3
|
-
import "./
|
|
2
|
+
import { __webpack_require__ } from "./621.js";
|
|
3
|
+
import "./621.js";
|
|
4
|
+
import "./0~debug.js";
|
|
4
5
|
__webpack_require__.add({
|
|
5
|
-
"./node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js" (module, exports, __webpack_require__) {
|
|
6
|
-
exports.formatArgs = formatArgs;
|
|
7
|
-
exports.save = save;
|
|
8
|
-
exports.load = load;
|
|
9
|
-
exports.useColors = useColors;
|
|
10
|
-
exports.storage = localstorage();
|
|
11
|
-
exports.destroy = (()=>{
|
|
12
|
-
let warned = false;
|
|
13
|
-
return ()=>{
|
|
14
|
-
if (!warned) {
|
|
15
|
-
warned = true;
|
|
16
|
-
console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
})();
|
|
20
|
-
exports.colors = [
|
|
21
|
-
'#0000CC',
|
|
22
|
-
'#0000FF',
|
|
23
|
-
'#0033CC',
|
|
24
|
-
'#0033FF',
|
|
25
|
-
'#0066CC',
|
|
26
|
-
'#0066FF',
|
|
27
|
-
'#0099CC',
|
|
28
|
-
'#0099FF',
|
|
29
|
-
'#00CC00',
|
|
30
|
-
'#00CC33',
|
|
31
|
-
'#00CC66',
|
|
32
|
-
'#00CC99',
|
|
33
|
-
'#00CCCC',
|
|
34
|
-
'#00CCFF',
|
|
35
|
-
'#3300CC',
|
|
36
|
-
'#3300FF',
|
|
37
|
-
'#3333CC',
|
|
38
|
-
'#3333FF',
|
|
39
|
-
'#3366CC',
|
|
40
|
-
'#3366FF',
|
|
41
|
-
'#3399CC',
|
|
42
|
-
'#3399FF',
|
|
43
|
-
'#33CC00',
|
|
44
|
-
'#33CC33',
|
|
45
|
-
'#33CC66',
|
|
46
|
-
'#33CC99',
|
|
47
|
-
'#33CCCC',
|
|
48
|
-
'#33CCFF',
|
|
49
|
-
'#6600CC',
|
|
50
|
-
'#6600FF',
|
|
51
|
-
'#6633CC',
|
|
52
|
-
'#6633FF',
|
|
53
|
-
'#66CC00',
|
|
54
|
-
'#66CC33',
|
|
55
|
-
'#9900CC',
|
|
56
|
-
'#9900FF',
|
|
57
|
-
'#9933CC',
|
|
58
|
-
'#9933FF',
|
|
59
|
-
'#99CC00',
|
|
60
|
-
'#99CC33',
|
|
61
|
-
'#CC0000',
|
|
62
|
-
'#CC0033',
|
|
63
|
-
'#CC0066',
|
|
64
|
-
'#CC0099',
|
|
65
|
-
'#CC00CC',
|
|
66
|
-
'#CC00FF',
|
|
67
|
-
'#CC3300',
|
|
68
|
-
'#CC3333',
|
|
69
|
-
'#CC3366',
|
|
70
|
-
'#CC3399',
|
|
71
|
-
'#CC33CC',
|
|
72
|
-
'#CC33FF',
|
|
73
|
-
'#CC6600',
|
|
74
|
-
'#CC6633',
|
|
75
|
-
'#CC9900',
|
|
76
|
-
'#CC9933',
|
|
77
|
-
'#CCCC00',
|
|
78
|
-
'#CCCC33',
|
|
79
|
-
'#FF0000',
|
|
80
|
-
'#FF0033',
|
|
81
|
-
'#FF0066',
|
|
82
|
-
'#FF0099',
|
|
83
|
-
'#FF00CC',
|
|
84
|
-
'#FF00FF',
|
|
85
|
-
'#FF3300',
|
|
86
|
-
'#FF3333',
|
|
87
|
-
'#FF3366',
|
|
88
|
-
'#FF3399',
|
|
89
|
-
'#FF33CC',
|
|
90
|
-
'#FF33FF',
|
|
91
|
-
'#FF6600',
|
|
92
|
-
'#FF6633',
|
|
93
|
-
'#FF9900',
|
|
94
|
-
'#FF9933',
|
|
95
|
-
'#FFCC00',
|
|
96
|
-
'#FFCC33'
|
|
97
|
-
];
|
|
98
|
-
function useColors() {
|
|
99
|
-
if ("u" > typeof window && window.process && ('renderer' === window.process.type || window.process.__nwjs)) return true;
|
|
100
|
-
if ("u" > typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return false;
|
|
101
|
-
let m;
|
|
102
|
-
return "u" > typeof document && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || "u" > typeof window && window.console && (window.console.firebug || window.console.exception && window.console.table) || "u" > typeof navigator && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || "u" > typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
103
|
-
}
|
|
104
|
-
function formatArgs(args) {
|
|
105
|
-
args[0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? ' %c' : ' ') + args[0] + (this.useColors ? '%c ' : ' ') + '+' + module.exports.humanize(this.diff);
|
|
106
|
-
if (!this.useColors) return;
|
|
107
|
-
const c = 'color: ' + this.color;
|
|
108
|
-
args.splice(1, 0, c, 'color: inherit');
|
|
109
|
-
let index = 0;
|
|
110
|
-
let lastC = 0;
|
|
111
|
-
args[0].replace(/%[a-zA-Z%]/g, (match)=>{
|
|
112
|
-
if ('%%' === match) return;
|
|
113
|
-
index++;
|
|
114
|
-
if ('%c' === match) lastC = index;
|
|
115
|
-
});
|
|
116
|
-
args.splice(lastC, 0, c);
|
|
117
|
-
}
|
|
118
|
-
exports.log = console.debug || console.log || (()=>{});
|
|
119
|
-
function save(namespaces) {
|
|
120
|
-
try {
|
|
121
|
-
if (namespaces) exports.storage.setItem('debug', namespaces);
|
|
122
|
-
else exports.storage.removeItem('debug');
|
|
123
|
-
} catch (error) {}
|
|
124
|
-
}
|
|
125
|
-
function load() {
|
|
126
|
-
let r;
|
|
127
|
-
try {
|
|
128
|
-
r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG');
|
|
129
|
-
} catch (error) {}
|
|
130
|
-
if (!r && "u" > typeof process && 'env' in process) r = process.env.DEBUG;
|
|
131
|
-
return r;
|
|
132
|
-
}
|
|
133
|
-
function localstorage() {
|
|
134
|
-
try {
|
|
135
|
-
return localStorage;
|
|
136
|
-
} catch (error) {}
|
|
137
|
-
}
|
|
138
|
-
module.exports = __webpack_require__("./node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js")(exports);
|
|
139
|
-
const { formatters } = module.exports;
|
|
140
|
-
formatters.j = function(v) {
|
|
141
|
-
try {
|
|
142
|
-
return JSON.stringify(v);
|
|
143
|
-
} catch (error) {
|
|
144
|
-
return '[UnexpectedJSONParseError]: ' + error.message;
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
},
|
|
148
|
-
"./node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
149
|
-
function setup(env) {
|
|
150
|
-
createDebug.debug = createDebug;
|
|
151
|
-
createDebug.default = createDebug;
|
|
152
|
-
createDebug.coerce = coerce;
|
|
153
|
-
createDebug.disable = disable;
|
|
154
|
-
createDebug.enable = enable;
|
|
155
|
-
createDebug.enabled = enabled;
|
|
156
|
-
createDebug.humanize = __webpack_require__("./node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js");
|
|
157
|
-
createDebug.destroy = destroy;
|
|
158
|
-
Object.keys(env).forEach((key)=>{
|
|
159
|
-
createDebug[key] = env[key];
|
|
160
|
-
});
|
|
161
|
-
createDebug.names = [];
|
|
162
|
-
createDebug.skips = [];
|
|
163
|
-
createDebug.formatters = {};
|
|
164
|
-
function selectColor(namespace) {
|
|
165
|
-
let hash = 0;
|
|
166
|
-
for(let i = 0; i < namespace.length; i++){
|
|
167
|
-
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
168
|
-
hash |= 0;
|
|
169
|
-
}
|
|
170
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
171
|
-
}
|
|
172
|
-
createDebug.selectColor = selectColor;
|
|
173
|
-
function createDebug(namespace) {
|
|
174
|
-
let prevTime;
|
|
175
|
-
let enableOverride = null;
|
|
176
|
-
let namespacesCache;
|
|
177
|
-
let enabledCache;
|
|
178
|
-
function debug(...args) {
|
|
179
|
-
if (!debug.enabled) return;
|
|
180
|
-
const self = debug;
|
|
181
|
-
const curr = Number(new Date());
|
|
182
|
-
const ms = curr - (prevTime || curr);
|
|
183
|
-
self.diff = ms;
|
|
184
|
-
self.prev = prevTime;
|
|
185
|
-
self.curr = curr;
|
|
186
|
-
prevTime = curr;
|
|
187
|
-
args[0] = createDebug.coerce(args[0]);
|
|
188
|
-
if ('string' != typeof args[0]) args.unshift('%O');
|
|
189
|
-
let index = 0;
|
|
190
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format)=>{
|
|
191
|
-
if ('%%' === match) return '%';
|
|
192
|
-
index++;
|
|
193
|
-
const formatter = createDebug.formatters[format];
|
|
194
|
-
if ('function' == typeof formatter) {
|
|
195
|
-
const val = args[index];
|
|
196
|
-
match = formatter.call(self, val);
|
|
197
|
-
args.splice(index, 1);
|
|
198
|
-
index--;
|
|
199
|
-
}
|
|
200
|
-
return match;
|
|
201
|
-
});
|
|
202
|
-
createDebug.formatArgs.call(self, args);
|
|
203
|
-
const logFn = self.log || createDebug.log;
|
|
204
|
-
logFn.apply(self, args);
|
|
205
|
-
}
|
|
206
|
-
debug.namespace = namespace;
|
|
207
|
-
debug.useColors = createDebug.useColors();
|
|
208
|
-
debug.color = createDebug.selectColor(namespace);
|
|
209
|
-
debug.extend = extend;
|
|
210
|
-
debug.destroy = createDebug.destroy;
|
|
211
|
-
Object.defineProperty(debug, 'enabled', {
|
|
212
|
-
enumerable: true,
|
|
213
|
-
configurable: false,
|
|
214
|
-
get: ()=>{
|
|
215
|
-
if (null !== enableOverride) return enableOverride;
|
|
216
|
-
if (namespacesCache !== createDebug.namespaces) {
|
|
217
|
-
namespacesCache = createDebug.namespaces;
|
|
218
|
-
enabledCache = createDebug.enabled(namespace);
|
|
219
|
-
}
|
|
220
|
-
return enabledCache;
|
|
221
|
-
},
|
|
222
|
-
set: (v)=>{
|
|
223
|
-
enableOverride = v;
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
if ('function' == typeof createDebug.init) createDebug.init(debug);
|
|
227
|
-
return debug;
|
|
228
|
-
}
|
|
229
|
-
function extend(namespace, delimiter) {
|
|
230
|
-
const newDebug = createDebug(this.namespace + (void 0 === delimiter ? ':' : delimiter) + namespace);
|
|
231
|
-
newDebug.log = this.log;
|
|
232
|
-
return newDebug;
|
|
233
|
-
}
|
|
234
|
-
function enable(namespaces) {
|
|
235
|
-
createDebug.save(namespaces);
|
|
236
|
-
createDebug.namespaces = namespaces;
|
|
237
|
-
createDebug.names = [];
|
|
238
|
-
createDebug.skips = [];
|
|
239
|
-
const split = ('string' == typeof namespaces ? namespaces : '').trim().replace(/\s+/g, ',').split(',').filter(Boolean);
|
|
240
|
-
for (const ns of split)if ('-' === ns[0]) createDebug.skips.push(ns.slice(1));
|
|
241
|
-
else createDebug.names.push(ns);
|
|
242
|
-
}
|
|
243
|
-
function matchesTemplate(search, template) {
|
|
244
|
-
let searchIndex = 0;
|
|
245
|
-
let templateIndex = 0;
|
|
246
|
-
let starIndex = -1;
|
|
247
|
-
let matchIndex = 0;
|
|
248
|
-
while(searchIndex < search.length)if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || '*' === template[templateIndex])) if ('*' === template[templateIndex]) {
|
|
249
|
-
starIndex = templateIndex;
|
|
250
|
-
matchIndex = searchIndex;
|
|
251
|
-
templateIndex++;
|
|
252
|
-
} else {
|
|
253
|
-
searchIndex++;
|
|
254
|
-
templateIndex++;
|
|
255
|
-
}
|
|
256
|
-
else {
|
|
257
|
-
if (-1 === starIndex) return false;
|
|
258
|
-
templateIndex = starIndex + 1;
|
|
259
|
-
matchIndex++;
|
|
260
|
-
searchIndex = matchIndex;
|
|
261
|
-
}
|
|
262
|
-
while(templateIndex < template.length && '*' === template[templateIndex])templateIndex++;
|
|
263
|
-
return templateIndex === template.length;
|
|
264
|
-
}
|
|
265
|
-
function disable() {
|
|
266
|
-
const namespaces = [
|
|
267
|
-
...createDebug.names,
|
|
268
|
-
...createDebug.skips.map((namespace)=>'-' + namespace)
|
|
269
|
-
].join(',');
|
|
270
|
-
createDebug.enable('');
|
|
271
|
-
return namespaces;
|
|
272
|
-
}
|
|
273
|
-
function enabled(name) {
|
|
274
|
-
for (const skip of createDebug.skips)if (matchesTemplate(name, skip)) return false;
|
|
275
|
-
for (const ns of createDebug.names)if (matchesTemplate(name, ns)) return true;
|
|
276
|
-
return false;
|
|
277
|
-
}
|
|
278
|
-
function coerce(val) {
|
|
279
|
-
if (val instanceof Error) return val.stack || val.message;
|
|
280
|
-
return val;
|
|
281
|
-
}
|
|
282
|
-
function destroy() {
|
|
283
|
-
console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
|
284
|
-
}
|
|
285
|
-
createDebug.enable(createDebug.load());
|
|
286
|
-
return createDebug;
|
|
287
|
-
}
|
|
288
|
-
module.exports = setup;
|
|
289
|
-
},
|
|
290
|
-
"./node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
291
|
-
if ("u" < typeof process || 'renderer' === process.type || true === process.browser || process.__nwjs) module.exports = __webpack_require__("./node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js");
|
|
292
|
-
else module.exports = __webpack_require__("./node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js");
|
|
293
|
-
},
|
|
294
|
-
"./node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js" (module, exports, __webpack_require__) {
|
|
295
|
-
const tty = __webpack_require__("tty");
|
|
296
|
-
const util = __webpack_require__("util");
|
|
297
|
-
exports.init = init;
|
|
298
|
-
exports.log = log;
|
|
299
|
-
exports.formatArgs = formatArgs;
|
|
300
|
-
exports.save = save;
|
|
301
|
-
exports.load = load;
|
|
302
|
-
exports.useColors = useColors;
|
|
303
|
-
exports.destroy = util.deprecate(()=>{}, 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
|
304
|
-
exports.colors = [
|
|
305
|
-
6,
|
|
306
|
-
2,
|
|
307
|
-
3,
|
|
308
|
-
4,
|
|
309
|
-
5,
|
|
310
|
-
1
|
|
311
|
-
];
|
|
312
|
-
try {
|
|
313
|
-
const supportsColor = __webpack_require__("./node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js");
|
|
314
|
-
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) exports.colors = [
|
|
315
|
-
20,
|
|
316
|
-
21,
|
|
317
|
-
26,
|
|
318
|
-
27,
|
|
319
|
-
32,
|
|
320
|
-
33,
|
|
321
|
-
38,
|
|
322
|
-
39,
|
|
323
|
-
40,
|
|
324
|
-
41,
|
|
325
|
-
42,
|
|
326
|
-
43,
|
|
327
|
-
44,
|
|
328
|
-
45,
|
|
329
|
-
56,
|
|
330
|
-
57,
|
|
331
|
-
62,
|
|
332
|
-
63,
|
|
333
|
-
68,
|
|
334
|
-
69,
|
|
335
|
-
74,
|
|
336
|
-
75,
|
|
337
|
-
76,
|
|
338
|
-
77,
|
|
339
|
-
78,
|
|
340
|
-
79,
|
|
341
|
-
80,
|
|
342
|
-
81,
|
|
343
|
-
92,
|
|
344
|
-
93,
|
|
345
|
-
98,
|
|
346
|
-
99,
|
|
347
|
-
112,
|
|
348
|
-
113,
|
|
349
|
-
128,
|
|
350
|
-
129,
|
|
351
|
-
134,
|
|
352
|
-
135,
|
|
353
|
-
148,
|
|
354
|
-
149,
|
|
355
|
-
160,
|
|
356
|
-
161,
|
|
357
|
-
162,
|
|
358
|
-
163,
|
|
359
|
-
164,
|
|
360
|
-
165,
|
|
361
|
-
166,
|
|
362
|
-
167,
|
|
363
|
-
168,
|
|
364
|
-
169,
|
|
365
|
-
170,
|
|
366
|
-
171,
|
|
367
|
-
172,
|
|
368
|
-
173,
|
|
369
|
-
178,
|
|
370
|
-
179,
|
|
371
|
-
184,
|
|
372
|
-
185,
|
|
373
|
-
196,
|
|
374
|
-
197,
|
|
375
|
-
198,
|
|
376
|
-
199,
|
|
377
|
-
200,
|
|
378
|
-
201,
|
|
379
|
-
202,
|
|
380
|
-
203,
|
|
381
|
-
204,
|
|
382
|
-
205,
|
|
383
|
-
206,
|
|
384
|
-
207,
|
|
385
|
-
208,
|
|
386
|
-
209,
|
|
387
|
-
214,
|
|
388
|
-
215,
|
|
389
|
-
220,
|
|
390
|
-
221
|
|
391
|
-
];
|
|
392
|
-
} catch (error) {}
|
|
393
|
-
exports.inspectOpts = Object.keys(process.env).filter((key)=>/^debug_/i.test(key)).reduce((obj, key)=>{
|
|
394
|
-
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k)=>k.toUpperCase());
|
|
395
|
-
let val = process.env[key];
|
|
396
|
-
val = /^(yes|on|true|enabled)$/i.test(val) ? true : /^(no|off|false|disabled)$/i.test(val) ? false : 'null' === val ? null : Number(val);
|
|
397
|
-
obj[prop] = val;
|
|
398
|
-
return obj;
|
|
399
|
-
}, {});
|
|
400
|
-
function useColors() {
|
|
401
|
-
return 'colors' in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
402
|
-
}
|
|
403
|
-
function formatArgs(args) {
|
|
404
|
-
const { namespace: name, useColors } = this;
|
|
405
|
-
if (useColors) {
|
|
406
|
-
const c = this.color;
|
|
407
|
-
const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c);
|
|
408
|
-
const prefix = ` ${colorCode};1m${name} \u001B[0m`;
|
|
409
|
-
args[0] = prefix + args[0].split('\n').join('\n' + prefix);
|
|
410
|
-
args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m');
|
|
411
|
-
} else args[0] = getDate() + name + ' ' + args[0];
|
|
412
|
-
}
|
|
413
|
-
function getDate() {
|
|
414
|
-
if (exports.inspectOpts.hideDate) return '';
|
|
415
|
-
return new Date().toISOString() + ' ';
|
|
416
|
-
}
|
|
417
|
-
function log(...args) {
|
|
418
|
-
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\n');
|
|
419
|
-
}
|
|
420
|
-
function save(namespaces) {
|
|
421
|
-
if (namespaces) process.env.DEBUG = namespaces;
|
|
422
|
-
else delete process.env.DEBUG;
|
|
423
|
-
}
|
|
424
|
-
function load() {
|
|
425
|
-
return process.env.DEBUG;
|
|
426
|
-
}
|
|
427
|
-
function init(debug) {
|
|
428
|
-
debug.inspectOpts = {};
|
|
429
|
-
const keys = Object.keys(exports.inspectOpts);
|
|
430
|
-
for(let i = 0; i < keys.length; i++)debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
431
|
-
}
|
|
432
|
-
module.exports = __webpack_require__("./node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js")(exports);
|
|
433
|
-
const { formatters } = module.exports;
|
|
434
|
-
formatters.o = function(v) {
|
|
435
|
-
this.inspectOpts.colors = this.useColors;
|
|
436
|
-
return util.inspect(v, this.inspectOpts).split('\n').map((str)=>str.trim()).join(' ');
|
|
437
|
-
};
|
|
438
|
-
formatters.O = function(v) {
|
|
439
|
-
this.inspectOpts.colors = this.useColors;
|
|
440
|
-
return util.inspect(v, this.inspectOpts);
|
|
441
|
-
};
|
|
442
|
-
},
|
|
443
6
|
"./node_modules/.pnpm/depd@2.0.0/node_modules/depd/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
444
7
|
/*!
|
|
445
8
|
* depd
|
|
@@ -882,14 +445,6 @@ __webpack_require__.add({
|
|
|
882
445
|
return list;
|
|
883
446
|
}
|
|
884
447
|
},
|
|
885
|
-
"./node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js" (module) {
|
|
886
|
-
module.exports = (flag, argv = process.argv)=>{
|
|
887
|
-
const prefix = flag.startsWith('-') ? '' : 1 === flag.length ? '-' : '--';
|
|
888
|
-
const position = argv.indexOf(prefix + flag);
|
|
889
|
-
const terminatorPosition = argv.indexOf('--');
|
|
890
|
-
return -1 !== position && (-1 === terminatorPosition || position < terminatorPosition);
|
|
891
|
-
};
|
|
892
|
-
},
|
|
893
448
|
"./node_modules/.pnpm/http-errors@2.0.1/node_modules/http-errors/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
894
449
|
/*!
|
|
895
450
|
* http-errors
|
|
@@ -1199,91 +754,6 @@ __webpack_require__.add({
|
|
|
1199
754
|
return facetScore + sourceScore + typeScore + lengthScore;
|
|
1200
755
|
};
|
|
1201
756
|
},
|
|
1202
|
-
"./node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js" (module) {
|
|
1203
|
-
var s = 1000;
|
|
1204
|
-
var m = 60 * s;
|
|
1205
|
-
var h = 60 * m;
|
|
1206
|
-
var d = 24 * h;
|
|
1207
|
-
var w = 7 * d;
|
|
1208
|
-
var y = 365.25 * d;
|
|
1209
|
-
module.exports = function(val, options) {
|
|
1210
|
-
options = options || {};
|
|
1211
|
-
var type = typeof val;
|
|
1212
|
-
if ('string' === type && val.length > 0) return parse(val);
|
|
1213
|
-
if ('number' === type && isFinite(val)) return options.long ? fmtLong(val) : fmtShort(val);
|
|
1214
|
-
throw new Error('val is not a non-empty string or a valid number. val=' + JSON.stringify(val));
|
|
1215
|
-
};
|
|
1216
|
-
function parse(str) {
|
|
1217
|
-
str = String(str);
|
|
1218
|
-
if (str.length > 100) return;
|
|
1219
|
-
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str);
|
|
1220
|
-
if (!match) return;
|
|
1221
|
-
var n = parseFloat(match[1]);
|
|
1222
|
-
var type = (match[2] || 'ms').toLowerCase();
|
|
1223
|
-
switch(type){
|
|
1224
|
-
case 'years':
|
|
1225
|
-
case 'year':
|
|
1226
|
-
case 'yrs':
|
|
1227
|
-
case 'yr':
|
|
1228
|
-
case 'y':
|
|
1229
|
-
return n * y;
|
|
1230
|
-
case 'weeks':
|
|
1231
|
-
case 'week':
|
|
1232
|
-
case 'w':
|
|
1233
|
-
return n * w;
|
|
1234
|
-
case 'days':
|
|
1235
|
-
case 'day':
|
|
1236
|
-
case 'd':
|
|
1237
|
-
return n * d;
|
|
1238
|
-
case 'hours':
|
|
1239
|
-
case 'hour':
|
|
1240
|
-
case 'hrs':
|
|
1241
|
-
case 'hr':
|
|
1242
|
-
case 'h':
|
|
1243
|
-
return n * h;
|
|
1244
|
-
case 'minutes':
|
|
1245
|
-
case 'minute':
|
|
1246
|
-
case 'mins':
|
|
1247
|
-
case 'min':
|
|
1248
|
-
case 'm':
|
|
1249
|
-
return n * m;
|
|
1250
|
-
case 'seconds':
|
|
1251
|
-
case 'second':
|
|
1252
|
-
case 'secs':
|
|
1253
|
-
case 'sec':
|
|
1254
|
-
case 's':
|
|
1255
|
-
return n * s;
|
|
1256
|
-
case 'milliseconds':
|
|
1257
|
-
case 'millisecond':
|
|
1258
|
-
case 'msecs':
|
|
1259
|
-
case 'msec':
|
|
1260
|
-
case 'ms':
|
|
1261
|
-
return n;
|
|
1262
|
-
default:
|
|
1263
|
-
return;
|
|
1264
|
-
}
|
|
1265
|
-
}
|
|
1266
|
-
function fmtShort(ms) {
|
|
1267
|
-
var msAbs = Math.abs(ms);
|
|
1268
|
-
if (msAbs >= d) return Math.round(ms / d) + 'd';
|
|
1269
|
-
if (msAbs >= h) return Math.round(ms / h) + 'h';
|
|
1270
|
-
if (msAbs >= m) return Math.round(ms / m) + 'm';
|
|
1271
|
-
if (msAbs >= s) return Math.round(ms / s) + 's';
|
|
1272
|
-
return ms + 'ms';
|
|
1273
|
-
}
|
|
1274
|
-
function fmtLong(ms) {
|
|
1275
|
-
var msAbs = Math.abs(ms);
|
|
1276
|
-
if (msAbs >= d) return plural(ms, msAbs, d, 'day');
|
|
1277
|
-
if (msAbs >= h) return plural(ms, msAbs, h, 'hour');
|
|
1278
|
-
if (msAbs >= m) return plural(ms, msAbs, m, 'minute');
|
|
1279
|
-
if (msAbs >= s) return plural(ms, msAbs, s, 'second');
|
|
1280
|
-
return ms + ' ms';
|
|
1281
|
-
}
|
|
1282
|
-
function plural(ms, msAbs, n, name) {
|
|
1283
|
-
var isPlural = msAbs >= 1.5 * n;
|
|
1284
|
-
return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
|
|
1285
|
-
}
|
|
1286
|
-
},
|
|
1287
757
|
"./node_modules/.pnpm/on-finished@2.4.1/node_modules/on-finished/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1288
758
|
/*!
|
|
1289
759
|
* on-finished
|
|
@@ -2103,92 +1573,6 @@ __webpack_require__.add({
|
|
|
2103
1573
|
return getStatusCode(code);
|
|
2104
1574
|
}
|
|
2105
1575
|
},
|
|
2106
|
-
"./node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
2107
|
-
const os = __webpack_require__("os");
|
|
2108
|
-
const tty = __webpack_require__("tty");
|
|
2109
|
-
const hasFlag = __webpack_require__("./node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js");
|
|
2110
|
-
const { env } = process;
|
|
2111
|
-
let flagForceColor;
|
|
2112
|
-
if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false') || hasFlag('color=never')) flagForceColor = 0;
|
|
2113
|
-
else if (hasFlag('color') || hasFlag('colors') || hasFlag('color=true') || hasFlag('color=always')) flagForceColor = 1;
|
|
2114
|
-
function envForceColor() {
|
|
2115
|
-
if ('FORCE_COLOR' in env) {
|
|
2116
|
-
if ('true' === env.FORCE_COLOR) return 1;
|
|
2117
|
-
if ('false' === env.FORCE_COLOR) return 0;
|
|
2118
|
-
return 0 === env.FORCE_COLOR.length ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
2119
|
-
}
|
|
2120
|
-
}
|
|
2121
|
-
function translateLevel(level) {
|
|
2122
|
-
if (0 === level) return false;
|
|
2123
|
-
return {
|
|
2124
|
-
level,
|
|
2125
|
-
hasBasic: true,
|
|
2126
|
-
has256: level >= 2,
|
|
2127
|
-
has16m: level >= 3
|
|
2128
|
-
};
|
|
2129
|
-
}
|
|
2130
|
-
function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
2131
|
-
const noFlagForceColor = envForceColor();
|
|
2132
|
-
if (void 0 !== noFlagForceColor) flagForceColor = noFlagForceColor;
|
|
2133
|
-
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
2134
|
-
if (0 === forceColor) return 0;
|
|
2135
|
-
if (sniffFlags) {
|
|
2136
|
-
if (hasFlag('color=16m') || hasFlag('color=full') || hasFlag('color=truecolor')) return 3;
|
|
2137
|
-
if (hasFlag('color=256')) return 2;
|
|
2138
|
-
}
|
|
2139
|
-
if (haveStream && !streamIsTTY && void 0 === forceColor) return 0;
|
|
2140
|
-
const min = forceColor || 0;
|
|
2141
|
-
if ('dumb' === env.TERM) return min;
|
|
2142
|
-
if ('win32' === process.platform) {
|
|
2143
|
-
const osRelease = os.release().split('.');
|
|
2144
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
2145
|
-
return 1;
|
|
2146
|
-
}
|
|
2147
|
-
if ('CI' in env) {
|
|
2148
|
-
if ([
|
|
2149
|
-
'TRAVIS',
|
|
2150
|
-
'CIRCLECI',
|
|
2151
|
-
'APPVEYOR',
|
|
2152
|
-
'GITLAB_CI',
|
|
2153
|
-
'GITHUB_ACTIONS',
|
|
2154
|
-
'BUILDKITE',
|
|
2155
|
-
'DRONE'
|
|
2156
|
-
].some((sign)=>sign in env) || 'codeship' === env.CI_NAME) return 1;
|
|
2157
|
-
return min;
|
|
2158
|
-
}
|
|
2159
|
-
if ('TEAMCITY_VERSION' in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
2160
|
-
if ('truecolor' === env.COLORTERM) return 3;
|
|
2161
|
-
if ('TERM_PROGRAM' in env) {
|
|
2162
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
|
2163
|
-
switch(env.TERM_PROGRAM){
|
|
2164
|
-
case 'iTerm.app':
|
|
2165
|
-
return version >= 3 ? 3 : 2;
|
|
2166
|
-
case 'Apple_Terminal':
|
|
2167
|
-
return 2;
|
|
2168
|
-
}
|
|
2169
|
-
}
|
|
2170
|
-
if (/-256(color)?$/i.test(env.TERM)) return 2;
|
|
2171
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
2172
|
-
if ('COLORTERM' in env) return 1;
|
|
2173
|
-
return min;
|
|
2174
|
-
}
|
|
2175
|
-
function getSupportLevel(stream, options = {}) {
|
|
2176
|
-
const level = supportsColor(stream, {
|
|
2177
|
-
streamIsTTY: stream && stream.isTTY,
|
|
2178
|
-
...options
|
|
2179
|
-
});
|
|
2180
|
-
return translateLevel(level);
|
|
2181
|
-
}
|
|
2182
|
-
module.exports = {
|
|
2183
|
-
supportsColor: getSupportLevel,
|
|
2184
|
-
stdout: getSupportLevel({
|
|
2185
|
-
isTTY: tty.isatty(1)
|
|
2186
|
-
}),
|
|
2187
|
-
stderr: getSupportLevel({
|
|
2188
|
-
isTTY: tty.isatty(2)
|
|
2189
|
-
})
|
|
2190
|
-
};
|
|
2191
|
-
},
|
|
2192
1576
|
"./node_modules/.pnpm/toidentifier@1.0.1/node_modules/toidentifier/index.js" (module) {
|
|
2193
1577
|
/*!
|
|
2194
1578
|
* toidentifier
|