@storm-software/linting-tools 1.9.21 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +1 -1
- package/cli/index.js +20 -1207
- package/package.json +1 -1
package/cli/index.js
CHANGED
|
@@ -267236,1193 +267236,6 @@ var init_dependency_versions = __esm({
|
|
|
267236
267236
|
}
|
|
267237
267237
|
});
|
|
267238
267238
|
|
|
267239
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/array.js
|
|
267240
|
-
var require_array3 = __commonJS({
|
|
267241
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/array.js"(exports) {
|
|
267242
|
-
"use strict";
|
|
267243
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
267244
|
-
exports.splitWhen = exports.flatten = void 0;
|
|
267245
|
-
function flatten(items) {
|
|
267246
|
-
return items.reduce((collection, item) => [].concat(collection, item), []);
|
|
267247
|
-
}
|
|
267248
|
-
exports.flatten = flatten;
|
|
267249
|
-
function splitWhen(items, predicate) {
|
|
267250
|
-
const result = [[]];
|
|
267251
|
-
let groupIndex = 0;
|
|
267252
|
-
for (const item of items) {
|
|
267253
|
-
if (predicate(item)) {
|
|
267254
|
-
groupIndex++;
|
|
267255
|
-
result[groupIndex] = [];
|
|
267256
|
-
} else {
|
|
267257
|
-
result[groupIndex].push(item);
|
|
267258
|
-
}
|
|
267259
|
-
}
|
|
267260
|
-
return result;
|
|
267261
|
-
}
|
|
267262
|
-
exports.splitWhen = splitWhen;
|
|
267263
|
-
}
|
|
267264
|
-
});
|
|
267265
|
-
|
|
267266
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/errno.js
|
|
267267
|
-
var require_errno2 = __commonJS({
|
|
267268
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/errno.js"(exports) {
|
|
267269
|
-
"use strict";
|
|
267270
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
267271
|
-
exports.isEnoentCodeError = void 0;
|
|
267272
|
-
function isEnoentCodeError(error2) {
|
|
267273
|
-
return error2.code === "ENOENT";
|
|
267274
|
-
}
|
|
267275
|
-
exports.isEnoentCodeError = isEnoentCodeError;
|
|
267276
|
-
}
|
|
267277
|
-
});
|
|
267278
|
-
|
|
267279
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/fs.js
|
|
267280
|
-
var require_fs8 = __commonJS({
|
|
267281
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/fs.js"(exports) {
|
|
267282
|
-
"use strict";
|
|
267283
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
267284
|
-
exports.createDirentFromStats = void 0;
|
|
267285
|
-
var DirentFromStats = class {
|
|
267286
|
-
constructor(name, stats) {
|
|
267287
|
-
this.name = name;
|
|
267288
|
-
this.isBlockDevice = stats.isBlockDevice.bind(stats);
|
|
267289
|
-
this.isCharacterDevice = stats.isCharacterDevice.bind(stats);
|
|
267290
|
-
this.isDirectory = stats.isDirectory.bind(stats);
|
|
267291
|
-
this.isFIFO = stats.isFIFO.bind(stats);
|
|
267292
|
-
this.isFile = stats.isFile.bind(stats);
|
|
267293
|
-
this.isSocket = stats.isSocket.bind(stats);
|
|
267294
|
-
this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
|
|
267295
|
-
}
|
|
267296
|
-
};
|
|
267297
|
-
function createDirentFromStats(name, stats) {
|
|
267298
|
-
return new DirentFromStats(name, stats);
|
|
267299
|
-
}
|
|
267300
|
-
exports.createDirentFromStats = createDirentFromStats;
|
|
267301
|
-
}
|
|
267302
|
-
});
|
|
267303
|
-
|
|
267304
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/path.js
|
|
267305
|
-
var require_path2 = __commonJS({
|
|
267306
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/path.js"(exports) {
|
|
267307
|
-
"use strict";
|
|
267308
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
267309
|
-
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
267310
|
-
var os6 = __require("os");
|
|
267311
|
-
var path38 = __require("path");
|
|
267312
|
-
var IS_WINDOWS_PLATFORM = os6.platform() === "win32";
|
|
267313
|
-
var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
267314
|
-
var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
|
|
267315
|
-
var WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([(){}]|^!|[!+@](?=\())/g;
|
|
267316
|
-
var DOS_DEVICE_PATH_RE = /^\\\\([.?])/;
|
|
267317
|
-
var WINDOWS_BACKSLASHES_RE = /\\(?![!()+@{}])/g;
|
|
267318
|
-
function unixify(filepath) {
|
|
267319
|
-
return filepath.replace(/\\/g, "/");
|
|
267320
|
-
}
|
|
267321
|
-
exports.unixify = unixify;
|
|
267322
|
-
function makeAbsolute(cwd, filepath) {
|
|
267323
|
-
return path38.resolve(cwd, filepath);
|
|
267324
|
-
}
|
|
267325
|
-
exports.makeAbsolute = makeAbsolute;
|
|
267326
|
-
function removeLeadingDotSegment(entry) {
|
|
267327
|
-
if (entry.charAt(0) === ".") {
|
|
267328
|
-
const secondCharactery = entry.charAt(1);
|
|
267329
|
-
if (secondCharactery === "/" || secondCharactery === "\\") {
|
|
267330
|
-
return entry.slice(LEADING_DOT_SEGMENT_CHARACTERS_COUNT);
|
|
267331
|
-
}
|
|
267332
|
-
}
|
|
267333
|
-
return entry;
|
|
267334
|
-
}
|
|
267335
|
-
exports.removeLeadingDotSegment = removeLeadingDotSegment;
|
|
267336
|
-
exports.escape = IS_WINDOWS_PLATFORM ? escapeWindowsPath : escapePosixPath;
|
|
267337
|
-
function escapeWindowsPath(pattern) {
|
|
267338
|
-
return pattern.replace(WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
|
|
267339
|
-
}
|
|
267340
|
-
exports.escapeWindowsPath = escapeWindowsPath;
|
|
267341
|
-
function escapePosixPath(pattern) {
|
|
267342
|
-
return pattern.replace(POSIX_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
|
|
267343
|
-
}
|
|
267344
|
-
exports.escapePosixPath = escapePosixPath;
|
|
267345
|
-
exports.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern : convertPosixPathToPattern;
|
|
267346
|
-
function convertWindowsPathToPattern(filepath) {
|
|
267347
|
-
return escapeWindowsPath(filepath).replace(DOS_DEVICE_PATH_RE, "//$1").replace(WINDOWS_BACKSLASHES_RE, "/");
|
|
267348
|
-
}
|
|
267349
|
-
exports.convertWindowsPathToPattern = convertWindowsPathToPattern;
|
|
267350
|
-
function convertPosixPathToPattern(filepath) {
|
|
267351
|
-
return escapePosixPath(filepath);
|
|
267352
|
-
}
|
|
267353
|
-
exports.convertPosixPathToPattern = convertPosixPathToPattern;
|
|
267354
|
-
}
|
|
267355
|
-
});
|
|
267356
|
-
|
|
267357
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/pattern.js
|
|
267358
|
-
var require_pattern3 = __commonJS({
|
|
267359
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/pattern.js"(exports) {
|
|
267360
|
-
"use strict";
|
|
267361
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
267362
|
-
exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
|
|
267363
|
-
var path38 = __require("path");
|
|
267364
|
-
var globParent = require_glob_parent();
|
|
267365
|
-
var micromatch = require_micromatch();
|
|
267366
|
-
var GLOBSTAR2 = "**";
|
|
267367
|
-
var ESCAPE_SYMBOL = "\\";
|
|
267368
|
-
var COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/;
|
|
267369
|
-
var REGEX_CHARACTER_CLASS_SYMBOLS_RE = /\[[^[]*]/;
|
|
267370
|
-
var REGEX_GROUP_SYMBOLS_RE = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;
|
|
267371
|
-
var GLOB_EXTENSION_SYMBOLS_RE = /[!*+?@]\([^(]*\)/;
|
|
267372
|
-
var BRACE_EXPANSION_SEPARATORS_RE = /,|\.\./;
|
|
267373
|
-
var DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
|
|
267374
|
-
function isStaticPattern(pattern, options = {}) {
|
|
267375
|
-
return !isDynamicPattern2(pattern, options);
|
|
267376
|
-
}
|
|
267377
|
-
exports.isStaticPattern = isStaticPattern;
|
|
267378
|
-
function isDynamicPattern2(pattern, options = {}) {
|
|
267379
|
-
if (pattern === "") {
|
|
267380
|
-
return false;
|
|
267381
|
-
}
|
|
267382
|
-
if (options.caseSensitiveMatch === false || pattern.includes(ESCAPE_SYMBOL)) {
|
|
267383
|
-
return true;
|
|
267384
|
-
}
|
|
267385
|
-
if (COMMON_GLOB_SYMBOLS_RE.test(pattern) || REGEX_CHARACTER_CLASS_SYMBOLS_RE.test(pattern) || REGEX_GROUP_SYMBOLS_RE.test(pattern)) {
|
|
267386
|
-
return true;
|
|
267387
|
-
}
|
|
267388
|
-
if (options.extglob !== false && GLOB_EXTENSION_SYMBOLS_RE.test(pattern)) {
|
|
267389
|
-
return true;
|
|
267390
|
-
}
|
|
267391
|
-
if (options.braceExpansion !== false && hasBraceExpansion(pattern)) {
|
|
267392
|
-
return true;
|
|
267393
|
-
}
|
|
267394
|
-
return false;
|
|
267395
|
-
}
|
|
267396
|
-
exports.isDynamicPattern = isDynamicPattern2;
|
|
267397
|
-
function hasBraceExpansion(pattern) {
|
|
267398
|
-
const openingBraceIndex = pattern.indexOf("{");
|
|
267399
|
-
if (openingBraceIndex === -1) {
|
|
267400
|
-
return false;
|
|
267401
|
-
}
|
|
267402
|
-
const closingBraceIndex = pattern.indexOf("}", openingBraceIndex + 1);
|
|
267403
|
-
if (closingBraceIndex === -1) {
|
|
267404
|
-
return false;
|
|
267405
|
-
}
|
|
267406
|
-
const braceContent = pattern.slice(openingBraceIndex, closingBraceIndex);
|
|
267407
|
-
return BRACE_EXPANSION_SEPARATORS_RE.test(braceContent);
|
|
267408
|
-
}
|
|
267409
|
-
function convertToPositivePattern(pattern) {
|
|
267410
|
-
return isNegativePattern2(pattern) ? pattern.slice(1) : pattern;
|
|
267411
|
-
}
|
|
267412
|
-
exports.convertToPositivePattern = convertToPositivePattern;
|
|
267413
|
-
function convertToNegativePattern(pattern) {
|
|
267414
|
-
return "!" + pattern;
|
|
267415
|
-
}
|
|
267416
|
-
exports.convertToNegativePattern = convertToNegativePattern;
|
|
267417
|
-
function isNegativePattern2(pattern) {
|
|
267418
|
-
return pattern.startsWith("!") && pattern[1] !== "(";
|
|
267419
|
-
}
|
|
267420
|
-
exports.isNegativePattern = isNegativePattern2;
|
|
267421
|
-
function isPositivePattern(pattern) {
|
|
267422
|
-
return !isNegativePattern2(pattern);
|
|
267423
|
-
}
|
|
267424
|
-
exports.isPositivePattern = isPositivePattern;
|
|
267425
|
-
function getNegativePatterns(patterns2) {
|
|
267426
|
-
return patterns2.filter(isNegativePattern2);
|
|
267427
|
-
}
|
|
267428
|
-
exports.getNegativePatterns = getNegativePatterns;
|
|
267429
|
-
function getPositivePatterns(patterns2) {
|
|
267430
|
-
return patterns2.filter(isPositivePattern);
|
|
267431
|
-
}
|
|
267432
|
-
exports.getPositivePatterns = getPositivePatterns;
|
|
267433
|
-
function getPatternsInsideCurrentDirectory(patterns2) {
|
|
267434
|
-
return patterns2.filter((pattern) => !isPatternRelatedToParentDirectory(pattern));
|
|
267435
|
-
}
|
|
267436
|
-
exports.getPatternsInsideCurrentDirectory = getPatternsInsideCurrentDirectory;
|
|
267437
|
-
function getPatternsOutsideCurrentDirectory(patterns2) {
|
|
267438
|
-
return patterns2.filter(isPatternRelatedToParentDirectory);
|
|
267439
|
-
}
|
|
267440
|
-
exports.getPatternsOutsideCurrentDirectory = getPatternsOutsideCurrentDirectory;
|
|
267441
|
-
function isPatternRelatedToParentDirectory(pattern) {
|
|
267442
|
-
return pattern.startsWith("..") || pattern.startsWith("./..");
|
|
267443
|
-
}
|
|
267444
|
-
exports.isPatternRelatedToParentDirectory = isPatternRelatedToParentDirectory;
|
|
267445
|
-
function getBaseDirectory(pattern) {
|
|
267446
|
-
return globParent(pattern, { flipBackslashes: false });
|
|
267447
|
-
}
|
|
267448
|
-
exports.getBaseDirectory = getBaseDirectory;
|
|
267449
|
-
function hasGlobStar(pattern) {
|
|
267450
|
-
return pattern.includes(GLOBSTAR2);
|
|
267451
|
-
}
|
|
267452
|
-
exports.hasGlobStar = hasGlobStar;
|
|
267453
|
-
function endsWithSlashGlobStar(pattern) {
|
|
267454
|
-
return pattern.endsWith("/" + GLOBSTAR2);
|
|
267455
|
-
}
|
|
267456
|
-
exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
267457
|
-
function isAffectDepthOfReadingPattern(pattern) {
|
|
267458
|
-
const basename7 = path38.basename(pattern);
|
|
267459
|
-
return endsWithSlashGlobStar(pattern) || isStaticPattern(basename7);
|
|
267460
|
-
}
|
|
267461
|
-
exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
|
|
267462
|
-
function expandPatternsWithBraceExpansion(patterns2) {
|
|
267463
|
-
return patterns2.reduce((collection, pattern) => {
|
|
267464
|
-
return collection.concat(expandBraceExpansion(pattern));
|
|
267465
|
-
}, []);
|
|
267466
|
-
}
|
|
267467
|
-
exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
|
|
267468
|
-
function expandBraceExpansion(pattern) {
|
|
267469
|
-
const patterns2 = micromatch.braces(pattern, { expand: true, nodupes: true });
|
|
267470
|
-
patterns2.sort((a, b) => a.length - b.length);
|
|
267471
|
-
return patterns2.filter((pattern2) => pattern2 !== "");
|
|
267472
|
-
}
|
|
267473
|
-
exports.expandBraceExpansion = expandBraceExpansion;
|
|
267474
|
-
function getPatternParts(pattern, options) {
|
|
267475
|
-
let { parts } = micromatch.scan(pattern, Object.assign(Object.assign({}, options), { parts: true }));
|
|
267476
|
-
if (parts.length === 0) {
|
|
267477
|
-
parts = [pattern];
|
|
267478
|
-
}
|
|
267479
|
-
if (parts[0].startsWith("/")) {
|
|
267480
|
-
parts[0] = parts[0].slice(1);
|
|
267481
|
-
parts.unshift("");
|
|
267482
|
-
}
|
|
267483
|
-
return parts;
|
|
267484
|
-
}
|
|
267485
|
-
exports.getPatternParts = getPatternParts;
|
|
267486
|
-
function makeRe2(pattern, options) {
|
|
267487
|
-
return micromatch.makeRe(pattern, options);
|
|
267488
|
-
}
|
|
267489
|
-
exports.makeRe = makeRe2;
|
|
267490
|
-
function convertPatternsToRe(patterns2, options) {
|
|
267491
|
-
return patterns2.map((pattern) => makeRe2(pattern, options));
|
|
267492
|
-
}
|
|
267493
|
-
exports.convertPatternsToRe = convertPatternsToRe;
|
|
267494
|
-
function matchAny(entry, patternsRe) {
|
|
267495
|
-
return patternsRe.some((patternRe) => patternRe.test(entry));
|
|
267496
|
-
}
|
|
267497
|
-
exports.matchAny = matchAny;
|
|
267498
|
-
function removeDuplicateSlashes(pattern) {
|
|
267499
|
-
return pattern.replace(DOUBLE_SLASH_RE, "/");
|
|
267500
|
-
}
|
|
267501
|
-
exports.removeDuplicateSlashes = removeDuplicateSlashes;
|
|
267502
|
-
}
|
|
267503
|
-
});
|
|
267504
|
-
|
|
267505
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/stream.js
|
|
267506
|
-
var require_stream6 = __commonJS({
|
|
267507
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/stream.js"(exports) {
|
|
267508
|
-
"use strict";
|
|
267509
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
267510
|
-
exports.merge = void 0;
|
|
267511
|
-
var merge23 = require_merge2();
|
|
267512
|
-
function merge6(streams) {
|
|
267513
|
-
const mergedStream = merge23(streams);
|
|
267514
|
-
streams.forEach((stream2) => {
|
|
267515
|
-
stream2.once("error", (error2) => mergedStream.emit("error", error2));
|
|
267516
|
-
});
|
|
267517
|
-
mergedStream.once("close", () => propagateCloseEventToSources(streams));
|
|
267518
|
-
mergedStream.once("end", () => propagateCloseEventToSources(streams));
|
|
267519
|
-
return mergedStream;
|
|
267520
|
-
}
|
|
267521
|
-
exports.merge = merge6;
|
|
267522
|
-
function propagateCloseEventToSources(streams) {
|
|
267523
|
-
streams.forEach((stream2) => stream2.emit("close"));
|
|
267524
|
-
}
|
|
267525
|
-
}
|
|
267526
|
-
});
|
|
267527
|
-
|
|
267528
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/string.js
|
|
267529
|
-
var require_string3 = __commonJS({
|
|
267530
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/string.js"(exports) {
|
|
267531
|
-
"use strict";
|
|
267532
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
267533
|
-
exports.isEmpty = exports.isString = void 0;
|
|
267534
|
-
function isString3(input) {
|
|
267535
|
-
return typeof input === "string";
|
|
267536
|
-
}
|
|
267537
|
-
exports.isString = isString3;
|
|
267538
|
-
function isEmpty3(input) {
|
|
267539
|
-
return input === "";
|
|
267540
|
-
}
|
|
267541
|
-
exports.isEmpty = isEmpty3;
|
|
267542
|
-
}
|
|
267543
|
-
});
|
|
267544
|
-
|
|
267545
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/index.js
|
|
267546
|
-
var require_utils12 = __commonJS({
|
|
267547
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/index.js"(exports) {
|
|
267548
|
-
"use strict";
|
|
267549
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
267550
|
-
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
|
|
267551
|
-
var array = require_array3();
|
|
267552
|
-
exports.array = array;
|
|
267553
|
-
var errno = require_errno2();
|
|
267554
|
-
exports.errno = errno;
|
|
267555
|
-
var fs22 = require_fs8();
|
|
267556
|
-
exports.fs = fs22;
|
|
267557
|
-
var path38 = require_path2();
|
|
267558
|
-
exports.path = path38;
|
|
267559
|
-
var pattern = require_pattern3();
|
|
267560
|
-
exports.pattern = pattern;
|
|
267561
|
-
var stream2 = require_stream6();
|
|
267562
|
-
exports.stream = stream2;
|
|
267563
|
-
var string = require_string3();
|
|
267564
|
-
exports.string = string;
|
|
267565
|
-
}
|
|
267566
|
-
});
|
|
267567
|
-
|
|
267568
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/managers/tasks.js
|
|
267569
|
-
var require_tasks2 = __commonJS({
|
|
267570
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/managers/tasks.js"(exports) {
|
|
267571
|
-
"use strict";
|
|
267572
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
267573
|
-
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
|
|
267574
|
-
var utils = require_utils12();
|
|
267575
|
-
function generate(input, settings) {
|
|
267576
|
-
const patterns2 = processPatterns(input, settings);
|
|
267577
|
-
const ignore3 = processPatterns(settings.ignore, settings);
|
|
267578
|
-
const positivePatterns = getPositivePatterns(patterns2);
|
|
267579
|
-
const negativePatterns = getNegativePatternsAsPositive(patterns2, ignore3);
|
|
267580
|
-
const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings));
|
|
267581
|
-
const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings));
|
|
267582
|
-
const staticTasks = convertPatternsToTasks(
|
|
267583
|
-
staticPatterns,
|
|
267584
|
-
negativePatterns,
|
|
267585
|
-
/* dynamic */
|
|
267586
|
-
false
|
|
267587
|
-
);
|
|
267588
|
-
const dynamicTasks = convertPatternsToTasks(
|
|
267589
|
-
dynamicPatterns,
|
|
267590
|
-
negativePatterns,
|
|
267591
|
-
/* dynamic */
|
|
267592
|
-
true
|
|
267593
|
-
);
|
|
267594
|
-
return staticTasks.concat(dynamicTasks);
|
|
267595
|
-
}
|
|
267596
|
-
exports.generate = generate;
|
|
267597
|
-
function processPatterns(input, settings) {
|
|
267598
|
-
let patterns2 = input;
|
|
267599
|
-
if (settings.braceExpansion) {
|
|
267600
|
-
patterns2 = utils.pattern.expandPatternsWithBraceExpansion(patterns2);
|
|
267601
|
-
}
|
|
267602
|
-
if (settings.baseNameMatch) {
|
|
267603
|
-
patterns2 = patterns2.map((pattern) => pattern.includes("/") ? pattern : `**/${pattern}`);
|
|
267604
|
-
}
|
|
267605
|
-
return patterns2.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern));
|
|
267606
|
-
}
|
|
267607
|
-
function convertPatternsToTasks(positive, negative, dynamic) {
|
|
267608
|
-
const tasks = [];
|
|
267609
|
-
const patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive);
|
|
267610
|
-
const patternsInsideCurrentDirectory = utils.pattern.getPatternsInsideCurrentDirectory(positive);
|
|
267611
|
-
const outsideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsOutsideCurrentDirectory);
|
|
267612
|
-
const insideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsInsideCurrentDirectory);
|
|
267613
|
-
tasks.push(...convertPatternGroupsToTasks(outsideCurrentDirectoryGroup, negative, dynamic));
|
|
267614
|
-
if ("." in insideCurrentDirectoryGroup) {
|
|
267615
|
-
tasks.push(convertPatternGroupToTask(".", patternsInsideCurrentDirectory, negative, dynamic));
|
|
267616
|
-
} else {
|
|
267617
|
-
tasks.push(...convertPatternGroupsToTasks(insideCurrentDirectoryGroup, negative, dynamic));
|
|
267618
|
-
}
|
|
267619
|
-
return tasks;
|
|
267620
|
-
}
|
|
267621
|
-
exports.convertPatternsToTasks = convertPatternsToTasks;
|
|
267622
|
-
function getPositivePatterns(patterns2) {
|
|
267623
|
-
return utils.pattern.getPositivePatterns(patterns2);
|
|
267624
|
-
}
|
|
267625
|
-
exports.getPositivePatterns = getPositivePatterns;
|
|
267626
|
-
function getNegativePatternsAsPositive(patterns2, ignore3) {
|
|
267627
|
-
const negative = utils.pattern.getNegativePatterns(patterns2).concat(ignore3);
|
|
267628
|
-
const positive = negative.map(utils.pattern.convertToPositivePattern);
|
|
267629
|
-
return positive;
|
|
267630
|
-
}
|
|
267631
|
-
exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
|
|
267632
|
-
function groupPatternsByBaseDirectory(patterns2) {
|
|
267633
|
-
const group = {};
|
|
267634
|
-
return patterns2.reduce((collection, pattern) => {
|
|
267635
|
-
const base2 = utils.pattern.getBaseDirectory(pattern);
|
|
267636
|
-
if (base2 in collection) {
|
|
267637
|
-
collection[base2].push(pattern);
|
|
267638
|
-
} else {
|
|
267639
|
-
collection[base2] = [pattern];
|
|
267640
|
-
}
|
|
267641
|
-
return collection;
|
|
267642
|
-
}, group);
|
|
267643
|
-
}
|
|
267644
|
-
exports.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory;
|
|
267645
|
-
function convertPatternGroupsToTasks(positive, negative, dynamic) {
|
|
267646
|
-
return Object.keys(positive).map((base2) => {
|
|
267647
|
-
return convertPatternGroupToTask(base2, positive[base2], negative, dynamic);
|
|
267648
|
-
});
|
|
267649
|
-
}
|
|
267650
|
-
exports.convertPatternGroupsToTasks = convertPatternGroupsToTasks;
|
|
267651
|
-
function convertPatternGroupToTask(base2, positive, negative, dynamic) {
|
|
267652
|
-
return {
|
|
267653
|
-
dynamic,
|
|
267654
|
-
positive,
|
|
267655
|
-
negative,
|
|
267656
|
-
base: base2,
|
|
267657
|
-
patterns: [].concat(positive, negative.map(utils.pattern.convertToNegativePattern))
|
|
267658
|
-
};
|
|
267659
|
-
}
|
|
267660
|
-
exports.convertPatternGroupToTask = convertPatternGroupToTask;
|
|
267661
|
-
}
|
|
267662
|
-
});
|
|
267663
|
-
|
|
267664
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/readers/reader.js
|
|
267665
|
-
var require_reader3 = __commonJS({
|
|
267666
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/readers/reader.js"(exports) {
|
|
267667
|
-
"use strict";
|
|
267668
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
267669
|
-
var path38 = __require("path");
|
|
267670
|
-
var fsStat = require_out();
|
|
267671
|
-
var utils = require_utils12();
|
|
267672
|
-
var Reader = class {
|
|
267673
|
-
constructor(_settings) {
|
|
267674
|
-
this._settings = _settings;
|
|
267675
|
-
this._fsStatSettings = new fsStat.Settings({
|
|
267676
|
-
followSymbolicLink: this._settings.followSymbolicLinks,
|
|
267677
|
-
fs: this._settings.fs,
|
|
267678
|
-
throwErrorOnBrokenSymbolicLink: this._settings.followSymbolicLinks
|
|
267679
|
-
});
|
|
267680
|
-
}
|
|
267681
|
-
_getFullEntryPath(filepath) {
|
|
267682
|
-
return path38.resolve(this._settings.cwd, filepath);
|
|
267683
|
-
}
|
|
267684
|
-
_makeEntry(stats, pattern) {
|
|
267685
|
-
const entry = {
|
|
267686
|
-
name: pattern,
|
|
267687
|
-
path: pattern,
|
|
267688
|
-
dirent: utils.fs.createDirentFromStats(pattern, stats)
|
|
267689
|
-
};
|
|
267690
|
-
if (this._settings.stats) {
|
|
267691
|
-
entry.stats = stats;
|
|
267692
|
-
}
|
|
267693
|
-
return entry;
|
|
267694
|
-
}
|
|
267695
|
-
_isFatalError(error2) {
|
|
267696
|
-
return !utils.errno.isEnoentCodeError(error2) && !this._settings.suppressErrors;
|
|
267697
|
-
}
|
|
267698
|
-
};
|
|
267699
|
-
exports.default = Reader;
|
|
267700
|
-
}
|
|
267701
|
-
});
|
|
267702
|
-
|
|
267703
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/readers/stream.js
|
|
267704
|
-
var require_stream7 = __commonJS({
|
|
267705
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/readers/stream.js"(exports) {
|
|
267706
|
-
"use strict";
|
|
267707
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
267708
|
-
var stream_1 = __require("stream");
|
|
267709
|
-
var fsStat = require_out();
|
|
267710
|
-
var fsWalk = require_out3();
|
|
267711
|
-
var reader_1 = require_reader3();
|
|
267712
|
-
var ReaderStream = class extends reader_1.default {
|
|
267713
|
-
constructor() {
|
|
267714
|
-
super(...arguments);
|
|
267715
|
-
this._walkStream = fsWalk.walkStream;
|
|
267716
|
-
this._stat = fsStat.stat;
|
|
267717
|
-
}
|
|
267718
|
-
dynamic(root, options) {
|
|
267719
|
-
return this._walkStream(root, options);
|
|
267720
|
-
}
|
|
267721
|
-
static(patterns2, options) {
|
|
267722
|
-
const filepaths = patterns2.map(this._getFullEntryPath, this);
|
|
267723
|
-
const stream2 = new stream_1.PassThrough({ objectMode: true });
|
|
267724
|
-
stream2._write = (index2, _enc, done) => {
|
|
267725
|
-
return this._getEntry(filepaths[index2], patterns2[index2], options).then((entry) => {
|
|
267726
|
-
if (entry !== null && options.entryFilter(entry)) {
|
|
267727
|
-
stream2.push(entry);
|
|
267728
|
-
}
|
|
267729
|
-
if (index2 === filepaths.length - 1) {
|
|
267730
|
-
stream2.end();
|
|
267731
|
-
}
|
|
267732
|
-
done();
|
|
267733
|
-
}).catch(done);
|
|
267734
|
-
};
|
|
267735
|
-
for (let i = 0; i < filepaths.length; i++) {
|
|
267736
|
-
stream2.write(i);
|
|
267737
|
-
}
|
|
267738
|
-
return stream2;
|
|
267739
|
-
}
|
|
267740
|
-
_getEntry(filepath, pattern, options) {
|
|
267741
|
-
return this._getStat(filepath).then((stats) => this._makeEntry(stats, pattern)).catch((error2) => {
|
|
267742
|
-
if (options.errorFilter(error2)) {
|
|
267743
|
-
return null;
|
|
267744
|
-
}
|
|
267745
|
-
throw error2;
|
|
267746
|
-
});
|
|
267747
|
-
}
|
|
267748
|
-
_getStat(filepath) {
|
|
267749
|
-
return new Promise((resolve14, reject) => {
|
|
267750
|
-
this._stat(filepath, this._fsStatSettings, (error2, stats) => {
|
|
267751
|
-
return error2 === null ? resolve14(stats) : reject(error2);
|
|
267752
|
-
});
|
|
267753
|
-
});
|
|
267754
|
-
}
|
|
267755
|
-
};
|
|
267756
|
-
exports.default = ReaderStream;
|
|
267757
|
-
}
|
|
267758
|
-
});
|
|
267759
|
-
|
|
267760
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/readers/async.js
|
|
267761
|
-
var require_async7 = __commonJS({
|
|
267762
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/readers/async.js"(exports) {
|
|
267763
|
-
"use strict";
|
|
267764
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
267765
|
-
var fsWalk = require_out3();
|
|
267766
|
-
var reader_1 = require_reader3();
|
|
267767
|
-
var stream_1 = require_stream7();
|
|
267768
|
-
var ReaderAsync = class extends reader_1.default {
|
|
267769
|
-
constructor() {
|
|
267770
|
-
super(...arguments);
|
|
267771
|
-
this._walkAsync = fsWalk.walk;
|
|
267772
|
-
this._readerStream = new stream_1.default(this._settings);
|
|
267773
|
-
}
|
|
267774
|
-
dynamic(root, options) {
|
|
267775
|
-
return new Promise((resolve14, reject) => {
|
|
267776
|
-
this._walkAsync(root, options, (error2, entries) => {
|
|
267777
|
-
if (error2 === null) {
|
|
267778
|
-
resolve14(entries);
|
|
267779
|
-
} else {
|
|
267780
|
-
reject(error2);
|
|
267781
|
-
}
|
|
267782
|
-
});
|
|
267783
|
-
});
|
|
267784
|
-
}
|
|
267785
|
-
async static(patterns2, options) {
|
|
267786
|
-
const entries = [];
|
|
267787
|
-
const stream2 = this._readerStream.static(patterns2, options);
|
|
267788
|
-
return new Promise((resolve14, reject) => {
|
|
267789
|
-
stream2.once("error", reject);
|
|
267790
|
-
stream2.on("data", (entry) => entries.push(entry));
|
|
267791
|
-
stream2.once("end", () => resolve14(entries));
|
|
267792
|
-
});
|
|
267793
|
-
}
|
|
267794
|
-
};
|
|
267795
|
-
exports.default = ReaderAsync;
|
|
267796
|
-
}
|
|
267797
|
-
});
|
|
267798
|
-
|
|
267799
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/matchers/matcher.js
|
|
267800
|
-
var require_matcher2 = __commonJS({
|
|
267801
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
|
|
267802
|
-
"use strict";
|
|
267803
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
267804
|
-
var utils = require_utils12();
|
|
267805
|
-
var Matcher = class {
|
|
267806
|
-
constructor(_patterns, _settings, _micromatchOptions) {
|
|
267807
|
-
this._patterns = _patterns;
|
|
267808
|
-
this._settings = _settings;
|
|
267809
|
-
this._micromatchOptions = _micromatchOptions;
|
|
267810
|
-
this._storage = [];
|
|
267811
|
-
this._fillStorage();
|
|
267812
|
-
}
|
|
267813
|
-
_fillStorage() {
|
|
267814
|
-
for (const pattern of this._patterns) {
|
|
267815
|
-
const segments = this._getPatternSegments(pattern);
|
|
267816
|
-
const sections = this._splitSegmentsIntoSections(segments);
|
|
267817
|
-
this._storage.push({
|
|
267818
|
-
complete: sections.length <= 1,
|
|
267819
|
-
pattern,
|
|
267820
|
-
segments,
|
|
267821
|
-
sections
|
|
267822
|
-
});
|
|
267823
|
-
}
|
|
267824
|
-
}
|
|
267825
|
-
_getPatternSegments(pattern) {
|
|
267826
|
-
const parts = utils.pattern.getPatternParts(pattern, this._micromatchOptions);
|
|
267827
|
-
return parts.map((part) => {
|
|
267828
|
-
const dynamic = utils.pattern.isDynamicPattern(part, this._settings);
|
|
267829
|
-
if (!dynamic) {
|
|
267830
|
-
return {
|
|
267831
|
-
dynamic: false,
|
|
267832
|
-
pattern: part
|
|
267833
|
-
};
|
|
267834
|
-
}
|
|
267835
|
-
return {
|
|
267836
|
-
dynamic: true,
|
|
267837
|
-
pattern: part,
|
|
267838
|
-
patternRe: utils.pattern.makeRe(part, this._micromatchOptions)
|
|
267839
|
-
};
|
|
267840
|
-
});
|
|
267841
|
-
}
|
|
267842
|
-
_splitSegmentsIntoSections(segments) {
|
|
267843
|
-
return utils.array.splitWhen(segments, (segment) => segment.dynamic && utils.pattern.hasGlobStar(segment.pattern));
|
|
267844
|
-
}
|
|
267845
|
-
};
|
|
267846
|
-
exports.default = Matcher;
|
|
267847
|
-
}
|
|
267848
|
-
});
|
|
267849
|
-
|
|
267850
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/matchers/partial.js
|
|
267851
|
-
var require_partial2 = __commonJS({
|
|
267852
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/matchers/partial.js"(exports) {
|
|
267853
|
-
"use strict";
|
|
267854
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
267855
|
-
var matcher_1 = require_matcher2();
|
|
267856
|
-
var PartialMatcher = class extends matcher_1.default {
|
|
267857
|
-
match(filepath) {
|
|
267858
|
-
const parts = filepath.split("/");
|
|
267859
|
-
const levels = parts.length;
|
|
267860
|
-
const patterns2 = this._storage.filter((info) => !info.complete || info.segments.length > levels);
|
|
267861
|
-
for (const pattern of patterns2) {
|
|
267862
|
-
const section = pattern.sections[0];
|
|
267863
|
-
if (!pattern.complete && levels > section.length) {
|
|
267864
|
-
return true;
|
|
267865
|
-
}
|
|
267866
|
-
const match3 = parts.every((part, index2) => {
|
|
267867
|
-
const segment = pattern.segments[index2];
|
|
267868
|
-
if (segment.dynamic && segment.patternRe.test(part)) {
|
|
267869
|
-
return true;
|
|
267870
|
-
}
|
|
267871
|
-
if (!segment.dynamic && segment.pattern === part) {
|
|
267872
|
-
return true;
|
|
267873
|
-
}
|
|
267874
|
-
return false;
|
|
267875
|
-
});
|
|
267876
|
-
if (match3) {
|
|
267877
|
-
return true;
|
|
267878
|
-
}
|
|
267879
|
-
}
|
|
267880
|
-
return false;
|
|
267881
|
-
}
|
|
267882
|
-
};
|
|
267883
|
-
exports.default = PartialMatcher;
|
|
267884
|
-
}
|
|
267885
|
-
});
|
|
267886
|
-
|
|
267887
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/filters/deep.js
|
|
267888
|
-
var require_deep2 = __commonJS({
|
|
267889
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
|
|
267890
|
-
"use strict";
|
|
267891
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
267892
|
-
var utils = require_utils12();
|
|
267893
|
-
var partial_1 = require_partial2();
|
|
267894
|
-
var DeepFilter = class {
|
|
267895
|
-
constructor(_settings, _micromatchOptions) {
|
|
267896
|
-
this._settings = _settings;
|
|
267897
|
-
this._micromatchOptions = _micromatchOptions;
|
|
267898
|
-
}
|
|
267899
|
-
getFilter(basePath, positive, negative) {
|
|
267900
|
-
const matcher = this._getMatcher(positive);
|
|
267901
|
-
const negativeRe = this._getNegativePatternsRe(negative);
|
|
267902
|
-
return (entry) => this._filter(basePath, entry, matcher, negativeRe);
|
|
267903
|
-
}
|
|
267904
|
-
_getMatcher(patterns2) {
|
|
267905
|
-
return new partial_1.default(patterns2, this._settings, this._micromatchOptions);
|
|
267906
|
-
}
|
|
267907
|
-
_getNegativePatternsRe(patterns2) {
|
|
267908
|
-
const affectDepthOfReadingPatterns = patterns2.filter(utils.pattern.isAffectDepthOfReadingPattern);
|
|
267909
|
-
return utils.pattern.convertPatternsToRe(affectDepthOfReadingPatterns, this._micromatchOptions);
|
|
267910
|
-
}
|
|
267911
|
-
_filter(basePath, entry, matcher, negativeRe) {
|
|
267912
|
-
if (this._isSkippedByDeep(basePath, entry.path)) {
|
|
267913
|
-
return false;
|
|
267914
|
-
}
|
|
267915
|
-
if (this._isSkippedSymbolicLink(entry)) {
|
|
267916
|
-
return false;
|
|
267917
|
-
}
|
|
267918
|
-
const filepath = utils.path.removeLeadingDotSegment(entry.path);
|
|
267919
|
-
if (this._isSkippedByPositivePatterns(filepath, matcher)) {
|
|
267920
|
-
return false;
|
|
267921
|
-
}
|
|
267922
|
-
return this._isSkippedByNegativePatterns(filepath, negativeRe);
|
|
267923
|
-
}
|
|
267924
|
-
_isSkippedByDeep(basePath, entryPath) {
|
|
267925
|
-
if (this._settings.deep === Infinity) {
|
|
267926
|
-
return false;
|
|
267927
|
-
}
|
|
267928
|
-
return this._getEntryLevel(basePath, entryPath) >= this._settings.deep;
|
|
267929
|
-
}
|
|
267930
|
-
_getEntryLevel(basePath, entryPath) {
|
|
267931
|
-
const entryPathDepth = entryPath.split("/").length;
|
|
267932
|
-
if (basePath === "") {
|
|
267933
|
-
return entryPathDepth;
|
|
267934
|
-
}
|
|
267935
|
-
const basePathDepth = basePath.split("/").length;
|
|
267936
|
-
return entryPathDepth - basePathDepth;
|
|
267937
|
-
}
|
|
267938
|
-
_isSkippedSymbolicLink(entry) {
|
|
267939
|
-
return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink();
|
|
267940
|
-
}
|
|
267941
|
-
_isSkippedByPositivePatterns(entryPath, matcher) {
|
|
267942
|
-
return !this._settings.baseNameMatch && !matcher.match(entryPath);
|
|
267943
|
-
}
|
|
267944
|
-
_isSkippedByNegativePatterns(entryPath, patternsRe) {
|
|
267945
|
-
return !utils.pattern.matchAny(entryPath, patternsRe);
|
|
267946
|
-
}
|
|
267947
|
-
};
|
|
267948
|
-
exports.default = DeepFilter;
|
|
267949
|
-
}
|
|
267950
|
-
});
|
|
267951
|
-
|
|
267952
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/filters/entry.js
|
|
267953
|
-
var require_entry3 = __commonJS({
|
|
267954
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
|
|
267955
|
-
"use strict";
|
|
267956
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
267957
|
-
var utils = require_utils12();
|
|
267958
|
-
var EntryFilter = class {
|
|
267959
|
-
constructor(_settings, _micromatchOptions) {
|
|
267960
|
-
this._settings = _settings;
|
|
267961
|
-
this._micromatchOptions = _micromatchOptions;
|
|
267962
|
-
this.index = /* @__PURE__ */ new Map();
|
|
267963
|
-
}
|
|
267964
|
-
getFilter(positive, negative) {
|
|
267965
|
-
const positiveRe = utils.pattern.convertPatternsToRe(positive, this._micromatchOptions);
|
|
267966
|
-
const negativeRe = utils.pattern.convertPatternsToRe(negative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true }));
|
|
267967
|
-
return (entry) => this._filter(entry, positiveRe, negativeRe);
|
|
267968
|
-
}
|
|
267969
|
-
_filter(entry, positiveRe, negativeRe) {
|
|
267970
|
-
const filepath = utils.path.removeLeadingDotSegment(entry.path);
|
|
267971
|
-
if (this._settings.unique && this._isDuplicateEntry(filepath)) {
|
|
267972
|
-
return false;
|
|
267973
|
-
}
|
|
267974
|
-
if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) {
|
|
267975
|
-
return false;
|
|
267976
|
-
}
|
|
267977
|
-
if (this._isSkippedByAbsoluteNegativePatterns(filepath, negativeRe)) {
|
|
267978
|
-
return false;
|
|
267979
|
-
}
|
|
267980
|
-
const isDirectory = entry.dirent.isDirectory();
|
|
267981
|
-
const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(filepath, negativeRe, isDirectory);
|
|
267982
|
-
if (this._settings.unique && isMatched) {
|
|
267983
|
-
this._createIndexRecord(filepath);
|
|
267984
|
-
}
|
|
267985
|
-
return isMatched;
|
|
267986
|
-
}
|
|
267987
|
-
_isDuplicateEntry(filepath) {
|
|
267988
|
-
return this.index.has(filepath);
|
|
267989
|
-
}
|
|
267990
|
-
_createIndexRecord(filepath) {
|
|
267991
|
-
this.index.set(filepath, void 0);
|
|
267992
|
-
}
|
|
267993
|
-
_onlyFileFilter(entry) {
|
|
267994
|
-
return this._settings.onlyFiles && !entry.dirent.isFile();
|
|
267995
|
-
}
|
|
267996
|
-
_onlyDirectoryFilter(entry) {
|
|
267997
|
-
return this._settings.onlyDirectories && !entry.dirent.isDirectory();
|
|
267998
|
-
}
|
|
267999
|
-
_isSkippedByAbsoluteNegativePatterns(entryPath, patternsRe) {
|
|
268000
|
-
if (!this._settings.absolute) {
|
|
268001
|
-
return false;
|
|
268002
|
-
}
|
|
268003
|
-
const fullpath = utils.path.makeAbsolute(this._settings.cwd, entryPath);
|
|
268004
|
-
return utils.pattern.matchAny(fullpath, patternsRe);
|
|
268005
|
-
}
|
|
268006
|
-
_isMatchToPatterns(filepath, patternsRe, isDirectory) {
|
|
268007
|
-
const isMatched = utils.pattern.matchAny(filepath, patternsRe);
|
|
268008
|
-
if (!isMatched && isDirectory) {
|
|
268009
|
-
return utils.pattern.matchAny(filepath + "/", patternsRe);
|
|
268010
|
-
}
|
|
268011
|
-
return isMatched;
|
|
268012
|
-
}
|
|
268013
|
-
};
|
|
268014
|
-
exports.default = EntryFilter;
|
|
268015
|
-
}
|
|
268016
|
-
});
|
|
268017
|
-
|
|
268018
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/filters/error.js
|
|
268019
|
-
var require_error3 = __commonJS({
|
|
268020
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/filters/error.js"(exports) {
|
|
268021
|
-
"use strict";
|
|
268022
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
268023
|
-
var utils = require_utils12();
|
|
268024
|
-
var ErrorFilter = class {
|
|
268025
|
-
constructor(_settings) {
|
|
268026
|
-
this._settings = _settings;
|
|
268027
|
-
}
|
|
268028
|
-
getFilter() {
|
|
268029
|
-
return (error2) => this._isNonFatalError(error2);
|
|
268030
|
-
}
|
|
268031
|
-
_isNonFatalError(error2) {
|
|
268032
|
-
return utils.errno.isEnoentCodeError(error2) || this._settings.suppressErrors;
|
|
268033
|
-
}
|
|
268034
|
-
};
|
|
268035
|
-
exports.default = ErrorFilter;
|
|
268036
|
-
}
|
|
268037
|
-
});
|
|
268038
|
-
|
|
268039
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/transformers/entry.js
|
|
268040
|
-
var require_entry4 = __commonJS({
|
|
268041
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
|
|
268042
|
-
"use strict";
|
|
268043
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
268044
|
-
var utils = require_utils12();
|
|
268045
|
-
var EntryTransformer = class {
|
|
268046
|
-
constructor(_settings) {
|
|
268047
|
-
this._settings = _settings;
|
|
268048
|
-
}
|
|
268049
|
-
getTransformer() {
|
|
268050
|
-
return (entry) => this._transform(entry);
|
|
268051
|
-
}
|
|
268052
|
-
_transform(entry) {
|
|
268053
|
-
let filepath = entry.path;
|
|
268054
|
-
if (this._settings.absolute) {
|
|
268055
|
-
filepath = utils.path.makeAbsolute(this._settings.cwd, filepath);
|
|
268056
|
-
filepath = utils.path.unixify(filepath);
|
|
268057
|
-
}
|
|
268058
|
-
if (this._settings.markDirectories && entry.dirent.isDirectory()) {
|
|
268059
|
-
filepath += "/";
|
|
268060
|
-
}
|
|
268061
|
-
if (!this._settings.objectMode) {
|
|
268062
|
-
return filepath;
|
|
268063
|
-
}
|
|
268064
|
-
return Object.assign(Object.assign({}, entry), { path: filepath });
|
|
268065
|
-
}
|
|
268066
|
-
};
|
|
268067
|
-
exports.default = EntryTransformer;
|
|
268068
|
-
}
|
|
268069
|
-
});
|
|
268070
|
-
|
|
268071
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/provider.js
|
|
268072
|
-
var require_provider2 = __commonJS({
|
|
268073
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/provider.js"(exports) {
|
|
268074
|
-
"use strict";
|
|
268075
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
268076
|
-
var path38 = __require("path");
|
|
268077
|
-
var deep_1 = require_deep2();
|
|
268078
|
-
var entry_1 = require_entry3();
|
|
268079
|
-
var error_1 = require_error3();
|
|
268080
|
-
var entry_2 = require_entry4();
|
|
268081
|
-
var Provider = class {
|
|
268082
|
-
constructor(_settings) {
|
|
268083
|
-
this._settings = _settings;
|
|
268084
|
-
this.errorFilter = new error_1.default(this._settings);
|
|
268085
|
-
this.entryFilter = new entry_1.default(this._settings, this._getMicromatchOptions());
|
|
268086
|
-
this.deepFilter = new deep_1.default(this._settings, this._getMicromatchOptions());
|
|
268087
|
-
this.entryTransformer = new entry_2.default(this._settings);
|
|
268088
|
-
}
|
|
268089
|
-
_getRootDirectory(task) {
|
|
268090
|
-
return path38.resolve(this._settings.cwd, task.base);
|
|
268091
|
-
}
|
|
268092
|
-
_getReaderOptions(task) {
|
|
268093
|
-
const basePath = task.base === "." ? "" : task.base;
|
|
268094
|
-
return {
|
|
268095
|
-
basePath,
|
|
268096
|
-
pathSegmentSeparator: "/",
|
|
268097
|
-
concurrency: this._settings.concurrency,
|
|
268098
|
-
deepFilter: this.deepFilter.getFilter(basePath, task.positive, task.negative),
|
|
268099
|
-
entryFilter: this.entryFilter.getFilter(task.positive, task.negative),
|
|
268100
|
-
errorFilter: this.errorFilter.getFilter(),
|
|
268101
|
-
followSymbolicLinks: this._settings.followSymbolicLinks,
|
|
268102
|
-
fs: this._settings.fs,
|
|
268103
|
-
stats: this._settings.stats,
|
|
268104
|
-
throwErrorOnBrokenSymbolicLink: this._settings.throwErrorOnBrokenSymbolicLink,
|
|
268105
|
-
transform: this.entryTransformer.getTransformer()
|
|
268106
|
-
};
|
|
268107
|
-
}
|
|
268108
|
-
_getMicromatchOptions() {
|
|
268109
|
-
return {
|
|
268110
|
-
dot: this._settings.dot,
|
|
268111
|
-
matchBase: this._settings.baseNameMatch,
|
|
268112
|
-
nobrace: !this._settings.braceExpansion,
|
|
268113
|
-
nocase: !this._settings.caseSensitiveMatch,
|
|
268114
|
-
noext: !this._settings.extglob,
|
|
268115
|
-
noglobstar: !this._settings.globstar,
|
|
268116
|
-
posix: true,
|
|
268117
|
-
strictSlashes: false
|
|
268118
|
-
};
|
|
268119
|
-
}
|
|
268120
|
-
};
|
|
268121
|
-
exports.default = Provider;
|
|
268122
|
-
}
|
|
268123
|
-
});
|
|
268124
|
-
|
|
268125
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/async.js
|
|
268126
|
-
var require_async8 = __commonJS({
|
|
268127
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/async.js"(exports) {
|
|
268128
|
-
"use strict";
|
|
268129
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
268130
|
-
var async_1 = require_async7();
|
|
268131
|
-
var provider_1 = require_provider2();
|
|
268132
|
-
var ProviderAsync = class extends provider_1.default {
|
|
268133
|
-
constructor() {
|
|
268134
|
-
super(...arguments);
|
|
268135
|
-
this._reader = new async_1.default(this._settings);
|
|
268136
|
-
}
|
|
268137
|
-
async read(task) {
|
|
268138
|
-
const root = this._getRootDirectory(task);
|
|
268139
|
-
const options = this._getReaderOptions(task);
|
|
268140
|
-
const entries = await this.api(root, task, options);
|
|
268141
|
-
return entries.map((entry) => options.transform(entry));
|
|
268142
|
-
}
|
|
268143
|
-
api(root, task, options) {
|
|
268144
|
-
if (task.dynamic) {
|
|
268145
|
-
return this._reader.dynamic(root, options);
|
|
268146
|
-
}
|
|
268147
|
-
return this._reader.static(task.patterns, options);
|
|
268148
|
-
}
|
|
268149
|
-
};
|
|
268150
|
-
exports.default = ProviderAsync;
|
|
268151
|
-
}
|
|
268152
|
-
});
|
|
268153
|
-
|
|
268154
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/stream.js
|
|
268155
|
-
var require_stream8 = __commonJS({
|
|
268156
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/stream.js"(exports) {
|
|
268157
|
-
"use strict";
|
|
268158
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
268159
|
-
var stream_1 = __require("stream");
|
|
268160
|
-
var stream_2 = require_stream7();
|
|
268161
|
-
var provider_1 = require_provider2();
|
|
268162
|
-
var ProviderStream = class extends provider_1.default {
|
|
268163
|
-
constructor() {
|
|
268164
|
-
super(...arguments);
|
|
268165
|
-
this._reader = new stream_2.default(this._settings);
|
|
268166
|
-
}
|
|
268167
|
-
read(task) {
|
|
268168
|
-
const root = this._getRootDirectory(task);
|
|
268169
|
-
const options = this._getReaderOptions(task);
|
|
268170
|
-
const source = this.api(root, task, options);
|
|
268171
|
-
const destination = new stream_1.Readable({ objectMode: true, read: () => {
|
|
268172
|
-
} });
|
|
268173
|
-
source.once("error", (error2) => destination.emit("error", error2)).on("data", (entry) => destination.emit("data", options.transform(entry))).once("end", () => destination.emit("end"));
|
|
268174
|
-
destination.once("close", () => source.destroy());
|
|
268175
|
-
return destination;
|
|
268176
|
-
}
|
|
268177
|
-
api(root, task, options) {
|
|
268178
|
-
if (task.dynamic) {
|
|
268179
|
-
return this._reader.dynamic(root, options);
|
|
268180
|
-
}
|
|
268181
|
-
return this._reader.static(task.patterns, options);
|
|
268182
|
-
}
|
|
268183
|
-
};
|
|
268184
|
-
exports.default = ProviderStream;
|
|
268185
|
-
}
|
|
268186
|
-
});
|
|
268187
|
-
|
|
268188
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/readers/sync.js
|
|
268189
|
-
var require_sync8 = __commonJS({
|
|
268190
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/readers/sync.js"(exports) {
|
|
268191
|
-
"use strict";
|
|
268192
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
268193
|
-
var fsStat = require_out();
|
|
268194
|
-
var fsWalk = require_out3();
|
|
268195
|
-
var reader_1 = require_reader3();
|
|
268196
|
-
var ReaderSync = class extends reader_1.default {
|
|
268197
|
-
constructor() {
|
|
268198
|
-
super(...arguments);
|
|
268199
|
-
this._walkSync = fsWalk.walkSync;
|
|
268200
|
-
this._statSync = fsStat.statSync;
|
|
268201
|
-
}
|
|
268202
|
-
dynamic(root, options) {
|
|
268203
|
-
return this._walkSync(root, options);
|
|
268204
|
-
}
|
|
268205
|
-
static(patterns2, options) {
|
|
268206
|
-
const entries = [];
|
|
268207
|
-
for (const pattern of patterns2) {
|
|
268208
|
-
const filepath = this._getFullEntryPath(pattern);
|
|
268209
|
-
const entry = this._getEntry(filepath, pattern, options);
|
|
268210
|
-
if (entry === null || !options.entryFilter(entry)) {
|
|
268211
|
-
continue;
|
|
268212
|
-
}
|
|
268213
|
-
entries.push(entry);
|
|
268214
|
-
}
|
|
268215
|
-
return entries;
|
|
268216
|
-
}
|
|
268217
|
-
_getEntry(filepath, pattern, options) {
|
|
268218
|
-
try {
|
|
268219
|
-
const stats = this._getStat(filepath);
|
|
268220
|
-
return this._makeEntry(stats, pattern);
|
|
268221
|
-
} catch (error2) {
|
|
268222
|
-
if (options.errorFilter(error2)) {
|
|
268223
|
-
return null;
|
|
268224
|
-
}
|
|
268225
|
-
throw error2;
|
|
268226
|
-
}
|
|
268227
|
-
}
|
|
268228
|
-
_getStat(filepath) {
|
|
268229
|
-
return this._statSync(filepath, this._fsStatSettings);
|
|
268230
|
-
}
|
|
268231
|
-
};
|
|
268232
|
-
exports.default = ReaderSync;
|
|
268233
|
-
}
|
|
268234
|
-
});
|
|
268235
|
-
|
|
268236
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/sync.js
|
|
268237
|
-
var require_sync9 = __commonJS({
|
|
268238
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/sync.js"(exports) {
|
|
268239
|
-
"use strict";
|
|
268240
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
268241
|
-
var sync_1 = require_sync8();
|
|
268242
|
-
var provider_1 = require_provider2();
|
|
268243
|
-
var ProviderSync = class extends provider_1.default {
|
|
268244
|
-
constructor() {
|
|
268245
|
-
super(...arguments);
|
|
268246
|
-
this._reader = new sync_1.default(this._settings);
|
|
268247
|
-
}
|
|
268248
|
-
read(task) {
|
|
268249
|
-
const root = this._getRootDirectory(task);
|
|
268250
|
-
const options = this._getReaderOptions(task);
|
|
268251
|
-
const entries = this.api(root, task, options);
|
|
268252
|
-
return entries.map(options.transform);
|
|
268253
|
-
}
|
|
268254
|
-
api(root, task, options) {
|
|
268255
|
-
if (task.dynamic) {
|
|
268256
|
-
return this._reader.dynamic(root, options);
|
|
268257
|
-
}
|
|
268258
|
-
return this._reader.static(task.patterns, options);
|
|
268259
|
-
}
|
|
268260
|
-
};
|
|
268261
|
-
exports.default = ProviderSync;
|
|
268262
|
-
}
|
|
268263
|
-
});
|
|
268264
|
-
|
|
268265
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/settings.js
|
|
268266
|
-
var require_settings5 = __commonJS({
|
|
268267
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/settings.js"(exports) {
|
|
268268
|
-
"use strict";
|
|
268269
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
268270
|
-
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
268271
|
-
var fs22 = __require("fs");
|
|
268272
|
-
var os6 = __require("os");
|
|
268273
|
-
var CPU_COUNT = Math.max(os6.cpus().length, 1);
|
|
268274
|
-
exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
268275
|
-
lstat: fs22.lstat,
|
|
268276
|
-
lstatSync: fs22.lstatSync,
|
|
268277
|
-
stat: fs22.stat,
|
|
268278
|
-
statSync: fs22.statSync,
|
|
268279
|
-
readdir: fs22.readdir,
|
|
268280
|
-
readdirSync: fs22.readdirSync
|
|
268281
|
-
};
|
|
268282
|
-
var Settings = class {
|
|
268283
|
-
constructor(_options = {}) {
|
|
268284
|
-
this._options = _options;
|
|
268285
|
-
this.absolute = this._getValue(this._options.absolute, false);
|
|
268286
|
-
this.baseNameMatch = this._getValue(this._options.baseNameMatch, false);
|
|
268287
|
-
this.braceExpansion = this._getValue(this._options.braceExpansion, true);
|
|
268288
|
-
this.caseSensitiveMatch = this._getValue(this._options.caseSensitiveMatch, true);
|
|
268289
|
-
this.concurrency = this._getValue(this._options.concurrency, CPU_COUNT);
|
|
268290
|
-
this.cwd = this._getValue(this._options.cwd, process.cwd());
|
|
268291
|
-
this.deep = this._getValue(this._options.deep, Infinity);
|
|
268292
|
-
this.dot = this._getValue(this._options.dot, false);
|
|
268293
|
-
this.extglob = this._getValue(this._options.extglob, true);
|
|
268294
|
-
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, true);
|
|
268295
|
-
this.fs = this._getFileSystemMethods(this._options.fs);
|
|
268296
|
-
this.globstar = this._getValue(this._options.globstar, true);
|
|
268297
|
-
this.ignore = this._getValue(this._options.ignore, []);
|
|
268298
|
-
this.markDirectories = this._getValue(this._options.markDirectories, false);
|
|
268299
|
-
this.objectMode = this._getValue(this._options.objectMode, false);
|
|
268300
|
-
this.onlyDirectories = this._getValue(this._options.onlyDirectories, false);
|
|
268301
|
-
this.onlyFiles = this._getValue(this._options.onlyFiles, true);
|
|
268302
|
-
this.stats = this._getValue(this._options.stats, false);
|
|
268303
|
-
this.suppressErrors = this._getValue(this._options.suppressErrors, false);
|
|
268304
|
-
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, false);
|
|
268305
|
-
this.unique = this._getValue(this._options.unique, true);
|
|
268306
|
-
if (this.onlyDirectories) {
|
|
268307
|
-
this.onlyFiles = false;
|
|
268308
|
-
}
|
|
268309
|
-
if (this.stats) {
|
|
268310
|
-
this.objectMode = true;
|
|
268311
|
-
}
|
|
268312
|
-
this.ignore = [].concat(this.ignore);
|
|
268313
|
-
}
|
|
268314
|
-
_getValue(option, value) {
|
|
268315
|
-
return option === void 0 ? value : option;
|
|
268316
|
-
}
|
|
268317
|
-
_getFileSystemMethods(methods = {}) {
|
|
268318
|
-
return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods);
|
|
268319
|
-
}
|
|
268320
|
-
};
|
|
268321
|
-
exports.default = Settings;
|
|
268322
|
-
}
|
|
268323
|
-
});
|
|
268324
|
-
|
|
268325
|
-
// node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/index.js
|
|
268326
|
-
var require_out5 = __commonJS({
|
|
268327
|
-
"node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/index.js"(exports, module) {
|
|
268328
|
-
"use strict";
|
|
268329
|
-
var taskManager = require_tasks2();
|
|
268330
|
-
var async_1 = require_async8();
|
|
268331
|
-
var stream_1 = require_stream8();
|
|
268332
|
-
var sync_1 = require_sync9();
|
|
268333
|
-
var settings_1 = require_settings5();
|
|
268334
|
-
var utils = require_utils12();
|
|
268335
|
-
async function FastGlob(source, options) {
|
|
268336
|
-
assertPatternsInput2(source);
|
|
268337
|
-
const works = getWorks(source, async_1.default, options);
|
|
268338
|
-
const result = await Promise.all(works);
|
|
268339
|
-
return utils.array.flatten(result);
|
|
268340
|
-
}
|
|
268341
|
-
(function(FastGlob2) {
|
|
268342
|
-
FastGlob2.glob = FastGlob2;
|
|
268343
|
-
FastGlob2.globSync = sync2;
|
|
268344
|
-
FastGlob2.globStream = stream2;
|
|
268345
|
-
FastGlob2.async = FastGlob2;
|
|
268346
|
-
function sync2(source, options) {
|
|
268347
|
-
assertPatternsInput2(source);
|
|
268348
|
-
const works = getWorks(source, sync_1.default, options);
|
|
268349
|
-
return utils.array.flatten(works);
|
|
268350
|
-
}
|
|
268351
|
-
FastGlob2.sync = sync2;
|
|
268352
|
-
function stream2(source, options) {
|
|
268353
|
-
assertPatternsInput2(source);
|
|
268354
|
-
const works = getWorks(source, stream_1.default, options);
|
|
268355
|
-
return utils.stream.merge(works);
|
|
268356
|
-
}
|
|
268357
|
-
FastGlob2.stream = stream2;
|
|
268358
|
-
function generateTasks2(source, options) {
|
|
268359
|
-
assertPatternsInput2(source);
|
|
268360
|
-
const patterns2 = [].concat(source);
|
|
268361
|
-
const settings = new settings_1.default(options);
|
|
268362
|
-
return taskManager.generate(patterns2, settings);
|
|
268363
|
-
}
|
|
268364
|
-
FastGlob2.generateTasks = generateTasks2;
|
|
268365
|
-
function isDynamicPattern2(source, options) {
|
|
268366
|
-
assertPatternsInput2(source);
|
|
268367
|
-
const settings = new settings_1.default(options);
|
|
268368
|
-
return utils.pattern.isDynamicPattern(source, settings);
|
|
268369
|
-
}
|
|
268370
|
-
FastGlob2.isDynamicPattern = isDynamicPattern2;
|
|
268371
|
-
function escapePath(source) {
|
|
268372
|
-
assertPatternsInput2(source);
|
|
268373
|
-
return utils.path.escape(source);
|
|
268374
|
-
}
|
|
268375
|
-
FastGlob2.escapePath = escapePath;
|
|
268376
|
-
function convertPathToPattern(source) {
|
|
268377
|
-
assertPatternsInput2(source);
|
|
268378
|
-
return utils.path.convertPathToPattern(source);
|
|
268379
|
-
}
|
|
268380
|
-
FastGlob2.convertPathToPattern = convertPathToPattern;
|
|
268381
|
-
let posix5;
|
|
268382
|
-
(function(posix6) {
|
|
268383
|
-
function escapePath2(source) {
|
|
268384
|
-
assertPatternsInput2(source);
|
|
268385
|
-
return utils.path.escapePosixPath(source);
|
|
268386
|
-
}
|
|
268387
|
-
posix6.escapePath = escapePath2;
|
|
268388
|
-
function convertPathToPattern2(source) {
|
|
268389
|
-
assertPatternsInput2(source);
|
|
268390
|
-
return utils.path.convertPosixPathToPattern(source);
|
|
268391
|
-
}
|
|
268392
|
-
posix6.convertPathToPattern = convertPathToPattern2;
|
|
268393
|
-
})(posix5 = FastGlob2.posix || (FastGlob2.posix = {}));
|
|
268394
|
-
let win322;
|
|
268395
|
-
(function(win323) {
|
|
268396
|
-
function escapePath2(source) {
|
|
268397
|
-
assertPatternsInput2(source);
|
|
268398
|
-
return utils.path.escapeWindowsPath(source);
|
|
268399
|
-
}
|
|
268400
|
-
win323.escapePath = escapePath2;
|
|
268401
|
-
function convertPathToPattern2(source) {
|
|
268402
|
-
assertPatternsInput2(source);
|
|
268403
|
-
return utils.path.convertWindowsPathToPattern(source);
|
|
268404
|
-
}
|
|
268405
|
-
win323.convertPathToPattern = convertPathToPattern2;
|
|
268406
|
-
})(win322 = FastGlob2.win32 || (FastGlob2.win32 = {}));
|
|
268407
|
-
})(FastGlob || (FastGlob = {}));
|
|
268408
|
-
function getWorks(source, _Provider, options) {
|
|
268409
|
-
const patterns2 = [].concat(source);
|
|
268410
|
-
const settings = new settings_1.default(options);
|
|
268411
|
-
const tasks = taskManager.generate(patterns2, settings);
|
|
268412
|
-
const provider = new _Provider(settings);
|
|
268413
|
-
return tasks.map(provider.read, provider);
|
|
268414
|
-
}
|
|
268415
|
-
function assertPatternsInput2(input) {
|
|
268416
|
-
const source = [].concat(input);
|
|
268417
|
-
const isValidSource = source.every((item) => utils.string.isString(item) && !utils.string.isEmpty(item));
|
|
268418
|
-
if (!isValidSource) {
|
|
268419
|
-
throw new TypeError("Patterns must be a string (non empty) or an array of strings");
|
|
268420
|
-
}
|
|
268421
|
-
}
|
|
268422
|
-
module.exports = FastGlob;
|
|
268423
|
-
}
|
|
268424
|
-
});
|
|
268425
|
-
|
|
268426
267239
|
// node_modules/.pnpm/slash@4.0.0/node_modules/slash/index.js
|
|
268427
267240
|
function slash(path38) {
|
|
268428
267241
|
const isExtendedLengthPath = /^\\\\\?\\/.test(path38);
|
|
@@ -268465,7 +267278,7 @@ import path36 from "node:path";
|
|
|
268465
267278
|
var import_fast_glob2, import_ignore5, ignoreFilesGlobOptions, GITIGNORE_FILES_PATTERN, applyBaseToPattern, parseIgnoreFile, toRelativePath, getIsIgnoredPredicate, normalizeOptions, isIgnoredByIgnoreFiles, isIgnoredByIgnoreFilesSync;
|
|
268466
267279
|
var init_ignore = __esm({
|
|
268467
267280
|
"node_modules/.pnpm/globby@13.2.2/node_modules/globby/ignore.js"() {
|
|
268468
|
-
import_fast_glob2 = __toESM(
|
|
267281
|
+
import_fast_glob2 = __toESM(require_out4(), 1);
|
|
268469
267282
|
import_ignore5 = __toESM(require_ignore2(), 1);
|
|
268470
267283
|
init_slash();
|
|
268471
267284
|
init_utilities2();
|
|
@@ -268539,7 +267352,7 @@ var import_merge2, import_fast_glob3, import_dir_glob, assertPatternsInput, toPa
|
|
|
268539
267352
|
var init_globby = __esm({
|
|
268540
267353
|
"node_modules/.pnpm/globby@13.2.2/node_modules/globby/index.js"() {
|
|
268541
267354
|
import_merge2 = __toESM(require_merge2(), 1);
|
|
268542
|
-
import_fast_glob3 = __toESM(
|
|
267355
|
+
import_fast_glob3 = __toESM(require_out4(), 1);
|
|
268543
267356
|
import_dir_glob = __toESM(require_dir_glob(), 1);
|
|
268544
267357
|
init_ignore();
|
|
268545
267358
|
init_utilities2();
|
|
@@ -269161,7 +267974,7 @@ var require_getBorderCharacters = __commonJS({
|
|
|
269161
267974
|
});
|
|
269162
267975
|
|
|
269163
267976
|
// node_modules/.pnpm/table@6.8.1/node_modules/table/dist/src/utils.js
|
|
269164
|
-
var
|
|
267977
|
+
var require_utils12 = __commonJS({
|
|
269165
267978
|
"node_modules/.pnpm/table@6.8.1/node_modules/table/dist/src/utils.js"(exports) {
|
|
269166
267979
|
"use strict";
|
|
269167
267980
|
var __importDefault2 = exports && exports.__importDefault || function(mod) {
|
|
@@ -269282,7 +268095,7 @@ var require_alignString = __commonJS({
|
|
|
269282
268095
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
269283
268096
|
exports.alignString = void 0;
|
|
269284
268097
|
var string_width_1 = __importDefault2(require_string_width());
|
|
269285
|
-
var utils_1 =
|
|
268098
|
+
var utils_1 = require_utils12();
|
|
269286
268099
|
var alignLeft = (subject, width) => {
|
|
269287
268100
|
return subject + " ".repeat(width);
|
|
269288
268101
|
};
|
|
@@ -269435,7 +268248,7 @@ var require_wrapCell = __commonJS({
|
|
|
269435
268248
|
"use strict";
|
|
269436
268249
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
269437
268250
|
exports.wrapCell = void 0;
|
|
269438
|
-
var utils_1 =
|
|
268251
|
+
var utils_1 = require_utils12();
|
|
269439
268252
|
var wrapString_1 = require_wrapString();
|
|
269440
268253
|
var wrapWord_1 = require_wrapWord();
|
|
269441
268254
|
var wrapCell = (cellValue, cellWidth, useWrapWord) => {
|
|
@@ -269477,7 +268290,7 @@ var require_calculateRowHeights = __commonJS({
|
|
|
269477
268290
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
269478
268291
|
exports.calculateRowHeights = void 0;
|
|
269479
268292
|
var calculateCellHeight_1 = require_calculateCellHeight();
|
|
269480
|
-
var utils_1 =
|
|
268293
|
+
var utils_1 = require_utils12();
|
|
269481
268294
|
var calculateRowHeights = (rows, config2) => {
|
|
269482
268295
|
const rowHeights = [];
|
|
269483
268296
|
for (const [rowIndex, row] of rows.entries()) {
|
|
@@ -272418,7 +271231,7 @@ var require_makeStreamConfig = __commonJS({
|
|
|
272418
271231
|
"use strict";
|
|
272419
271232
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
272420
271233
|
exports.makeStreamConfig = void 0;
|
|
272421
|
-
var utils_1 =
|
|
271234
|
+
var utils_1 = require_utils12();
|
|
272422
271235
|
var validateConfig_1 = require_validateConfig();
|
|
272423
271236
|
var makeColumnsConfig = (columnCount, columns = {}, columnDefault) => {
|
|
272424
271237
|
return Array.from({ length: columnCount }).map((_, index2) => {
|
|
@@ -272458,7 +271271,7 @@ var require_mapDataUsingRowHeights = __commonJS({
|
|
|
272458
271271
|
"use strict";
|
|
272459
271272
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
272460
271273
|
exports.mapDataUsingRowHeights = exports.padCellVertically = void 0;
|
|
272461
|
-
var utils_1 =
|
|
271274
|
+
var utils_1 = require_utils12();
|
|
272462
271275
|
var wrapCell_1 = require_wrapCell();
|
|
272463
271276
|
var createEmptyStrings = (length) => {
|
|
272464
271277
|
return new Array(length).fill("");
|
|
@@ -272547,7 +271360,7 @@ var require_stringifyTableData = __commonJS({
|
|
|
272547
271360
|
"use strict";
|
|
272548
271361
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
272549
271362
|
exports.stringifyTableData = void 0;
|
|
272550
|
-
var utils_1 =
|
|
271363
|
+
var utils_1 = require_utils12();
|
|
272551
271364
|
var stringifyTableData = (rows) => {
|
|
272552
271365
|
return rows.map((cells) => {
|
|
272553
271366
|
return cells.map((cell) => {
|
|
@@ -272822,7 +271635,7 @@ var require_createStream = __commonJS({
|
|
|
272822
271635
|
var padTableData_1 = require_padTableData();
|
|
272823
271636
|
var stringifyTableData_1 = require_stringifyTableData();
|
|
272824
271637
|
var truncateTableData_1 = require_truncateTableData();
|
|
272825
|
-
var utils_1 =
|
|
271638
|
+
var utils_1 = require_utils12();
|
|
272826
271639
|
var prepareData = (data, config2) => {
|
|
272827
271640
|
let rows = (0, stringifyTableData_1.stringifyTableData)(data);
|
|
272828
271641
|
rows = (0, truncateTableData_1.truncateTableData)(rows, (0, utils_1.extractTruncates)(config2));
|
|
@@ -272909,7 +271722,7 @@ var require_drawTable = __commonJS({
|
|
|
272909
271722
|
var drawBorder_1 = require_drawBorder();
|
|
272910
271723
|
var drawContent_1 = require_drawContent();
|
|
272911
271724
|
var drawRow_1 = require_drawRow();
|
|
272912
|
-
var utils_1 =
|
|
271725
|
+
var utils_1 = require_utils12();
|
|
272913
271726
|
var drawTable = (rows, outputColumnWidths, rowHeights, config2) => {
|
|
272914
271727
|
const { drawHorizontalLine, singleLine } = config2;
|
|
272915
271728
|
const contents = (0, utils_1.groupBySizes)(rows, rowHeights).map((group, groupIndex) => {
|
|
@@ -272991,7 +271804,7 @@ var require_calculateMaximumColumnWidths = __commonJS({
|
|
|
272991
271804
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
272992
271805
|
exports.calculateMaximumColumnWidths = exports.calculateMaximumCellWidth = void 0;
|
|
272993
271806
|
var string_width_1 = __importDefault2(require_string_width());
|
|
272994
|
-
var utils_1 =
|
|
271807
|
+
var utils_1 = require_utils12();
|
|
272995
271808
|
var calculateMaximumCellWidth = (cell) => {
|
|
272996
271809
|
return Math.max(...cell.split("\n").map(string_width_1.default));
|
|
272997
271810
|
};
|
|
@@ -273035,7 +271848,7 @@ var require_alignSpanningCell = __commonJS({
|
|
|
273035
271848
|
var mapDataUsingRowHeights_1 = require_mapDataUsingRowHeights();
|
|
273036
271849
|
var padTableData_1 = require_padTableData();
|
|
273037
271850
|
var truncateTableData_1 = require_truncateTableData();
|
|
273038
|
-
var utils_1 =
|
|
271851
|
+
var utils_1 = require_utils12();
|
|
273039
271852
|
var wrapCell_1 = require_wrapCell();
|
|
273040
271853
|
var wrapRangeContent = (rangeConfig, rangeWidth, context) => {
|
|
273041
271854
|
const { topLeft, paddingRight, paddingLeft, truncate, wrapWord, alignment } = rangeConfig;
|
|
@@ -273076,7 +271889,7 @@ var require_calculateSpanningCellWidth = __commonJS({
|
|
|
273076
271889
|
"use strict";
|
|
273077
271890
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
273078
271891
|
exports.calculateSpanningCellWidth = void 0;
|
|
273079
|
-
var utils_1 =
|
|
271892
|
+
var utils_1 = require_utils12();
|
|
273080
271893
|
var calculateSpanningCellWidth = (rangeConfig, dependencies) => {
|
|
273081
271894
|
const { columnsConfig, drawVerticalLine } = dependencies;
|
|
273082
271895
|
const { topLeft, bottomRight } = rangeConfig;
|
|
@@ -273102,7 +271915,7 @@ var require_makeRangeConfig = __commonJS({
|
|
|
273102
271915
|
"use strict";
|
|
273103
271916
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
273104
271917
|
exports.makeRangeConfig = void 0;
|
|
273105
|
-
var utils_1 =
|
|
271918
|
+
var utils_1 = require_utils12();
|
|
273106
271919
|
var makeRangeConfig = (spanningCellConfig, columnsConfig) => {
|
|
273107
271920
|
var _a2;
|
|
273108
271921
|
const { topLeft, bottomRight } = (0, utils_1.calculateRangeCoordinate)(spanningCellConfig);
|
|
@@ -273130,7 +271943,7 @@ var require_spanningCellManager = __commonJS({
|
|
|
273130
271943
|
var alignSpanningCell_1 = require_alignSpanningCell();
|
|
273131
271944
|
var calculateSpanningCellWidth_1 = require_calculateSpanningCellWidth();
|
|
273132
271945
|
var makeRangeConfig_1 = require_makeRangeConfig();
|
|
273133
|
-
var utils_1 =
|
|
271946
|
+
var utils_1 = require_utils12();
|
|
273134
271947
|
var findRangeConfig = (cell, rangeConfigs) => {
|
|
273135
271948
|
return rangeConfigs.find((rangeCoordinate) => {
|
|
273136
271949
|
return (0, utils_1.isCellInRange)(cell, rangeCoordinate);
|
|
@@ -273225,7 +272038,7 @@ var require_validateSpanningCellConfig = __commonJS({
|
|
|
273225
272038
|
"use strict";
|
|
273226
272039
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
273227
272040
|
exports.validateSpanningCellConfig = void 0;
|
|
273228
|
-
var utils_1 =
|
|
272041
|
+
var utils_1 = require_utils12();
|
|
273229
272042
|
var inRange = (start, end, value) => {
|
|
273230
272043
|
return start <= value && value <= end;
|
|
273231
272044
|
};
|
|
@@ -273275,7 +272088,7 @@ var require_makeTableConfig = __commonJS({
|
|
|
273275
272088
|
exports.makeTableConfig = void 0;
|
|
273276
272089
|
var calculateMaximumColumnWidths_1 = require_calculateMaximumColumnWidths();
|
|
273277
272090
|
var spanningCellManager_1 = require_spanningCellManager();
|
|
273278
|
-
var utils_1 =
|
|
272091
|
+
var utils_1 = require_utils12();
|
|
273279
272092
|
var validateConfig_1 = require_validateConfig();
|
|
273280
272093
|
var validateSpanningCellConfig_1 = require_validateSpanningCellConfig();
|
|
273281
272094
|
var makeColumnsConfig = (rows, columns, columnDefault, spanningCellConfigs) => {
|
|
@@ -273332,7 +272145,7 @@ var require_validateTableData = __commonJS({
|
|
|
273332
272145
|
"use strict";
|
|
273333
272146
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
273334
272147
|
exports.validateTableData = void 0;
|
|
273335
|
-
var utils_1 =
|
|
272148
|
+
var utils_1 = require_utils12();
|
|
273336
272149
|
var validateTableData = (rows) => {
|
|
273337
272150
|
if (!Array.isArray(rows)) {
|
|
273338
272151
|
throw new TypeError("Table data must be an array.");
|
|
@@ -273378,7 +272191,7 @@ var require_table = __commonJS({
|
|
|
273378
272191
|
var padTableData_1 = require_padTableData();
|
|
273379
272192
|
var stringifyTableData_1 = require_stringifyTableData();
|
|
273380
272193
|
var truncateTableData_1 = require_truncateTableData();
|
|
273381
|
-
var utils_1 =
|
|
272194
|
+
var utils_1 = require_utils12();
|
|
273382
272195
|
var validateTableData_1 = require_validateTableData();
|
|
273383
272196
|
var table2 = (data, userConfig = {}) => {
|
|
273384
272197
|
(0, validateTableData_1.validateTableData)(data);
|