heading-case 1.0.0 → 1.0.2
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/index.js +448 -672
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE_fs__ from "fs";
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_path__ from "path";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
3
|
+
import node_fs from "node:fs";
|
|
4
|
+
import node_process from "node:process";
|
|
5
|
+
import node_os from "node:os";
|
|
6
|
+
import node_tty from "node:tty";
|
|
7
7
|
var __webpack_modules__ = {
|
|
8
|
-
"./node_modules/.pnpm/fdir@6.4.
|
|
8
|
+
"./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/async.js": function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9
9
|
Object.defineProperty(exports, "__esModule", {
|
|
10
10
|
value: true
|
|
11
11
|
});
|
|
12
12
|
exports.callback = exports.promise = void 0;
|
|
13
|
-
const walker_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.
|
|
13
|
+
const walker_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/walker.js");
|
|
14
14
|
function promise(root, options) {
|
|
15
15
|
return new Promise((resolve, reject)=>{
|
|
16
16
|
callback(root, options, (err, output)=>{
|
|
@@ -26,7 +26,7 @@ var __webpack_modules__ = {
|
|
|
26
26
|
}
|
|
27
27
|
exports.callback = callback;
|
|
28
28
|
},
|
|
29
|
-
"./node_modules/.pnpm/fdir@6.4.
|
|
29
|
+
"./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/counter.js": function(__unused_webpack_module, exports) {
|
|
30
30
|
Object.defineProperty(exports, "__esModule", {
|
|
31
31
|
value: true
|
|
32
32
|
});
|
|
@@ -46,15 +46,13 @@ var __webpack_modules__ = {
|
|
|
46
46
|
get directories() {
|
|
47
47
|
return this._directories;
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
* @deprecated use `directories` instead
|
|
51
|
-
*/ /* c8 ignore next 3 */ get dirs() {
|
|
49
|
+
get dirs() {
|
|
52
50
|
return this._directories;
|
|
53
51
|
}
|
|
54
52
|
}
|
|
55
53
|
exports.Counter = Counter;
|
|
56
54
|
},
|
|
57
|
-
"./node_modules/.pnpm/fdir@6.4.
|
|
55
|
+
"./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/functions/get-array.js": function(__unused_webpack_module, exports) {
|
|
58
56
|
Object.defineProperty(exports, "__esModule", {
|
|
59
57
|
value: true
|
|
60
58
|
});
|
|
@@ -68,7 +66,7 @@ var __webpack_modules__ = {
|
|
|
68
66
|
}
|
|
69
67
|
exports.build = build;
|
|
70
68
|
},
|
|
71
|
-
"./node_modules/.pnpm/fdir@6.4.
|
|
69
|
+
"./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/functions/group-files.js": function(__unused_webpack_module, exports) {
|
|
72
70
|
Object.defineProperty(exports, "__esModule", {
|
|
73
71
|
value: true
|
|
74
72
|
});
|
|
@@ -86,7 +84,7 @@ var __webpack_modules__ = {
|
|
|
86
84
|
}
|
|
87
85
|
exports.build = build;
|
|
88
86
|
},
|
|
89
|
-
"./node_modules/.pnpm/fdir@6.4.
|
|
87
|
+
"./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/functions/invoke-callback.js": function(__unused_webpack_module, exports) {
|
|
90
88
|
Object.defineProperty(exports, "__esModule", {
|
|
91
89
|
value: true
|
|
92
90
|
});
|
|
@@ -119,17 +117,17 @@ var __webpack_modules__ = {
|
|
|
119
117
|
if (onlyCounts) return isSynchronous ? onlyCountsSync : onlyCountsAsync;
|
|
120
118
|
if (group) return isSynchronous ? groupsSync : groupsAsync;
|
|
121
119
|
if (maxFiles) return isSynchronous ? limitFilesSync : limitFilesAsync;
|
|
122
|
-
|
|
120
|
+
return isSynchronous ? defaultSync : defaultAsync;
|
|
123
121
|
}
|
|
124
122
|
exports.build = build;
|
|
125
123
|
},
|
|
126
|
-
"./node_modules/.pnpm/fdir@6.4.
|
|
124
|
+
"./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/functions/join-path.js": function(__unused_webpack_module, exports, __webpack_require__) {
|
|
127
125
|
Object.defineProperty(exports, "__esModule", {
|
|
128
126
|
value: true
|
|
129
127
|
});
|
|
130
128
|
exports.build = exports.joinDirectoryPath = exports.joinPathWithBasePath = void 0;
|
|
131
129
|
const path_1 = __webpack_require__("path");
|
|
132
|
-
const utils_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.
|
|
130
|
+
const utils_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/utils.js");
|
|
133
131
|
function joinPathWithBasePath(filename, directoryPath) {
|
|
134
132
|
return directoryPath + filename;
|
|
135
133
|
}
|
|
@@ -154,7 +152,7 @@ var __webpack_modules__ = {
|
|
|
154
152
|
}
|
|
155
153
|
exports.build = build;
|
|
156
154
|
},
|
|
157
|
-
"./node_modules/.pnpm/fdir@6.4.
|
|
155
|
+
"./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/functions/push-directory.js": function(__unused_webpack_module, exports) {
|
|
158
156
|
Object.defineProperty(exports, "__esModule", {
|
|
159
157
|
value: true
|
|
160
158
|
});
|
|
@@ -186,7 +184,7 @@ var __webpack_modules__ = {
|
|
|
186
184
|
}
|
|
187
185
|
exports.build = build;
|
|
188
186
|
},
|
|
189
|
-
"./node_modules/.pnpm/fdir@6.4.
|
|
187
|
+
"./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/functions/push-file.js": function(__unused_webpack_module, exports) {
|
|
190
188
|
Object.defineProperty(exports, "__esModule", {
|
|
191
189
|
value: true
|
|
192
190
|
});
|
|
@@ -213,7 +211,7 @@ var __webpack_modules__ = {
|
|
|
213
211
|
}
|
|
214
212
|
exports.build = build;
|
|
215
213
|
},
|
|
216
|
-
"./node_modules/.pnpm/fdir@6.4.
|
|
214
|
+
"./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/functions/resolve-symlink.js": function(__unused_webpack_module, exports, __webpack_require__) {
|
|
217
215
|
var __importDefault = this && this.__importDefault || function(mod) {
|
|
218
216
|
return mod && mod.__esModule ? mod : {
|
|
219
217
|
default: mod
|
|
@@ -272,7 +270,7 @@ var __webpack_modules__ = {
|
|
|
272
270
|
return state.visited.includes(resolved + state.options.pathSeparator);
|
|
273
271
|
}
|
|
274
272
|
},
|
|
275
|
-
"./node_modules/.pnpm/fdir@6.4.
|
|
273
|
+
"./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/functions/walk-directory.js": function(__unused_webpack_module, exports, __webpack_require__) {
|
|
276
274
|
var __importDefault = this && this.__importDefault || function(mod) {
|
|
277
275
|
return mod && mod.__esModule ? mod : {
|
|
278
276
|
default: mod
|
|
@@ -287,12 +285,10 @@ var __webpack_modules__ = {
|
|
|
287
285
|
withFileTypes: true
|
|
288
286
|
};
|
|
289
287
|
const walkAsync = (state, crawlPath, directoryPath, currentDepth, callback)=>{
|
|
288
|
+
state.queue.enqueue();
|
|
290
289
|
if (currentDepth < 0) return state.queue.dequeue(null, state);
|
|
291
290
|
state.visited.push(crawlPath);
|
|
292
291
|
state.counts.directories++;
|
|
293
|
-
state.queue.enqueue();
|
|
294
|
-
// Perf: Node >= 10 introduced withFileTypes that helps us
|
|
295
|
-
// skip an extra fs.stat call.
|
|
296
292
|
fs_1.default.readdir(crawlPath || ".", readdirOpts, (error, entries = [])=>{
|
|
297
293
|
callback(entries, directoryPath, currentDepth);
|
|
298
294
|
state.queue.dequeue(state.options.suppressErrors ? null : error, state);
|
|
@@ -315,16 +311,12 @@ var __webpack_modules__ = {
|
|
|
315
311
|
}
|
|
316
312
|
exports.build = build;
|
|
317
313
|
},
|
|
318
|
-
"./node_modules/.pnpm/fdir@6.4.
|
|
314
|
+
"./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/queue.js": function(__unused_webpack_module, exports) {
|
|
319
315
|
Object.defineProperty(exports, "__esModule", {
|
|
320
316
|
value: true
|
|
321
317
|
});
|
|
322
318
|
exports.Queue = void 0;
|
|
323
|
-
|
|
324
|
-
* This is a custom stateless queue to track concurrent async fs calls.
|
|
325
|
-
* It increments a counter whenever a call is queued and decrements it
|
|
326
|
-
* as soon as it completes. When the counter hits 0, it calls onQueueEmpty.
|
|
327
|
-
*/ class Queue {
|
|
319
|
+
class Queue {
|
|
328
320
|
onQueueEmpty;
|
|
329
321
|
count = 0;
|
|
330
322
|
constructor(onQueueEmpty){
|
|
@@ -332,26 +324,33 @@ var __webpack_modules__ = {
|
|
|
332
324
|
}
|
|
333
325
|
enqueue() {
|
|
334
326
|
this.count++;
|
|
327
|
+
return this.count;
|
|
335
328
|
}
|
|
336
329
|
dequeue(error, output) {
|
|
337
|
-
if (--this.count <= 0 || error)
|
|
330
|
+
if (this.onQueueEmpty && (--this.count <= 0 || error)) {
|
|
331
|
+
this.onQueueEmpty(error, output);
|
|
332
|
+
if (error) {
|
|
333
|
+
output.controller.abort();
|
|
334
|
+
this.onQueueEmpty = void 0;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
338
337
|
}
|
|
339
338
|
}
|
|
340
339
|
exports.Queue = Queue;
|
|
341
340
|
},
|
|
342
|
-
"./node_modules/.pnpm/fdir@6.4.
|
|
341
|
+
"./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/sync.js": function(__unused_webpack_module, exports, __webpack_require__) {
|
|
343
342
|
Object.defineProperty(exports, "__esModule", {
|
|
344
343
|
value: true
|
|
345
344
|
});
|
|
346
345
|
exports.sync = void 0;
|
|
347
|
-
const walker_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.
|
|
346
|
+
const walker_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/walker.js");
|
|
348
347
|
function sync(root, options) {
|
|
349
348
|
const walker = new walker_1.Walker(root, options);
|
|
350
349
|
return walker.start();
|
|
351
350
|
}
|
|
352
351
|
exports.sync = sync;
|
|
353
352
|
},
|
|
354
|
-
"./node_modules/.pnpm/fdir@6.4.
|
|
353
|
+
"./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/walker.js": function(__unused_webpack_module, exports, __webpack_require__) {
|
|
355
354
|
var __createBinding = this && this.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
356
355
|
if (void 0 === k2) k2 = k;
|
|
357
356
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -388,17 +387,17 @@ var __webpack_modules__ = {
|
|
|
388
387
|
});
|
|
389
388
|
exports.Walker = void 0;
|
|
390
389
|
const path_1 = __webpack_require__("path");
|
|
391
|
-
const utils_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.
|
|
392
|
-
const joinPath = __importStar(__webpack_require__("./node_modules/.pnpm/fdir@6.4.
|
|
393
|
-
const pushDirectory = __importStar(__webpack_require__("./node_modules/.pnpm/fdir@6.4.
|
|
394
|
-
const pushFile = __importStar(__webpack_require__("./node_modules/.pnpm/fdir@6.4.
|
|
395
|
-
const getArray = __importStar(__webpack_require__("./node_modules/.pnpm/fdir@6.4.
|
|
396
|
-
const groupFiles = __importStar(__webpack_require__("./node_modules/.pnpm/fdir@6.4.
|
|
397
|
-
const resolveSymlink = __importStar(__webpack_require__("./node_modules/.pnpm/fdir@6.4.
|
|
398
|
-
const invokeCallback = __importStar(__webpack_require__("./node_modules/.pnpm/fdir@6.4.
|
|
399
|
-
const walkDirectory = __importStar(__webpack_require__("./node_modules/.pnpm/fdir@6.4.
|
|
400
|
-
const queue_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.
|
|
401
|
-
const counter_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.
|
|
390
|
+
const utils_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/utils.js");
|
|
391
|
+
const joinPath = __importStar(__webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/functions/join-path.js"));
|
|
392
|
+
const pushDirectory = __importStar(__webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/functions/push-directory.js"));
|
|
393
|
+
const pushFile = __importStar(__webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/functions/push-file.js"));
|
|
394
|
+
const getArray = __importStar(__webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/functions/get-array.js"));
|
|
395
|
+
const groupFiles = __importStar(__webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/functions/group-files.js"));
|
|
396
|
+
const resolveSymlink = __importStar(__webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/functions/resolve-symlink.js"));
|
|
397
|
+
const invokeCallback = __importStar(__webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/functions/invoke-callback.js"));
|
|
398
|
+
const walkDirectory = __importStar(__webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/functions/walk-directory.js"));
|
|
399
|
+
const queue_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/queue.js");
|
|
400
|
+
const counter_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/counter.js");
|
|
402
401
|
class Walker {
|
|
403
402
|
root;
|
|
404
403
|
isSynchronous;
|
|
@@ -416,8 +415,7 @@ var __webpack_modules__ = {
|
|
|
416
415
|
this.callbackInvoker = invokeCallback.build(options, this.isSynchronous);
|
|
417
416
|
this.root = (0, utils_1.normalizePath)(root, options);
|
|
418
417
|
this.state = {
|
|
419
|
-
root: this.root.slice(0, -1),
|
|
420
|
-
// Perf: we explicitly tell the compiler to optimize for String arrays
|
|
418
|
+
root: (0, utils_1.isRootDirectory)(this.root) ? this.root : this.root.slice(0, -1),
|
|
421
419
|
paths: [
|
|
422
420
|
""
|
|
423
421
|
].slice(0, 0),
|
|
@@ -428,13 +426,10 @@ var __webpack_modules__ = {
|
|
|
428
426
|
symlinks: new Map(),
|
|
429
427
|
visited: [
|
|
430
428
|
""
|
|
431
|
-
].slice(0, 0)
|
|
429
|
+
].slice(0, 0),
|
|
430
|
+
controller: new AbortController()
|
|
432
431
|
};
|
|
433
|
-
|
|
434
|
-
* Perf: We conditionally change functions according to options. This gives a slight
|
|
435
|
-
* performance boost. Since these functions are so small, they are automatically inlined
|
|
436
|
-
* by the javascript engine so there's no function call overhead (in most cases).
|
|
437
|
-
*/ this.joinPath = joinPath.build(this.root, options);
|
|
432
|
+
this.joinPath = joinPath.build(this.root, options);
|
|
438
433
|
this.pushDirectory = pushDirectory.build(this.root, options);
|
|
439
434
|
this.pushFile = pushFile.build(options);
|
|
440
435
|
this.getArray = getArray.build(options);
|
|
@@ -443,13 +438,13 @@ var __webpack_modules__ = {
|
|
|
443
438
|
this.walkDirectory = walkDirectory.build(this.isSynchronous);
|
|
444
439
|
}
|
|
445
440
|
start() {
|
|
441
|
+
this.pushDirectory(this.root, this.state.paths, this.state.options.filters);
|
|
446
442
|
this.walkDirectory(this.state, this.root, this.root, this.state.options.maxDepth, this.walk);
|
|
447
443
|
return this.isSynchronous ? this.callbackInvoker(this.state, null) : null;
|
|
448
444
|
}
|
|
449
445
|
walk = (entries, directoryPath, depth)=>{
|
|
450
|
-
const { paths, options: { filters, resolveSymlinks, excludeSymlinks, exclude, maxFiles, signal, useRealPaths, pathSeparator } } = this.state;
|
|
451
|
-
if (signal && signal.aborted || maxFiles && paths.length > maxFiles) return;
|
|
452
|
-
this.pushDirectory(directoryPath, paths, filters);
|
|
446
|
+
const { paths, options: { filters, resolveSymlinks, excludeSymlinks, exclude, maxFiles, signal, useRealPaths, pathSeparator }, controller } = this.state;
|
|
447
|
+
if (controller.signal.aborted || signal && signal.aborted || maxFiles && paths.length > maxFiles) return;
|
|
453
448
|
const files = this.getArray(this.state.paths);
|
|
454
449
|
for(let i = 0; i < entries.length; ++i){
|
|
455
450
|
const entry = entries[i];
|
|
@@ -459,13 +454,14 @@ var __webpack_modules__ = {
|
|
|
459
454
|
} else if (entry.isDirectory()) {
|
|
460
455
|
let path = joinPath.joinDirectoryPath(entry.name, directoryPath, this.state.options.pathSeparator);
|
|
461
456
|
if (exclude && exclude(entry.name, path)) continue;
|
|
457
|
+
this.pushDirectory(path, paths, filters);
|
|
462
458
|
this.walkDirectory(this.state, path, path, depth - 1, this.walk);
|
|
463
|
-
} else if (
|
|
459
|
+
} else if (this.resolveSymlink && entry.isSymbolicLink()) {
|
|
464
460
|
let path = joinPath.joinPathWithBasePath(entry.name, directoryPath);
|
|
465
461
|
this.resolveSymlink(path, this.state, (stat, resolvedPath)=>{
|
|
466
462
|
if (stat.isDirectory()) {
|
|
467
463
|
resolvedPath = (0, utils_1.normalizePath)(resolvedPath, this.state.options);
|
|
468
|
-
if (exclude && exclude(entry.name, resolvedPath)) return;
|
|
464
|
+
if (exclude && exclude(entry.name, useRealPaths ? resolvedPath : path + pathSeparator)) return;
|
|
469
465
|
this.walkDirectory(this.state, resolvedPath, useRealPaths ? resolvedPath : path + pathSeparator, depth - 1, this.walk);
|
|
470
466
|
} else {
|
|
471
467
|
resolvedPath = useRealPaths ? resolvedPath : path;
|
|
@@ -482,13 +478,13 @@ var __webpack_modules__ = {
|
|
|
482
478
|
}
|
|
483
479
|
exports.Walker = Walker;
|
|
484
480
|
},
|
|
485
|
-
"./node_modules/.pnpm/fdir@6.4.
|
|
481
|
+
"./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/builder/api-builder.js": function(__unused_webpack_module, exports, __webpack_require__) {
|
|
486
482
|
Object.defineProperty(exports, "__esModule", {
|
|
487
483
|
value: true
|
|
488
484
|
});
|
|
489
485
|
exports.APIBuilder = void 0;
|
|
490
|
-
const async_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.
|
|
491
|
-
const sync_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.
|
|
486
|
+
const async_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/async.js");
|
|
487
|
+
const sync_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/api/sync.js");
|
|
492
488
|
class APIBuilder {
|
|
493
489
|
root;
|
|
494
490
|
options;
|
|
@@ -508,20 +504,18 @@ var __webpack_modules__ = {
|
|
|
508
504
|
}
|
|
509
505
|
exports.APIBuilder = APIBuilder;
|
|
510
506
|
},
|
|
511
|
-
"./node_modules/.pnpm/fdir@6.4.
|
|
507
|
+
"./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/builder/index.js": function(__unused_webpack_module, exports, __webpack_require__) {
|
|
512
508
|
Object.defineProperty(exports, "__esModule", {
|
|
513
509
|
value: true
|
|
514
510
|
});
|
|
515
511
|
exports.Builder = void 0;
|
|
516
512
|
const path_1 = __webpack_require__("path");
|
|
517
|
-
const api_builder_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.
|
|
513
|
+
const api_builder_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/builder/api-builder.js");
|
|
518
514
|
var pm = null;
|
|
519
|
-
|
|
515
|
+
try {
|
|
520
516
|
require.resolve("picomatch");
|
|
521
517
|
pm = __webpack_require__("./node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/index.js");
|
|
522
|
-
} catch (_e) {
|
|
523
|
-
// do nothing
|
|
524
|
-
}
|
|
518
|
+
} catch (_e) {}
|
|
525
519
|
class Builder {
|
|
526
520
|
globCache = {};
|
|
527
521
|
options = {
|
|
@@ -609,17 +603,10 @@ var __webpack_modules__ = {
|
|
|
609
603
|
return new api_builder_1.APIBuilder(root || ".", this.options);
|
|
610
604
|
}
|
|
611
605
|
withGlobFunction(fn) {
|
|
612
|
-
// cast this since we don't have the new type params yet
|
|
613
606
|
this.globFunction = fn;
|
|
614
607
|
return this;
|
|
615
608
|
}
|
|
616
|
-
|
|
617
|
-
* @deprecated Pass options using the constructor instead:
|
|
618
|
-
* ```ts
|
|
619
|
-
* new fdir(options).crawl("/path/to/root");
|
|
620
|
-
* ```
|
|
621
|
-
* This method will be removed in v7.0
|
|
622
|
-
*/ /* c8 ignore next 4 */ crawlWithOptions(root, options) {
|
|
609
|
+
crawlWithOptions(root, options) {
|
|
623
610
|
this.options = {
|
|
624
611
|
...this.options,
|
|
625
612
|
...options
|
|
@@ -634,7 +621,7 @@ var __webpack_modules__ = {
|
|
|
634
621
|
}
|
|
635
622
|
globWithOptions(patterns, ...options) {
|
|
636
623
|
const globFn = this.globFunction || pm;
|
|
637
|
-
|
|
624
|
+
if (!globFn) throw new Error("Please specify a glob function to use glob matching.");
|
|
638
625
|
var isMatch = this.globCache[patterns.join("\0")];
|
|
639
626
|
if (!isMatch) {
|
|
640
627
|
isMatch = globFn(patterns, ...options);
|
|
@@ -646,7 +633,7 @@ var __webpack_modules__ = {
|
|
|
646
633
|
}
|
|
647
634
|
exports.Builder = Builder;
|
|
648
635
|
},
|
|
649
|
-
"./node_modules/.pnpm/fdir@6.4.
|
|
636
|
+
"./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/index.js": function(__unused_webpack_module, exports, __webpack_require__) {
|
|
650
637
|
var __createBinding = this && this.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
651
638
|
if (void 0 === k2) k2 = k;
|
|
652
639
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -668,30 +655,28 @@ var __webpack_modules__ = {
|
|
|
668
655
|
value: true
|
|
669
656
|
});
|
|
670
657
|
exports.fdir = void 0;
|
|
671
|
-
const builder_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.
|
|
658
|
+
const builder_1 = __webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/builder/index.js");
|
|
672
659
|
Object.defineProperty(exports, "fdir", {
|
|
673
660
|
enumerable: true,
|
|
674
661
|
get: function() {
|
|
675
662
|
return builder_1.Builder;
|
|
676
663
|
}
|
|
677
664
|
});
|
|
678
|
-
__exportStar(__webpack_require__("./node_modules/.pnpm/fdir@6.4.
|
|
665
|
+
__exportStar(__webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/types.js"), exports);
|
|
679
666
|
},
|
|
680
|
-
"./node_modules/.pnpm/fdir@6.4.
|
|
667
|
+
"./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/types.js": function(__unused_webpack_module, exports) {
|
|
681
668
|
Object.defineProperty(exports, "__esModule", {
|
|
682
669
|
value: true
|
|
683
670
|
});
|
|
684
671
|
},
|
|
685
|
-
"./node_modules/.pnpm/fdir@6.4.
|
|
672
|
+
"./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/utils.js": function(__unused_webpack_module, exports, __webpack_require__) {
|
|
686
673
|
Object.defineProperty(exports, "__esModule", {
|
|
687
674
|
value: true
|
|
688
675
|
});
|
|
689
|
-
exports.normalizePath = exports.convertSlashes = exports.cleanPath = void 0;
|
|
676
|
+
exports.normalizePath = exports.isRootDirectory = exports.convertSlashes = exports.cleanPath = void 0;
|
|
690
677
|
const path_1 = __webpack_require__("path");
|
|
691
678
|
function cleanPath(path) {
|
|
692
679
|
let normalized = (0, path_1.normalize)(path);
|
|
693
|
-
// we have to remove the last path separator
|
|
694
|
-
// to account for / root path
|
|
695
680
|
if (normalized.length > 1 && normalized[normalized.length - 1] === path_1.sep) normalized = normalized.substring(0, normalized.length - 1);
|
|
696
681
|
return normalized;
|
|
697
682
|
}
|
|
@@ -701,6 +686,11 @@ var __webpack_modules__ = {
|
|
|
701
686
|
return path.replace(SLASHES_REGEX, separator);
|
|
702
687
|
}
|
|
703
688
|
exports.convertSlashes = convertSlashes;
|
|
689
|
+
const WINDOWS_ROOT_DIR_REGEX = /^[a-z]:[\\/]$/i;
|
|
690
|
+
function isRootDirectory(path) {
|
|
691
|
+
return "/" === path || WINDOWS_ROOT_DIR_REGEX.test(path);
|
|
692
|
+
}
|
|
693
|
+
exports.isRootDirectory = isRootDirectory;
|
|
704
694
|
function normalizePath(path, options) {
|
|
705
695
|
const { resolvePaths, normalizePath, pathSeparator } = options;
|
|
706
696
|
const pathNeedsCleaning = "win32" === process.platform && path.includes("/") || path.startsWith(".");
|
|
@@ -782,9 +772,7 @@ var __webpack_modules__ = {
|
|
|
782
772
|
const pico = __webpack_require__("./node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/lib/picomatch.js");
|
|
783
773
|
const utils = __webpack_require__("./node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/lib/utils.js");
|
|
784
774
|
function picomatch(glob, options, returnState = false) {
|
|
785
|
-
|
|
786
|
-
if (options && (null === options.windows || void 0 === options.windows)) // don't mutate the original options object
|
|
787
|
-
options = {
|
|
775
|
+
if (options && (null === options.windows || void 0 === options.windows)) options = {
|
|
788
776
|
...options,
|
|
789
777
|
windows: utils.isWindows()
|
|
790
778
|
};
|
|
@@ -796,9 +784,7 @@ var __webpack_modules__ = {
|
|
|
796
784
|
"./node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/lib/constants.js": function(module) {
|
|
797
785
|
const WIN_SLASH = '\\\\/';
|
|
798
786
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
799
|
-
|
|
800
|
-
* Posix glob regex
|
|
801
|
-
*/ const DOT_LITERAL = '\\.';
|
|
787
|
+
const DOT_LITERAL = '\\.';
|
|
802
788
|
const PLUS_LITERAL = '\\+';
|
|
803
789
|
const QMARK_LITERAL = '\\?';
|
|
804
790
|
const SLASH_LITERAL = '\\/';
|
|
@@ -832,9 +818,7 @@ var __webpack_modules__ = {
|
|
|
832
818
|
START_ANCHOR,
|
|
833
819
|
SEP
|
|
834
820
|
};
|
|
835
|
-
|
|
836
|
-
* Windows glob regex
|
|
837
|
-
*/ const WINDOWS_CHARS = {
|
|
821
|
+
const WINDOWS_CHARS = {
|
|
838
822
|
...POSIX_CHARS,
|
|
839
823
|
SLASH_LITERAL: `[${WIN_SLASH}]`,
|
|
840
824
|
QMARK: WIN_NO_SLASH,
|
|
@@ -849,9 +833,7 @@ var __webpack_modules__ = {
|
|
|
849
833
|
END_ANCHOR: `(?:[${WIN_SLASH}]|$)`,
|
|
850
834
|
SEP: '\\'
|
|
851
835
|
};
|
|
852
|
-
|
|
853
|
-
* POSIX Bracket Regex
|
|
854
|
-
*/ const POSIX_REGEX_SOURCE = {
|
|
836
|
+
const POSIX_REGEX_SOURCE = {
|
|
855
837
|
alnum: 'a-zA-Z0-9',
|
|
856
838
|
alpha: 'a-zA-Z',
|
|
857
839
|
ascii: '\\x00-\\x7F',
|
|
@@ -870,68 +852,61 @@ var __webpack_modules__ = {
|
|
|
870
852
|
module.exports = {
|
|
871
853
|
MAX_LENGTH: 65536,
|
|
872
854
|
POSIX_REGEX_SOURCE,
|
|
873
|
-
// regular expressions
|
|
874
855
|
REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
|
|
875
856
|
REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
|
|
876
857
|
REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
|
|
877
858
|
REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
|
|
878
859
|
REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
|
|
879
860
|
REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
|
|
880
|
-
// Replace globs with equivalent patterns to reduce parsing time.
|
|
881
861
|
REPLACEMENTS: {
|
|
882
862
|
'***': '*',
|
|
883
863
|
'**/**': '**',
|
|
884
864
|
'**/**/**': '**'
|
|
885
865
|
},
|
|
886
|
-
// Digits
|
|
887
866
|
CHAR_0: 48,
|
|
888
|
-
|
|
889
|
-
/* 9 */ // Alphabet chars.
|
|
867
|
+
CHAR_9: 57,
|
|
890
868
|
CHAR_UPPERCASE_A: 65,
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
/* * */ // Non-alphabetic chars.
|
|
869
|
+
CHAR_LOWERCASE_A: 97,
|
|
870
|
+
CHAR_UPPERCASE_Z: 90,
|
|
871
|
+
CHAR_LOWERCASE_Z: 122,
|
|
872
|
+
CHAR_LEFT_PARENTHESES: 40,
|
|
873
|
+
CHAR_RIGHT_PARENTHESES: 41,
|
|
874
|
+
CHAR_ASTERISK: 42,
|
|
898
875
|
CHAR_AMPERSAND: 38,
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
* Create EXTGLOB_CHARS
|
|
934
|
-
*/ extglobChars (chars) {
|
|
876
|
+
CHAR_AT: 64,
|
|
877
|
+
CHAR_BACKWARD_SLASH: 92,
|
|
878
|
+
CHAR_CARRIAGE_RETURN: 13,
|
|
879
|
+
CHAR_CIRCUMFLEX_ACCENT: 94,
|
|
880
|
+
CHAR_COLON: 58,
|
|
881
|
+
CHAR_COMMA: 44,
|
|
882
|
+
CHAR_DOT: 46,
|
|
883
|
+
CHAR_DOUBLE_QUOTE: 34,
|
|
884
|
+
CHAR_EQUAL: 61,
|
|
885
|
+
CHAR_EXCLAMATION_MARK: 33,
|
|
886
|
+
CHAR_FORM_FEED: 12,
|
|
887
|
+
CHAR_FORWARD_SLASH: 47,
|
|
888
|
+
CHAR_GRAVE_ACCENT: 96,
|
|
889
|
+
CHAR_HASH: 35,
|
|
890
|
+
CHAR_HYPHEN_MINUS: 45,
|
|
891
|
+
CHAR_LEFT_ANGLE_BRACKET: 60,
|
|
892
|
+
CHAR_LEFT_CURLY_BRACE: 123,
|
|
893
|
+
CHAR_LEFT_SQUARE_BRACKET: 91,
|
|
894
|
+
CHAR_LINE_FEED: 10,
|
|
895
|
+
CHAR_NO_BREAK_SPACE: 160,
|
|
896
|
+
CHAR_PERCENT: 37,
|
|
897
|
+
CHAR_PLUS: 43,
|
|
898
|
+
CHAR_QUESTION_MARK: 63,
|
|
899
|
+
CHAR_RIGHT_ANGLE_BRACKET: 62,
|
|
900
|
+
CHAR_RIGHT_CURLY_BRACE: 125,
|
|
901
|
+
CHAR_RIGHT_SQUARE_BRACKET: 93,
|
|
902
|
+
CHAR_SEMICOLON: 59,
|
|
903
|
+
CHAR_SINGLE_QUOTE: 39,
|
|
904
|
+
CHAR_SPACE: 32,
|
|
905
|
+
CHAR_TAB: 9,
|
|
906
|
+
CHAR_UNDERSCORE: 95,
|
|
907
|
+
CHAR_VERTICAL_LINE: 124,
|
|
908
|
+
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
909
|
+
extglobChars (chars) {
|
|
935
910
|
return {
|
|
936
911
|
'!': {
|
|
937
912
|
type: 'negate',
|
|
@@ -960,9 +935,7 @@ var __webpack_modules__ = {
|
|
|
960
935
|
}
|
|
961
936
|
};
|
|
962
937
|
},
|
|
963
|
-
|
|
964
|
-
* Create GLOB_CHARS
|
|
965
|
-
*/ globChars (win32) {
|
|
938
|
+
globChars (win32) {
|
|
966
939
|
return true === win32 ? WINDOWS_CHARS : POSIX_CHARS;
|
|
967
940
|
}
|
|
968
941
|
};
|
|
@@ -970,31 +943,20 @@ var __webpack_modules__ = {
|
|
|
970
943
|
"./node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/lib/parse.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
971
944
|
const constants = __webpack_require__("./node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/lib/constants.js");
|
|
972
945
|
const utils = __webpack_require__("./node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/lib/utils.js");
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
*/ const { MAX_LENGTH, POSIX_REGEX_SOURCE, REGEX_NON_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_BACKREF, REPLACEMENTS } = constants;
|
|
976
|
-
/**
|
|
977
|
-
* Helpers
|
|
978
|
-
*/ const expandRange = (args, options)=>{
|
|
946
|
+
const { MAX_LENGTH, POSIX_REGEX_SOURCE, REGEX_NON_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_BACKREF, REPLACEMENTS } = constants;
|
|
947
|
+
const expandRange = (args, options)=>{
|
|
979
948
|
if ('function' == typeof options.expandRange) return options.expandRange(...args, options);
|
|
980
949
|
args.sort();
|
|
981
950
|
const value = `[${args.join('-')}]`;
|
|
982
951
|
try {
|
|
983
|
-
|
|
952
|
+
new RegExp(value);
|
|
984
953
|
} catch (ex) {
|
|
985
954
|
return args.map((v)=>utils.escapeRegex(v)).join('..');
|
|
986
955
|
}
|
|
987
956
|
return value;
|
|
988
957
|
};
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
*/ const syntaxError = (type, char)=>`Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
992
|
-
/**
|
|
993
|
-
* Parse the given input string.
|
|
994
|
-
* @param {String} input
|
|
995
|
-
* @param {Object} options
|
|
996
|
-
* @return {Object}
|
|
997
|
-
*/ const parse = (input, options)=>{
|
|
958
|
+
const syntaxError = (type, char)=>`Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
959
|
+
const parse = (input, options)=>{
|
|
998
960
|
if ('string' != typeof input) throw new TypeError('Expected a string');
|
|
999
961
|
input = REPLACEMENTS[input] || input;
|
|
1000
962
|
const opts = {
|
|
@@ -1012,7 +974,6 @@ var __webpack_modules__ = {
|
|
|
1012
974
|
bos
|
|
1013
975
|
];
|
|
1014
976
|
const capture = opts.capture ? '' : '?:';
|
|
1015
|
-
// create constants based on platform, for windows or posix
|
|
1016
977
|
const PLATFORM_CHARS = constants.globChars(opts.windows);
|
|
1017
978
|
const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
|
|
1018
979
|
const { DOT_LITERAL, PLUS_LITERAL, SLASH_LITERAL, ONE_CHAR, DOTS_SLASH, NO_DOT, NO_DOT_SLASH, NO_DOTS_SLASH, QMARK, QMARK_NO_DOT, STAR, START_ANCHOR } = PLATFORM_CHARS;
|
|
@@ -1021,7 +982,6 @@ var __webpack_modules__ = {
|
|
|
1021
982
|
const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT;
|
|
1022
983
|
let star = true === opts.bash ? globstar(opts) : STAR;
|
|
1023
984
|
if (opts.capture) star = `(${star})`;
|
|
1024
|
-
// minimatch options support
|
|
1025
985
|
if ('boolean' == typeof opts.noext) opts.noextglob = opts.noext;
|
|
1026
986
|
const state = {
|
|
1027
987
|
input,
|
|
@@ -1047,9 +1007,7 @@ var __webpack_modules__ = {
|
|
|
1047
1007
|
const stack = [];
|
|
1048
1008
|
let prev = bos;
|
|
1049
1009
|
let value;
|
|
1050
|
-
|
|
1051
|
-
* Tokenizing helpers
|
|
1052
|
-
*/ const eos = ()=>state.index === len - 1;
|
|
1010
|
+
const eos = ()=>state.index === len - 1;
|
|
1053
1011
|
const peek = state.peek = (n = 1)=>input[state.index + n];
|
|
1054
1012
|
const advance = state.advance = ()=>input[++state.index] || '';
|
|
1055
1013
|
const remaining = ()=>input.slice(state.index + 1);
|
|
@@ -1081,13 +1039,7 @@ var __webpack_modules__ = {
|
|
|
1081
1039
|
state[type]--;
|
|
1082
1040
|
stack.pop();
|
|
1083
1041
|
};
|
|
1084
|
-
|
|
1085
|
-
* Push tokens onto the tokens array. This helper speeds up
|
|
1086
|
-
* tokenizing by 1) helping us avoid backtracking as much as possible,
|
|
1087
|
-
* and 2) helping us avoid creating extra tokens when consecutive
|
|
1088
|
-
* characters are plain text. This improves performance and simplifies
|
|
1089
|
-
* lookbehinds.
|
|
1090
|
-
*/ const push = (tok)=>{
|
|
1042
|
+
const push = (tok)=>{
|
|
1091
1043
|
if ('globstar' === prev.type) {
|
|
1092
1044
|
const isBrace = state.braces > 0 && ('comma' === tok.type || 'brace' === tok.type);
|
|
1093
1045
|
const isExtglob = true === tok.extglob || extglobs.length && ('pipe' === tok.type || 'paren' === tok.type);
|
|
@@ -1142,11 +1094,6 @@ var __webpack_modules__ = {
|
|
|
1142
1094
|
if (token.inner && token.inner.length > 1 && token.inner.includes('/')) extglobStar = globstar(opts);
|
|
1143
1095
|
if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) output = token.close = `)$))${extglobStar}`;
|
|
1144
1096
|
if (token.inner.includes('*') && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
|
|
1145
|
-
// Any non-magical string (`.ts`) or even nested expression (`.{ts,tsx}`) can follow after the closing parenthesis.
|
|
1146
|
-
// In this case, we need to parse the string and use it in the output of the original pattern.
|
|
1147
|
-
// Suitable patterns: `/!(*.d).ts`, `/!(*.d).{ts,tsx}`, `**/!(*-dbg).@(js)`.
|
|
1148
|
-
//
|
|
1149
|
-
// Disabling the `fastpaths` option due to a problem with parsing strings as `.ts` in the pattern like `**/!(*.d).ts`.
|
|
1150
1097
|
const expression = parse(rest, {
|
|
1151
1098
|
...options,
|
|
1152
1099
|
fastpaths: false
|
|
@@ -1163,9 +1110,7 @@ var __webpack_modules__ = {
|
|
|
1163
1110
|
});
|
|
1164
1111
|
decrement('parens');
|
|
1165
1112
|
};
|
|
1166
|
-
|
|
1167
|
-
* Fast paths
|
|
1168
|
-
*/ if (false !== opts.fastpaths && !/(^[*!]|[/()[\]{}"])/.test(input)) {
|
|
1113
|
+
if (false !== opts.fastpaths && !/(^[*!]|[/()[\]{}"])/.test(input)) {
|
|
1169
1114
|
let backslashes = false;
|
|
1170
1115
|
let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index)=>{
|
|
1171
1116
|
if ('\\' === first) {
|
|
@@ -1192,14 +1137,10 @@ var __webpack_modules__ = {
|
|
|
1192
1137
|
state.output = utils.wrapOutput(output, state, options);
|
|
1193
1138
|
return state;
|
|
1194
1139
|
}
|
|
1195
|
-
|
|
1196
|
-
* Tokenize input until we reach end-of-string
|
|
1197
|
-
*/ while(!eos()){
|
|
1140
|
+
while(!eos()){
|
|
1198
1141
|
value = advance();
|
|
1199
1142
|
if ('\u0000' === value) continue;
|
|
1200
|
-
|
|
1201
|
-
* Escaped characters
|
|
1202
|
-
*/ if ('\\' === value) {
|
|
1143
|
+
if ('\\' === value) {
|
|
1203
1144
|
const next = peek();
|
|
1204
1145
|
if ('/' === next && true !== opts.bash) continue;
|
|
1205
1146
|
if ('.' === next || ';' === next) continue;
|
|
@@ -1211,7 +1152,6 @@ var __webpack_modules__ = {
|
|
|
1211
1152
|
});
|
|
1212
1153
|
continue;
|
|
1213
1154
|
}
|
|
1214
|
-
// collapse slashes to reduce potential for exploits
|
|
1215
1155
|
const match = /^\\+/.exec(remaining());
|
|
1216
1156
|
let slashes = 0;
|
|
1217
1157
|
if (match && match[0].length > 2) {
|
|
@@ -1229,10 +1169,7 @@ var __webpack_modules__ = {
|
|
|
1229
1169
|
continue;
|
|
1230
1170
|
}
|
|
1231
1171
|
}
|
|
1232
|
-
|
|
1233
|
-
* If we're inside a regex character class, continue
|
|
1234
|
-
* until we reach the closing bracket.
|
|
1235
|
-
*/ if (state.brackets > 0 && (']' !== value || '[' === prev.value || '[^' === prev.value)) {
|
|
1172
|
+
if (state.brackets > 0 && (']' !== value || '[' === prev.value || '[^' === prev.value)) {
|
|
1236
1173
|
if (false !== opts.posix && ':' === value) {
|
|
1237
1174
|
const inner = prev.value.slice(1);
|
|
1238
1175
|
if (inner.includes('[')) {
|
|
@@ -1261,10 +1198,7 @@ var __webpack_modules__ = {
|
|
|
1261
1198
|
});
|
|
1262
1199
|
continue;
|
|
1263
1200
|
}
|
|
1264
|
-
|
|
1265
|
-
* If we're inside a quoted string, continue
|
|
1266
|
-
* until we reach the closing double quote.
|
|
1267
|
-
*/ if (1 === state.quotes && '"' !== value) {
|
|
1201
|
+
if (1 === state.quotes && '"' !== value) {
|
|
1268
1202
|
value = utils.escapeRegex(value);
|
|
1269
1203
|
prev.value += value;
|
|
1270
1204
|
append({
|
|
@@ -1272,9 +1206,7 @@ var __webpack_modules__ = {
|
|
|
1272
1206
|
});
|
|
1273
1207
|
continue;
|
|
1274
1208
|
}
|
|
1275
|
-
|
|
1276
|
-
* Double quotes
|
|
1277
|
-
*/ if ('"' === value) {
|
|
1209
|
+
if ('"' === value) {
|
|
1278
1210
|
state.quotes = 1 === state.quotes ? 0 : 1;
|
|
1279
1211
|
if (true === opts.keepQuotes) push({
|
|
1280
1212
|
type: 'text',
|
|
@@ -1282,9 +1214,7 @@ var __webpack_modules__ = {
|
|
|
1282
1214
|
});
|
|
1283
1215
|
continue;
|
|
1284
1216
|
}
|
|
1285
|
-
|
|
1286
|
-
* Parentheses
|
|
1287
|
-
*/ if ('(' === value) {
|
|
1217
|
+
if ('(' === value) {
|
|
1288
1218
|
increment('parens');
|
|
1289
1219
|
push({
|
|
1290
1220
|
type: 'paren',
|
|
@@ -1307,9 +1237,7 @@ var __webpack_modules__ = {
|
|
|
1307
1237
|
decrement('parens');
|
|
1308
1238
|
continue;
|
|
1309
1239
|
}
|
|
1310
|
-
|
|
1311
|
-
* Square brackets
|
|
1312
|
-
*/ if ('[' === value) {
|
|
1240
|
+
if ('[' === value) {
|
|
1313
1241
|
if (true !== opts.nobracket && remaining().includes(']')) increment('brackets');
|
|
1314
1242
|
else {
|
|
1315
1243
|
if (true !== opts.nobracket && true === opts.strictBrackets) throw new SyntaxError(syntaxError('closing', ']'));
|
|
@@ -1346,26 +1274,19 @@ var __webpack_modules__ = {
|
|
|
1346
1274
|
append({
|
|
1347
1275
|
value
|
|
1348
1276
|
});
|
|
1349
|
-
// when literal brackets are explicitly disabled
|
|
1350
|
-
// assume we should match with a regex character class
|
|
1351
1277
|
if (false === opts.literalBrackets || utils.hasRegexChars(prevValue)) continue;
|
|
1352
1278
|
const escaped = utils.escapeRegex(prev.value);
|
|
1353
1279
|
state.output = state.output.slice(0, -prev.value.length);
|
|
1354
|
-
// when literal brackets are explicitly enabled
|
|
1355
|
-
// assume we should escape the brackets to match literal characters
|
|
1356
1280
|
if (true === opts.literalBrackets) {
|
|
1357
1281
|
state.output += escaped;
|
|
1358
1282
|
prev.value = escaped;
|
|
1359
1283
|
continue;
|
|
1360
1284
|
}
|
|
1361
|
-
// when the user specifies nothing, try to match both
|
|
1362
1285
|
prev.value = `(${capture}${escaped}|${prev.value})`;
|
|
1363
1286
|
state.output += prev.value;
|
|
1364
1287
|
continue;
|
|
1365
1288
|
}
|
|
1366
|
-
|
|
1367
|
-
* Braces
|
|
1368
|
-
*/ if ('{' === value && true !== opts.nobrace) {
|
|
1289
|
+
if ('{' === value && true !== opts.nobrace) {
|
|
1369
1290
|
increment('braces');
|
|
1370
1291
|
const open = {
|
|
1371
1292
|
type: 'brace',
|
|
@@ -1417,9 +1338,7 @@ var __webpack_modules__ = {
|
|
|
1417
1338
|
braces.pop();
|
|
1418
1339
|
continue;
|
|
1419
1340
|
}
|
|
1420
|
-
|
|
1421
|
-
* Pipes
|
|
1422
|
-
*/ if ('|' === value) {
|
|
1341
|
+
if ('|' === value) {
|
|
1423
1342
|
if (extglobs.length > 0) extglobs[extglobs.length - 1].conditions++;
|
|
1424
1343
|
push({
|
|
1425
1344
|
type: 'text',
|
|
@@ -1427,9 +1346,7 @@ var __webpack_modules__ = {
|
|
|
1427
1346
|
});
|
|
1428
1347
|
continue;
|
|
1429
1348
|
}
|
|
1430
|
-
|
|
1431
|
-
* Commas
|
|
1432
|
-
*/ if (',' === value) {
|
|
1349
|
+
if (',' === value) {
|
|
1433
1350
|
let output = value;
|
|
1434
1351
|
const brace = braces[braces.length - 1];
|
|
1435
1352
|
if (brace && 'braces' === stack[stack.length - 1]) {
|
|
@@ -1443,19 +1360,13 @@ var __webpack_modules__ = {
|
|
|
1443
1360
|
});
|
|
1444
1361
|
continue;
|
|
1445
1362
|
}
|
|
1446
|
-
|
|
1447
|
-
* Slashes
|
|
1448
|
-
*/ if ('/' === value) {
|
|
1449
|
-
// if the beginning of the glob is "./", advance the start
|
|
1450
|
-
// to the current index, and don't add the "./" characters
|
|
1451
|
-
// to the state. This greatly simplifies lookbehinds when
|
|
1452
|
-
// checking for BOS characters like "!" and "." (not "./")
|
|
1363
|
+
if ('/' === value) {
|
|
1453
1364
|
if ('dot' === prev.type && state.index === state.start + 1) {
|
|
1454
1365
|
state.start = state.index + 1;
|
|
1455
1366
|
state.consumed = '';
|
|
1456
1367
|
state.output = '';
|
|
1457
1368
|
tokens.pop();
|
|
1458
|
-
prev = bos;
|
|
1369
|
+
prev = bos;
|
|
1459
1370
|
continue;
|
|
1460
1371
|
}
|
|
1461
1372
|
push({
|
|
@@ -1465,9 +1376,7 @@ var __webpack_modules__ = {
|
|
|
1465
1376
|
});
|
|
1466
1377
|
continue;
|
|
1467
1378
|
}
|
|
1468
|
-
|
|
1469
|
-
* Dots
|
|
1470
|
-
*/ if ('.' === value) {
|
|
1379
|
+
if ('.' === value) {
|
|
1471
1380
|
if (state.braces > 0 && 'dot' === prev.type) {
|
|
1472
1381
|
if ('.' === prev.value) prev.output = DOT_LITERAL;
|
|
1473
1382
|
const brace = braces[braces.length - 1];
|
|
@@ -1492,9 +1401,7 @@ var __webpack_modules__ = {
|
|
|
1492
1401
|
});
|
|
1493
1402
|
continue;
|
|
1494
1403
|
}
|
|
1495
|
-
|
|
1496
|
-
* Question marks
|
|
1497
|
-
*/ if ('?' === value) {
|
|
1404
|
+
if ('?' === value) {
|
|
1498
1405
|
const isGroup = prev && '(' === prev.value;
|
|
1499
1406
|
if (!isGroup && true !== opts.noextglob && '(' === peek() && '?' !== peek(2)) {
|
|
1500
1407
|
extglobOpen('qmark', value);
|
|
@@ -1526,9 +1433,7 @@ var __webpack_modules__ = {
|
|
|
1526
1433
|
});
|
|
1527
1434
|
continue;
|
|
1528
1435
|
}
|
|
1529
|
-
|
|
1530
|
-
* Exclamation
|
|
1531
|
-
*/ if ('!' === value) {
|
|
1436
|
+
if ('!' === value) {
|
|
1532
1437
|
if (true !== opts.noextglob && '(' === peek()) {
|
|
1533
1438
|
if ('?' !== peek(2) || !/[!=<:]/.test(peek(3))) {
|
|
1534
1439
|
extglobOpen('negate', value);
|
|
@@ -1540,9 +1445,7 @@ var __webpack_modules__ = {
|
|
|
1540
1445
|
continue;
|
|
1541
1446
|
}
|
|
1542
1447
|
}
|
|
1543
|
-
|
|
1544
|
-
* Plus
|
|
1545
|
-
*/ if ('+' === value) {
|
|
1448
|
+
if ('+' === value) {
|
|
1546
1449
|
if (true !== opts.noextglob && '(' === peek() && '?' !== peek(2)) {
|
|
1547
1450
|
extglobOpen('plus', value);
|
|
1548
1451
|
continue;
|
|
@@ -1568,9 +1471,7 @@ var __webpack_modules__ = {
|
|
|
1568
1471
|
});
|
|
1569
1472
|
continue;
|
|
1570
1473
|
}
|
|
1571
|
-
|
|
1572
|
-
* Plain text
|
|
1573
|
-
*/ if ('@' === value) {
|
|
1474
|
+
if ('@' === value) {
|
|
1574
1475
|
if (true !== opts.noextglob && '(' === peek() && '?' !== peek(2)) {
|
|
1575
1476
|
push({
|
|
1576
1477
|
type: 'at',
|
|
@@ -1586,9 +1487,7 @@ var __webpack_modules__ = {
|
|
|
1586
1487
|
});
|
|
1587
1488
|
continue;
|
|
1588
1489
|
}
|
|
1589
|
-
|
|
1590
|
-
* Plain text
|
|
1591
|
-
*/ if ('*' !== value) {
|
|
1490
|
+
if ('*' !== value) {
|
|
1592
1491
|
if ('$' === value || '^' === value) value = `\\${value}`;
|
|
1593
1492
|
const match = REGEX_NON_SPECIAL_CHARS.exec(remaining());
|
|
1594
1493
|
if (match) {
|
|
@@ -1601,9 +1500,7 @@ var __webpack_modules__ = {
|
|
|
1601
1500
|
});
|
|
1602
1501
|
continue;
|
|
1603
1502
|
}
|
|
1604
|
-
|
|
1605
|
-
* Stars
|
|
1606
|
-
*/ if (prev && ('globstar' === prev.type || true === prev.star)) {
|
|
1503
|
+
if (prev && ('globstar' === prev.type || true === prev.star)) {
|
|
1607
1504
|
prev.type = 'star';
|
|
1608
1505
|
prev.star = true;
|
|
1609
1506
|
prev.value += value;
|
|
@@ -1645,7 +1542,6 @@ var __webpack_modules__ = {
|
|
|
1645
1542
|
});
|
|
1646
1543
|
continue;
|
|
1647
1544
|
}
|
|
1648
|
-
// strip consecutive `/**/`
|
|
1649
1545
|
while('/**' === rest.slice(0, 3)){
|
|
1650
1546
|
const after = input[state.index + 4];
|
|
1651
1547
|
if (after && '/' !== after) break;
|
|
@@ -1703,13 +1599,10 @@ var __webpack_modules__ = {
|
|
|
1703
1599
|
});
|
|
1704
1600
|
continue;
|
|
1705
1601
|
}
|
|
1706
|
-
// remove single star from output
|
|
1707
1602
|
state.output = state.output.slice(0, -prev.output.length);
|
|
1708
|
-
// reset previous token to globstar
|
|
1709
1603
|
prev.type = 'globstar';
|
|
1710
1604
|
prev.output = globstar(opts);
|
|
1711
1605
|
prev.value += value;
|
|
1712
|
-
// reset output with globstar
|
|
1713
1606
|
state.output += prev.output;
|
|
1714
1607
|
state.globstar = true;
|
|
1715
1608
|
consume(value);
|
|
@@ -1769,7 +1662,6 @@ var __webpack_modules__ = {
|
|
|
1769
1662
|
value: '',
|
|
1770
1663
|
output: `${SLASH_LITERAL}?`
|
|
1771
1664
|
});
|
|
1772
|
-
// rebuild the output if we had to backtrack at any point
|
|
1773
1665
|
if (true === state.backtrack) {
|
|
1774
1666
|
state.output = '';
|
|
1775
1667
|
for (const token of state.tokens){
|
|
@@ -1779,11 +1671,7 @@ var __webpack_modules__ = {
|
|
|
1779
1671
|
}
|
|
1780
1672
|
return state;
|
|
1781
1673
|
};
|
|
1782
|
-
|
|
1783
|
-
* Fast paths for creating regular expressions for common glob patterns.
|
|
1784
|
-
* This can significantly speed up processing and has very little downside
|
|
1785
|
-
* impact when none of the fast paths match.
|
|
1786
|
-
*/ parse.fastpaths = (input, options)=>{
|
|
1674
|
+
parse.fastpaths = (input, options)=>{
|
|
1787
1675
|
const opts = {
|
|
1788
1676
|
...options
|
|
1789
1677
|
};
|
|
@@ -1791,7 +1679,6 @@ var __webpack_modules__ = {
|
|
|
1791
1679
|
const len = input.length;
|
|
1792
1680
|
if (len > max) throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
|
|
1793
1681
|
input = REPLACEMENTS[input] || input;
|
|
1794
|
-
// create constants based on platform, for windows or posix
|
|
1795
1682
|
const { DOT_LITERAL, SLASH_LITERAL, ONE_CHAR, DOTS_SLASH, NO_DOT, NO_DOTS, NO_DOTS_SLASH, STAR, START_ANCHOR } = constants.globChars(opts.windows);
|
|
1796
1683
|
const nodot = opts.dot ? NO_DOTS : NO_DOT;
|
|
1797
1684
|
const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
|
|
@@ -1847,27 +1734,7 @@ var __webpack_modules__ = {
|
|
|
1847
1734
|
const utils = __webpack_require__("./node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/lib/utils.js");
|
|
1848
1735
|
const constants = __webpack_require__("./node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/lib/constants.js");
|
|
1849
1736
|
const isObject = (val)=>val && 'object' == typeof val && !Array.isArray(val);
|
|
1850
|
-
|
|
1851
|
-
* Creates a matcher function from one or more glob patterns. The
|
|
1852
|
-
* returned function takes a string to match as its first argument,
|
|
1853
|
-
* and returns true if the string is a match. The returned matcher
|
|
1854
|
-
* function also takes a boolean as the second argument that, when true,
|
|
1855
|
-
* returns an object with additional information.
|
|
1856
|
-
*
|
|
1857
|
-
* ```js
|
|
1858
|
-
* const picomatch = require('picomatch');
|
|
1859
|
-
* // picomatch(glob[, options]);
|
|
1860
|
-
*
|
|
1861
|
-
* const isMatch = picomatch('*.!(*a)');
|
|
1862
|
-
* console.log(isMatch('a.a')); //=> false
|
|
1863
|
-
* console.log(isMatch('a.b')); //=> true
|
|
1864
|
-
* ```
|
|
1865
|
-
* @name picomatch
|
|
1866
|
-
* @param {String|Array} `globs` One or more glob patterns.
|
|
1867
|
-
* @param {Object=} `options`
|
|
1868
|
-
* @return {Function=} Returns a matcher function.
|
|
1869
|
-
* @api public
|
|
1870
|
-
*/ const picomatch = (glob, options, returnState = false)=>{
|
|
1737
|
+
const picomatch = (glob, options, returnState = false)=>{
|
|
1871
1738
|
if (Array.isArray(glob)) {
|
|
1872
1739
|
const fns = glob.map((input)=>picomatch(input, options, returnState));
|
|
1873
1740
|
const arrayMatcher = (str)=>{
|
|
@@ -1914,35 +1781,20 @@ var __webpack_modules__ = {
|
|
|
1914
1781
|
if ('function' == typeof opts.onResult) opts.onResult(result);
|
|
1915
1782
|
if (false === isMatch) {
|
|
1916
1783
|
result.isMatch = false;
|
|
1917
|
-
return
|
|
1784
|
+
return returnObject ? result : false;
|
|
1918
1785
|
}
|
|
1919
1786
|
if (isIgnored(input)) {
|
|
1920
1787
|
if ('function' == typeof opts.onIgnore) opts.onIgnore(result);
|
|
1921
1788
|
result.isMatch = false;
|
|
1922
|
-
return
|
|
1789
|
+
return returnObject ? result : false;
|
|
1923
1790
|
}
|
|
1924
1791
|
if ('function' == typeof opts.onMatch) opts.onMatch(result);
|
|
1925
|
-
return
|
|
1792
|
+
return returnObject ? result : true;
|
|
1926
1793
|
};
|
|
1927
1794
|
if (returnState) matcher.state = state;
|
|
1928
1795
|
return matcher;
|
|
1929
1796
|
};
|
|
1930
|
-
|
|
1931
|
-
* Test `input` with the given `regex`. This is used by the main
|
|
1932
|
-
* `picomatch()` function to test the input string.
|
|
1933
|
-
*
|
|
1934
|
-
* ```js
|
|
1935
|
-
* const picomatch = require('picomatch');
|
|
1936
|
-
* // picomatch.test(input, regex[, options]);
|
|
1937
|
-
*
|
|
1938
|
-
* console.log(picomatch.test('foo/bar', /^(?:([^/]*?)\/([^/]*?))$/));
|
|
1939
|
-
* // { isMatch: true, match: [ 'foo/', 'foo', 'bar' ], output: 'foo/bar' }
|
|
1940
|
-
* ```
|
|
1941
|
-
* @param {String} `input` String to test.
|
|
1942
|
-
* @param {RegExp} `regex`
|
|
1943
|
-
* @return {Object} Returns an object with matching info.
|
|
1944
|
-
* @api public
|
|
1945
|
-
*/ picomatch.test = (input, regex, options, { glob, posix } = {})=>{
|
|
1797
|
+
picomatch.test = (input, regex, options, { glob, posix } = {})=>{
|
|
1946
1798
|
if ('string' != typeof input) throw new TypeError('Expected input to be a string');
|
|
1947
1799
|
if ('' === input) return {
|
|
1948
1800
|
isMatch: false,
|
|
@@ -1963,94 +1815,20 @@ var __webpack_modules__ = {
|
|
|
1963
1815
|
output
|
|
1964
1816
|
};
|
|
1965
1817
|
};
|
|
1966
|
-
|
|
1967
|
-
* Match the basename of a filepath.
|
|
1968
|
-
*
|
|
1969
|
-
* ```js
|
|
1970
|
-
* const picomatch = require('picomatch');
|
|
1971
|
-
* // picomatch.matchBase(input, glob[, options]);
|
|
1972
|
-
* console.log(picomatch.matchBase('foo/bar.js', '*.js'); // true
|
|
1973
|
-
* ```
|
|
1974
|
-
* @param {String} `input` String to test.
|
|
1975
|
-
* @param {RegExp|String} `glob` Glob pattern or regex created by [.makeRe](#makeRe).
|
|
1976
|
-
* @return {Boolean}
|
|
1977
|
-
* @api public
|
|
1978
|
-
*/ picomatch.matchBase = (input, glob, options)=>{
|
|
1818
|
+
picomatch.matchBase = (input, glob, options)=>{
|
|
1979
1819
|
const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
1980
1820
|
return regex.test(utils.basename(input));
|
|
1981
1821
|
};
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
*
|
|
1985
|
-
* ```js
|
|
1986
|
-
* const picomatch = require('picomatch');
|
|
1987
|
-
* // picomatch.isMatch(string, patterns[, options]);
|
|
1988
|
-
*
|
|
1989
|
-
* console.log(picomatch.isMatch('a.a', ['b.*', '*.a'])); //=> true
|
|
1990
|
-
* console.log(picomatch.isMatch('a.a', 'b.*')); //=> false
|
|
1991
|
-
* ```
|
|
1992
|
-
* @param {String|Array} str The string to test.
|
|
1993
|
-
* @param {String|Array} patterns One or more glob patterns to use for matching.
|
|
1994
|
-
* @param {Object} [options] See available [options](#options).
|
|
1995
|
-
* @return {Boolean} Returns true if any patterns match `str`
|
|
1996
|
-
* @api public
|
|
1997
|
-
*/ picomatch.isMatch = (str, patterns, options)=>picomatch(patterns, options)(str);
|
|
1998
|
-
/**
|
|
1999
|
-
* Parse a glob pattern to create the source string for a regular
|
|
2000
|
-
* expression.
|
|
2001
|
-
*
|
|
2002
|
-
* ```js
|
|
2003
|
-
* const picomatch = require('picomatch');
|
|
2004
|
-
* const result = picomatch.parse(pattern[, options]);
|
|
2005
|
-
* ```
|
|
2006
|
-
* @param {String} `pattern`
|
|
2007
|
-
* @param {Object} `options`
|
|
2008
|
-
* @return {Object} Returns an object with useful properties and output to be used as a regex source string.
|
|
2009
|
-
* @api public
|
|
2010
|
-
*/ picomatch.parse = (pattern, options)=>{
|
|
1822
|
+
picomatch.isMatch = (str, patterns, options)=>picomatch(patterns, options)(str);
|
|
1823
|
+
picomatch.parse = (pattern, options)=>{
|
|
2011
1824
|
if (Array.isArray(pattern)) return pattern.map((p)=>picomatch.parse(p, options));
|
|
2012
1825
|
return parse(pattern, {
|
|
2013
1826
|
...options,
|
|
2014
1827
|
fastpaths: false
|
|
2015
1828
|
});
|
|
2016
1829
|
};
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
*
|
|
2020
|
-
* ```js
|
|
2021
|
-
* const picomatch = require('picomatch');
|
|
2022
|
-
* // picomatch.scan(input[, options]);
|
|
2023
|
-
*
|
|
2024
|
-
* const result = picomatch.scan('!./foo/*.js');
|
|
2025
|
-
* console.log(result);
|
|
2026
|
-
* { prefix: '!./',
|
|
2027
|
-
* input: '!./foo/*.js',
|
|
2028
|
-
* start: 3,
|
|
2029
|
-
* base: 'foo',
|
|
2030
|
-
* glob: '*.js',
|
|
2031
|
-
* isBrace: false,
|
|
2032
|
-
* isBracket: false,
|
|
2033
|
-
* isGlob: true,
|
|
2034
|
-
* isExtglob: false,
|
|
2035
|
-
* isGlobstar: false,
|
|
2036
|
-
* negated: true }
|
|
2037
|
-
* ```
|
|
2038
|
-
* @param {String} `input` Glob pattern to scan.
|
|
2039
|
-
* @param {Object} `options`
|
|
2040
|
-
* @return {Object} Returns an object with
|
|
2041
|
-
* @api public
|
|
2042
|
-
*/ picomatch.scan = (input, options)=>scan(input, options);
|
|
2043
|
-
/**
|
|
2044
|
-
* Compile a regular expression from the `state` object returned by the
|
|
2045
|
-
* [parse()](#parse) method.
|
|
2046
|
-
*
|
|
2047
|
-
* @param {Object} `state`
|
|
2048
|
-
* @param {Object} `options`
|
|
2049
|
-
* @param {Boolean} `returnOutput` Intended for implementors, this argument allows you to return the raw output from the parser.
|
|
2050
|
-
* @param {Boolean} `returnState` Adds the state to a `state` property on the returned regex. Useful for implementors and debugging.
|
|
2051
|
-
* @return {RegExp}
|
|
2052
|
-
* @api public
|
|
2053
|
-
*/ picomatch.compileRe = (state, options, returnOutput = false, returnState = false)=>{
|
|
1830
|
+
picomatch.scan = (input, options)=>scan(input, options);
|
|
1831
|
+
picomatch.compileRe = (state, options, returnOutput = false, returnState = false)=>{
|
|
2054
1832
|
if (true === returnOutput) return state.output;
|
|
2055
1833
|
const opts = options || {};
|
|
2056
1834
|
const prepend = opts.contains ? '' : '^';
|
|
@@ -2061,24 +1839,7 @@ var __webpack_modules__ = {
|
|
|
2061
1839
|
if (true === returnState) regex.state = state;
|
|
2062
1840
|
return regex;
|
|
2063
1841
|
};
|
|
2064
|
-
|
|
2065
|
-
* Create a regular expression from a parsed glob pattern.
|
|
2066
|
-
*
|
|
2067
|
-
* ```js
|
|
2068
|
-
* const picomatch = require('picomatch');
|
|
2069
|
-
* const state = picomatch.parse('*.js');
|
|
2070
|
-
* // picomatch.compileRe(state[, options]);
|
|
2071
|
-
*
|
|
2072
|
-
* console.log(picomatch.compileRe(state));
|
|
2073
|
-
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
|
2074
|
-
* ```
|
|
2075
|
-
* @param {String} `state` The object returned from the `.parse` method.
|
|
2076
|
-
* @param {Object} `options`
|
|
2077
|
-
* @param {Boolean} `returnOutput` Implementors may use this argument to return the compiled output, instead of a regular expression. This is not exposed on the options to prevent end-users from mutating the result.
|
|
2078
|
-
* @param {Boolean} `returnState` Implementors may use this argument to return the state from the parsed glob with the returned regular expression.
|
|
2079
|
-
* @return {RegExp} Returns a regex created from the given pattern.
|
|
2080
|
-
* @api public
|
|
2081
|
-
*/ picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false)=>{
|
|
1842
|
+
picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false)=>{
|
|
2082
1843
|
if (!input || 'string' != typeof input) throw new TypeError('Expected a non-empty string');
|
|
2083
1844
|
let parsed = {
|
|
2084
1845
|
negated: false,
|
|
@@ -2088,22 +1849,7 @@ var __webpack_modules__ = {
|
|
|
2088
1849
|
if (!parsed.output) parsed = parse(input, options);
|
|
2089
1850
|
return picomatch.compileRe(parsed, options, returnOutput, returnState);
|
|
2090
1851
|
};
|
|
2091
|
-
|
|
2092
|
-
* Create a regular expression from the given regex source string.
|
|
2093
|
-
*
|
|
2094
|
-
* ```js
|
|
2095
|
-
* const picomatch = require('picomatch');
|
|
2096
|
-
* // picomatch.toRegex(source[, options]);
|
|
2097
|
-
*
|
|
2098
|
-
* const { output } = picomatch.parse('*.js');
|
|
2099
|
-
* console.log(picomatch.toRegex(output));
|
|
2100
|
-
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
|
2101
|
-
* ```
|
|
2102
|
-
* @param {String} `source` Regular expression source string.
|
|
2103
|
-
* @param {Object} `options`
|
|
2104
|
-
* @return {RegExp}
|
|
2105
|
-
* @api public
|
|
2106
|
-
*/ picomatch.toRegex = (source, options)=>{
|
|
1852
|
+
picomatch.toRegex = (source, options)=>{
|
|
2107
1853
|
try {
|
|
2108
1854
|
const opts = options || {};
|
|
2109
1855
|
return new RegExp(source, opts.flags || (opts.nocase ? 'i' : ''));
|
|
@@ -2112,37 +1858,17 @@ var __webpack_modules__ = {
|
|
|
2112
1858
|
return /$^/;
|
|
2113
1859
|
}
|
|
2114
1860
|
};
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
* @return {Object}
|
|
2118
|
-
*/ picomatch.constants = constants;
|
|
2119
|
-
/**
|
|
2120
|
-
* Expose "picomatch"
|
|
2121
|
-
*/ module.exports = picomatch;
|
|
1861
|
+
picomatch.constants = constants;
|
|
1862
|
+
module.exports = picomatch;
|
|
2122
1863
|
},
|
|
2123
1864
|
"./node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/lib/scan.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2124
1865
|
const utils = __webpack_require__("./node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/lib/utils.js");
|
|
2125
|
-
const { CHAR_ASTERISK,
|
|
1866
|
+
const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = __webpack_require__("./node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/lib/constants.js");
|
|
2126
1867
|
const isPathSeparator = (code)=>code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
|
|
2127
1868
|
const depth = (token)=>{
|
|
2128
1869
|
if (true !== token.isPrefix) token.depth = token.isGlobstar ? 1 / 0 : 1;
|
|
2129
1870
|
};
|
|
2130
|
-
|
|
2131
|
-
* Quickly scans a glob pattern and returns an object with a handful of
|
|
2132
|
-
* useful properties, like `isGlob`, `path` (the leading non-glob, if it exists),
|
|
2133
|
-
* `glob` (the actual pattern), `negated` (true if the path starts with `!` but not
|
|
2134
|
-
* with `!(`) and `negatedExtglob` (true if the path starts with `!(`).
|
|
2135
|
-
*
|
|
2136
|
-
* ```js
|
|
2137
|
-
* const pm = require('picomatch');
|
|
2138
|
-
* console.log(pm.scan('foo/bar/*.js'));
|
|
2139
|
-
* { isGlob: true, input: 'foo/bar/*.js', base: 'foo/bar', glob: '*.js' }
|
|
2140
|
-
* ```
|
|
2141
|
-
* @param {String} `str`
|
|
2142
|
-
* @param {Object} `options`
|
|
2143
|
-
* @return {Object} Returns an object with tokens and regex source string.
|
|
2144
|
-
* @api public
|
|
2145
|
-
*/ const scan = (input, options)=>{
|
|
1871
|
+
const scan = (input, options)=>{
|
|
2146
1872
|
const opts = options || {};
|
|
2147
1873
|
const length = input.length - 1;
|
|
2148
1874
|
const scanToEnd = true === opts.parts || true === opts.scanToEnd;
|
|
@@ -2404,7 +2130,7 @@ var __webpack_modules__ = {
|
|
|
2404
2130
|
module.exports = scan;
|
|
2405
2131
|
},
|
|
2406
2132
|
"./node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/lib/utils.js": function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2407
|
-
|
|
2133
|
+
const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = __webpack_require__("./node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/lib/constants.js");
|
|
2408
2134
|
exports.isObject = (val)=>null !== val && 'object' == typeof val && !Array.isArray(val);
|
|
2409
2135
|
exports.hasRegexChars = (str)=>REGEX_SPECIAL_CHARS.test(str);
|
|
2410
2136
|
exports.isRegexChar = (str)=>1 === str.length && exports.hasRegexChars(str);
|
|
@@ -2454,72 +2180,61 @@ var __webpack_modules__ = {
|
|
|
2454
2180
|
module.exports = __WEBPACK_EXTERNAL_MODULE_path__;
|
|
2455
2181
|
}
|
|
2456
2182
|
};
|
|
2457
|
-
/************************************************************************/ // The module cache
|
|
2458
2183
|
var __webpack_module_cache__ = {};
|
|
2459
|
-
// The require function
|
|
2460
2184
|
function __webpack_require__(moduleId) {
|
|
2461
|
-
// Check if module is in cache
|
|
2462
2185
|
var cachedModule = __webpack_module_cache__[moduleId];
|
|
2463
2186
|
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
2464
|
-
// Create a new module (and put it into the cache)
|
|
2465
2187
|
var module = __webpack_module_cache__[moduleId] = {
|
|
2466
2188
|
exports: {}
|
|
2467
2189
|
};
|
|
2468
|
-
// Execute the module function
|
|
2469
2190
|
__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
2470
|
-
// Return the exports of the module
|
|
2471
2191
|
return module.exports;
|
|
2472
2192
|
}
|
|
2473
|
-
/************************************************************************/ // webpack/runtime/compat_get_default_export
|
|
2474
2193
|
(()=>{
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
var getter = module && module.__esModule ? function() {
|
|
2478
|
-
return module['default'];
|
|
2479
|
-
} : function() {
|
|
2480
|
-
return module;
|
|
2481
|
-
};
|
|
2194
|
+
__webpack_require__.n = (module)=>{
|
|
2195
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
2482
2196
|
__webpack_require__.d(getter, {
|
|
2483
2197
|
a: getter
|
|
2484
2198
|
});
|
|
2485
2199
|
return getter;
|
|
2486
2200
|
};
|
|
2487
2201
|
})();
|
|
2488
|
-
// webpack/runtime/define_property_getters
|
|
2489
2202
|
(()=>{
|
|
2490
|
-
__webpack_require__.d =
|
|
2203
|
+
__webpack_require__.d = (exports, definition)=>{
|
|
2491
2204
|
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
2492
2205
|
enumerable: true,
|
|
2493
2206
|
get: definition[key]
|
|
2494
2207
|
});
|
|
2495
2208
|
};
|
|
2496
2209
|
})();
|
|
2497
|
-
// webpack/runtime/has_own_property
|
|
2498
2210
|
(()=>{
|
|
2499
|
-
__webpack_require__.o =
|
|
2500
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
2501
|
-
};
|
|
2211
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
2502
2212
|
})();
|
|
2503
|
-
// EXTERNAL MODULE: ./node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
2504
2213
|
var picocolors = __webpack_require__("./node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
|
|
2505
2214
|
var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
const prefix = flag.startsWith("-") ? "" : 1 === flag.length ? "-" : "--";
|
|
2215
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : node_process.argv) {
|
|
2216
|
+
const prefix = flag.startsWith('-') ? '' : 1 === flag.length ? '-' : '--';
|
|
2509
2217
|
const position = argv.indexOf(prefix + flag);
|
|
2510
|
-
const terminatorPosition = argv.indexOf(
|
|
2218
|
+
const terminatorPosition = argv.indexOf('--');
|
|
2511
2219
|
return -1 !== position && (-1 === terminatorPosition || position < terminatorPosition);
|
|
2512
2220
|
}
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
if (hasFlag(
|
|
2516
|
-
else if (hasFlag(
|
|
2221
|
+
const { env } = node_process;
|
|
2222
|
+
let flagForceColor;
|
|
2223
|
+
if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false') || hasFlag('color=never')) flagForceColor = 0;
|
|
2224
|
+
else if (hasFlag('color') || hasFlag('colors') || hasFlag('color=true') || hasFlag('color=always')) flagForceColor = 1;
|
|
2517
2225
|
function envForceColor() {
|
|
2518
|
-
if (
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2226
|
+
if (!('FORCE_COLOR' in env)) return;
|
|
2227
|
+
if ('true' === env.FORCE_COLOR) return 1;
|
|
2228
|
+
if ('false' === env.FORCE_COLOR) return 0;
|
|
2229
|
+
if (0 === env.FORCE_COLOR.length) return 1;
|
|
2230
|
+
const level = Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
2231
|
+
if (![
|
|
2232
|
+
0,
|
|
2233
|
+
1,
|
|
2234
|
+
2,
|
|
2235
|
+
3
|
|
2236
|
+
].includes(level)) return;
|
|
2237
|
+
return level;
|
|
2523
2238
|
}
|
|
2524
2239
|
function translateLevel(level) {
|
|
2525
2240
|
if (0 === level) return false;
|
|
@@ -2536,45 +2251,48 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
2536
2251
|
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
2537
2252
|
if (0 === forceColor) return 0;
|
|
2538
2253
|
if (sniffFlags) {
|
|
2539
|
-
if (hasFlag(
|
|
2540
|
-
if (hasFlag(
|
|
2254
|
+
if (hasFlag('color=16m') || hasFlag('color=full') || hasFlag('color=truecolor')) return 3;
|
|
2255
|
+
if (hasFlag('color=256')) return 2;
|
|
2541
2256
|
}
|
|
2542
|
-
if (
|
|
2257
|
+
if ('TF_BUILD' in env && 'AGENT_NAME' in env) return 1;
|
|
2543
2258
|
if (haveStream && !streamIsTTY && void 0 === forceColor) return 0;
|
|
2544
2259
|
const min = forceColor || 0;
|
|
2545
|
-
if (
|
|
2546
|
-
if (
|
|
2547
|
-
const osRelease =
|
|
2260
|
+
if ('dumb' === env.TERM) return min;
|
|
2261
|
+
if ('win32' === node_process.platform) {
|
|
2262
|
+
const osRelease = node_os.release().split('.');
|
|
2548
2263
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
2549
2264
|
return 1;
|
|
2550
2265
|
}
|
|
2551
|
-
if (
|
|
2552
|
-
if (
|
|
2266
|
+
if ('CI' in env) {
|
|
2267
|
+
if ([
|
|
2268
|
+
'GITHUB_ACTIONS',
|
|
2269
|
+
'GITEA_ACTIONS',
|
|
2270
|
+
'CIRCLECI'
|
|
2271
|
+
].some((key)=>key in env)) return 3;
|
|
2553
2272
|
if ([
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
].some((sign)=>sign in env) || "codeship" === env.CI_NAME) return 1;
|
|
2273
|
+
'TRAVIS',
|
|
2274
|
+
'APPVEYOR',
|
|
2275
|
+
'GITLAB_CI',
|
|
2276
|
+
'BUILDKITE',
|
|
2277
|
+
'DRONE'
|
|
2278
|
+
].some((sign)=>sign in env) || 'codeship' === env.CI_NAME) return 1;
|
|
2561
2279
|
return min;
|
|
2562
2280
|
}
|
|
2563
|
-
if (
|
|
2564
|
-
if (
|
|
2565
|
-
if (
|
|
2566
|
-
if (
|
|
2567
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION ||
|
|
2281
|
+
if ('TEAMCITY_VERSION' in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
2282
|
+
if ('truecolor' === env.COLORTERM) return 3;
|
|
2283
|
+
if ('xterm-kitty' === env.TERM) return 3;
|
|
2284
|
+
if ('TERM_PROGRAM' in env) {
|
|
2285
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
|
2568
2286
|
switch(env.TERM_PROGRAM){
|
|
2569
|
-
case
|
|
2287
|
+
case 'iTerm.app':
|
|
2570
2288
|
return version >= 3 ? 3 : 2;
|
|
2571
|
-
case
|
|
2289
|
+
case 'Apple_Terminal':
|
|
2572
2290
|
return 2;
|
|
2573
2291
|
}
|
|
2574
2292
|
}
|
|
2575
2293
|
if (/-256(color)?$/i.test(env.TERM)) return 2;
|
|
2576
2294
|
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
2577
|
-
if (
|
|
2295
|
+
if ('COLORTERM' in env) return 1;
|
|
2578
2296
|
return min;
|
|
2579
2297
|
}
|
|
2580
2298
|
function createSupportsColor(stream, options = {}) {
|
|
@@ -2584,52 +2302,49 @@ function createSupportsColor(stream, options = {}) {
|
|
|
2584
2302
|
});
|
|
2585
2303
|
return translateLevel(level);
|
|
2586
2304
|
}
|
|
2587
|
-
|
|
2305
|
+
const supportsColor = {
|
|
2588
2306
|
stdout: createSupportsColor({
|
|
2589
|
-
isTTY:
|
|
2307
|
+
isTTY: node_tty.isatty(1)
|
|
2590
2308
|
}),
|
|
2591
2309
|
stderr: createSupportsColor({
|
|
2592
|
-
isTTY:
|
|
2310
|
+
isTTY: node_tty.isatty(2)
|
|
2593
2311
|
})
|
|
2594
2312
|
};
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
var formatter = (open, close, replace = open)=>colorLevel >= 2 ? (input)=>{
|
|
2603
|
-
let string = "" + input;
|
|
2313
|
+
const supports_color = supportsColor;
|
|
2314
|
+
const colorLevel = supports_color.stdout ? supports_color.stdout.level : 0;
|
|
2315
|
+
let errorStackRegExp = /at\s.*:\d+:\d+[\s\)]*$/;
|
|
2316
|
+
let anonymousErrorStackRegExp = /at\s.*\(<anonymous>\)$/;
|
|
2317
|
+
let isErrorStackMessage = (message)=>errorStackRegExp.test(message) || anonymousErrorStackRegExp.test(message);
|
|
2318
|
+
let formatter = (open, close, replace = open)=>colorLevel >= 2 ? (input)=>{
|
|
2319
|
+
let string = '' + input;
|
|
2604
2320
|
let index = string.indexOf(close, open.length);
|
|
2605
2321
|
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
2606
2322
|
} : String;
|
|
2607
|
-
|
|
2323
|
+
let replaceClose = (string, close, replace, index)=>{
|
|
2608
2324
|
let start = string.substring(0, index) + replace;
|
|
2609
2325
|
let end = string.substring(index + close.length);
|
|
2610
2326
|
let nextIndex = end.indexOf(close);
|
|
2611
2327
|
return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;
|
|
2612
2328
|
};
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
var startColor = [
|
|
2329
|
+
const bold = formatter('\x1b[1m', '\x1b[22m', '\x1b[22m\x1b[1m');
|
|
2330
|
+
const red = formatter('\x1b[31m', '\x1b[39m');
|
|
2331
|
+
const green = formatter('\x1b[32m', '\x1b[39m');
|
|
2332
|
+
const yellow = formatter('\x1b[33m', '\x1b[39m');
|
|
2333
|
+
const magenta = formatter('\x1b[35m', '\x1b[39m');
|
|
2334
|
+
const cyan = formatter('\x1b[36m', '\x1b[39m');
|
|
2335
|
+
const gray = formatter('\x1b[90m', '\x1b[39m');
|
|
2336
|
+
let startColor = [
|
|
2622
2337
|
189,
|
|
2623
2338
|
255,
|
|
2624
2339
|
243
|
|
2625
2340
|
];
|
|
2626
|
-
|
|
2341
|
+
let endColor = [
|
|
2627
2342
|
74,
|
|
2628
2343
|
194,
|
|
2629
2344
|
154
|
|
2630
2345
|
];
|
|
2631
|
-
|
|
2632
|
-
|
|
2346
|
+
let isWord = (char)=>!/[\s\n]/.test(char);
|
|
2347
|
+
let gradient = (message)=>{
|
|
2633
2348
|
if (colorLevel < 3) return 2 === colorLevel ? bold(cyan(message)) : message;
|
|
2634
2349
|
let chars = [
|
|
2635
2350
|
...message
|
|
@@ -2641,175 +2356,213 @@ var gradient = (message)=>{
|
|
|
2641
2356
|
let rStep = (endColor[0] - r) / steps;
|
|
2642
2357
|
let gStep = (endColor[1] - g) / steps;
|
|
2643
2358
|
let bStep = (endColor[2] - b) / steps;
|
|
2644
|
-
let output =
|
|
2359
|
+
let output = '';
|
|
2645
2360
|
for (let char of chars){
|
|
2646
2361
|
if (isWord(char)) {
|
|
2647
2362
|
r += rStep;
|
|
2648
2363
|
g += gStep;
|
|
2649
2364
|
b += bStep;
|
|
2650
2365
|
}
|
|
2651
|
-
output += `\
|
|
2366
|
+
output += `\x1b[38;2;${Math.round(r)};${Math.round(g)};${Math.round(b)}m${char}\x1b[39m`;
|
|
2652
2367
|
}
|
|
2653
2368
|
return bold(output);
|
|
2654
2369
|
};
|
|
2655
|
-
|
|
2656
|
-
|
|
2370
|
+
let LOG_LEVEL = {
|
|
2371
|
+
silent: -1,
|
|
2657
2372
|
error: 0,
|
|
2658
2373
|
warn: 1,
|
|
2659
2374
|
info: 2,
|
|
2660
|
-
log:
|
|
2661
|
-
verbose:
|
|
2375
|
+
log: 2,
|
|
2376
|
+
verbose: 3
|
|
2662
2377
|
};
|
|
2663
|
-
|
|
2664
|
-
// Level error
|
|
2378
|
+
let LOG_TYPES = {
|
|
2665
2379
|
error: {
|
|
2666
|
-
label:
|
|
2667
|
-
level:
|
|
2380
|
+
label: 'error',
|
|
2381
|
+
level: 'error',
|
|
2668
2382
|
color: red
|
|
2669
2383
|
},
|
|
2670
|
-
// Level warn
|
|
2671
2384
|
warn: {
|
|
2672
|
-
label:
|
|
2673
|
-
level:
|
|
2385
|
+
label: 'warn',
|
|
2386
|
+
level: 'warn',
|
|
2674
2387
|
color: yellow
|
|
2675
2388
|
},
|
|
2676
|
-
// Level info
|
|
2677
2389
|
info: {
|
|
2678
|
-
label:
|
|
2679
|
-
level:
|
|
2390
|
+
label: 'info',
|
|
2391
|
+
level: 'info',
|
|
2680
2392
|
color: cyan
|
|
2681
2393
|
},
|
|
2682
2394
|
start: {
|
|
2683
|
-
label:
|
|
2684
|
-
level:
|
|
2395
|
+
label: 'start',
|
|
2396
|
+
level: 'info',
|
|
2685
2397
|
color: cyan
|
|
2686
2398
|
},
|
|
2687
2399
|
ready: {
|
|
2688
|
-
label:
|
|
2689
|
-
level:
|
|
2400
|
+
label: 'ready',
|
|
2401
|
+
level: 'info',
|
|
2690
2402
|
color: green
|
|
2691
2403
|
},
|
|
2692
2404
|
success: {
|
|
2693
|
-
label:
|
|
2694
|
-
level:
|
|
2405
|
+
label: 'success',
|
|
2406
|
+
level: 'info',
|
|
2695
2407
|
color: green
|
|
2696
2408
|
},
|
|
2697
|
-
// Level log
|
|
2698
2409
|
log: {
|
|
2699
|
-
level:
|
|
2410
|
+
level: 'info'
|
|
2700
2411
|
},
|
|
2701
|
-
// Level debug
|
|
2702
2412
|
debug: {
|
|
2703
|
-
label:
|
|
2704
|
-
level:
|
|
2413
|
+
label: 'debug',
|
|
2414
|
+
level: 'verbose',
|
|
2705
2415
|
color: magenta
|
|
2706
2416
|
}
|
|
2707
2417
|
};
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
let maxLevel = options.level || "log";
|
|
2418
|
+
let createLogger = (options = {})=>{
|
|
2419
|
+
let maxLevel = options.level || 'info';
|
|
2711
2420
|
let log = (type, message, ...args)=>{
|
|
2712
2421
|
if (LOG_LEVEL[LOG_TYPES[type].level] > LOG_LEVEL[maxLevel]) return;
|
|
2713
2422
|
if (null == message) return console.log();
|
|
2714
2423
|
let logType = LOG_TYPES[type];
|
|
2715
|
-
let label =
|
|
2716
|
-
let text =
|
|
2717
|
-
if (
|
|
2718
|
-
label = (logType.label ||
|
|
2424
|
+
let label = '';
|
|
2425
|
+
let text = '';
|
|
2426
|
+
if ('label' in logType) {
|
|
2427
|
+
label = (logType.label || '').padEnd(7);
|
|
2719
2428
|
label = bold(logType.color ? logType.color(label) : label);
|
|
2720
2429
|
}
|
|
2721
|
-
if (message instanceof Error) {
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
let lines = message.split("\n");
|
|
2730
|
-
text = lines.map((line)=>isErrorStackMessage(line) ? gray(line) : line).join("\n");
|
|
2430
|
+
if (message instanceof Error) if (message.stack) {
|
|
2431
|
+
let [name, ...rest] = message.stack.split('\n');
|
|
2432
|
+
if (name.startsWith('Error: ')) name = name.slice(7);
|
|
2433
|
+
text = `${name}\n${gray(rest.join('\n'))}`;
|
|
2434
|
+
} else text = message.message;
|
|
2435
|
+
else if ('error' === logType.level && 'string' == typeof message) {
|
|
2436
|
+
let lines = message.split('\n');
|
|
2437
|
+
text = lines.map((line)=>isErrorStackMessage(line) ? gray(line) : line).join('\n');
|
|
2731
2438
|
} else text = `${message}`;
|
|
2732
2439
|
console.log(label.length ? `${label} ${text}` : text, ...args);
|
|
2733
2440
|
};
|
|
2734
|
-
let
|
|
2735
|
-
greet: (message)=>log(
|
|
2441
|
+
let logger = {
|
|
2442
|
+
greet: (message)=>log('log', gradient(message))
|
|
2736
2443
|
};
|
|
2737
2444
|
Object.keys(LOG_TYPES).forEach((key)=>{
|
|
2738
|
-
|
|
2445
|
+
logger[key] = (...args)=>log(key, ...args);
|
|
2739
2446
|
});
|
|
2740
|
-
Object.defineProperty(
|
|
2447
|
+
Object.defineProperty(logger, 'level', {
|
|
2741
2448
|
get: ()=>maxLevel,
|
|
2742
2449
|
set (val) {
|
|
2743
2450
|
maxLevel = val;
|
|
2744
2451
|
}
|
|
2745
2452
|
});
|
|
2746
|
-
|
|
2747
|
-
Object.assign(
|
|
2453
|
+
logger.override = (customLogger)=>{
|
|
2454
|
+
Object.assign(logger, customLogger);
|
|
2748
2455
|
};
|
|
2749
|
-
return
|
|
2456
|
+
return logger;
|
|
2750
2457
|
};
|
|
2751
|
-
|
|
2752
|
-
var logger = createLogger();
|
|
2753
|
-
// EXTERNAL MODULE: external "path"
|
|
2458
|
+
let src_logger = createLogger();
|
|
2754
2459
|
var external_path_ = __webpack_require__("path");
|
|
2755
|
-
|
|
2756
|
-
var dist = __webpack_require__("./node_modules/.pnpm/fdir@6.4.2_picomatch@4.0.2/node_modules/fdir/dist/index.js");
|
|
2757
|
-
// EXTERNAL MODULE: ./node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/index.js
|
|
2460
|
+
var dist = __webpack_require__("./node_modules/.pnpm/fdir@6.4.6_picomatch@4.0.2/node_modules/fdir/dist/index.js");
|
|
2758
2461
|
var picomatch = __webpack_require__("./node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/index.js");
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2462
|
+
const ONLY_PARENT_DIRECTORIES = /^(\/?\.\.)+$/;
|
|
2463
|
+
function getPartialMatcher(patterns, options) {
|
|
2464
|
+
const patternsCount = patterns.length;
|
|
2465
|
+
const patternsParts = Array(patternsCount);
|
|
2466
|
+
const regexes = Array(patternsCount);
|
|
2467
|
+
for(let i = 0; i < patternsCount; i++){
|
|
2468
|
+
const parts = splitPattern(patterns[i]);
|
|
2469
|
+
patternsParts[i] = parts;
|
|
2470
|
+
const partsCount = parts.length;
|
|
2471
|
+
const partRegexes = Array(partsCount);
|
|
2472
|
+
for(let j = 0; j < partsCount; j++)partRegexes[j] = picomatch.makeRe(parts[j], options);
|
|
2473
|
+
regexes[i] = partRegexes;
|
|
2474
|
+
}
|
|
2475
|
+
return (input)=>{
|
|
2476
|
+
const inputParts = input.split("/");
|
|
2477
|
+
if (".." === inputParts[0] && ONLY_PARENT_DIRECTORIES.test(input)) return true;
|
|
2478
|
+
for(let i = 0; i < patterns.length; i++){
|
|
2479
|
+
const patternParts = patternsParts[i];
|
|
2480
|
+
const regex = regexes[i];
|
|
2481
|
+
const inputPatternCount = inputParts.length;
|
|
2482
|
+
const minParts = Math.min(inputPatternCount, patternParts.length);
|
|
2483
|
+
let j = 0;
|
|
2484
|
+
while(j < minParts){
|
|
2485
|
+
const part = patternParts[j];
|
|
2486
|
+
if (part.includes("/")) return true;
|
|
2487
|
+
const match = regex[j].test(inputParts[j]);
|
|
2488
|
+
if (!match) break;
|
|
2489
|
+
if ("**" === part) return true;
|
|
2490
|
+
j++;
|
|
2491
|
+
}
|
|
2492
|
+
if (j === inputPatternCount) return true;
|
|
2493
|
+
}
|
|
2494
|
+
return false;
|
|
2495
|
+
};
|
|
2764
2496
|
}
|
|
2765
|
-
|
|
2766
|
-
|
|
2497
|
+
const splitPatternOptions = {
|
|
2498
|
+
parts: true
|
|
2499
|
+
};
|
|
2500
|
+
function splitPattern(path$1) {
|
|
2501
|
+
var _result$parts;
|
|
2502
|
+
const result = picomatch.scan(path$1, splitPatternOptions);
|
|
2503
|
+
return (null == (_result$parts = result.parts) ? void 0 : _result$parts.length) ? result.parts : [
|
|
2504
|
+
path$1
|
|
2505
|
+
];
|
|
2767
2506
|
}
|
|
2768
|
-
process.platform;
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2507
|
+
const isWin = "win32" === process.platform;
|
|
2508
|
+
const POSIX_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g;
|
|
2509
|
+
const WIN32_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g;
|
|
2510
|
+
const escapePosixPath = (path$1)=>path$1.replace(POSIX_UNESCAPED_GLOB_SYMBOLS, "\\$&");
|
|
2511
|
+
const escapeWin32Path = (path$1)=>path$1.replace(WIN32_UNESCAPED_GLOB_SYMBOLS, "\\$&");
|
|
2512
|
+
const escapePath = isWin ? escapeWin32Path : escapePosixPath;
|
|
2774
2513
|
function isDynamicPattern(pattern, options) {
|
|
2775
2514
|
if ((null == options ? void 0 : options.caseSensitiveMatch) === false) return true;
|
|
2776
2515
|
const scan = picomatch.scan(pattern);
|
|
2777
2516
|
return scan.isGlob || scan.negated;
|
|
2778
2517
|
}
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2518
|
+
function dist_log(...tasks) {
|
|
2519
|
+
console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`, ...tasks);
|
|
2520
|
+
}
|
|
2521
|
+
const PARENT_DIRECTORY = /^(\/?\.\.)+/;
|
|
2522
|
+
const ESCAPING_BACKSLASHES = /\\(?=[()[\]{}!*+?@|])/g;
|
|
2523
|
+
const BACKSLASHES = /\\/g;
|
|
2524
|
+
function normalizePattern(pattern, expandDirectories, cwd, props, isIgnore) {
|
|
2782
2525
|
let result = pattern;
|
|
2783
2526
|
if (pattern.endsWith("/")) result = pattern.slice(0, -1);
|
|
2784
2527
|
if (!result.endsWith("*") && expandDirectories) result += "/**";
|
|
2785
|
-
|
|
2786
|
-
|
|
2528
|
+
const escapedCwd = escapePath(cwd);
|
|
2529
|
+
result = external_path_["default"].isAbsolute(result.replace(ESCAPING_BACKSLASHES, "")) ? external_path_.posix.relative(escapedCwd, result) : external_path_.posix.normalize(result);
|
|
2530
|
+
const parentDirectoryMatch = PARENT_DIRECTORY.exec(result);
|
|
2531
|
+
const parts = splitPattern(result);
|
|
2787
2532
|
if (null == parentDirectoryMatch ? void 0 : parentDirectoryMatch[0]) {
|
|
2788
|
-
const
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2533
|
+
const n = (parentDirectoryMatch[0].length + 1) / 3;
|
|
2534
|
+
let i = 0;
|
|
2535
|
+
const cwdParts = escapedCwd.split("/");
|
|
2536
|
+
while(i < n && parts[i + n] === cwdParts[cwdParts.length + i - n]){
|
|
2537
|
+
result = result.slice(0, (n - i - 1) * 3) + result.slice((n - i) * 3 + parts[i + n].length + 1) || ".";
|
|
2538
|
+
i++;
|
|
2539
|
+
}
|
|
2540
|
+
const potentialRoot = external_path_.posix.join(cwd, parentDirectoryMatch[0].slice(3 * i));
|
|
2541
|
+
if (!potentialRoot.startsWith(".") && props.root.length > potentialRoot.length) {
|
|
2542
|
+
props.root = potentialRoot;
|
|
2543
|
+
props.depthOffset = -n + i;
|
|
2792
2544
|
}
|
|
2793
|
-
}
|
|
2794
|
-
|
|
2795
|
-
null !=
|
|
2545
|
+
}
|
|
2546
|
+
if (!isIgnore && props.depthOffset >= 0) {
|
|
2547
|
+
null != props.commonPath || (props.commonPath = parts);
|
|
2796
2548
|
const newCommonPath = [];
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2549
|
+
const length = Math.min(props.commonPath.length, parts.length);
|
|
2550
|
+
for(let i = 0; i < length; i++){
|
|
2551
|
+
const part = parts[i];
|
|
2552
|
+
if ("**" === part && !parts[i + 1]) {
|
|
2800
2553
|
newCommonPath.pop();
|
|
2801
2554
|
break;
|
|
2802
2555
|
}
|
|
2803
|
-
if (part !==
|
|
2556
|
+
if (part !== props.commonPath[i] || isDynamicPattern(part) || i === parts.length - 1) break;
|
|
2804
2557
|
newCommonPath.push(part);
|
|
2805
2558
|
}
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2559
|
+
props.depthOffset = newCommonPath.length;
|
|
2560
|
+
props.commonPath = newCommonPath;
|
|
2561
|
+
props.root = newCommonPath.length > 0 ? external_path_["default"].posix.join(cwd, ...newCommonPath) : cwd;
|
|
2809
2562
|
}
|
|
2810
2563
|
return result;
|
|
2811
2564
|
}
|
|
2812
|
-
function processPatterns({ patterns, ignore = [], expandDirectories = true }, cwd,
|
|
2565
|
+
function processPatterns({ patterns, ignore = [], expandDirectories = true }, cwd, props) {
|
|
2813
2566
|
if ("string" == typeof patterns) patterns = [
|
|
2814
2567
|
patterns
|
|
2815
2568
|
];
|
|
@@ -2821,59 +2574,81 @@ function processPatterns({ patterns, ignore = [], expandDirectories = true }, cw
|
|
|
2821
2574
|
];
|
|
2822
2575
|
const matchPatterns = [];
|
|
2823
2576
|
const ignorePatterns = [];
|
|
2824
|
-
for (const pattern of ignore)if (
|
|
2825
|
-
|
|
2826
|
-
ignorePatterns.push(newPattern);
|
|
2577
|
+
for (const pattern of ignore)if (pattern) {
|
|
2578
|
+
if ("!" !== pattern[0] || "(" === pattern[1]) ignorePatterns.push(normalizePattern(pattern, expandDirectories, cwd, props, true));
|
|
2827
2579
|
}
|
|
2828
|
-
for (const pattern of patterns)if (pattern
|
|
2829
|
-
if ("!" !== pattern[
|
|
2830
|
-
|
|
2831
|
-
ignorePatterns.push(newPattern);
|
|
2832
|
-
}
|
|
2833
|
-
} else {
|
|
2834
|
-
const newPattern = normalizePattern(pattern, expandDirectories, cwd, properties, false);
|
|
2835
|
-
matchPatterns.push(newPattern);
|
|
2580
|
+
for (const pattern of patterns)if (pattern) {
|
|
2581
|
+
if ("!" !== pattern[0] || "(" === pattern[1]) matchPatterns.push(normalizePattern(pattern, expandDirectories, cwd, props, false));
|
|
2582
|
+
else if ("!" !== pattern[1] || "(" === pattern[2]) ignorePatterns.push(normalizePattern(pattern.slice(1), expandDirectories, cwd, props, true));
|
|
2836
2583
|
}
|
|
2837
2584
|
return {
|
|
2838
2585
|
match: matchPatterns,
|
|
2839
2586
|
ignore: ignorePatterns
|
|
2840
2587
|
};
|
|
2841
2588
|
}
|
|
2842
|
-
function getRelativePath(
|
|
2843
|
-
return external_path_.posix.relative(cwd, `${root}/${
|
|
2589
|
+
function getRelativePath(path$1, cwd, root) {
|
|
2590
|
+
return external_path_.posix.relative(cwd, `${root}/${path$1}`) || ".";
|
|
2844
2591
|
}
|
|
2845
|
-
function processPath(
|
|
2846
|
-
const relativePath = absolute ?
|
|
2592
|
+
function processPath(path$1, cwd, root, isDirectory, absolute) {
|
|
2593
|
+
const relativePath = absolute ? path$1.slice("/" === root ? 1 : root.length + 1) || "." : path$1;
|
|
2847
2594
|
if (root === cwd) return isDirectory && "." !== relativePath ? relativePath.slice(0, -1) : relativePath;
|
|
2848
2595
|
return getRelativePath(relativePath, cwd, root);
|
|
2849
2596
|
}
|
|
2597
|
+
function formatPaths(paths, cwd, root) {
|
|
2598
|
+
for(let i = paths.length - 1; i >= 0; i--){
|
|
2599
|
+
const path$1 = paths[i];
|
|
2600
|
+
paths[i] = getRelativePath(path$1, cwd, root) + (!path$1 || path$1.endsWith("/") ? "/" : "");
|
|
2601
|
+
}
|
|
2602
|
+
return paths;
|
|
2603
|
+
}
|
|
2850
2604
|
function crawl(options, cwd, sync) {
|
|
2851
|
-
|
|
2605
|
+
if (process.env.TINYGLOBBY_DEBUG) options.debug = true;
|
|
2606
|
+
if (options.debug) dist_log("globbing with options:", options, "cwd:", cwd);
|
|
2607
|
+
if (Array.isArray(options.patterns) && 0 === options.patterns.length) return sync ? [] : Promise.resolve([]);
|
|
2608
|
+
const props = {
|
|
2852
2609
|
root: cwd,
|
|
2853
2610
|
commonPath: null,
|
|
2854
2611
|
depthOffset: 0
|
|
2855
2612
|
};
|
|
2856
|
-
const processed = processPatterns(options, cwd,
|
|
2613
|
+
const processed = processPatterns(options, cwd, props);
|
|
2614
|
+
const nocase = false === options.caseSensitiveMatch;
|
|
2615
|
+
if (options.debug) dist_log("internal processing patterns:", processed);
|
|
2857
2616
|
const matcher = picomatch(processed.match, {
|
|
2858
2617
|
dot: options.dot,
|
|
2859
|
-
nocase
|
|
2618
|
+
nocase,
|
|
2860
2619
|
ignore: processed.ignore
|
|
2861
2620
|
});
|
|
2862
|
-
const
|
|
2621
|
+
const ignore = picomatch(processed.ignore, {
|
|
2622
|
+
dot: options.dot,
|
|
2623
|
+
nocase
|
|
2624
|
+
});
|
|
2625
|
+
const partialMatcher = getPartialMatcher(processed.match, {
|
|
2863
2626
|
dot: options.dot,
|
|
2864
|
-
nocase
|
|
2627
|
+
nocase
|
|
2865
2628
|
});
|
|
2866
2629
|
const fdirOptions = {
|
|
2867
|
-
// use relative paths in the matcher
|
|
2868
2630
|
filters: [
|
|
2869
|
-
(p, isDirectory)=>
|
|
2631
|
+
options.debug ? (p, isDirectory)=>{
|
|
2632
|
+
const path$1 = processPath(p, cwd, props.root, isDirectory, options.absolute);
|
|
2633
|
+
const matches = matcher(path$1);
|
|
2634
|
+
if (matches) dist_log(`matched ${path$1}`);
|
|
2635
|
+
return matches;
|
|
2636
|
+
} : (p, isDirectory)=>matcher(processPath(p, cwd, props.root, isDirectory, options.absolute))
|
|
2870
2637
|
],
|
|
2871
|
-
exclude: (_, p)=>
|
|
2638
|
+
exclude: options.debug ? (_, p)=>{
|
|
2639
|
+
const relativePath = processPath(p, cwd, props.root, true, true);
|
|
2640
|
+
const skipped = "." !== relativePath && !partialMatcher(relativePath) || ignore(relativePath);
|
|
2641
|
+
skipped ? dist_log(`skipped ${p}`) : dist_log(`crawling ${p}`);
|
|
2642
|
+
return skipped;
|
|
2643
|
+
} : (_, p)=>{
|
|
2644
|
+
const relativePath = processPath(p, cwd, props.root, true, true);
|
|
2645
|
+
return "." !== relativePath && !partialMatcher(relativePath) || ignore(relativePath);
|
|
2646
|
+
},
|
|
2872
2647
|
pathSeparator: "/",
|
|
2873
2648
|
relativePaths: true,
|
|
2874
2649
|
resolveSymlinks: true
|
|
2875
2650
|
};
|
|
2876
|
-
if (options.deep) fdirOptions.maxDepth = Math.round(options.deep -
|
|
2651
|
+
if (void 0 !== options.deep) fdirOptions.maxDepth = Math.round(options.deep - props.depthOffset);
|
|
2877
2652
|
if (options.absolute) {
|
|
2878
2653
|
fdirOptions.relativePaths = false;
|
|
2879
2654
|
fdirOptions.resolvePaths = true;
|
|
@@ -2887,10 +2662,12 @@ function crawl(options, cwd, sync) {
|
|
|
2887
2662
|
fdirOptions.excludeFiles = true;
|
|
2888
2663
|
fdirOptions.includeDirs = true;
|
|
2889
2664
|
} else if (false === options.onlyFiles) fdirOptions.includeDirs = true;
|
|
2890
|
-
|
|
2891
|
-
const
|
|
2892
|
-
if (
|
|
2893
|
-
|
|
2665
|
+
props.root = props.root.replace(BACKSLASHES, "");
|
|
2666
|
+
const root = props.root;
|
|
2667
|
+
if (options.debug) dist_log("internal properties:", props);
|
|
2668
|
+
const api = new dist.fdir(fdirOptions).crawl(root);
|
|
2669
|
+
if (cwd === root || options.absolute) return sync ? api.sync() : api.withPromise();
|
|
2670
|
+
return sync ? formatPaths(api.sync(), cwd, root) : api.withPromise().then((paths)=>formatPaths(paths, cwd, root));
|
|
2894
2671
|
}
|
|
2895
2672
|
async function glob(patternsOrOptions, options) {
|
|
2896
2673
|
if (patternsOrOptions && (null == options ? void 0 : options.patterns)) throw new Error("Cannot pass patterns as both an argument and an option");
|
|
@@ -2898,14 +2675,14 @@ async function glob(patternsOrOptions, options) {
|
|
|
2898
2675
|
...options,
|
|
2899
2676
|
patterns: patternsOrOptions
|
|
2900
2677
|
} : patternsOrOptions;
|
|
2901
|
-
const cwd = opts.cwd ? external_path_["default"].resolve(opts.cwd).replace(
|
|
2678
|
+
const cwd = opts.cwd ? external_path_["default"].resolve(opts.cwd).replace(BACKSLASHES, "/") : process.cwd().replace(BACKSLASHES, "/");
|
|
2902
2679
|
return crawl(opts, cwd, false);
|
|
2903
2680
|
}
|
|
2904
|
-
var abbreviates_namespaceObject = JSON.parse('{"abi":"ABI","amd":"AMD","api":"API","ast":"AST","bom":"BOM","bsd":"BSD","cdn":"CDN","cjs":"CJS","cli":"CLI","cncf":"CNCF","cors":"CORS","cpu":"CPU","crud":"CRUD","csrf":"CSRF","css":"CSS","csv":"CSV","db2":"DB2","dns":"DNS","dom":"DOM","dos":"DOS","es6":"ES6","esm":"ESM","fbi":"FBI","ftp":"FTP","ftps":"FTPS","gcc":"GCC","gcp":"GCP","glsl":"GLSL","gorm":"GORM","gpl":"GPL","gps":"GPS","gpu":"GPU","gre":"GRE","gui":"GUI","hdmi":"HDMI","hmr":"HMR","html":"HTML","http":"HTTP","https":"HTTPS","iife":"IIFE","iot":"IoT","ipc":"IPC","ipfs":"IPFS","ipmi":"IPMI","jdbc":"JDBC","jdk":"JDK","jit":"JIT","jpeg":"JPEG","jpg":"JPG","jre":"JRE","jsf":"JSF","json":"JSON","jsonp":"JSONP","jsp":"JSP","jwt":"JWT","kcp":"KCP","kde":"KDE","kpi":"KPI","lfu":"LFU","llvm":"LLVM","lru":"LRU","lts":"LTS","mdn":"MDN","mdx":"MDX","mvc":"MVC","mvp":"MVP","mvvm":"MVVM","nft":"NFT","odbc":"ODBC","ont":"ONT","orm":"ORM","oss":"OSS","pdf":"PDF","pdo":"PDO","posix":"POSIX","pwa":"PWA","qemu":"QEMU","qgis":"QGIS","quic":"QUIC","rfc":"RFC","rom":"ROM","rpc":"RPC","rss":"RSS","rss3":"RSS3","sdk":"SDK","seo":"SEO","sip":"SIP","smtp":"SMTP","sql":"SQL","sre":"SRE","ssg":"SSG","ssh":"SSH","sso":"SSO","ssr":"SSR","stp":"STP","svg":"SVG","svn":"SVN","tcp":"TCP","tls":"TLS","toml":"TOML","tsc":"TSC","udp":"UDP","umd":"UMD","uri":"URI","url":"URL","usb":"USB","vlan":"VLAN","vnc":"VNC","vpn":"VPN","vps":"VPS","wgsl":"WGSL","wlan":"WLAN","wsa":"WSA","wsl":"WSL","xhtml":"XHTML","xml":"XML","xss":"XSS","yaml":"YAML"}');
|
|
2905
|
-
var brands_namespaceObject = JSON.parse('{"airbnb":"Airbnb","alphago":"AlphaGo","bitbucket":"Bitbucket","bytedance":"ByteDance","circleci":"CircleCI","cloudflare":"Cloudflare","freecodecamp":"freeCodeCamp","gitea":"Gitea","gitee":"Gitee","github":"GitHub","gitlab":"GitLab","gitops":"GitOps","gitpod":"Gitpod","hp":"HP","ibm":"IBM","jsdelivr":"jsDelivr","kfc":"KFC","leetcode":"LeetCode","linkedin":"LinkedIn","mcdonald":"McDonald","nvidia":"NVIDIA","pagerduty":"PagerDuty","producthunt":"Product Hunt","stackblitz":"StackBlitz","stackit":"STACKIT","stackoverflow":"Stack Overflow","unjs":"UnJS","v2ex":"V2EX","youtube":"YouTube"}');
|
|
2906
|
-
var general_namespaceObject = JSON.parse('{"aiaas":"AIaaS","baas":"BaaS","caas":"CaaS","daas":"DaaS","ddos":"DDoS","devops":"DevOps","devtools":"DevTools","esim":"eSIM","faas":"FaaS","iac":"IaC","iaas":"IaaS","ioc":"IoC","ipsec":"IPsec","mpaas":"mPaaS","paas":"PaaS","saas":"SaaS","wifi":"Wi-Fi","xaas":"XaaS"}');
|
|
2907
|
-
var products_namespaceObject = JSON.parse('{"airdrop":"AirDrop","airpods":"AirPods","airtag":"AirTag","homekit":"HomeKit","homepod":"HomePod","imac":"iMac","ipad":"iPad","iphone":"iPhone","ipod":"iPod","macbook":"MacBook","macbook air":"MacBook Air","macbook pro":"MacBook Pro","yubikey":"YubiKey"}');
|
|
2908
|
-
var softwares_namespaceObject = JSON.parse('{"1password":"1Password","3dtiles":"3DTiles","actionscript":"ActionScript","adblock":"AdBlock","ajax":"AJAX","alipay":"Alipay","amap":"AMap","angularjs":"AngularJS","ant design":"Ant Design","ant design vue":"Ant Design Vue","antd":"AntD","antdesign":"AntDesign","antdesignvue":"AntDesignVue","antv":"AntV","apifox":"Apifox","app store":"App Store","apple pay":"Apple Pay","applescript":"AppleScript","appletalk":"AppleTalk","arangodb":"ArangoDB","arcgis":"ArcGIS","arcmap":"ArcMap","arcobjects":"ArcObjects","beego":"Beego","bittorrent":"BitTorrent","bluesky":"Bluesky","busybox":"BusyBox","centos":"CentOS","cesiumjs":"CesiumJS","chatgpt":"ChatGPT","citygml":"CityGML","cityjson":"CityJSON","ckeditor":"CKEditor","clashx":"ClashX","clickhouse":"ClickHouse","cloudfront":"CloudFront","cmake":"CMake","cockroachdb":"CockroachDB","cocoapods":"CocoaPods","codepen":"CodePen","codesandbox":"CodeSandbox","coffeescript":"CoffeeScript","commonjs":"CommonJS","composition api":"Composition API","compositionapi":"CompositionAPI","coredns":"CoreDNS","css modules":"CSS Modules","dapr":"Dapr","datadog":"Datadog","datagrip":"DataGrip","dbase":"dBase","definitelytyped":"DefinitelyTyped","denodeploy":"DenoDeploy","digital ocean":"DigitalOcean","digitalocean":"DigitalOcean","dingtalk":"DingTalk","directx":"DirectX","django":"Django","duckduckgo":"DuckDuckGo","dynamodb":"DynamoDB","echarts":"ECharts","ecmascript":"ECMAScript","edgedb":"EdgeDB","eggjs":"Egg.js","elasticsearch":"Elasticsearch","element plus":"Element Plus","elementui":"ElementUI","esbuild":"esbuild","eslint":"ESLint","esxi":"ESXi","etcd":"etcd","facetime":"FaceTime","fastapi":"FastAPI","ffmpeg":"FFmpeg","filezilla":"FileZilla","firefox":"Firefox","freemarker":"FreeMarker","gdnative":"GDNative","gdscript":"GDScript","geforce":"GeForce","geojson":"GeoJSON","geopackage":"GeoPackage","geopandas":"GeoPandas","geoserver":"GeoServer","gitbook":"GitBook","gitkraken":"GitKraken","gltf":"glTF","gnome":"GNOME","gnu":"GNU","gnupg":"GnuPG","goland":"GoLand","google pay":"Google Pay","graphql":"GraphQL","greensock":"GreenSock","grpc":"gRPC","hackernews":"Hacker News","hacpai":"HacPai","hbase":"HBase","hbuilderx":"HBuilderX","ibook":"iBook","icloud":"iCloud","idrac":"iDRAC","ilo":"iLO","imessage":"iMessage","imovie":"iMovie","imtoken":"imToken","influxdb":"InfluxDB","intellij":"IntelliJ","intellij idea":"IntelliJ IDEA","ios":"iOS","ipados":"iPadOS","iphoto":"iPhoto","iscsi":"iSCSI","iterm":"iTerm","itunes":"iTunes","iwork":"iWork","javascript":"JavaScript","jetbrains":"JetBrains","jquery":"jQuery","jsdoc":"JSDoc","jupyterlab":"JupyterLab","katex":"KaTeX","kubernetes":"Kubernetes","latex":"LaTeX","less":"Less","libreoffice":"LibreOffice","line pay":"LINE Pay","lineageos":"LineageOS","macos":"macOS","mariadb":"MariaDB","markdown":"Markdown","markdownlint":"MarkdownLint","mathieu":"MATHIEU","mathjax":"MathJax","mathml":"MathML","mathtype":"MathType","matlab":"MATLAB","mediawiki":"MediaWiki","memcached":"Memcached","messagepack":"MessagePack","metamask":"MetaMask","mkdocs":"MkDocs","mlaas":"MLaaS","mlops":"MLOps","mobx":"MobX","mongodb":"MongoDB","mongoose":"Mongoose","ms-dos":"MS-DOS","mybatis":"MyBatis","mysql":"MySQL","naive ui":"Naive UI","naiveui":"NaiveUI","neo4j":"Neo4j","nestjs":"NestJS","netbeans":"NetBeans","netbios":"NetBIOS","nextjs":"Next.js","nixos":"NixOS","nocodb":"NocoDB","node.js":"Node.js","nosql":"NoSQL","notepad ++":"Notepad++","npm":"npm","numpy":"NumPy","nuxtjs":"NuxtJS","oauth":"OAuth","obs":"OBS","ocaml":"OCaml","onedrive":"OneDrive","onenote":"OneNote","openai":"OpenAI","openapi":"OpenAPI","opencv":"OpenCV","openfaas":"OpenFaaS","openflow":"OpenFlow","opengauss":"openGauss","opengl":"OpenGL","opengl es":"OpenGL ES","openjdk":"OpenJDK","openlayers":"OpenLayers","openpgp":"OpenPGP","opensea":"OpenSea","openssl":"OpenSSL","openstack":"OpenStack","openstreetmap":"OpenStreetMap","opensuse":"openSUSE","openvino":"OpenVINO","openwrt":"OpenWrt","opnsense":"OPNsense","pagp":"PAgP","paypal":"PayPal","photoshop":"Photoshop","php":"PHP","phpstorm":"PhpStorm","pihole":"Pi-hole","planetscale":"PlanetScale","postcss":"PostCSS","postgis":"PostGIS","postgresql":"PostgreSQL","potplayer":"PotPlayer","powerpoint":"PowerPoint","powershell":"PowerShell","premid":"PreMiD","primevue":"PrimeVue","protobuf":"Protobuf","pycharm":"PyCharm","pytorch":"PyTorch","qtscript":"QtScript","raii":"RAII","react native":"React Native","redhat":"RedHat","redisearch":"RediSearch","redisjson":"RedisJSON","rescript":"ReScript","restful":"RESTful","rethinkdb":"RethinkDB","rsshub":"RSSHub","rust":"Rust","rxdb":"RxDB","rxjs":"RxJS","samsung pay":"Samsung Pay","sass":"Sass","scss":"SCSS","segmentfault":"SegmentFault","socket.io":"Socket.IO","solarwinds":"SolarWinds","spatiallite":"SpatialLite","spir-v":"SPIR-V","springboot":"SpringBoot","springcloud":"SpringCloud","springmvc":"SpringMVC","sqlite":"SQLite","sqlserver":"SQLServer","storybook":"Storybook","stylus":"Stylus","sublime text":"Sublime Text","surrealdb":"SurrealDB","sveltekit":"SvelteKit","tailwind css":"Tailwind CSS","tailwindcss":"TailwindCSS","teamviewer":"TeamViewer","tensorflow":"TensorFlow","testflight":"TestFlight","tex":"TeX","threejs":"ThreeJS","tianocore":"TianoCore","tidb":"TiDB","tiflash":"TiFlash","tiktok":"TikTok","tikv":"TiKV","travis ci":"Travis CI","trpc":"tRPC","tsconfig":"TSConfig","tsdoc":"TSDoc","tsdx":"TSdx","turbopack":"Turbopack","turborepo":"Turborepo","typeorm":"TypeORM","typescript":"TypeScript","uniapp":"uniapp","unifi":"UniFi","unix":"UNIX","unocss":"UnoCSS","upnp":"UPnP","vercel":"Vercel","videolan":"VideoLAN","vim":"VIM","virtualbox":"VirtualBox","visual studio":"Visual Studio","visual studio code":"Visual Studio Code","vitepress":"VitePress","vividcortex":"VividCortex","vlc":"VLC","vmware":"VMware","voip":"VoIP","vs code":"VS Code","vs codium":"VSCodium","vscode":"VS Code","vscodium":"VSCodium","vue cli":"Vue CLI","vuepress":"VuePress","vueuse":"VueUse","vulkan":"Vulkan","w3c":"W3C","wasm":"Wasm","watchos":"watchOS","web assembly":"WebAssembly","webar":"WebAR","webassembly":"WebAssembly","webgl":"WebGL","webgpu":"WebGPU","webkit":"WebKit","webpack":"webpack","webrtc":"WebRTC","websocket":"WebSocket","webstorm":"WebStorm","webvr":"WebVR","webxr":"WebXR","wechat":"WeChat","wechat pay":"WeChat Pay","whatsapp":"WhatsApp","windi css":"Windi CSS","windicss":"WindiCSS","wireguard":"WireGuard","wordpress":"WordPress","xmind":"XMind","xstate":"XState","yapi":"YApi"}');
|
|
2681
|
+
var abbreviates_namespaceObject = JSON.parse('{"abi":"ABI","amd":"AMD","api":"API","ast":"AST","bom":"BOM","bsd":"BSD","cdn":"CDN","cjs":"CJS","cli":"CLI","cncf":"CNCF","cors":"CORS","cpu":"CPU","crud":"CRUD","csrf":"CSRF","css":"CSS","csv":"CSV","db2":"DB2","dns":"DNS","dom":"DOM","dos":"DOS","es6":"ES6","esm":"ESM","fbi":"FBI","ftp":"FTP","ftps":"FTPS","gcc":"GCC","gcp":"GCP","glsl":"GLSL","gorm":"GORM","gpl":"GPL","gps":"GPS","gpu":"GPU","gre":"GRE","gui":"GUI","hdmi":"HDMI","hmr":"HMR","html":"HTML","http":"HTTP","https":"HTTPS","iife":"IIFE","iot":"IoT","ipc":"IPC","ipfs":"IPFS","ipmi":"IPMI","jdbc":"JDBC","jdk":"JDK","jit":"JIT","jpeg":"JPEG","jpg":"JPG","jre":"JRE","jsf":"JSF","json":"JSON","jsonp":"JSONP","jsp":"JSP","jwt":"JWT","kcp":"KCP","kde":"KDE","kpi":"KPI","lfu":"LFU","llvm":"LLVM","lru":"LRU","lts":"LTS","mdn":"MDN","mdx":"MDX","mvc":"MVC","mvp":"MVP","mvvm":"MVVM","nft":"NFT","odbc":"ODBC","ont":"ONT","orm":"ORM","oss":"OSS","pdf":"PDF","pdo":"PDO","posix":"POSIX","pwa":"PWA","qemu":"QEMU","qgis":"QGIS","quic":"QUIC","rfc":"RFC","rom":"ROM","rpc":"RPC","rss":"RSS","rss3":"RSS3","sdk":"SDK","seo":"SEO","sip":"SIP","smtp":"SMTP","sql":"SQL","sre":"SRE","ssg":"SSG","ssh":"SSH","sso":"SSO","ssr":"SSR","stp":"STP","svg":"SVG","svn":"SVN","tcp":"TCP","tls":"TLS","toml":"TOML","tsc":"TSC","udp":"UDP","umd":"UMD","uri":"URI","url":"URL","usb":"USB","vlan":"VLAN","vnc":"VNC","vpn":"VPN","vps":"VPS","wgsl":"WGSL","wlan":"WLAN","wsa":"WSA","wsl":"WSL","xhtml":"XHTML","xml":"XML","xss":"XSS","yaml":"YAML"}');
|
|
2682
|
+
var brands_namespaceObject = JSON.parse('{"airbnb":"Airbnb","alphago":"AlphaGo","bitbucket":"Bitbucket","bytedance":"ByteDance","circleci":"CircleCI","cloudflare":"Cloudflare","freecodecamp":"freeCodeCamp","gitea":"Gitea","gitee":"Gitee","github":"GitHub","gitlab":"GitLab","gitops":"GitOps","gitpod":"Gitpod","hp":"HP","ibm":"IBM","jsdelivr":"jsDelivr","kfc":"KFC","leetcode":"LeetCode","linkedin":"LinkedIn","mcdonald":"McDonald","nvidia":"NVIDIA","pagerduty":"PagerDuty","producthunt":"Product Hunt","stackblitz":"StackBlitz","stackit":"STACKIT","stackoverflow":"Stack Overflow","unjs":"UnJS","v2ex":"V2EX","youtube":"YouTube"}');
|
|
2683
|
+
var general_namespaceObject = JSON.parse('{"aiaas":"AIaaS","baas":"BaaS","caas":"CaaS","daas":"DaaS","ddos":"DDoS","devops":"DevOps","devtools":"DevTools","esim":"eSIM","faas":"FaaS","iac":"IaC","iaas":"IaaS","ioc":"IoC","ipsec":"IPsec","mpaas":"mPaaS","paas":"PaaS","saas":"SaaS","wifi":"Wi-Fi","xaas":"XaaS"}');
|
|
2684
|
+
var products_namespaceObject = JSON.parse('{"airdrop":"AirDrop","airpods":"AirPods","airtag":"AirTag","homekit":"HomeKit","homepod":"HomePod","imac":"iMac","ipad":"iPad","iphone":"iPhone","ipod":"iPod","macbook":"MacBook","macbook air":"MacBook Air","macbook pro":"MacBook Pro","yubikey":"YubiKey"}');
|
|
2685
|
+
var softwares_namespaceObject = JSON.parse('{"1password":"1Password","3dtiles":"3DTiles","actionscript":"ActionScript","adblock":"AdBlock","ajax":"AJAX","alipay":"Alipay","amap":"AMap","angularjs":"AngularJS","ant design":"Ant Design","ant design vue":"Ant Design Vue","antd":"AntD","antdesign":"AntDesign","antdesignvue":"AntDesignVue","antv":"AntV","apifox":"Apifox","app store":"App Store","apple pay":"Apple Pay","applescript":"AppleScript","appletalk":"AppleTalk","arangodb":"ArangoDB","arcgis":"ArcGIS","arcmap":"ArcMap","arcobjects":"ArcObjects","beego":"Beego","bittorrent":"BitTorrent","bluesky":"Bluesky","busybox":"BusyBox","centos":"CentOS","cesiumjs":"CesiumJS","chatgpt":"ChatGPT","citygml":"CityGML","cityjson":"CityJSON","ckeditor":"CKEditor","clashx":"ClashX","clickhouse":"ClickHouse","cloudfront":"CloudFront","cmake":"CMake","cockroachdb":"CockroachDB","cocoapods":"CocoaPods","codepen":"CodePen","codesandbox":"CodeSandbox","coffeescript":"CoffeeScript","commonjs":"CommonJS","composition api":"Composition API","compositionapi":"CompositionAPI","coredns":"CoreDNS","css modules":"CSS Modules","dapr":"Dapr","datadog":"Datadog","datagrip":"DataGrip","dbase":"dBase","definitelytyped":"DefinitelyTyped","denodeploy":"DenoDeploy","digital ocean":"DigitalOcean","digitalocean":"DigitalOcean","dingtalk":"DingTalk","directx":"DirectX","django":"Django","duckduckgo":"DuckDuckGo","dynamodb":"DynamoDB","echarts":"ECharts","ecmascript":"ECMAScript","edgedb":"EdgeDB","eggjs":"Egg.js","elasticsearch":"Elasticsearch","element plus":"Element Plus","elementui":"ElementUI","esbuild":"esbuild","eslint":"ESLint","esxi":"ESXi","etcd":"etcd","facetime":"FaceTime","fastapi":"FastAPI","ffmpeg":"FFmpeg","filezilla":"FileZilla","firefox":"Firefox","freemarker":"FreeMarker","gdnative":"GDNative","gdscript":"GDScript","geforce":"GeForce","geojson":"GeoJSON","geopackage":"GeoPackage","geopandas":"GeoPandas","geoserver":"GeoServer","gitbook":"GitBook","gitkraken":"GitKraken","gltf":"glTF","gnome":"GNOME","gnu":"GNU","gnupg":"GnuPG","goland":"GoLand","google pay":"Google Pay","graphql":"GraphQL","greensock":"GreenSock","grpc":"gRPC","hackernews":"Hacker News","hacpai":"HacPai","hbase":"HBase","hbuilderx":"HBuilderX","ibook":"iBook","icloud":"iCloud","idrac":"iDRAC","ilo":"iLO","imessage":"iMessage","imovie":"iMovie","imtoken":"imToken","influxdb":"InfluxDB","intellij":"IntelliJ","intellij idea":"IntelliJ IDEA","ios":"iOS","ipados":"iPadOS","iphoto":"iPhoto","iscsi":"iSCSI","iterm":"iTerm","itunes":"iTunes","iwork":"iWork","javascript":"JavaScript","jetbrains":"JetBrains","jquery":"jQuery","jsdoc":"JSDoc","jupyterlab":"JupyterLab","katex":"KaTeX","kubernetes":"Kubernetes","latex":"LaTeX","less":"Less","libreoffice":"LibreOffice","line pay":"LINE Pay","lineageos":"LineageOS","macos":"macOS","mariadb":"MariaDB","markdown":"Markdown","markdownlint":"MarkdownLint","mathieu":"MATHIEU","mathjax":"MathJax","mathml":"MathML","mathtype":"MathType","matlab":"MATLAB","mediawiki":"MediaWiki","memcached":"Memcached","messagepack":"MessagePack","metamask":"MetaMask","mkdocs":"MkDocs","mlaas":"MLaaS","mlops":"MLOps","mobx":"MobX","mongodb":"MongoDB","mongoose":"Mongoose","ms-dos":"MS-DOS","mybatis":"MyBatis","mysql":"MySQL","naive ui":"Naive UI","naiveui":"NaiveUI","neo4j":"Neo4j","nestjs":"NestJS","netbeans":"NetBeans","netbios":"NetBIOS","nextjs":"Next.js","nixos":"NixOS","nocodb":"NocoDB","node.js":"Node.js","nosql":"NoSQL","notepad ++":"Notepad++","npm":"npm","numpy":"NumPy","nuxtjs":"NuxtJS","oauth":"OAuth","obs":"OBS","ocaml":"OCaml","onedrive":"OneDrive","onenote":"OneNote","openai":"OpenAI","openapi":"OpenAPI","opencv":"OpenCV","openfaas":"OpenFaaS","openflow":"OpenFlow","opengauss":"openGauss","opengl":"OpenGL","opengl es":"OpenGL ES","openjdk":"OpenJDK","openlayers":"OpenLayers","openpgp":"OpenPGP","opensea":"OpenSea","openssl":"OpenSSL","openstack":"OpenStack","openstreetmap":"OpenStreetMap","opensuse":"openSUSE","openvino":"OpenVINO","openwrt":"OpenWrt","opnsense":"OPNsense","pagp":"PAgP","paypal":"PayPal","photoshop":"Photoshop","php":"PHP","phpstorm":"PhpStorm","pihole":"Pi-hole","planetscale":"PlanetScale","postcss":"PostCSS","postgis":"PostGIS","postgresql":"PostgreSQL","potplayer":"PotPlayer","powerpoint":"PowerPoint","powershell":"PowerShell","premid":"PreMiD","primevue":"PrimeVue","protobuf":"Protobuf","pycharm":"PyCharm","pytorch":"PyTorch","qtscript":"QtScript","raii":"RAII","react native":"React Native","redhat":"RedHat","redisearch":"RediSearch","redisjson":"RedisJSON","rescript":"ReScript","restful":"RESTful","rethinkdb":"RethinkDB","rsshub":"RSSHub","rust":"Rust","rxdb":"RxDB","rxjs":"RxJS","samsung pay":"Samsung Pay","sass":"Sass","scss":"SCSS","segmentfault":"SegmentFault","socket.io":"Socket.IO","solarwinds":"SolarWinds","spatiallite":"SpatialLite","spir-v":"SPIR-V","springboot":"SpringBoot","springcloud":"SpringCloud","springmvc":"SpringMVC","sqlite":"SQLite","sqlserver":"SQLServer","storybook":"Storybook","stylus":"Stylus","sublime text":"Sublime Text","surrealdb":"SurrealDB","sveltekit":"SvelteKit","tailwind css":"Tailwind CSS","tailwindcss":"TailwindCSS","teamviewer":"TeamViewer","tensorflow":"TensorFlow","testflight":"TestFlight","tex":"TeX","threejs":"ThreeJS","tianocore":"TianoCore","tidb":"TiDB","tiflash":"TiFlash","tiktok":"TikTok","tikv":"TiKV","travis ci":"Travis CI","trpc":"tRPC","tsconfig":"TSConfig","tsdoc":"TSDoc","tsdx":"TSdx","turbopack":"Turbopack","turborepo":"Turborepo","typeorm":"TypeORM","typescript":"TypeScript","uniapp":"uniapp","unifi":"UniFi","unix":"UNIX","unocss":"UnoCSS","upnp":"UPnP","vercel":"Vercel","videolan":"VideoLAN","vim":"VIM","virtualbox":"VirtualBox","visual studio":"Visual Studio","visual studio code":"Visual Studio Code","vitepress":"VitePress","vividcortex":"VividCortex","vlc":"VLC","vmware":"VMware","voip":"VoIP","vs code":"VS Code","vs codium":"VSCodium","vscode":"VS Code","vscodium":"VSCodium","vue cli":"Vue CLI","vuepress":"VuePress","vueuse":"VueUse","vulkan":"Vulkan","w3c":"W3C","wasm":"Wasm","watchos":"watchOS","web assembly":"WebAssembly","webar":"WebAR","webassembly":"WebAssembly","webgl":"WebGL","webgpu":"WebGPU","webkit":"WebKit","webpack":"webpack","webrtc":"WebRTC","websocket":"WebSocket","webstorm":"WebStorm","webvr":"WebVR","webxr":"WebXR","wechat":"WeChat","wechat pay":"WeChat Pay","whatsapp":"WhatsApp","windi css":"Windi CSS","windicss":"WindiCSS","wireguard":"WireGuard","wordpress":"WordPress","xmind":"XMind","xstate":"XState","yapi":"YApi"}');
|
|
2909
2686
|
const dict = [
|
|
2910
2687
|
...Object.values(abbreviates_namespaceObject),
|
|
2911
2688
|
...Object.values(brands_namespaceObject),
|
|
@@ -2931,11 +2708,12 @@ const dict = [
|
|
|
2931
2708
|
'Nextra',
|
|
2932
2709
|
'Netlify',
|
|
2933
2710
|
'Kinsta',
|
|
2934
|
-
'
|
|
2711
|
+
'Open Graph',
|
|
2935
2712
|
'Page Router',
|
|
2936
2713
|
'Parcel',
|
|
2937
2714
|
'Preact',
|
|
2938
2715
|
'Preact Refresh',
|
|
2716
|
+
'Relay',
|
|
2939
2717
|
'React',
|
|
2940
2718
|
'React Compiler',
|
|
2941
2719
|
'React Router',
|
|
@@ -2959,7 +2737,9 @@ const dict = [
|
|
|
2959
2737
|
'Vue',
|
|
2960
2738
|
'Web Workers',
|
|
2961
2739
|
'Xcode',
|
|
2962
|
-
'Zeabur'
|
|
2740
|
+
'Zeabur',
|
|
2741
|
+
'Zephyr',
|
|
2742
|
+
'Zephyr Cloud'
|
|
2963
2743
|
];
|
|
2964
2744
|
async function globMarkdownFiles(cwd) {
|
|
2965
2745
|
return glob([
|
|
@@ -2991,16 +2771,15 @@ const lineToWords = (line)=>{
|
|
|
2991
2771
|
type: 'word',
|
|
2992
2772
|
value: ''
|
|
2993
2773
|
};
|
|
2994
|
-
for (const char of line.split(''))if (/\s/.test(char))
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
} else if ('word' === lastWord.type) lastWord.value += char;
|
|
2774
|
+
for (const char of line.split(''))if (/\s/.test(char)) if ('space' === lastWord.type) lastWord.value += char;
|
|
2775
|
+
else {
|
|
2776
|
+
words.push(lastWord);
|
|
2777
|
+
lastWord = {
|
|
2778
|
+
type: 'space',
|
|
2779
|
+
value: char
|
|
2780
|
+
};
|
|
2781
|
+
}
|
|
2782
|
+
else if ('word' === lastWord.type) lastWord.value += char;
|
|
3004
2783
|
else {
|
|
3005
2784
|
words.push(lastWord);
|
|
3006
2785
|
lastWord = {
|
|
@@ -3019,9 +2798,7 @@ const formatLine = (line)=>{
|
|
|
3019
2798
|
const { type, value } = word;
|
|
3020
2799
|
if ('space' === type) continue;
|
|
3021
2800
|
if (isEnglishWord(value)) englishWords.push(value);
|
|
3022
|
-
if (englishWords.length <= 1 ||
|
|
3023
|
-
isTerm(value, line) || // only format the first-char-uppercase English words
|
|
3024
|
-
!isFirstCharUppercase(value)) continue;
|
|
2801
|
+
if (englishWords.length <= 1 || isTerm(value, line) || !isFirstCharUppercase(value)) continue;
|
|
3025
2802
|
const lowerCase = value.toLowerCase();
|
|
3026
2803
|
if (lowerCase !== value) word.value = lowerCase;
|
|
3027
2804
|
}
|
|
@@ -3033,9 +2810,9 @@ function formatContent(content, filePath) {
|
|
|
3033
2810
|
if (isTitleLine(originalLine)) {
|
|
3034
2811
|
const formattedLine = formatLine(originalLine);
|
|
3035
2812
|
if (!shouldWrite && formattedLine !== originalLine) {
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
2813
|
+
src_logger.error(`Unexpected heading case in ${picocolors_default().dim(filePath)}`);
|
|
2814
|
+
src_logger.log(` Current: ${picocolors_default().cyan(originalLine)}`);
|
|
2815
|
+
src_logger.log(` Expected: ${picocolors_default().cyan(formattedLine)}\n`);
|
|
3039
2816
|
}
|
|
3040
2817
|
return formattedLine;
|
|
3041
2818
|
}
|
|
@@ -3043,12 +2820,12 @@ function formatContent(content, filePath) {
|
|
|
3043
2820
|
}).join('\n');
|
|
3044
2821
|
}
|
|
3045
2822
|
async function formatFile(filePath) {
|
|
3046
|
-
const content = await
|
|
2823
|
+
const content = await node_fs.promises.readFile(filePath, 'utf-8');
|
|
3047
2824
|
const formatted = formatContent(content, filePath);
|
|
3048
2825
|
const isChanged = formatted !== content;
|
|
3049
2826
|
if (isChanged && shouldWrite) {
|
|
3050
|
-
await
|
|
3051
|
-
|
|
2827
|
+
await node_fs.promises.writeFile(filePath, formatted);
|
|
2828
|
+
src_logger.success(`[heading-case] formatted: ${picocolors_default().dim(filePath)}`);
|
|
3052
2829
|
}
|
|
3053
2830
|
return isChanged;
|
|
3054
2831
|
}
|
|
@@ -3059,12 +2836,11 @@ async function headingCase({ root = process.cwd() } = {}) {
|
|
|
3059
2836
|
const isFormatted = await formatFile(file);
|
|
3060
2837
|
if (isFormatted) count++;
|
|
3061
2838
|
}
|
|
3062
|
-
if (count) {
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
} else logger.success(`[heading-case] ${picocolors_default().yellow(files.length)} files scanned, no issues found.`);
|
|
2839
|
+
if (count) if (shouldWrite) src_logger.success(`[heading-case] formatted ${picocolors_default().yellow(count.toString())} files.`);
|
|
2840
|
+
else {
|
|
2841
|
+
src_logger.info(`[heading-case] found issues in ${picocolors_default().yellow(count.toString())} files.`);
|
|
2842
|
+
process.exit(1);
|
|
2843
|
+
}
|
|
2844
|
+
else src_logger.success(`[heading-case] ${picocolors_default().yellow(files.length)} files scanned, no issues found.`);
|
|
3069
2845
|
}
|
|
3070
2846
|
export { formatLine, globMarkdownFiles, headingCase };
|