@gjsify/esbuild-plugin-gjsify 0.0.2 → 0.0.4
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/cjs/index.cjs +497 -447
- package/dist/esm/index.mjs +227 -177
- package/dist/types/lib/index.d.ts +1 -2
- package/dist/types/lib/{cjs.d.ts → lib.d.ts} +1 -1
- package/dist/types/types/plugin-options.d.ts +1 -1
- package/dist/types/utils/extension.d.ts +1 -1
- package/esbuild.mjs +1 -1
- package/package.json +10 -22
- package/src/app/browser.ts +1 -1
- package/src/app/deno.ts +5 -2
- package/src/app/gjs.ts +7 -6
- package/src/app/node.ts +3 -5
- package/src/lib/index.ts +1 -2
- package/src/lib/{esm.ts → lib.ts} +9 -6
- package/src/lodash.d.ts +46 -0
- package/src/plugin.ts +3 -5
- package/src/types/plugin-options.ts +1 -1
- package/src/utils/extension.ts +2 -2
- package/tsconfig.json +4 -0
- package/dist/types/debug-plugin.d.ts +0 -2
- package/dist/types/lib/esm.d.ts +0 -3
- package/src/alias-plugin.ts +0 -68
- package/src/lib/cjs.ts +0 -46
package/dist/cjs/index.cjs
CHANGED
|
@@ -31,14 +31,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
|
|
32
32
|
// ../../../node_modules/fast-glob/out/utils/array.js
|
|
33
33
|
var require_array = __commonJS({
|
|
34
|
-
"../../../node_modules/fast-glob/out/utils/array.js"(
|
|
34
|
+
"../../../node_modules/fast-glob/out/utils/array.js"(exports2) {
|
|
35
35
|
"use strict";
|
|
36
|
-
Object.defineProperty(
|
|
37
|
-
|
|
36
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
37
|
+
exports2.splitWhen = exports2.flatten = void 0;
|
|
38
38
|
function flatten(items) {
|
|
39
39
|
return items.reduce((collection, item) => [].concat(collection, item), []);
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
exports2.flatten = flatten;
|
|
42
42
|
function splitWhen(items, predicate) {
|
|
43
43
|
const result = [[]];
|
|
44
44
|
let groupIndex = 0;
|
|
@@ -52,29 +52,29 @@ var require_array = __commonJS({
|
|
|
52
52
|
}
|
|
53
53
|
return result;
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
exports2.splitWhen = splitWhen;
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
// ../../../node_modules/fast-glob/out/utils/errno.js
|
|
60
60
|
var require_errno = __commonJS({
|
|
61
|
-
"../../../node_modules/fast-glob/out/utils/errno.js"(
|
|
61
|
+
"../../../node_modules/fast-glob/out/utils/errno.js"(exports2) {
|
|
62
62
|
"use strict";
|
|
63
|
-
Object.defineProperty(
|
|
64
|
-
|
|
63
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
64
|
+
exports2.isEnoentCodeError = void 0;
|
|
65
65
|
function isEnoentCodeError(error) {
|
|
66
66
|
return error.code === "ENOENT";
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
exports2.isEnoentCodeError = isEnoentCodeError;
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
|
|
72
72
|
// ../../../node_modules/fast-glob/out/utils/fs.js
|
|
73
73
|
var require_fs = __commonJS({
|
|
74
|
-
"../../../node_modules/fast-glob/out/utils/fs.js"(
|
|
74
|
+
"../../../node_modules/fast-glob/out/utils/fs.js"(exports2) {
|
|
75
75
|
"use strict";
|
|
76
|
-
Object.defineProperty(
|
|
77
|
-
|
|
76
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
77
|
+
exports2.createDirentFromStats = void 0;
|
|
78
78
|
var DirentFromStats = class {
|
|
79
79
|
constructor(name, stats) {
|
|
80
80
|
this.name = name;
|
|
@@ -90,31 +90,32 @@ var require_fs = __commonJS({
|
|
|
90
90
|
function createDirentFromStats(name, stats) {
|
|
91
91
|
return new DirentFromStats(name, stats);
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
exports2.createDirentFromStats = createDirentFromStats;
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
|
|
97
97
|
// ../../../node_modules/fast-glob/out/utils/path.js
|
|
98
98
|
var require_path = __commonJS({
|
|
99
|
-
"../../../node_modules/fast-glob/out/utils/path.js"(
|
|
99
|
+
"../../../node_modules/fast-glob/out/utils/path.js"(exports2) {
|
|
100
100
|
"use strict";
|
|
101
|
-
Object.defineProperty(
|
|
102
|
-
|
|
101
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
102
|
+
exports2.convertPosixPathToPattern = exports2.convertWindowsPathToPattern = exports2.convertPathToPattern = exports2.escapePosixPath = exports2.escapeWindowsPath = exports2.escape = exports2.removeLeadingDotSegment = exports2.makeAbsolute = exports2.unixify = void 0;
|
|
103
|
+
var os = require("os");
|
|
103
104
|
var path = require("path");
|
|
105
|
+
var IS_WINDOWS_PLATFORM = os.platform() === "win32";
|
|
104
106
|
var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
105
|
-
var
|
|
107
|
+
var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
|
|
108
|
+
var WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g;
|
|
109
|
+
var DOS_DEVICE_PATH_RE = /^\\\\([.?])/;
|
|
110
|
+
var WINDOWS_BACKSLASHES_RE = /\\(?![!()+@[\]{}])/g;
|
|
106
111
|
function unixify(filepath) {
|
|
107
112
|
return filepath.replace(/\\/g, "/");
|
|
108
113
|
}
|
|
109
|
-
|
|
114
|
+
exports2.unixify = unixify;
|
|
110
115
|
function makeAbsolute(cwd, filepath) {
|
|
111
116
|
return path.resolve(cwd, filepath);
|
|
112
117
|
}
|
|
113
|
-
|
|
114
|
-
function escape(pattern) {
|
|
115
|
-
return pattern.replace(UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
|
|
116
|
-
}
|
|
117
|
-
exports.escape = escape;
|
|
118
|
+
exports2.makeAbsolute = makeAbsolute;
|
|
118
119
|
function removeLeadingDotSegment(entry) {
|
|
119
120
|
if (entry.charAt(0) === ".") {
|
|
120
121
|
const secondCharactery = entry.charAt(1);
|
|
@@ -124,13 +125,31 @@ var require_path = __commonJS({
|
|
|
124
125
|
}
|
|
125
126
|
return entry;
|
|
126
127
|
}
|
|
127
|
-
|
|
128
|
+
exports2.removeLeadingDotSegment = removeLeadingDotSegment;
|
|
129
|
+
exports2.escape = IS_WINDOWS_PLATFORM ? escapeWindowsPath : escapePosixPath;
|
|
130
|
+
function escapeWindowsPath(pattern) {
|
|
131
|
+
return pattern.replace(WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
|
|
132
|
+
}
|
|
133
|
+
exports2.escapeWindowsPath = escapeWindowsPath;
|
|
134
|
+
function escapePosixPath(pattern) {
|
|
135
|
+
return pattern.replace(POSIX_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
|
|
136
|
+
}
|
|
137
|
+
exports2.escapePosixPath = escapePosixPath;
|
|
138
|
+
exports2.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern : convertPosixPathToPattern;
|
|
139
|
+
function convertWindowsPathToPattern(filepath) {
|
|
140
|
+
return escapeWindowsPath(filepath).replace(DOS_DEVICE_PATH_RE, "//$1").replace(WINDOWS_BACKSLASHES_RE, "/");
|
|
141
|
+
}
|
|
142
|
+
exports2.convertWindowsPathToPattern = convertWindowsPathToPattern;
|
|
143
|
+
function convertPosixPathToPattern(filepath) {
|
|
144
|
+
return escapePosixPath(filepath);
|
|
145
|
+
}
|
|
146
|
+
exports2.convertPosixPathToPattern = convertPosixPathToPattern;
|
|
128
147
|
}
|
|
129
148
|
});
|
|
130
149
|
|
|
131
150
|
// ../../../node_modules/is-extglob/index.js
|
|
132
151
|
var require_is_extglob = __commonJS({
|
|
133
|
-
"../../../node_modules/is-extglob/index.js"(
|
|
152
|
+
"../../../node_modules/is-extglob/index.js"(exports2, module2) {
|
|
134
153
|
module2.exports = function isExtglob(str) {
|
|
135
154
|
if (typeof str !== "string" || str === "") {
|
|
136
155
|
return false;
|
|
@@ -148,7 +167,7 @@ var require_is_extglob = __commonJS({
|
|
|
148
167
|
|
|
149
168
|
// ../../../node_modules/is-glob/index.js
|
|
150
169
|
var require_is_glob = __commonJS({
|
|
151
|
-
"../../../node_modules/is-glob/index.js"(
|
|
170
|
+
"../../../node_modules/is-glob/index.js"(exports2, module2) {
|
|
152
171
|
var isExtglob = require_is_extglob();
|
|
153
172
|
var chars = { "{": "}", "(": ")", "[": "]" };
|
|
154
173
|
var strictCheck = function(str) {
|
|
@@ -279,7 +298,7 @@ var require_is_glob = __commonJS({
|
|
|
279
298
|
|
|
280
299
|
// ../../../node_modules/glob-parent/index.js
|
|
281
300
|
var require_glob_parent = __commonJS({
|
|
282
|
-
"../../../node_modules/glob-parent/index.js"(
|
|
301
|
+
"../../../node_modules/glob-parent/index.js"(exports2, module2) {
|
|
283
302
|
"use strict";
|
|
284
303
|
var isGlob = require_is_glob();
|
|
285
304
|
var pathPosixDirname = require("path").posix.dirname;
|
|
@@ -308,9 +327,9 @@ var require_glob_parent = __commonJS({
|
|
|
308
327
|
|
|
309
328
|
// ../../../node_modules/braces/lib/utils.js
|
|
310
329
|
var require_utils = __commonJS({
|
|
311
|
-
"../../../node_modules/braces/lib/utils.js"(
|
|
330
|
+
"../../../node_modules/braces/lib/utils.js"(exports2) {
|
|
312
331
|
"use strict";
|
|
313
|
-
|
|
332
|
+
exports2.isInteger = (num) => {
|
|
314
333
|
if (typeof num === "number") {
|
|
315
334
|
return Number.isInteger(num);
|
|
316
335
|
}
|
|
@@ -319,15 +338,15 @@ var require_utils = __commonJS({
|
|
|
319
338
|
}
|
|
320
339
|
return false;
|
|
321
340
|
};
|
|
322
|
-
|
|
323
|
-
|
|
341
|
+
exports2.find = (node, type) => node.nodes.find((node2) => node2.type === type);
|
|
342
|
+
exports2.exceedsLimit = (min, max, step = 1, limit) => {
|
|
324
343
|
if (limit === false)
|
|
325
344
|
return false;
|
|
326
|
-
if (!
|
|
345
|
+
if (!exports2.isInteger(min) || !exports2.isInteger(max))
|
|
327
346
|
return false;
|
|
328
347
|
return (Number(max) - Number(min)) / Number(step) >= limit;
|
|
329
348
|
};
|
|
330
|
-
|
|
349
|
+
exports2.escapeNode = (block, n = 0, type) => {
|
|
331
350
|
let node = block.nodes[n];
|
|
332
351
|
if (!node)
|
|
333
352
|
return;
|
|
@@ -338,7 +357,7 @@ var require_utils = __commonJS({
|
|
|
338
357
|
}
|
|
339
358
|
}
|
|
340
359
|
};
|
|
341
|
-
|
|
360
|
+
exports2.encloseBrace = (node) => {
|
|
342
361
|
if (node.type !== "brace")
|
|
343
362
|
return false;
|
|
344
363
|
if (node.commas >> 0 + node.ranges >> 0 === 0) {
|
|
@@ -347,7 +366,7 @@ var require_utils = __commonJS({
|
|
|
347
366
|
}
|
|
348
367
|
return false;
|
|
349
368
|
};
|
|
350
|
-
|
|
369
|
+
exports2.isInvalidBrace = (block) => {
|
|
351
370
|
if (block.type !== "brace")
|
|
352
371
|
return false;
|
|
353
372
|
if (block.invalid === true || block.dollar)
|
|
@@ -362,20 +381,20 @@ var require_utils = __commonJS({
|
|
|
362
381
|
}
|
|
363
382
|
return false;
|
|
364
383
|
};
|
|
365
|
-
|
|
384
|
+
exports2.isOpenOrClose = (node) => {
|
|
366
385
|
if (node.type === "open" || node.type === "close") {
|
|
367
386
|
return true;
|
|
368
387
|
}
|
|
369
388
|
return node.open === true || node.close === true;
|
|
370
389
|
};
|
|
371
|
-
|
|
390
|
+
exports2.reduce = (nodes) => nodes.reduce((acc, node) => {
|
|
372
391
|
if (node.type === "text")
|
|
373
392
|
acc.push(node.value);
|
|
374
393
|
if (node.type === "range")
|
|
375
394
|
node.type = "text";
|
|
376
395
|
return acc;
|
|
377
396
|
}, []);
|
|
378
|
-
|
|
397
|
+
exports2.flatten = (...args) => {
|
|
379
398
|
const result = [];
|
|
380
399
|
const flat = (arr) => {
|
|
381
400
|
for (let i = 0; i < arr.length; i++) {
|
|
@@ -392,7 +411,7 @@ var require_utils = __commonJS({
|
|
|
392
411
|
|
|
393
412
|
// ../../../node_modules/braces/lib/stringify.js
|
|
394
413
|
var require_stringify = __commonJS({
|
|
395
|
-
"../../../node_modules/braces/lib/stringify.js"(
|
|
414
|
+
"../../../node_modules/braces/lib/stringify.js"(exports2, module2) {
|
|
396
415
|
"use strict";
|
|
397
416
|
var utils = require_utils();
|
|
398
417
|
module2.exports = (ast, options = {}) => {
|
|
@@ -423,7 +442,7 @@ var require_stringify = __commonJS({
|
|
|
423
442
|
|
|
424
443
|
// ../../../node_modules/is-number/index.js
|
|
425
444
|
var require_is_number = __commonJS({
|
|
426
|
-
"../../../node_modules/is-number/index.js"(
|
|
445
|
+
"../../../node_modules/is-number/index.js"(exports2, module2) {
|
|
427
446
|
"use strict";
|
|
428
447
|
module2.exports = function(num) {
|
|
429
448
|
if (typeof num === "number") {
|
|
@@ -439,7 +458,7 @@ var require_is_number = __commonJS({
|
|
|
439
458
|
|
|
440
459
|
// ../../../node_modules/to-regex-range/index.js
|
|
441
460
|
var require_to_regex_range = __commonJS({
|
|
442
|
-
"../../../node_modules/to-regex-range/index.js"(
|
|
461
|
+
"../../../node_modules/to-regex-range/index.js"(exports2, module2) {
|
|
443
462
|
"use strict";
|
|
444
463
|
var isNumber = require_is_number();
|
|
445
464
|
var toRegexRange = (min, max, options) => {
|
|
@@ -651,7 +670,7 @@ var require_to_regex_range = __commonJS({
|
|
|
651
670
|
|
|
652
671
|
// ../../../node_modules/fill-range/index.js
|
|
653
672
|
var require_fill_range = __commonJS({
|
|
654
|
-
"../../../node_modules/fill-range/index.js"(
|
|
673
|
+
"../../../node_modules/fill-range/index.js"(exports2, module2) {
|
|
655
674
|
"use strict";
|
|
656
675
|
var util = require("util");
|
|
657
676
|
var toRegexRange = require_to_regex_range();
|
|
@@ -857,7 +876,7 @@ var require_fill_range = __commonJS({
|
|
|
857
876
|
|
|
858
877
|
// ../../../node_modules/braces/lib/compile.js
|
|
859
878
|
var require_compile = __commonJS({
|
|
860
|
-
"../../../node_modules/braces/lib/compile.js"(
|
|
879
|
+
"../../../node_modules/braces/lib/compile.js"(exports2, module2) {
|
|
861
880
|
"use strict";
|
|
862
881
|
var fill = require_fill_range();
|
|
863
882
|
var utils = require_utils();
|
|
@@ -908,7 +927,7 @@ var require_compile = __commonJS({
|
|
|
908
927
|
|
|
909
928
|
// ../../../node_modules/braces/lib/expand.js
|
|
910
929
|
var require_expand = __commonJS({
|
|
911
|
-
"../../../node_modules/braces/lib/expand.js"(
|
|
930
|
+
"../../../node_modules/braces/lib/expand.js"(exports2, module2) {
|
|
912
931
|
"use strict";
|
|
913
932
|
var fill = require_fill_range();
|
|
914
933
|
var stringify = require_stringify();
|
|
@@ -1005,7 +1024,7 @@ var require_expand = __commonJS({
|
|
|
1005
1024
|
|
|
1006
1025
|
// ../../../node_modules/braces/lib/constants.js
|
|
1007
1026
|
var require_constants = __commonJS({
|
|
1008
|
-
"../../../node_modules/braces/lib/constants.js"(
|
|
1027
|
+
"../../../node_modules/braces/lib/constants.js"(exports2, module2) {
|
|
1009
1028
|
"use strict";
|
|
1010
1029
|
module2.exports = {
|
|
1011
1030
|
MAX_LENGTH: 1024 * 64,
|
|
@@ -1106,7 +1125,7 @@ var require_constants = __commonJS({
|
|
|
1106
1125
|
|
|
1107
1126
|
// ../../../node_modules/braces/lib/parse.js
|
|
1108
1127
|
var require_parse = __commonJS({
|
|
1109
|
-
"../../../node_modules/braces/lib/parse.js"(
|
|
1128
|
+
"../../../node_modules/braces/lib/parse.js"(exports2, module2) {
|
|
1110
1129
|
"use strict";
|
|
1111
1130
|
var stringify = require_stringify();
|
|
1112
1131
|
var {
|
|
@@ -1350,7 +1369,7 @@ var require_parse = __commonJS({
|
|
|
1350
1369
|
|
|
1351
1370
|
// ../../../node_modules/braces/index.js
|
|
1352
1371
|
var require_braces = __commonJS({
|
|
1353
|
-
"../../../node_modules/braces/index.js"(
|
|
1372
|
+
"../../../node_modules/braces/index.js"(exports2, module2) {
|
|
1354
1373
|
"use strict";
|
|
1355
1374
|
var stringify = require_stringify();
|
|
1356
1375
|
var compile = require_compile();
|
|
@@ -1413,7 +1432,7 @@ var require_braces = __commonJS({
|
|
|
1413
1432
|
|
|
1414
1433
|
// ../../../node_modules/picomatch/lib/constants.js
|
|
1415
1434
|
var require_constants2 = __commonJS({
|
|
1416
|
-
"../../../node_modules/picomatch/lib/constants.js"(
|
|
1435
|
+
"../../../node_modules/picomatch/lib/constants.js"(exports2, module2) {
|
|
1417
1436
|
"use strict";
|
|
1418
1437
|
var path = require("path");
|
|
1419
1438
|
var WIN_SLASH = "\\\\/";
|
|
@@ -1610,7 +1629,7 @@ var require_constants2 = __commonJS({
|
|
|
1610
1629
|
|
|
1611
1630
|
// ../../../node_modules/picomatch/lib/utils.js
|
|
1612
1631
|
var require_utils2 = __commonJS({
|
|
1613
|
-
"../../../node_modules/picomatch/lib/utils.js"(
|
|
1632
|
+
"../../../node_modules/picomatch/lib/utils.js"(exports2) {
|
|
1614
1633
|
"use strict";
|
|
1615
1634
|
var path = require("path");
|
|
1616
1635
|
var win32 = process.platform === "win32";
|
|
@@ -1620,38 +1639,38 @@ var require_utils2 = __commonJS({
|
|
|
1620
1639
|
REGEX_SPECIAL_CHARS,
|
|
1621
1640
|
REGEX_SPECIAL_CHARS_GLOBAL
|
|
1622
1641
|
} = require_constants2();
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1642
|
+
exports2.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
1643
|
+
exports2.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
|
|
1644
|
+
exports2.isRegexChar = (str) => str.length === 1 && exports2.hasRegexChars(str);
|
|
1645
|
+
exports2.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
|
|
1646
|
+
exports2.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
|
|
1647
|
+
exports2.removeBackslashes = (str) => {
|
|
1629
1648
|
return str.replace(REGEX_REMOVE_BACKSLASH, (match) => {
|
|
1630
1649
|
return match === "\\" ? "" : match;
|
|
1631
1650
|
});
|
|
1632
1651
|
};
|
|
1633
|
-
|
|
1652
|
+
exports2.supportsLookbehinds = () => {
|
|
1634
1653
|
const segs = process.version.slice(1).split(".").map(Number);
|
|
1635
1654
|
if (segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10) {
|
|
1636
1655
|
return true;
|
|
1637
1656
|
}
|
|
1638
1657
|
return false;
|
|
1639
1658
|
};
|
|
1640
|
-
|
|
1659
|
+
exports2.isWindows = (options) => {
|
|
1641
1660
|
if (options && typeof options.windows === "boolean") {
|
|
1642
1661
|
return options.windows;
|
|
1643
1662
|
}
|
|
1644
1663
|
return win32 === true || path.sep === "\\";
|
|
1645
1664
|
};
|
|
1646
|
-
|
|
1665
|
+
exports2.escapeLast = (input, char, lastIdx) => {
|
|
1647
1666
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
1648
1667
|
if (idx === -1)
|
|
1649
1668
|
return input;
|
|
1650
1669
|
if (input[idx - 1] === "\\")
|
|
1651
|
-
return
|
|
1670
|
+
return exports2.escapeLast(input, char, idx - 1);
|
|
1652
1671
|
return `${input.slice(0, idx)}\\${input.slice(idx)}`;
|
|
1653
1672
|
};
|
|
1654
|
-
|
|
1673
|
+
exports2.removePrefix = (input, state = {}) => {
|
|
1655
1674
|
let output = input;
|
|
1656
1675
|
if (output.startsWith("./")) {
|
|
1657
1676
|
output = output.slice(2);
|
|
@@ -1659,7 +1678,7 @@ var require_utils2 = __commonJS({
|
|
|
1659
1678
|
}
|
|
1660
1679
|
return output;
|
|
1661
1680
|
};
|
|
1662
|
-
|
|
1681
|
+
exports2.wrapOutput = (input, state = {}, options = {}) => {
|
|
1663
1682
|
const prepend = options.contains ? "" : "^";
|
|
1664
1683
|
const append = options.contains ? "" : "$";
|
|
1665
1684
|
let output = `${prepend}(?:${input})${append}`;
|
|
@@ -1673,7 +1692,7 @@ var require_utils2 = __commonJS({
|
|
|
1673
1692
|
|
|
1674
1693
|
// ../../../node_modules/picomatch/lib/scan.js
|
|
1675
1694
|
var require_scan = __commonJS({
|
|
1676
|
-
"../../../node_modules/picomatch/lib/scan.js"(
|
|
1695
|
+
"../../../node_modules/picomatch/lib/scan.js"(exports2, module2) {
|
|
1677
1696
|
"use strict";
|
|
1678
1697
|
var utils = require_utils2();
|
|
1679
1698
|
var {
|
|
@@ -2006,7 +2025,7 @@ var require_scan = __commonJS({
|
|
|
2006
2025
|
|
|
2007
2026
|
// ../../../node_modules/picomatch/lib/parse.js
|
|
2008
2027
|
var require_parse2 = __commonJS({
|
|
2009
|
-
"../../../node_modules/picomatch/lib/parse.js"(
|
|
2028
|
+
"../../../node_modules/picomatch/lib/parse.js"(exports2, module2) {
|
|
2010
2029
|
"use strict";
|
|
2011
2030
|
var constants = require_constants2();
|
|
2012
2031
|
var utils = require_utils2();
|
|
@@ -2787,7 +2806,7 @@ var require_parse2 = __commonJS({
|
|
|
2787
2806
|
|
|
2788
2807
|
// ../../../node_modules/picomatch/lib/picomatch.js
|
|
2789
2808
|
var require_picomatch = __commonJS({
|
|
2790
|
-
"../../../node_modules/picomatch/lib/picomatch.js"(
|
|
2809
|
+
"../../../node_modules/picomatch/lib/picomatch.js"(exports2, module2) {
|
|
2791
2810
|
"use strict";
|
|
2792
2811
|
var path = require("path");
|
|
2793
2812
|
var scan = require_scan();
|
|
@@ -2931,7 +2950,7 @@ var require_picomatch = __commonJS({
|
|
|
2931
2950
|
|
|
2932
2951
|
// ../../../node_modules/picomatch/index.js
|
|
2933
2952
|
var require_picomatch2 = __commonJS({
|
|
2934
|
-
"../../../node_modules/picomatch/index.js"(
|
|
2953
|
+
"../../../node_modules/picomatch/index.js"(exports2, module2) {
|
|
2935
2954
|
"use strict";
|
|
2936
2955
|
module2.exports = require_picomatch();
|
|
2937
2956
|
}
|
|
@@ -2939,7 +2958,7 @@ var require_picomatch2 = __commonJS({
|
|
|
2939
2958
|
|
|
2940
2959
|
// ../../../node_modules/micromatch/index.js
|
|
2941
2960
|
var require_micromatch = __commonJS({
|
|
2942
|
-
"../../../node_modules/micromatch/index.js"(
|
|
2961
|
+
"../../../node_modules/micromatch/index.js"(exports2, module2) {
|
|
2943
2962
|
"use strict";
|
|
2944
2963
|
var util = require("util");
|
|
2945
2964
|
var braces = require_braces();
|
|
@@ -3101,10 +3120,10 @@ var require_micromatch = __commonJS({
|
|
|
3101
3120
|
|
|
3102
3121
|
// ../../../node_modules/fast-glob/out/utils/pattern.js
|
|
3103
3122
|
var require_pattern = __commonJS({
|
|
3104
|
-
"../../../node_modules/fast-glob/out/utils/pattern.js"(
|
|
3123
|
+
"../../../node_modules/fast-glob/out/utils/pattern.js"(exports2) {
|
|
3105
3124
|
"use strict";
|
|
3106
|
-
Object.defineProperty(
|
|
3107
|
-
|
|
3125
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3126
|
+
exports2.removeDuplicateSlashes = exports2.matchAny = exports2.convertPatternsToRe = exports2.makeRe = exports2.getPatternParts = exports2.expandBraceExpansion = exports2.expandPatternsWithBraceExpansion = exports2.isAffectDepthOfReadingPattern = exports2.endsWithSlashGlobStar = exports2.hasGlobStar = exports2.getBaseDirectory = exports2.isPatternRelatedToParentDirectory = exports2.getPatternsOutsideCurrentDirectory = exports2.getPatternsInsideCurrentDirectory = exports2.getPositivePatterns = exports2.getNegativePatterns = exports2.isPositivePattern = exports2.isNegativePattern = exports2.convertToNegativePattern = exports2.convertToPositivePattern = exports2.isDynamicPattern = exports2.isStaticPattern = void 0;
|
|
3108
3127
|
var path = require("path");
|
|
3109
3128
|
var globParent = require_glob_parent();
|
|
3110
3129
|
var micromatch = require_micromatch();
|
|
@@ -3115,10 +3134,11 @@ var require_pattern = __commonJS({
|
|
|
3115
3134
|
var REGEX_GROUP_SYMBOLS_RE = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;
|
|
3116
3135
|
var GLOB_EXTENSION_SYMBOLS_RE = /[!*+?@]\([^(]*\)/;
|
|
3117
3136
|
var BRACE_EXPANSION_SEPARATORS_RE = /,|\.\./;
|
|
3137
|
+
var DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
|
|
3118
3138
|
function isStaticPattern(pattern, options = {}) {
|
|
3119
3139
|
return !isDynamicPattern(pattern, options);
|
|
3120
3140
|
}
|
|
3121
|
-
|
|
3141
|
+
exports2.isStaticPattern = isStaticPattern;
|
|
3122
3142
|
function isDynamicPattern(pattern, options = {}) {
|
|
3123
3143
|
if (pattern === "") {
|
|
3124
3144
|
return false;
|
|
@@ -3137,7 +3157,7 @@ var require_pattern = __commonJS({
|
|
|
3137
3157
|
}
|
|
3138
3158
|
return false;
|
|
3139
3159
|
}
|
|
3140
|
-
|
|
3160
|
+
exports2.isDynamicPattern = isDynamicPattern;
|
|
3141
3161
|
function hasBraceExpansion(pattern) {
|
|
3142
3162
|
const openingBraceIndex = pattern.indexOf("{");
|
|
3143
3163
|
if (openingBraceIndex === -1) {
|
|
@@ -3153,69 +3173,68 @@ var require_pattern = __commonJS({
|
|
|
3153
3173
|
function convertToPositivePattern(pattern) {
|
|
3154
3174
|
return isNegativePattern(pattern) ? pattern.slice(1) : pattern;
|
|
3155
3175
|
}
|
|
3156
|
-
|
|
3176
|
+
exports2.convertToPositivePattern = convertToPositivePattern;
|
|
3157
3177
|
function convertToNegativePattern(pattern) {
|
|
3158
3178
|
return "!" + pattern;
|
|
3159
3179
|
}
|
|
3160
|
-
|
|
3180
|
+
exports2.convertToNegativePattern = convertToNegativePattern;
|
|
3161
3181
|
function isNegativePattern(pattern) {
|
|
3162
3182
|
return pattern.startsWith("!") && pattern[1] !== "(";
|
|
3163
3183
|
}
|
|
3164
|
-
|
|
3184
|
+
exports2.isNegativePattern = isNegativePattern;
|
|
3165
3185
|
function isPositivePattern(pattern) {
|
|
3166
3186
|
return !isNegativePattern(pattern);
|
|
3167
3187
|
}
|
|
3168
|
-
|
|
3188
|
+
exports2.isPositivePattern = isPositivePattern;
|
|
3169
3189
|
function getNegativePatterns(patterns) {
|
|
3170
3190
|
return patterns.filter(isNegativePattern);
|
|
3171
3191
|
}
|
|
3172
|
-
|
|
3192
|
+
exports2.getNegativePatterns = getNegativePatterns;
|
|
3173
3193
|
function getPositivePatterns(patterns) {
|
|
3174
3194
|
return patterns.filter(isPositivePattern);
|
|
3175
3195
|
}
|
|
3176
|
-
|
|
3196
|
+
exports2.getPositivePatterns = getPositivePatterns;
|
|
3177
3197
|
function getPatternsInsideCurrentDirectory(patterns) {
|
|
3178
3198
|
return patterns.filter((pattern) => !isPatternRelatedToParentDirectory(pattern));
|
|
3179
3199
|
}
|
|
3180
|
-
|
|
3200
|
+
exports2.getPatternsInsideCurrentDirectory = getPatternsInsideCurrentDirectory;
|
|
3181
3201
|
function getPatternsOutsideCurrentDirectory(patterns) {
|
|
3182
3202
|
return patterns.filter(isPatternRelatedToParentDirectory);
|
|
3183
3203
|
}
|
|
3184
|
-
|
|
3204
|
+
exports2.getPatternsOutsideCurrentDirectory = getPatternsOutsideCurrentDirectory;
|
|
3185
3205
|
function isPatternRelatedToParentDirectory(pattern) {
|
|
3186
3206
|
return pattern.startsWith("..") || pattern.startsWith("./..");
|
|
3187
3207
|
}
|
|
3188
|
-
|
|
3208
|
+
exports2.isPatternRelatedToParentDirectory = isPatternRelatedToParentDirectory;
|
|
3189
3209
|
function getBaseDirectory(pattern) {
|
|
3190
3210
|
return globParent(pattern, { flipBackslashes: false });
|
|
3191
3211
|
}
|
|
3192
|
-
|
|
3212
|
+
exports2.getBaseDirectory = getBaseDirectory;
|
|
3193
3213
|
function hasGlobStar(pattern) {
|
|
3194
3214
|
return pattern.includes(GLOBSTAR);
|
|
3195
3215
|
}
|
|
3196
|
-
|
|
3216
|
+
exports2.hasGlobStar = hasGlobStar;
|
|
3197
3217
|
function endsWithSlashGlobStar(pattern) {
|
|
3198
3218
|
return pattern.endsWith("/" + GLOBSTAR);
|
|
3199
3219
|
}
|
|
3200
|
-
|
|
3220
|
+
exports2.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
3201
3221
|
function isAffectDepthOfReadingPattern(pattern) {
|
|
3202
3222
|
const basename = path.basename(pattern);
|
|
3203
3223
|
return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
|
|
3204
3224
|
}
|
|
3205
|
-
|
|
3225
|
+
exports2.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
|
|
3206
3226
|
function expandPatternsWithBraceExpansion(patterns) {
|
|
3207
3227
|
return patterns.reduce((collection, pattern) => {
|
|
3208
3228
|
return collection.concat(expandBraceExpansion(pattern));
|
|
3209
3229
|
}, []);
|
|
3210
3230
|
}
|
|
3211
|
-
|
|
3231
|
+
exports2.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
|
|
3212
3232
|
function expandBraceExpansion(pattern) {
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
});
|
|
3233
|
+
const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true });
|
|
3234
|
+
patterns.sort((a, b) => a.length - b.length);
|
|
3235
|
+
return patterns.filter((pattern2) => pattern2 !== "");
|
|
3217
3236
|
}
|
|
3218
|
-
|
|
3237
|
+
exports2.expandBraceExpansion = expandBraceExpansion;
|
|
3219
3238
|
function getPatternParts(pattern, options) {
|
|
3220
3239
|
let { parts } = micromatch.scan(pattern, Object.assign(Object.assign({}, options), { parts: true }));
|
|
3221
3240
|
if (parts.length === 0) {
|
|
@@ -3227,25 +3246,29 @@ var require_pattern = __commonJS({
|
|
|
3227
3246
|
}
|
|
3228
3247
|
return parts;
|
|
3229
3248
|
}
|
|
3230
|
-
|
|
3249
|
+
exports2.getPatternParts = getPatternParts;
|
|
3231
3250
|
function makeRe(pattern, options) {
|
|
3232
3251
|
return micromatch.makeRe(pattern, options);
|
|
3233
3252
|
}
|
|
3234
|
-
|
|
3253
|
+
exports2.makeRe = makeRe;
|
|
3235
3254
|
function convertPatternsToRe(patterns, options) {
|
|
3236
3255
|
return patterns.map((pattern) => makeRe(pattern, options));
|
|
3237
3256
|
}
|
|
3238
|
-
|
|
3257
|
+
exports2.convertPatternsToRe = convertPatternsToRe;
|
|
3239
3258
|
function matchAny(entry, patternsRe) {
|
|
3240
3259
|
return patternsRe.some((patternRe) => patternRe.test(entry));
|
|
3241
3260
|
}
|
|
3242
|
-
|
|
3261
|
+
exports2.matchAny = matchAny;
|
|
3262
|
+
function removeDuplicateSlashes(pattern) {
|
|
3263
|
+
return pattern.replace(DOUBLE_SLASH_RE, "/");
|
|
3264
|
+
}
|
|
3265
|
+
exports2.removeDuplicateSlashes = removeDuplicateSlashes;
|
|
3243
3266
|
}
|
|
3244
3267
|
});
|
|
3245
3268
|
|
|
3246
3269
|
// ../../../node_modules/merge2/index.js
|
|
3247
3270
|
var require_merge2 = __commonJS({
|
|
3248
|
-
"../../../node_modules/merge2/index.js"(
|
|
3271
|
+
"../../../node_modules/merge2/index.js"(exports2, module2) {
|
|
3249
3272
|
"use strict";
|
|
3250
3273
|
var Stream = require("stream");
|
|
3251
3274
|
var PassThrough = Stream.PassThrough;
|
|
@@ -3364,12 +3387,12 @@ var require_merge2 = __commonJS({
|
|
|
3364
3387
|
|
|
3365
3388
|
// ../../../node_modules/fast-glob/out/utils/stream.js
|
|
3366
3389
|
var require_stream = __commonJS({
|
|
3367
|
-
"../../../node_modules/fast-glob/out/utils/stream.js"(
|
|
3390
|
+
"../../../node_modules/fast-glob/out/utils/stream.js"(exports2) {
|
|
3368
3391
|
"use strict";
|
|
3369
|
-
Object.defineProperty(
|
|
3370
|
-
|
|
3392
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3393
|
+
exports2.merge = void 0;
|
|
3371
3394
|
var merge22 = require_merge2();
|
|
3372
|
-
function
|
|
3395
|
+
function merge6(streams) {
|
|
3373
3396
|
const mergedStream = merge22(streams);
|
|
3374
3397
|
streams.forEach((stream) => {
|
|
3375
3398
|
stream.once("error", (error) => mergedStream.emit("error", error));
|
|
@@ -3378,7 +3401,7 @@ var require_stream = __commonJS({
|
|
|
3378
3401
|
mergedStream.once("end", () => propagateCloseEventToSources(streams));
|
|
3379
3402
|
return mergedStream;
|
|
3380
3403
|
}
|
|
3381
|
-
|
|
3404
|
+
exports2.merge = merge6;
|
|
3382
3405
|
function propagateCloseEventToSources(streams) {
|
|
3383
3406
|
streams.forEach((stream) => stream.emit("close"));
|
|
3384
3407
|
}
|
|
@@ -3387,54 +3410,56 @@ var require_stream = __commonJS({
|
|
|
3387
3410
|
|
|
3388
3411
|
// ../../../node_modules/fast-glob/out/utils/string.js
|
|
3389
3412
|
var require_string = __commonJS({
|
|
3390
|
-
"../../../node_modules/fast-glob/out/utils/string.js"(
|
|
3413
|
+
"../../../node_modules/fast-glob/out/utils/string.js"(exports2) {
|
|
3391
3414
|
"use strict";
|
|
3392
|
-
Object.defineProperty(
|
|
3393
|
-
|
|
3415
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3416
|
+
exports2.isEmpty = exports2.isString = void 0;
|
|
3394
3417
|
function isString(input) {
|
|
3395
3418
|
return typeof input === "string";
|
|
3396
3419
|
}
|
|
3397
|
-
|
|
3420
|
+
exports2.isString = isString;
|
|
3398
3421
|
function isEmpty(input) {
|
|
3399
3422
|
return input === "";
|
|
3400
3423
|
}
|
|
3401
|
-
|
|
3424
|
+
exports2.isEmpty = isEmpty;
|
|
3402
3425
|
}
|
|
3403
3426
|
});
|
|
3404
3427
|
|
|
3405
3428
|
// ../../../node_modules/fast-glob/out/utils/index.js
|
|
3406
3429
|
var require_utils3 = __commonJS({
|
|
3407
|
-
"../../../node_modules/fast-glob/out/utils/index.js"(
|
|
3430
|
+
"../../../node_modules/fast-glob/out/utils/index.js"(exports2) {
|
|
3408
3431
|
"use strict";
|
|
3409
|
-
Object.defineProperty(
|
|
3410
|
-
|
|
3432
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3433
|
+
exports2.string = exports2.stream = exports2.pattern = exports2.path = exports2.fs = exports2.errno = exports2.array = void 0;
|
|
3411
3434
|
var array = require_array();
|
|
3412
|
-
|
|
3435
|
+
exports2.array = array;
|
|
3413
3436
|
var errno = require_errno();
|
|
3414
|
-
|
|
3437
|
+
exports2.errno = errno;
|
|
3415
3438
|
var fs = require_fs();
|
|
3416
|
-
|
|
3439
|
+
exports2.fs = fs;
|
|
3417
3440
|
var path = require_path();
|
|
3418
|
-
|
|
3441
|
+
exports2.path = path;
|
|
3419
3442
|
var pattern = require_pattern();
|
|
3420
|
-
|
|
3443
|
+
exports2.pattern = pattern;
|
|
3421
3444
|
var stream = require_stream();
|
|
3422
|
-
|
|
3445
|
+
exports2.stream = stream;
|
|
3423
3446
|
var string = require_string();
|
|
3424
|
-
|
|
3447
|
+
exports2.string = string;
|
|
3425
3448
|
}
|
|
3426
3449
|
});
|
|
3427
3450
|
|
|
3428
3451
|
// ../../../node_modules/fast-glob/out/managers/tasks.js
|
|
3429
3452
|
var require_tasks = __commonJS({
|
|
3430
|
-
"../../../node_modules/fast-glob/out/managers/tasks.js"(
|
|
3453
|
+
"../../../node_modules/fast-glob/out/managers/tasks.js"(exports2) {
|
|
3431
3454
|
"use strict";
|
|
3432
|
-
Object.defineProperty(
|
|
3433
|
-
|
|
3455
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3456
|
+
exports2.convertPatternGroupToTask = exports2.convertPatternGroupsToTasks = exports2.groupPatternsByBaseDirectory = exports2.getNegativePatternsAsPositive = exports2.getPositivePatterns = exports2.convertPatternsToTasks = exports2.generate = void 0;
|
|
3434
3457
|
var utils = require_utils3();
|
|
3435
|
-
function generate(
|
|
3458
|
+
function generate(input, settings) {
|
|
3459
|
+
const patterns = processPatterns(input, settings);
|
|
3460
|
+
const ignore = processPatterns(settings.ignore, settings);
|
|
3436
3461
|
const positivePatterns = getPositivePatterns(patterns);
|
|
3437
|
-
const negativePatterns = getNegativePatternsAsPositive(patterns,
|
|
3462
|
+
const negativePatterns = getNegativePatternsAsPositive(patterns, ignore);
|
|
3438
3463
|
const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings));
|
|
3439
3464
|
const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings));
|
|
3440
3465
|
const staticTasks = convertPatternsToTasks(
|
|
@@ -3451,7 +3476,17 @@ var require_tasks = __commonJS({
|
|
|
3451
3476
|
);
|
|
3452
3477
|
return staticTasks.concat(dynamicTasks);
|
|
3453
3478
|
}
|
|
3454
|
-
|
|
3479
|
+
exports2.generate = generate;
|
|
3480
|
+
function processPatterns(input, settings) {
|
|
3481
|
+
let patterns = input;
|
|
3482
|
+
if (settings.braceExpansion) {
|
|
3483
|
+
patterns = utils.pattern.expandPatternsWithBraceExpansion(patterns);
|
|
3484
|
+
}
|
|
3485
|
+
if (settings.baseNameMatch) {
|
|
3486
|
+
patterns = patterns.map((pattern) => pattern.includes("/") ? pattern : `**/${pattern}`);
|
|
3487
|
+
}
|
|
3488
|
+
return patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern));
|
|
3489
|
+
}
|
|
3455
3490
|
function convertPatternsToTasks(positive, negative, dynamic) {
|
|
3456
3491
|
const tasks = [];
|
|
3457
3492
|
const patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive);
|
|
@@ -3466,17 +3501,17 @@ var require_tasks = __commonJS({
|
|
|
3466
3501
|
}
|
|
3467
3502
|
return tasks;
|
|
3468
3503
|
}
|
|
3469
|
-
|
|
3504
|
+
exports2.convertPatternsToTasks = convertPatternsToTasks;
|
|
3470
3505
|
function getPositivePatterns(patterns) {
|
|
3471
3506
|
return utils.pattern.getPositivePatterns(patterns);
|
|
3472
3507
|
}
|
|
3473
|
-
|
|
3508
|
+
exports2.getPositivePatterns = getPositivePatterns;
|
|
3474
3509
|
function getNegativePatternsAsPositive(patterns, ignore) {
|
|
3475
3510
|
const negative = utils.pattern.getNegativePatterns(patterns).concat(ignore);
|
|
3476
3511
|
const positive = negative.map(utils.pattern.convertToPositivePattern);
|
|
3477
3512
|
return positive;
|
|
3478
3513
|
}
|
|
3479
|
-
|
|
3514
|
+
exports2.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
|
|
3480
3515
|
function groupPatternsByBaseDirectory(patterns) {
|
|
3481
3516
|
const group = {};
|
|
3482
3517
|
return patterns.reduce((collection, pattern) => {
|
|
@@ -3489,13 +3524,13 @@ var require_tasks = __commonJS({
|
|
|
3489
3524
|
return collection;
|
|
3490
3525
|
}, group);
|
|
3491
3526
|
}
|
|
3492
|
-
|
|
3527
|
+
exports2.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory;
|
|
3493
3528
|
function convertPatternGroupsToTasks(positive, negative, dynamic) {
|
|
3494
3529
|
return Object.keys(positive).map((base) => {
|
|
3495
3530
|
return convertPatternGroupToTask(base, positive[base], negative, dynamic);
|
|
3496
3531
|
});
|
|
3497
3532
|
}
|
|
3498
|
-
|
|
3533
|
+
exports2.convertPatternGroupsToTasks = convertPatternGroupsToTasks;
|
|
3499
3534
|
function convertPatternGroupToTask(base, positive, negative, dynamic) {
|
|
3500
3535
|
return {
|
|
3501
3536
|
dynamic,
|
|
@@ -3505,34 +3540,16 @@ var require_tasks = __commonJS({
|
|
|
3505
3540
|
patterns: [].concat(positive, negative.map(utils.pattern.convertToNegativePattern))
|
|
3506
3541
|
};
|
|
3507
3542
|
}
|
|
3508
|
-
|
|
3509
|
-
}
|
|
3510
|
-
});
|
|
3511
|
-
|
|
3512
|
-
// ../../../node_modules/fast-glob/out/managers/patterns.js
|
|
3513
|
-
var require_patterns = __commonJS({
|
|
3514
|
-
"../../../node_modules/fast-glob/out/managers/patterns.js"(exports) {
|
|
3515
|
-
"use strict";
|
|
3516
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3517
|
-
exports.removeDuplicateSlashes = exports.transform = void 0;
|
|
3518
|
-
var DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
|
|
3519
|
-
function transform(patterns) {
|
|
3520
|
-
return patterns.map((pattern) => removeDuplicateSlashes(pattern));
|
|
3521
|
-
}
|
|
3522
|
-
exports.transform = transform;
|
|
3523
|
-
function removeDuplicateSlashes(pattern) {
|
|
3524
|
-
return pattern.replace(DOUBLE_SLASH_RE, "/");
|
|
3525
|
-
}
|
|
3526
|
-
exports.removeDuplicateSlashes = removeDuplicateSlashes;
|
|
3543
|
+
exports2.convertPatternGroupToTask = convertPatternGroupToTask;
|
|
3527
3544
|
}
|
|
3528
3545
|
});
|
|
3529
3546
|
|
|
3530
3547
|
// ../../../node_modules/@nodelib/fs.stat/out/providers/async.js
|
|
3531
3548
|
var require_async = __commonJS({
|
|
3532
|
-
"../../../node_modules/@nodelib/fs.stat/out/providers/async.js"(
|
|
3549
|
+
"../../../node_modules/@nodelib/fs.stat/out/providers/async.js"(exports2) {
|
|
3533
3550
|
"use strict";
|
|
3534
|
-
Object.defineProperty(
|
|
3535
|
-
|
|
3551
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3552
|
+
exports2.read = void 0;
|
|
3536
3553
|
function read(path, settings, callback) {
|
|
3537
3554
|
settings.fs.lstat(path, (lstatError, lstat) => {
|
|
3538
3555
|
if (lstatError !== null) {
|
|
@@ -3559,7 +3576,7 @@ var require_async = __commonJS({
|
|
|
3559
3576
|
});
|
|
3560
3577
|
});
|
|
3561
3578
|
}
|
|
3562
|
-
|
|
3579
|
+
exports2.read = read;
|
|
3563
3580
|
function callFailureCallback(callback, error) {
|
|
3564
3581
|
callback(error);
|
|
3565
3582
|
}
|
|
@@ -3571,10 +3588,10 @@ var require_async = __commonJS({
|
|
|
3571
3588
|
|
|
3572
3589
|
// ../../../node_modules/@nodelib/fs.stat/out/providers/sync.js
|
|
3573
3590
|
var require_sync = __commonJS({
|
|
3574
|
-
"../../../node_modules/@nodelib/fs.stat/out/providers/sync.js"(
|
|
3591
|
+
"../../../node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports2) {
|
|
3575
3592
|
"use strict";
|
|
3576
|
-
Object.defineProperty(
|
|
3577
|
-
|
|
3593
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3594
|
+
exports2.read = void 0;
|
|
3578
3595
|
function read(path, settings) {
|
|
3579
3596
|
const lstat = settings.fs.lstatSync(path);
|
|
3580
3597
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
@@ -3593,18 +3610,18 @@ var require_sync = __commonJS({
|
|
|
3593
3610
|
throw error;
|
|
3594
3611
|
}
|
|
3595
3612
|
}
|
|
3596
|
-
|
|
3613
|
+
exports2.read = read;
|
|
3597
3614
|
}
|
|
3598
3615
|
});
|
|
3599
3616
|
|
|
3600
3617
|
// ../../../node_modules/@nodelib/fs.stat/out/adapters/fs.js
|
|
3601
3618
|
var require_fs2 = __commonJS({
|
|
3602
|
-
"../../../node_modules/@nodelib/fs.stat/out/adapters/fs.js"(
|
|
3619
|
+
"../../../node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports2) {
|
|
3603
3620
|
"use strict";
|
|
3604
|
-
Object.defineProperty(
|
|
3605
|
-
|
|
3621
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3622
|
+
exports2.createFileSystemAdapter = exports2.FILE_SYSTEM_ADAPTER = void 0;
|
|
3606
3623
|
var fs = require("fs");
|
|
3607
|
-
|
|
3624
|
+
exports2.FILE_SYSTEM_ADAPTER = {
|
|
3608
3625
|
lstat: fs.lstat,
|
|
3609
3626
|
stat: fs.stat,
|
|
3610
3627
|
lstatSync: fs.lstatSync,
|
|
@@ -3612,19 +3629,19 @@ var require_fs2 = __commonJS({
|
|
|
3612
3629
|
};
|
|
3613
3630
|
function createFileSystemAdapter(fsMethods) {
|
|
3614
3631
|
if (fsMethods === void 0) {
|
|
3615
|
-
return
|
|
3632
|
+
return exports2.FILE_SYSTEM_ADAPTER;
|
|
3616
3633
|
}
|
|
3617
|
-
return Object.assign(Object.assign({},
|
|
3634
|
+
return Object.assign(Object.assign({}, exports2.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
3618
3635
|
}
|
|
3619
|
-
|
|
3636
|
+
exports2.createFileSystemAdapter = createFileSystemAdapter;
|
|
3620
3637
|
}
|
|
3621
3638
|
});
|
|
3622
3639
|
|
|
3623
3640
|
// ../../../node_modules/@nodelib/fs.stat/out/settings.js
|
|
3624
3641
|
var require_settings = __commonJS({
|
|
3625
|
-
"../../../node_modules/@nodelib/fs.stat/out/settings.js"(
|
|
3642
|
+
"../../../node_modules/@nodelib/fs.stat/out/settings.js"(exports2) {
|
|
3626
3643
|
"use strict";
|
|
3627
|
-
Object.defineProperty(
|
|
3644
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3628
3645
|
var fs = require_fs2();
|
|
3629
3646
|
var Settings = class {
|
|
3630
3647
|
constructor(_options = {}) {
|
|
@@ -3638,20 +3655,20 @@ var require_settings = __commonJS({
|
|
|
3638
3655
|
return option !== null && option !== void 0 ? option : value;
|
|
3639
3656
|
}
|
|
3640
3657
|
};
|
|
3641
|
-
|
|
3658
|
+
exports2.default = Settings;
|
|
3642
3659
|
}
|
|
3643
3660
|
});
|
|
3644
3661
|
|
|
3645
3662
|
// ../../../node_modules/@nodelib/fs.stat/out/index.js
|
|
3646
3663
|
var require_out = __commonJS({
|
|
3647
|
-
"../../../node_modules/@nodelib/fs.stat/out/index.js"(
|
|
3664
|
+
"../../../node_modules/@nodelib/fs.stat/out/index.js"(exports2) {
|
|
3648
3665
|
"use strict";
|
|
3649
|
-
Object.defineProperty(
|
|
3650
|
-
|
|
3666
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3667
|
+
exports2.statSync = exports2.stat = exports2.Settings = void 0;
|
|
3651
3668
|
var async = require_async();
|
|
3652
3669
|
var sync = require_sync();
|
|
3653
3670
|
var settings_1 = require_settings();
|
|
3654
|
-
|
|
3671
|
+
exports2.Settings = settings_1.default;
|
|
3655
3672
|
function stat(path, optionsOrSettingsOrCallback, callback) {
|
|
3656
3673
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
3657
3674
|
async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
|
@@ -3659,12 +3676,12 @@ var require_out = __commonJS({
|
|
|
3659
3676
|
}
|
|
3660
3677
|
async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
|
|
3661
3678
|
}
|
|
3662
|
-
|
|
3679
|
+
exports2.stat = stat;
|
|
3663
3680
|
function statSync(path, optionsOrSettings) {
|
|
3664
3681
|
const settings = getSettings(optionsOrSettings);
|
|
3665
3682
|
return sync.read(path, settings);
|
|
3666
3683
|
}
|
|
3667
|
-
|
|
3684
|
+
exports2.statSync = statSync;
|
|
3668
3685
|
function getSettings(settingsOrOptions = {}) {
|
|
3669
3686
|
if (settingsOrOptions instanceof settings_1.default) {
|
|
3670
3687
|
return settingsOrOptions;
|
|
@@ -3676,7 +3693,7 @@ var require_out = __commonJS({
|
|
|
3676
3693
|
|
|
3677
3694
|
// ../../../node_modules/queue-microtask/index.js
|
|
3678
3695
|
var require_queue_microtask = __commonJS({
|
|
3679
|
-
"../../../node_modules/queue-microtask/index.js"(
|
|
3696
|
+
"../../../node_modules/queue-microtask/index.js"(exports2, module2) {
|
|
3680
3697
|
var promise;
|
|
3681
3698
|
module2.exports = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : global) : (cb) => (promise || (promise = Promise.resolve())).then(cb).catch((err) => setTimeout(() => {
|
|
3682
3699
|
throw err;
|
|
@@ -3686,7 +3703,7 @@ var require_queue_microtask = __commonJS({
|
|
|
3686
3703
|
|
|
3687
3704
|
// ../../../node_modules/run-parallel/index.js
|
|
3688
3705
|
var require_run_parallel = __commonJS({
|
|
3689
|
-
"../../../node_modules/run-parallel/index.js"(
|
|
3706
|
+
"../../../node_modules/run-parallel/index.js"(exports2, module2) {
|
|
3690
3707
|
module2.exports = runParallel;
|
|
3691
3708
|
var queueMicrotask2 = require_queue_microtask();
|
|
3692
3709
|
function runParallel(tasks, cb) {
|
|
@@ -3739,10 +3756,10 @@ var require_run_parallel = __commonJS({
|
|
|
3739
3756
|
|
|
3740
3757
|
// ../../../node_modules/@nodelib/fs.scandir/out/constants.js
|
|
3741
3758
|
var require_constants3 = __commonJS({
|
|
3742
|
-
"../../../node_modules/@nodelib/fs.scandir/out/constants.js"(
|
|
3759
|
+
"../../../node_modules/@nodelib/fs.scandir/out/constants.js"(exports2) {
|
|
3743
3760
|
"use strict";
|
|
3744
|
-
Object.defineProperty(
|
|
3745
|
-
|
|
3761
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3762
|
+
exports2.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
3746
3763
|
var NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
|
|
3747
3764
|
if (NODE_PROCESS_VERSION_PARTS[0] === void 0 || NODE_PROCESS_VERSION_PARTS[1] === void 0) {
|
|
3748
3765
|
throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
|
|
@@ -3753,16 +3770,16 @@ var require_constants3 = __commonJS({
|
|
|
3753
3770
|
var SUPPORTED_MINOR_VERSION = 10;
|
|
3754
3771
|
var IS_MATCHED_BY_MAJOR = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION;
|
|
3755
3772
|
var IS_MATCHED_BY_MAJOR_AND_MINOR = MAJOR_VERSION === SUPPORTED_MAJOR_VERSION && MINOR_VERSION >= SUPPORTED_MINOR_VERSION;
|
|
3756
|
-
|
|
3773
|
+
exports2.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_BY_MAJOR_AND_MINOR;
|
|
3757
3774
|
}
|
|
3758
3775
|
});
|
|
3759
3776
|
|
|
3760
3777
|
// ../../../node_modules/@nodelib/fs.scandir/out/utils/fs.js
|
|
3761
3778
|
var require_fs3 = __commonJS({
|
|
3762
|
-
"../../../node_modules/@nodelib/fs.scandir/out/utils/fs.js"(
|
|
3779
|
+
"../../../node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports2) {
|
|
3763
3780
|
"use strict";
|
|
3764
|
-
Object.defineProperty(
|
|
3765
|
-
|
|
3781
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3782
|
+
exports2.createDirentFromStats = void 0;
|
|
3766
3783
|
var DirentFromStats = class {
|
|
3767
3784
|
constructor(name, stats) {
|
|
3768
3785
|
this.name = name;
|
|
@@ -3778,43 +3795,43 @@ var require_fs3 = __commonJS({
|
|
|
3778
3795
|
function createDirentFromStats(name, stats) {
|
|
3779
3796
|
return new DirentFromStats(name, stats);
|
|
3780
3797
|
}
|
|
3781
|
-
|
|
3798
|
+
exports2.createDirentFromStats = createDirentFromStats;
|
|
3782
3799
|
}
|
|
3783
3800
|
});
|
|
3784
3801
|
|
|
3785
3802
|
// ../../../node_modules/@nodelib/fs.scandir/out/utils/index.js
|
|
3786
3803
|
var require_utils4 = __commonJS({
|
|
3787
|
-
"../../../node_modules/@nodelib/fs.scandir/out/utils/index.js"(
|
|
3804
|
+
"../../../node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports2) {
|
|
3788
3805
|
"use strict";
|
|
3789
|
-
Object.defineProperty(
|
|
3790
|
-
|
|
3806
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3807
|
+
exports2.fs = void 0;
|
|
3791
3808
|
var fs = require_fs3();
|
|
3792
|
-
|
|
3809
|
+
exports2.fs = fs;
|
|
3793
3810
|
}
|
|
3794
3811
|
});
|
|
3795
3812
|
|
|
3796
3813
|
// ../../../node_modules/@nodelib/fs.scandir/out/providers/common.js
|
|
3797
3814
|
var require_common = __commonJS({
|
|
3798
|
-
"../../../node_modules/@nodelib/fs.scandir/out/providers/common.js"(
|
|
3815
|
+
"../../../node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports2) {
|
|
3799
3816
|
"use strict";
|
|
3800
|
-
Object.defineProperty(
|
|
3801
|
-
|
|
3817
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3818
|
+
exports2.joinPathSegments = void 0;
|
|
3802
3819
|
function joinPathSegments(a, b, separator) {
|
|
3803
3820
|
if (a.endsWith(separator)) {
|
|
3804
3821
|
return a + b;
|
|
3805
3822
|
}
|
|
3806
3823
|
return a + separator + b;
|
|
3807
3824
|
}
|
|
3808
|
-
|
|
3825
|
+
exports2.joinPathSegments = joinPathSegments;
|
|
3809
3826
|
}
|
|
3810
3827
|
});
|
|
3811
3828
|
|
|
3812
3829
|
// ../../../node_modules/@nodelib/fs.scandir/out/providers/async.js
|
|
3813
3830
|
var require_async2 = __commonJS({
|
|
3814
|
-
"../../../node_modules/@nodelib/fs.scandir/out/providers/async.js"(
|
|
3831
|
+
"../../../node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports2) {
|
|
3815
3832
|
"use strict";
|
|
3816
|
-
Object.defineProperty(
|
|
3817
|
-
|
|
3833
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3834
|
+
exports2.readdir = exports2.readdirWithFileTypes = exports2.read = void 0;
|
|
3818
3835
|
var fsStat = require_out();
|
|
3819
3836
|
var rpl = require_run_parallel();
|
|
3820
3837
|
var constants_1 = require_constants3();
|
|
@@ -3827,7 +3844,7 @@ var require_async2 = __commonJS({
|
|
|
3827
3844
|
}
|
|
3828
3845
|
readdir(directory, settings, callback);
|
|
3829
3846
|
}
|
|
3830
|
-
|
|
3847
|
+
exports2.read = read;
|
|
3831
3848
|
function readdirWithFileTypes(directory, settings, callback) {
|
|
3832
3849
|
settings.fs.readdir(directory, { withFileTypes: true }, (readdirError, dirents) => {
|
|
3833
3850
|
if (readdirError !== null) {
|
|
@@ -3853,7 +3870,7 @@ var require_async2 = __commonJS({
|
|
|
3853
3870
|
});
|
|
3854
3871
|
});
|
|
3855
3872
|
}
|
|
3856
|
-
|
|
3873
|
+
exports2.readdirWithFileTypes = readdirWithFileTypes;
|
|
3857
3874
|
function makeRplTaskEntry(entry, settings) {
|
|
3858
3875
|
return (done) => {
|
|
3859
3876
|
if (!entry.dirent.isSymbolicLink()) {
|
|
@@ -3909,7 +3926,7 @@ var require_async2 = __commonJS({
|
|
|
3909
3926
|
});
|
|
3910
3927
|
});
|
|
3911
3928
|
}
|
|
3912
|
-
|
|
3929
|
+
exports2.readdir = readdir;
|
|
3913
3930
|
function callFailureCallback(callback, error) {
|
|
3914
3931
|
callback(error);
|
|
3915
3932
|
}
|
|
@@ -3921,10 +3938,10 @@ var require_async2 = __commonJS({
|
|
|
3921
3938
|
|
|
3922
3939
|
// ../../../node_modules/@nodelib/fs.scandir/out/providers/sync.js
|
|
3923
3940
|
var require_sync2 = __commonJS({
|
|
3924
|
-
"../../../node_modules/@nodelib/fs.scandir/out/providers/sync.js"(
|
|
3941
|
+
"../../../node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports2) {
|
|
3925
3942
|
"use strict";
|
|
3926
|
-
Object.defineProperty(
|
|
3927
|
-
|
|
3943
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3944
|
+
exports2.readdir = exports2.readdirWithFileTypes = exports2.read = void 0;
|
|
3928
3945
|
var fsStat = require_out();
|
|
3929
3946
|
var constants_1 = require_constants3();
|
|
3930
3947
|
var utils = require_utils4();
|
|
@@ -3935,7 +3952,7 @@ var require_sync2 = __commonJS({
|
|
|
3935
3952
|
}
|
|
3936
3953
|
return readdir(directory, settings);
|
|
3937
3954
|
}
|
|
3938
|
-
|
|
3955
|
+
exports2.read = read;
|
|
3939
3956
|
function readdirWithFileTypes(directory, settings) {
|
|
3940
3957
|
const dirents = settings.fs.readdirSync(directory, { withFileTypes: true });
|
|
3941
3958
|
return dirents.map((dirent) => {
|
|
@@ -3957,7 +3974,7 @@ var require_sync2 = __commonJS({
|
|
|
3957
3974
|
return entry;
|
|
3958
3975
|
});
|
|
3959
3976
|
}
|
|
3960
|
-
|
|
3977
|
+
exports2.readdirWithFileTypes = readdirWithFileTypes;
|
|
3961
3978
|
function readdir(directory, settings) {
|
|
3962
3979
|
const names = settings.fs.readdirSync(directory);
|
|
3963
3980
|
return names.map((name) => {
|
|
@@ -3974,18 +3991,18 @@ var require_sync2 = __commonJS({
|
|
|
3974
3991
|
return entry;
|
|
3975
3992
|
});
|
|
3976
3993
|
}
|
|
3977
|
-
|
|
3994
|
+
exports2.readdir = readdir;
|
|
3978
3995
|
}
|
|
3979
3996
|
});
|
|
3980
3997
|
|
|
3981
3998
|
// ../../../node_modules/@nodelib/fs.scandir/out/adapters/fs.js
|
|
3982
3999
|
var require_fs4 = __commonJS({
|
|
3983
|
-
"../../../node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(
|
|
4000
|
+
"../../../node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports2) {
|
|
3984
4001
|
"use strict";
|
|
3985
|
-
Object.defineProperty(
|
|
3986
|
-
|
|
4002
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4003
|
+
exports2.createFileSystemAdapter = exports2.FILE_SYSTEM_ADAPTER = void 0;
|
|
3987
4004
|
var fs = require("fs");
|
|
3988
|
-
|
|
4005
|
+
exports2.FILE_SYSTEM_ADAPTER = {
|
|
3989
4006
|
lstat: fs.lstat,
|
|
3990
4007
|
stat: fs.stat,
|
|
3991
4008
|
lstatSync: fs.lstatSync,
|
|
@@ -3995,19 +4012,19 @@ var require_fs4 = __commonJS({
|
|
|
3995
4012
|
};
|
|
3996
4013
|
function createFileSystemAdapter(fsMethods) {
|
|
3997
4014
|
if (fsMethods === void 0) {
|
|
3998
|
-
return
|
|
4015
|
+
return exports2.FILE_SYSTEM_ADAPTER;
|
|
3999
4016
|
}
|
|
4000
|
-
return Object.assign(Object.assign({},
|
|
4017
|
+
return Object.assign(Object.assign({}, exports2.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
4001
4018
|
}
|
|
4002
|
-
|
|
4019
|
+
exports2.createFileSystemAdapter = createFileSystemAdapter;
|
|
4003
4020
|
}
|
|
4004
4021
|
});
|
|
4005
4022
|
|
|
4006
4023
|
// ../../../node_modules/@nodelib/fs.scandir/out/settings.js
|
|
4007
4024
|
var require_settings2 = __commonJS({
|
|
4008
|
-
"../../../node_modules/@nodelib/fs.scandir/out/settings.js"(
|
|
4025
|
+
"../../../node_modules/@nodelib/fs.scandir/out/settings.js"(exports2) {
|
|
4009
4026
|
"use strict";
|
|
4010
|
-
Object.defineProperty(
|
|
4027
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4011
4028
|
var path = require("path");
|
|
4012
4029
|
var fsStat = require_out();
|
|
4013
4030
|
var fs = require_fs4();
|
|
@@ -4029,20 +4046,20 @@ var require_settings2 = __commonJS({
|
|
|
4029
4046
|
return option !== null && option !== void 0 ? option : value;
|
|
4030
4047
|
}
|
|
4031
4048
|
};
|
|
4032
|
-
|
|
4049
|
+
exports2.default = Settings;
|
|
4033
4050
|
}
|
|
4034
4051
|
});
|
|
4035
4052
|
|
|
4036
4053
|
// ../../../node_modules/@nodelib/fs.scandir/out/index.js
|
|
4037
4054
|
var require_out2 = __commonJS({
|
|
4038
|
-
"../../../node_modules/@nodelib/fs.scandir/out/index.js"(
|
|
4055
|
+
"../../../node_modules/@nodelib/fs.scandir/out/index.js"(exports2) {
|
|
4039
4056
|
"use strict";
|
|
4040
|
-
Object.defineProperty(
|
|
4041
|
-
|
|
4057
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4058
|
+
exports2.Settings = exports2.scandirSync = exports2.scandir = void 0;
|
|
4042
4059
|
var async = require_async2();
|
|
4043
4060
|
var sync = require_sync2();
|
|
4044
4061
|
var settings_1 = require_settings2();
|
|
4045
|
-
|
|
4062
|
+
exports2.Settings = settings_1.default;
|
|
4046
4063
|
function scandir(path, optionsOrSettingsOrCallback, callback) {
|
|
4047
4064
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
4048
4065
|
async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
|
@@ -4050,12 +4067,12 @@ var require_out2 = __commonJS({
|
|
|
4050
4067
|
}
|
|
4051
4068
|
async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
|
|
4052
4069
|
}
|
|
4053
|
-
|
|
4070
|
+
exports2.scandir = scandir;
|
|
4054
4071
|
function scandirSync(path, optionsOrSettings) {
|
|
4055
4072
|
const settings = getSettings(optionsOrSettings);
|
|
4056
4073
|
return sync.read(path, settings);
|
|
4057
4074
|
}
|
|
4058
|
-
|
|
4075
|
+
exports2.scandirSync = scandirSync;
|
|
4059
4076
|
function getSettings(settingsOrOptions = {}) {
|
|
4060
4077
|
if (settingsOrOptions instanceof settings_1.default) {
|
|
4061
4078
|
return settingsOrOptions;
|
|
@@ -4067,7 +4084,7 @@ var require_out2 = __commonJS({
|
|
|
4067
4084
|
|
|
4068
4085
|
// ../../../node_modules/reusify/reusify.js
|
|
4069
4086
|
var require_reusify = __commonJS({
|
|
4070
|
-
"../../../node_modules/reusify/reusify.js"(
|
|
4087
|
+
"../../../node_modules/reusify/reusify.js"(exports2, module2) {
|
|
4071
4088
|
"use strict";
|
|
4072
4089
|
function reusify(Constructor) {
|
|
4073
4090
|
var head = new Constructor();
|
|
@@ -4098,7 +4115,7 @@ var require_reusify = __commonJS({
|
|
|
4098
4115
|
|
|
4099
4116
|
// ../../../node_modules/fastq/queue.js
|
|
4100
4117
|
var require_queue = __commonJS({
|
|
4101
|
-
"../../../node_modules/fastq/queue.js"(
|
|
4118
|
+
"../../../node_modules/fastq/queue.js"(exports2, module2) {
|
|
4102
4119
|
"use strict";
|
|
4103
4120
|
var reusify = require_reusify();
|
|
4104
4121
|
function fastqueue(context, worker, concurrency) {
|
|
@@ -4339,25 +4356,25 @@ var require_queue = __commonJS({
|
|
|
4339
4356
|
|
|
4340
4357
|
// ../../../node_modules/@nodelib/fs.walk/out/readers/common.js
|
|
4341
4358
|
var require_common2 = __commonJS({
|
|
4342
|
-
"../../../node_modules/@nodelib/fs.walk/out/readers/common.js"(
|
|
4359
|
+
"../../../node_modules/@nodelib/fs.walk/out/readers/common.js"(exports2) {
|
|
4343
4360
|
"use strict";
|
|
4344
|
-
Object.defineProperty(
|
|
4345
|
-
|
|
4361
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4362
|
+
exports2.joinPathSegments = exports2.replacePathSegmentSeparator = exports2.isAppliedFilter = exports2.isFatalError = void 0;
|
|
4346
4363
|
function isFatalError(settings, error) {
|
|
4347
4364
|
if (settings.errorFilter === null) {
|
|
4348
4365
|
return true;
|
|
4349
4366
|
}
|
|
4350
4367
|
return !settings.errorFilter(error);
|
|
4351
4368
|
}
|
|
4352
|
-
|
|
4369
|
+
exports2.isFatalError = isFatalError;
|
|
4353
4370
|
function isAppliedFilter(filter, value) {
|
|
4354
4371
|
return filter === null || filter(value);
|
|
4355
4372
|
}
|
|
4356
|
-
|
|
4373
|
+
exports2.isAppliedFilter = isAppliedFilter;
|
|
4357
4374
|
function replacePathSegmentSeparator(filepath, separator) {
|
|
4358
4375
|
return filepath.split(/[/\\]/).join(separator);
|
|
4359
4376
|
}
|
|
4360
|
-
|
|
4377
|
+
exports2.replacePathSegmentSeparator = replacePathSegmentSeparator;
|
|
4361
4378
|
function joinPathSegments(a, b, separator) {
|
|
4362
4379
|
if (a === "") {
|
|
4363
4380
|
return b;
|
|
@@ -4367,15 +4384,15 @@ var require_common2 = __commonJS({
|
|
|
4367
4384
|
}
|
|
4368
4385
|
return a + separator + b;
|
|
4369
4386
|
}
|
|
4370
|
-
|
|
4387
|
+
exports2.joinPathSegments = joinPathSegments;
|
|
4371
4388
|
}
|
|
4372
4389
|
});
|
|
4373
4390
|
|
|
4374
4391
|
// ../../../node_modules/@nodelib/fs.walk/out/readers/reader.js
|
|
4375
4392
|
var require_reader = __commonJS({
|
|
4376
|
-
"../../../node_modules/@nodelib/fs.walk/out/readers/reader.js"(
|
|
4393
|
+
"../../../node_modules/@nodelib/fs.walk/out/readers/reader.js"(exports2) {
|
|
4377
4394
|
"use strict";
|
|
4378
|
-
Object.defineProperty(
|
|
4395
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4379
4396
|
var common = require_common2();
|
|
4380
4397
|
var Reader = class {
|
|
4381
4398
|
constructor(_root, _settings) {
|
|
@@ -4384,15 +4401,15 @@ var require_reader = __commonJS({
|
|
|
4384
4401
|
this._root = common.replacePathSegmentSeparator(_root, _settings.pathSegmentSeparator);
|
|
4385
4402
|
}
|
|
4386
4403
|
};
|
|
4387
|
-
|
|
4404
|
+
exports2.default = Reader;
|
|
4388
4405
|
}
|
|
4389
4406
|
});
|
|
4390
4407
|
|
|
4391
4408
|
// ../../../node_modules/@nodelib/fs.walk/out/readers/async.js
|
|
4392
4409
|
var require_async3 = __commonJS({
|
|
4393
|
-
"../../../node_modules/@nodelib/fs.walk/out/readers/async.js"(
|
|
4410
|
+
"../../../node_modules/@nodelib/fs.walk/out/readers/async.js"(exports2) {
|
|
4394
4411
|
"use strict";
|
|
4395
|
-
Object.defineProperty(
|
|
4412
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4396
4413
|
var events_1 = require("events");
|
|
4397
4414
|
var fsScandir = require_out2();
|
|
4398
4415
|
var fastq = require_queue();
|
|
@@ -4487,15 +4504,15 @@ var require_async3 = __commonJS({
|
|
|
4487
4504
|
this._emitter.emit("entry", entry);
|
|
4488
4505
|
}
|
|
4489
4506
|
};
|
|
4490
|
-
|
|
4507
|
+
exports2.default = AsyncReader;
|
|
4491
4508
|
}
|
|
4492
4509
|
});
|
|
4493
4510
|
|
|
4494
4511
|
// ../../../node_modules/@nodelib/fs.walk/out/providers/async.js
|
|
4495
4512
|
var require_async4 = __commonJS({
|
|
4496
|
-
"../../../node_modules/@nodelib/fs.walk/out/providers/async.js"(
|
|
4513
|
+
"../../../node_modules/@nodelib/fs.walk/out/providers/async.js"(exports2) {
|
|
4497
4514
|
"use strict";
|
|
4498
|
-
Object.defineProperty(
|
|
4515
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4499
4516
|
var async_1 = require_async3();
|
|
4500
4517
|
var AsyncProvider = class {
|
|
4501
4518
|
constructor(_root, _settings) {
|
|
@@ -4517,7 +4534,7 @@ var require_async4 = __commonJS({
|
|
|
4517
4534
|
this._reader.read();
|
|
4518
4535
|
}
|
|
4519
4536
|
};
|
|
4520
|
-
|
|
4537
|
+
exports2.default = AsyncProvider;
|
|
4521
4538
|
function callFailureCallback(callback, error) {
|
|
4522
4539
|
callback(error);
|
|
4523
4540
|
}
|
|
@@ -4529,9 +4546,9 @@ var require_async4 = __commonJS({
|
|
|
4529
4546
|
|
|
4530
4547
|
// ../../../node_modules/@nodelib/fs.walk/out/providers/stream.js
|
|
4531
4548
|
var require_stream2 = __commonJS({
|
|
4532
|
-
"../../../node_modules/@nodelib/fs.walk/out/providers/stream.js"(
|
|
4549
|
+
"../../../node_modules/@nodelib/fs.walk/out/providers/stream.js"(exports2) {
|
|
4533
4550
|
"use strict";
|
|
4534
|
-
Object.defineProperty(
|
|
4551
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4535
4552
|
var stream_1 = require("stream");
|
|
4536
4553
|
var async_1 = require_async3();
|
|
4537
4554
|
var StreamProvider = class {
|
|
@@ -4564,15 +4581,15 @@ var require_stream2 = __commonJS({
|
|
|
4564
4581
|
return this._stream;
|
|
4565
4582
|
}
|
|
4566
4583
|
};
|
|
4567
|
-
|
|
4584
|
+
exports2.default = StreamProvider;
|
|
4568
4585
|
}
|
|
4569
4586
|
});
|
|
4570
4587
|
|
|
4571
4588
|
// ../../../node_modules/@nodelib/fs.walk/out/readers/sync.js
|
|
4572
4589
|
var require_sync3 = __commonJS({
|
|
4573
|
-
"../../../node_modules/@nodelib/fs.walk/out/readers/sync.js"(
|
|
4590
|
+
"../../../node_modules/@nodelib/fs.walk/out/readers/sync.js"(exports2) {
|
|
4574
4591
|
"use strict";
|
|
4575
|
-
Object.defineProperty(
|
|
4592
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4576
4593
|
var fsScandir = require_out2();
|
|
4577
4594
|
var common = require_common2();
|
|
4578
4595
|
var reader_1 = require_reader();
|
|
@@ -4628,15 +4645,15 @@ var require_sync3 = __commonJS({
|
|
|
4628
4645
|
this._storage.push(entry);
|
|
4629
4646
|
}
|
|
4630
4647
|
};
|
|
4631
|
-
|
|
4648
|
+
exports2.default = SyncReader;
|
|
4632
4649
|
}
|
|
4633
4650
|
});
|
|
4634
4651
|
|
|
4635
4652
|
// ../../../node_modules/@nodelib/fs.walk/out/providers/sync.js
|
|
4636
4653
|
var require_sync4 = __commonJS({
|
|
4637
|
-
"../../../node_modules/@nodelib/fs.walk/out/providers/sync.js"(
|
|
4654
|
+
"../../../node_modules/@nodelib/fs.walk/out/providers/sync.js"(exports2) {
|
|
4638
4655
|
"use strict";
|
|
4639
|
-
Object.defineProperty(
|
|
4656
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4640
4657
|
var sync_1 = require_sync3();
|
|
4641
4658
|
var SyncProvider = class {
|
|
4642
4659
|
constructor(_root, _settings) {
|
|
@@ -4648,15 +4665,15 @@ var require_sync4 = __commonJS({
|
|
|
4648
4665
|
return this._reader.read();
|
|
4649
4666
|
}
|
|
4650
4667
|
};
|
|
4651
|
-
|
|
4668
|
+
exports2.default = SyncProvider;
|
|
4652
4669
|
}
|
|
4653
4670
|
});
|
|
4654
4671
|
|
|
4655
4672
|
// ../../../node_modules/@nodelib/fs.walk/out/settings.js
|
|
4656
4673
|
var require_settings3 = __commonJS({
|
|
4657
|
-
"../../../node_modules/@nodelib/fs.walk/out/settings.js"(
|
|
4674
|
+
"../../../node_modules/@nodelib/fs.walk/out/settings.js"(exports2) {
|
|
4658
4675
|
"use strict";
|
|
4659
|
-
Object.defineProperty(
|
|
4676
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4660
4677
|
var path = require("path");
|
|
4661
4678
|
var fsScandir = require_out2();
|
|
4662
4679
|
var Settings = class {
|
|
@@ -4680,21 +4697,21 @@ var require_settings3 = __commonJS({
|
|
|
4680
4697
|
return option !== null && option !== void 0 ? option : value;
|
|
4681
4698
|
}
|
|
4682
4699
|
};
|
|
4683
|
-
|
|
4700
|
+
exports2.default = Settings;
|
|
4684
4701
|
}
|
|
4685
4702
|
});
|
|
4686
4703
|
|
|
4687
4704
|
// ../../../node_modules/@nodelib/fs.walk/out/index.js
|
|
4688
4705
|
var require_out3 = __commonJS({
|
|
4689
|
-
"../../../node_modules/@nodelib/fs.walk/out/index.js"(
|
|
4706
|
+
"../../../node_modules/@nodelib/fs.walk/out/index.js"(exports2) {
|
|
4690
4707
|
"use strict";
|
|
4691
|
-
Object.defineProperty(
|
|
4692
|
-
|
|
4708
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4709
|
+
exports2.Settings = exports2.walkStream = exports2.walkSync = exports2.walk = void 0;
|
|
4693
4710
|
var async_1 = require_async4();
|
|
4694
4711
|
var stream_1 = require_stream2();
|
|
4695
4712
|
var sync_1 = require_sync4();
|
|
4696
4713
|
var settings_1 = require_settings3();
|
|
4697
|
-
|
|
4714
|
+
exports2.Settings = settings_1.default;
|
|
4698
4715
|
function walk(directory, optionsOrSettingsOrCallback, callback) {
|
|
4699
4716
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
4700
4717
|
new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback);
|
|
@@ -4702,19 +4719,19 @@ var require_out3 = __commonJS({
|
|
|
4702
4719
|
}
|
|
4703
4720
|
new async_1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback);
|
|
4704
4721
|
}
|
|
4705
|
-
|
|
4722
|
+
exports2.walk = walk;
|
|
4706
4723
|
function walkSync(directory, optionsOrSettings) {
|
|
4707
4724
|
const settings = getSettings(optionsOrSettings);
|
|
4708
4725
|
const provider = new sync_1.default(directory, settings);
|
|
4709
4726
|
return provider.read();
|
|
4710
4727
|
}
|
|
4711
|
-
|
|
4728
|
+
exports2.walkSync = walkSync;
|
|
4712
4729
|
function walkStream(directory, optionsOrSettings) {
|
|
4713
4730
|
const settings = getSettings(optionsOrSettings);
|
|
4714
4731
|
const provider = new stream_1.default(directory, settings);
|
|
4715
4732
|
return provider.read();
|
|
4716
4733
|
}
|
|
4717
|
-
|
|
4734
|
+
exports2.walkStream = walkStream;
|
|
4718
4735
|
function getSettings(settingsOrOptions = {}) {
|
|
4719
4736
|
if (settingsOrOptions instanceof settings_1.default) {
|
|
4720
4737
|
return settingsOrOptions;
|
|
@@ -4726,9 +4743,9 @@ var require_out3 = __commonJS({
|
|
|
4726
4743
|
|
|
4727
4744
|
// ../../../node_modules/fast-glob/out/readers/reader.js
|
|
4728
4745
|
var require_reader2 = __commonJS({
|
|
4729
|
-
"../../../node_modules/fast-glob/out/readers/reader.js"(
|
|
4746
|
+
"../../../node_modules/fast-glob/out/readers/reader.js"(exports2) {
|
|
4730
4747
|
"use strict";
|
|
4731
|
-
Object.defineProperty(
|
|
4748
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4732
4749
|
var path = require("path");
|
|
4733
4750
|
var fsStat = require_out();
|
|
4734
4751
|
var utils = require_utils3();
|
|
@@ -4759,15 +4776,15 @@ var require_reader2 = __commonJS({
|
|
|
4759
4776
|
return !utils.errno.isEnoentCodeError(error) && !this._settings.suppressErrors;
|
|
4760
4777
|
}
|
|
4761
4778
|
};
|
|
4762
|
-
|
|
4779
|
+
exports2.default = Reader;
|
|
4763
4780
|
}
|
|
4764
4781
|
});
|
|
4765
4782
|
|
|
4766
4783
|
// ../../../node_modules/fast-glob/out/readers/stream.js
|
|
4767
4784
|
var require_stream3 = __commonJS({
|
|
4768
|
-
"../../../node_modules/fast-glob/out/readers/stream.js"(
|
|
4785
|
+
"../../../node_modules/fast-glob/out/readers/stream.js"(exports2) {
|
|
4769
4786
|
"use strict";
|
|
4770
|
-
Object.defineProperty(
|
|
4787
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4771
4788
|
var stream_1 = require("stream");
|
|
4772
4789
|
var fsStat = require_out();
|
|
4773
4790
|
var fsWalk = require_out3();
|
|
@@ -4816,15 +4833,15 @@ var require_stream3 = __commonJS({
|
|
|
4816
4833
|
});
|
|
4817
4834
|
}
|
|
4818
4835
|
};
|
|
4819
|
-
|
|
4836
|
+
exports2.default = ReaderStream;
|
|
4820
4837
|
}
|
|
4821
4838
|
});
|
|
4822
4839
|
|
|
4823
4840
|
// ../../../node_modules/fast-glob/out/readers/async.js
|
|
4824
4841
|
var require_async5 = __commonJS({
|
|
4825
|
-
"../../../node_modules/fast-glob/out/readers/async.js"(
|
|
4842
|
+
"../../../node_modules/fast-glob/out/readers/async.js"(exports2) {
|
|
4826
4843
|
"use strict";
|
|
4827
|
-
Object.defineProperty(
|
|
4844
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4828
4845
|
var fsWalk = require_out3();
|
|
4829
4846
|
var reader_1 = require_reader2();
|
|
4830
4847
|
var stream_1 = require_stream3();
|
|
@@ -4855,15 +4872,15 @@ var require_async5 = __commonJS({
|
|
|
4855
4872
|
});
|
|
4856
4873
|
}
|
|
4857
4874
|
};
|
|
4858
|
-
|
|
4875
|
+
exports2.default = ReaderAsync;
|
|
4859
4876
|
}
|
|
4860
4877
|
});
|
|
4861
4878
|
|
|
4862
4879
|
// ../../../node_modules/fast-glob/out/providers/matchers/matcher.js
|
|
4863
4880
|
var require_matcher = __commonJS({
|
|
4864
|
-
"../../../node_modules/fast-glob/out/providers/matchers/matcher.js"(
|
|
4881
|
+
"../../../node_modules/fast-glob/out/providers/matchers/matcher.js"(exports2) {
|
|
4865
4882
|
"use strict";
|
|
4866
|
-
Object.defineProperty(
|
|
4883
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4867
4884
|
var utils = require_utils3();
|
|
4868
4885
|
var Matcher = class {
|
|
4869
4886
|
constructor(_patterns, _settings, _micromatchOptions) {
|
|
@@ -4874,8 +4891,7 @@ var require_matcher = __commonJS({
|
|
|
4874
4891
|
this._fillStorage();
|
|
4875
4892
|
}
|
|
4876
4893
|
_fillStorage() {
|
|
4877
|
-
const
|
|
4878
|
-
for (const pattern of patterns) {
|
|
4894
|
+
for (const pattern of this._patterns) {
|
|
4879
4895
|
const segments = this._getPatternSegments(pattern);
|
|
4880
4896
|
const sections = this._splitSegmentsIntoSections(segments);
|
|
4881
4897
|
this._storage.push({
|
|
@@ -4907,15 +4923,15 @@ var require_matcher = __commonJS({
|
|
|
4907
4923
|
return utils.array.splitWhen(segments, (segment) => segment.dynamic && utils.pattern.hasGlobStar(segment.pattern));
|
|
4908
4924
|
}
|
|
4909
4925
|
};
|
|
4910
|
-
|
|
4926
|
+
exports2.default = Matcher;
|
|
4911
4927
|
}
|
|
4912
4928
|
});
|
|
4913
4929
|
|
|
4914
4930
|
// ../../../node_modules/fast-glob/out/providers/matchers/partial.js
|
|
4915
4931
|
var require_partial = __commonJS({
|
|
4916
|
-
"../../../node_modules/fast-glob/out/providers/matchers/partial.js"(
|
|
4932
|
+
"../../../node_modules/fast-glob/out/providers/matchers/partial.js"(exports2) {
|
|
4917
4933
|
"use strict";
|
|
4918
|
-
Object.defineProperty(
|
|
4934
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4919
4935
|
var matcher_1 = require_matcher();
|
|
4920
4936
|
var PartialMatcher = class extends matcher_1.default {
|
|
4921
4937
|
match(filepath) {
|
|
@@ -4944,15 +4960,15 @@ var require_partial = __commonJS({
|
|
|
4944
4960
|
return false;
|
|
4945
4961
|
}
|
|
4946
4962
|
};
|
|
4947
|
-
|
|
4963
|
+
exports2.default = PartialMatcher;
|
|
4948
4964
|
}
|
|
4949
4965
|
});
|
|
4950
4966
|
|
|
4951
4967
|
// ../../../node_modules/fast-glob/out/providers/filters/deep.js
|
|
4952
4968
|
var require_deep = __commonJS({
|
|
4953
|
-
"../../../node_modules/fast-glob/out/providers/filters/deep.js"(
|
|
4969
|
+
"../../../node_modules/fast-glob/out/providers/filters/deep.js"(exports2) {
|
|
4954
4970
|
"use strict";
|
|
4955
|
-
Object.defineProperty(
|
|
4971
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4956
4972
|
var utils = require_utils3();
|
|
4957
4973
|
var partial_1 = require_partial();
|
|
4958
4974
|
var DeepFilter = class {
|
|
@@ -5009,15 +5025,15 @@ var require_deep = __commonJS({
|
|
|
5009
5025
|
return !utils.pattern.matchAny(entryPath, patternsRe);
|
|
5010
5026
|
}
|
|
5011
5027
|
};
|
|
5012
|
-
|
|
5028
|
+
exports2.default = DeepFilter;
|
|
5013
5029
|
}
|
|
5014
5030
|
});
|
|
5015
5031
|
|
|
5016
5032
|
// ../../../node_modules/fast-glob/out/providers/filters/entry.js
|
|
5017
5033
|
var require_entry = __commonJS({
|
|
5018
|
-
"../../../node_modules/fast-glob/out/providers/filters/entry.js"(
|
|
5034
|
+
"../../../node_modules/fast-glob/out/providers/filters/entry.js"(exports2) {
|
|
5019
5035
|
"use strict";
|
|
5020
|
-
Object.defineProperty(
|
|
5036
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5021
5037
|
var utils = require_utils3();
|
|
5022
5038
|
var EntryFilter = class {
|
|
5023
5039
|
constructor(_settings, _micromatchOptions) {
|
|
@@ -5027,32 +5043,32 @@ var require_entry = __commonJS({
|
|
|
5027
5043
|
}
|
|
5028
5044
|
getFilter(positive, negative) {
|
|
5029
5045
|
const positiveRe = utils.pattern.convertPatternsToRe(positive, this._micromatchOptions);
|
|
5030
|
-
const negativeRe = utils.pattern.convertPatternsToRe(negative, this._micromatchOptions);
|
|
5046
|
+
const negativeRe = utils.pattern.convertPatternsToRe(negative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true }));
|
|
5031
5047
|
return (entry) => this._filter(entry, positiveRe, negativeRe);
|
|
5032
5048
|
}
|
|
5033
5049
|
_filter(entry, positiveRe, negativeRe) {
|
|
5034
|
-
|
|
5050
|
+
const filepath = utils.path.removeLeadingDotSegment(entry.path);
|
|
5051
|
+
if (this._settings.unique && this._isDuplicateEntry(filepath)) {
|
|
5035
5052
|
return false;
|
|
5036
5053
|
}
|
|
5037
5054
|
if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) {
|
|
5038
5055
|
return false;
|
|
5039
5056
|
}
|
|
5040
|
-
if (this._isSkippedByAbsoluteNegativePatterns(
|
|
5057
|
+
if (this._isSkippedByAbsoluteNegativePatterns(filepath, negativeRe)) {
|
|
5041
5058
|
return false;
|
|
5042
5059
|
}
|
|
5043
|
-
const filepath = this._settings.baseNameMatch ? entry.name : entry.path;
|
|
5044
5060
|
const isDirectory = entry.dirent.isDirectory();
|
|
5045
|
-
const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(
|
|
5061
|
+
const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(filepath, negativeRe, isDirectory);
|
|
5046
5062
|
if (this._settings.unique && isMatched) {
|
|
5047
|
-
this._createIndexRecord(
|
|
5063
|
+
this._createIndexRecord(filepath);
|
|
5048
5064
|
}
|
|
5049
5065
|
return isMatched;
|
|
5050
5066
|
}
|
|
5051
|
-
_isDuplicateEntry(
|
|
5052
|
-
return this.index.has(
|
|
5067
|
+
_isDuplicateEntry(filepath) {
|
|
5068
|
+
return this.index.has(filepath);
|
|
5053
5069
|
}
|
|
5054
|
-
_createIndexRecord(
|
|
5055
|
-
this.index.set(
|
|
5070
|
+
_createIndexRecord(filepath) {
|
|
5071
|
+
this.index.set(filepath, void 0);
|
|
5056
5072
|
}
|
|
5057
5073
|
_onlyFileFilter(entry) {
|
|
5058
5074
|
return this._settings.onlyFiles && !entry.dirent.isFile();
|
|
@@ -5067,8 +5083,7 @@ var require_entry = __commonJS({
|
|
|
5067
5083
|
const fullpath = utils.path.makeAbsolute(this._settings.cwd, entryPath);
|
|
5068
5084
|
return utils.pattern.matchAny(fullpath, patternsRe);
|
|
5069
5085
|
}
|
|
5070
|
-
_isMatchToPatterns(
|
|
5071
|
-
const filepath = utils.path.removeLeadingDotSegment(entryPath);
|
|
5086
|
+
_isMatchToPatterns(filepath, patternsRe, isDirectory) {
|
|
5072
5087
|
const isMatched = utils.pattern.matchAny(filepath, patternsRe);
|
|
5073
5088
|
if (!isMatched && isDirectory) {
|
|
5074
5089
|
return utils.pattern.matchAny(filepath + "/", patternsRe);
|
|
@@ -5076,15 +5091,15 @@ var require_entry = __commonJS({
|
|
|
5076
5091
|
return isMatched;
|
|
5077
5092
|
}
|
|
5078
5093
|
};
|
|
5079
|
-
|
|
5094
|
+
exports2.default = EntryFilter;
|
|
5080
5095
|
}
|
|
5081
5096
|
});
|
|
5082
5097
|
|
|
5083
5098
|
// ../../../node_modules/fast-glob/out/providers/filters/error.js
|
|
5084
5099
|
var require_error = __commonJS({
|
|
5085
|
-
"../../../node_modules/fast-glob/out/providers/filters/error.js"(
|
|
5100
|
+
"../../../node_modules/fast-glob/out/providers/filters/error.js"(exports2) {
|
|
5086
5101
|
"use strict";
|
|
5087
|
-
Object.defineProperty(
|
|
5102
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5088
5103
|
var utils = require_utils3();
|
|
5089
5104
|
var ErrorFilter = class {
|
|
5090
5105
|
constructor(_settings) {
|
|
@@ -5097,15 +5112,15 @@ var require_error = __commonJS({
|
|
|
5097
5112
|
return utils.errno.isEnoentCodeError(error) || this._settings.suppressErrors;
|
|
5098
5113
|
}
|
|
5099
5114
|
};
|
|
5100
|
-
|
|
5115
|
+
exports2.default = ErrorFilter;
|
|
5101
5116
|
}
|
|
5102
5117
|
});
|
|
5103
5118
|
|
|
5104
5119
|
// ../../../node_modules/fast-glob/out/providers/transformers/entry.js
|
|
5105
5120
|
var require_entry2 = __commonJS({
|
|
5106
|
-
"../../../node_modules/fast-glob/out/providers/transformers/entry.js"(
|
|
5121
|
+
"../../../node_modules/fast-glob/out/providers/transformers/entry.js"(exports2) {
|
|
5107
5122
|
"use strict";
|
|
5108
|
-
Object.defineProperty(
|
|
5123
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5109
5124
|
var utils = require_utils3();
|
|
5110
5125
|
var EntryTransformer = class {
|
|
5111
5126
|
constructor(_settings) {
|
|
@@ -5129,15 +5144,15 @@ var require_entry2 = __commonJS({
|
|
|
5129
5144
|
return Object.assign(Object.assign({}, entry), { path: filepath });
|
|
5130
5145
|
}
|
|
5131
5146
|
};
|
|
5132
|
-
|
|
5147
|
+
exports2.default = EntryTransformer;
|
|
5133
5148
|
}
|
|
5134
5149
|
});
|
|
5135
5150
|
|
|
5136
5151
|
// ../../../node_modules/fast-glob/out/providers/provider.js
|
|
5137
5152
|
var require_provider = __commonJS({
|
|
5138
|
-
"../../../node_modules/fast-glob/out/providers/provider.js"(
|
|
5153
|
+
"../../../node_modules/fast-glob/out/providers/provider.js"(exports2) {
|
|
5139
5154
|
"use strict";
|
|
5140
|
-
Object.defineProperty(
|
|
5155
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5141
5156
|
var path = require("path");
|
|
5142
5157
|
var deep_1 = require_deep();
|
|
5143
5158
|
var entry_1 = require_entry();
|
|
@@ -5183,15 +5198,15 @@ var require_provider = __commonJS({
|
|
|
5183
5198
|
};
|
|
5184
5199
|
}
|
|
5185
5200
|
};
|
|
5186
|
-
|
|
5201
|
+
exports2.default = Provider;
|
|
5187
5202
|
}
|
|
5188
5203
|
});
|
|
5189
5204
|
|
|
5190
5205
|
// ../../../node_modules/fast-glob/out/providers/async.js
|
|
5191
5206
|
var require_async6 = __commonJS({
|
|
5192
|
-
"../../../node_modules/fast-glob/out/providers/async.js"(
|
|
5207
|
+
"../../../node_modules/fast-glob/out/providers/async.js"(exports2) {
|
|
5193
5208
|
"use strict";
|
|
5194
|
-
Object.defineProperty(
|
|
5209
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5195
5210
|
var async_1 = require_async5();
|
|
5196
5211
|
var provider_1 = require_provider();
|
|
5197
5212
|
var ProviderAsync = class extends provider_1.default {
|
|
@@ -5212,15 +5227,15 @@ var require_async6 = __commonJS({
|
|
|
5212
5227
|
return this._reader.static(task.patterns, options);
|
|
5213
5228
|
}
|
|
5214
5229
|
};
|
|
5215
|
-
|
|
5230
|
+
exports2.default = ProviderAsync;
|
|
5216
5231
|
}
|
|
5217
5232
|
});
|
|
5218
5233
|
|
|
5219
5234
|
// ../../../node_modules/fast-glob/out/providers/stream.js
|
|
5220
5235
|
var require_stream4 = __commonJS({
|
|
5221
|
-
"../../../node_modules/fast-glob/out/providers/stream.js"(
|
|
5236
|
+
"../../../node_modules/fast-glob/out/providers/stream.js"(exports2) {
|
|
5222
5237
|
"use strict";
|
|
5223
|
-
Object.defineProperty(
|
|
5238
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5224
5239
|
var stream_1 = require("stream");
|
|
5225
5240
|
var stream_2 = require_stream3();
|
|
5226
5241
|
var provider_1 = require_provider();
|
|
@@ -5246,15 +5261,15 @@ var require_stream4 = __commonJS({
|
|
|
5246
5261
|
return this._reader.static(task.patterns, options);
|
|
5247
5262
|
}
|
|
5248
5263
|
};
|
|
5249
|
-
|
|
5264
|
+
exports2.default = ProviderStream;
|
|
5250
5265
|
}
|
|
5251
5266
|
});
|
|
5252
5267
|
|
|
5253
5268
|
// ../../../node_modules/fast-glob/out/readers/sync.js
|
|
5254
5269
|
var require_sync5 = __commonJS({
|
|
5255
|
-
"../../../node_modules/fast-glob/out/readers/sync.js"(
|
|
5270
|
+
"../../../node_modules/fast-glob/out/readers/sync.js"(exports2) {
|
|
5256
5271
|
"use strict";
|
|
5257
|
-
Object.defineProperty(
|
|
5272
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5258
5273
|
var fsStat = require_out();
|
|
5259
5274
|
var fsWalk = require_out3();
|
|
5260
5275
|
var reader_1 = require_reader2();
|
|
@@ -5294,15 +5309,15 @@ var require_sync5 = __commonJS({
|
|
|
5294
5309
|
return this._statSync(filepath, this._fsStatSettings);
|
|
5295
5310
|
}
|
|
5296
5311
|
};
|
|
5297
|
-
|
|
5312
|
+
exports2.default = ReaderSync;
|
|
5298
5313
|
}
|
|
5299
5314
|
});
|
|
5300
5315
|
|
|
5301
5316
|
// ../../../node_modules/fast-glob/out/providers/sync.js
|
|
5302
5317
|
var require_sync6 = __commonJS({
|
|
5303
|
-
"../../../node_modules/fast-glob/out/providers/sync.js"(
|
|
5318
|
+
"../../../node_modules/fast-glob/out/providers/sync.js"(exports2) {
|
|
5304
5319
|
"use strict";
|
|
5305
|
-
Object.defineProperty(
|
|
5320
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5306
5321
|
var sync_1 = require_sync5();
|
|
5307
5322
|
var provider_1 = require_provider();
|
|
5308
5323
|
var ProviderSync = class extends provider_1.default {
|
|
@@ -5323,20 +5338,20 @@ var require_sync6 = __commonJS({
|
|
|
5323
5338
|
return this._reader.static(task.patterns, options);
|
|
5324
5339
|
}
|
|
5325
5340
|
};
|
|
5326
|
-
|
|
5341
|
+
exports2.default = ProviderSync;
|
|
5327
5342
|
}
|
|
5328
5343
|
});
|
|
5329
5344
|
|
|
5330
5345
|
// ../../../node_modules/fast-glob/out/settings.js
|
|
5331
5346
|
var require_settings4 = __commonJS({
|
|
5332
|
-
"../../../node_modules/fast-glob/out/settings.js"(
|
|
5347
|
+
"../../../node_modules/fast-glob/out/settings.js"(exports2) {
|
|
5333
5348
|
"use strict";
|
|
5334
|
-
Object.defineProperty(
|
|
5335
|
-
|
|
5349
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5350
|
+
exports2.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
5336
5351
|
var fs = require("fs");
|
|
5337
5352
|
var os = require("os");
|
|
5338
5353
|
var CPU_COUNT = Math.max(os.cpus().length, 1);
|
|
5339
|
-
|
|
5354
|
+
exports2.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
5340
5355
|
lstat: fs.lstat,
|
|
5341
5356
|
lstatSync: fs.lstatSync,
|
|
5342
5357
|
stat: fs.stat,
|
|
@@ -5374,24 +5389,24 @@ var require_settings4 = __commonJS({
|
|
|
5374
5389
|
if (this.stats) {
|
|
5375
5390
|
this.objectMode = true;
|
|
5376
5391
|
}
|
|
5392
|
+
this.ignore = [].concat(this.ignore);
|
|
5377
5393
|
}
|
|
5378
5394
|
_getValue(option, value) {
|
|
5379
5395
|
return option === void 0 ? value : option;
|
|
5380
5396
|
}
|
|
5381
5397
|
_getFileSystemMethods(methods = {}) {
|
|
5382
|
-
return Object.assign(Object.assign({},
|
|
5398
|
+
return Object.assign(Object.assign({}, exports2.DEFAULT_FILE_SYSTEM_ADAPTER), methods);
|
|
5383
5399
|
}
|
|
5384
5400
|
};
|
|
5385
|
-
|
|
5401
|
+
exports2.default = Settings;
|
|
5386
5402
|
}
|
|
5387
5403
|
});
|
|
5388
5404
|
|
|
5389
5405
|
// ../../../node_modules/fast-glob/out/index.js
|
|
5390
5406
|
var require_out4 = __commonJS({
|
|
5391
|
-
"../../../node_modules/fast-glob/out/index.js"(
|
|
5407
|
+
"../../../node_modules/fast-glob/out/index.js"(exports2, module2) {
|
|
5392
5408
|
"use strict";
|
|
5393
5409
|
var taskManager = require_tasks();
|
|
5394
|
-
var patternManager = require_patterns();
|
|
5395
5410
|
var async_1 = require_async6();
|
|
5396
5411
|
var stream_1 = require_stream4();
|
|
5397
5412
|
var sync_1 = require_sync6();
|
|
@@ -5404,6 +5419,10 @@ var require_out4 = __commonJS({
|
|
|
5404
5419
|
return utils.array.flatten(result);
|
|
5405
5420
|
}
|
|
5406
5421
|
(function(FastGlob2) {
|
|
5422
|
+
FastGlob2.glob = FastGlob2;
|
|
5423
|
+
FastGlob2.globSync = sync;
|
|
5424
|
+
FastGlob2.globStream = stream;
|
|
5425
|
+
FastGlob2.async = FastGlob2;
|
|
5407
5426
|
function sync(source, options) {
|
|
5408
5427
|
assertPatternsInput(source);
|
|
5409
5428
|
const works = getWorks(source, sync_1.default, options);
|
|
@@ -5418,7 +5437,7 @@ var require_out4 = __commonJS({
|
|
|
5418
5437
|
FastGlob2.stream = stream;
|
|
5419
5438
|
function generateTasks(source, options) {
|
|
5420
5439
|
assertPatternsInput(source);
|
|
5421
|
-
const patterns =
|
|
5440
|
+
const patterns = [].concat(source);
|
|
5422
5441
|
const settings = new settings_1.default(options);
|
|
5423
5442
|
return taskManager.generate(patterns, settings);
|
|
5424
5443
|
}
|
|
@@ -5434,9 +5453,40 @@ var require_out4 = __commonJS({
|
|
|
5434
5453
|
return utils.path.escape(source);
|
|
5435
5454
|
}
|
|
5436
5455
|
FastGlob2.escapePath = escapePath;
|
|
5456
|
+
function convertPathToPattern(source) {
|
|
5457
|
+
assertPatternsInput(source);
|
|
5458
|
+
return utils.path.convertPathToPattern(source);
|
|
5459
|
+
}
|
|
5460
|
+
FastGlob2.convertPathToPattern = convertPathToPattern;
|
|
5461
|
+
let posix;
|
|
5462
|
+
(function(posix2) {
|
|
5463
|
+
function escapePath2(source) {
|
|
5464
|
+
assertPatternsInput(source);
|
|
5465
|
+
return utils.path.escapePosixPath(source);
|
|
5466
|
+
}
|
|
5467
|
+
posix2.escapePath = escapePath2;
|
|
5468
|
+
function convertPathToPattern2(source) {
|
|
5469
|
+
assertPatternsInput(source);
|
|
5470
|
+
return utils.path.convertPosixPathToPattern(source);
|
|
5471
|
+
}
|
|
5472
|
+
posix2.convertPathToPattern = convertPathToPattern2;
|
|
5473
|
+
})(posix = FastGlob2.posix || (FastGlob2.posix = {}));
|
|
5474
|
+
let win32;
|
|
5475
|
+
(function(win322) {
|
|
5476
|
+
function escapePath2(source) {
|
|
5477
|
+
assertPatternsInput(source);
|
|
5478
|
+
return utils.path.escapeWindowsPath(source);
|
|
5479
|
+
}
|
|
5480
|
+
win322.escapePath = escapePath2;
|
|
5481
|
+
function convertPathToPattern2(source) {
|
|
5482
|
+
assertPatternsInput(source);
|
|
5483
|
+
return utils.path.convertWindowsPathToPattern(source);
|
|
5484
|
+
}
|
|
5485
|
+
win322.convertPathToPattern = convertPathToPattern2;
|
|
5486
|
+
})(win32 = FastGlob2.win32 || (FastGlob2.win32 = {}));
|
|
5437
5487
|
})(FastGlob || (FastGlob = {}));
|
|
5438
5488
|
function getWorks(source, _Provider, options) {
|
|
5439
|
-
const patterns =
|
|
5489
|
+
const patterns = [].concat(source);
|
|
5440
5490
|
const settings = new settings_1.default(options);
|
|
5441
5491
|
const tasks = taskManager.generate(patterns, settings);
|
|
5442
5492
|
const provider = new _Provider(settings);
|
|
@@ -5453,9 +5503,88 @@ var require_out4 = __commonJS({
|
|
|
5453
5503
|
}
|
|
5454
5504
|
});
|
|
5455
5505
|
|
|
5506
|
+
// ../esbuild-plugin-alias/dist/cjs/index.cjs
|
|
5507
|
+
var require_cjs = __commonJS({
|
|
5508
|
+
"../esbuild-plugin-alias/dist/cjs/index.cjs"(exports2, module2) {
|
|
5509
|
+
var __defProp2 = Object.defineProperty;
|
|
5510
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
5511
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
5512
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
5513
|
+
var __export2 = (target, all) => {
|
|
5514
|
+
for (var name in all)
|
|
5515
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
5516
|
+
};
|
|
5517
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
5518
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
5519
|
+
for (let key of __getOwnPropNames2(from))
|
|
5520
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
5521
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
5522
|
+
}
|
|
5523
|
+
return to;
|
|
5524
|
+
};
|
|
5525
|
+
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
5526
|
+
var src_exports2 = {};
|
|
5527
|
+
__export2(src_exports2, {
|
|
5528
|
+
aliasPlugin: () => aliasPlugin6
|
|
5529
|
+
});
|
|
5530
|
+
module2.exports = __toCommonJS2(src_exports2);
|
|
5531
|
+
var import_fs = require("fs");
|
|
5532
|
+
var import_promises = require("fs/promises");
|
|
5533
|
+
function escapeRegExp(str) {
|
|
5534
|
+
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
5535
|
+
}
|
|
5536
|
+
var aliasPlugin6 = (aliasObj) => {
|
|
5537
|
+
const aliases = Object.keys(aliasObj);
|
|
5538
|
+
const re = new RegExp(`^(${aliases.map((x) => escapeRegExp(x)).join("|")})$`);
|
|
5539
|
+
const plugin = {
|
|
5540
|
+
name: "alias",
|
|
5541
|
+
setup(build) {
|
|
5542
|
+
build.onResolve({ filter: re }, async (args) => {
|
|
5543
|
+
let resolvedAliasPath = aliasObj[args.path];
|
|
5544
|
+
let namespace = args.namespace;
|
|
5545
|
+
if (!resolvedAliasPath) {
|
|
5546
|
+
return null;
|
|
5547
|
+
}
|
|
5548
|
+
if (resolvedAliasPath.startsWith("http://")) {
|
|
5549
|
+
namespace = "http";
|
|
5550
|
+
resolvedAliasPath = resolvedAliasPath.slice(5);
|
|
5551
|
+
} else if (resolvedAliasPath.startsWith("https://")) {
|
|
5552
|
+
namespace = "https";
|
|
5553
|
+
resolvedAliasPath = resolvedAliasPath.slice(6);
|
|
5554
|
+
} else {
|
|
5555
|
+
const resolvedAlias = await build.resolve(resolvedAliasPath, {
|
|
5556
|
+
importer: args.importer,
|
|
5557
|
+
kind: args.kind,
|
|
5558
|
+
namespace,
|
|
5559
|
+
resolveDir: args.resolveDir,
|
|
5560
|
+
pluginData: args.pluginData
|
|
5561
|
+
});
|
|
5562
|
+
if (resolvedAlias.errors.length > 0) {
|
|
5563
|
+
console.error(resolvedAlias.errors);
|
|
5564
|
+
return resolvedAlias;
|
|
5565
|
+
} else {
|
|
5566
|
+
resolvedAliasPath = resolvedAlias.path;
|
|
5567
|
+
namespace = resolvedAlias.namespace;
|
|
5568
|
+
}
|
|
5569
|
+
}
|
|
5570
|
+
if ((0, import_fs.existsSync)(resolvedAliasPath)) {
|
|
5571
|
+
resolvedAliasPath = await (0, import_promises.realpath)(resolvedAliasPath);
|
|
5572
|
+
}
|
|
5573
|
+
return {
|
|
5574
|
+
path: resolvedAliasPath,
|
|
5575
|
+
namespace
|
|
5576
|
+
};
|
|
5577
|
+
});
|
|
5578
|
+
}
|
|
5579
|
+
};
|
|
5580
|
+
return plugin;
|
|
5581
|
+
};
|
|
5582
|
+
}
|
|
5583
|
+
});
|
|
5584
|
+
|
|
5456
5585
|
// ../../../node_modules/lodash/lodash.js
|
|
5457
5586
|
var require_lodash = __commonJS({
|
|
5458
|
-
"../../../node_modules/lodash/lodash.js"(
|
|
5587
|
+
"../../../node_modules/lodash/lodash.js"(exports2, module2) {
|
|
5459
5588
|
(function() {
|
|
5460
5589
|
var undefined2;
|
|
5461
5590
|
var VERSION = "4.17.21";
|
|
@@ -5783,7 +5912,7 @@ var require_lodash = __commonJS({
|
|
|
5783
5912
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
5784
5913
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
5785
5914
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
5786
|
-
var freeExports = typeof
|
|
5915
|
+
var freeExports = typeof exports2 == "object" && exports2 && !exports2.nodeType && exports2;
|
|
5787
5916
|
var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2;
|
|
5788
5917
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
5789
5918
|
var freeProcess = moduleExports && freeGlobal.process;
|
|
@@ -6187,7 +6316,7 @@ var require_lodash = __commonJS({
|
|
|
6187
6316
|
}
|
|
6188
6317
|
return new LodashWrapper(value);
|
|
6189
6318
|
}
|
|
6190
|
-
var baseCreate = function() {
|
|
6319
|
+
var baseCreate = /* @__PURE__ */ function() {
|
|
6191
6320
|
function object() {
|
|
6192
6321
|
}
|
|
6193
6322
|
return function(proto) {
|
|
@@ -9494,7 +9623,7 @@ var require_lodash = __commonJS({
|
|
|
9494
9623
|
var gte = createRelationalOperation(function(value, other) {
|
|
9495
9624
|
return value >= other;
|
|
9496
9625
|
});
|
|
9497
|
-
var isArguments = baseIsArguments(function() {
|
|
9626
|
+
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
9498
9627
|
return arguments;
|
|
9499
9628
|
}()) ? baseIsArguments : function(value) {
|
|
9500
9629
|
return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
@@ -9819,7 +9948,7 @@ var require_lodash = __commonJS({
|
|
|
9819
9948
|
});
|
|
9820
9949
|
return result2;
|
|
9821
9950
|
}
|
|
9822
|
-
var
|
|
9951
|
+
var merge6 = createAssigner(function(object, source, srcIndex) {
|
|
9823
9952
|
baseMerge(object, source, srcIndex);
|
|
9824
9953
|
});
|
|
9825
9954
|
var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
|
|
@@ -10010,7 +10139,7 @@ var require_lodash = __commonJS({
|
|
|
10010
10139
|
string = toString(string);
|
|
10011
10140
|
return string && reHasUnescapedHtml.test(string) ? string.replace(reUnescapedHtml, escapeHtmlChar) : string;
|
|
10012
10141
|
}
|
|
10013
|
-
function
|
|
10142
|
+
function escapeRegExp(string) {
|
|
10014
10143
|
string = toString(string);
|
|
10015
10144
|
return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, "\\$&") : string;
|
|
10016
10145
|
}
|
|
@@ -10509,7 +10638,7 @@ var require_lodash = __commonJS({
|
|
|
10509
10638
|
lodash.matches = matches;
|
|
10510
10639
|
lodash.matchesProperty = matchesProperty;
|
|
10511
10640
|
lodash.memoize = memoize;
|
|
10512
|
-
lodash.merge =
|
|
10641
|
+
lodash.merge = merge6;
|
|
10513
10642
|
lodash.mergeWith = mergeWith;
|
|
10514
10643
|
lodash.method = method;
|
|
10515
10644
|
lodash.methodOf = methodOf;
|
|
@@ -10613,7 +10742,7 @@ var require_lodash = __commonJS({
|
|
|
10613
10742
|
lodash.endsWith = endsWith;
|
|
10614
10743
|
lodash.eq = eq;
|
|
10615
10744
|
lodash.escape = escape;
|
|
10616
|
-
lodash.escapeRegExp =
|
|
10745
|
+
lodash.escapeRegExp = escapeRegExp;
|
|
10617
10746
|
lodash.every = every;
|
|
10618
10747
|
lodash.find = find;
|
|
10619
10748
|
lodash.findIndex = findIndex;
|
|
@@ -10929,7 +11058,7 @@ var require_lodash = __commonJS({
|
|
|
10929
11058
|
} else {
|
|
10930
11059
|
root._ = _;
|
|
10931
11060
|
}
|
|
10932
|
-
}).call(
|
|
11061
|
+
}).call(exports2);
|
|
10933
11062
|
}
|
|
10934
11063
|
});
|
|
10935
11064
|
|
|
@@ -11304,76 +11433,27 @@ var globToEntryPoints = async (_entryPoints, ignore = []) => {
|
|
|
11304
11433
|
// src/utils/extension.ts
|
|
11305
11434
|
var getJsExtensions = (allowExt) => {
|
|
11306
11435
|
const extensions = { ".js": ".js", ".ts": ".js", ".mts": ".js", ".cts": ".js", ".cjs": ".js", ".mjs": ".js" };
|
|
11307
|
-
if (extensions[allowExt]) {
|
|
11436
|
+
if (allowExt && extensions[allowExt]) {
|
|
11308
11437
|
delete extensions[allowExt];
|
|
11309
11438
|
}
|
|
11310
11439
|
return extensions;
|
|
11311
11440
|
};
|
|
11312
11441
|
|
|
11313
|
-
// src/
|
|
11314
|
-
var
|
|
11315
|
-
var import_promises = require("fs/promises");
|
|
11316
|
-
var aliasPlugin = (aliasObj) => {
|
|
11317
|
-
const aliases = Object.keys(aliasObj);
|
|
11318
|
-
const re = new RegExp(`^(${aliases.map((x) => escapeRegExp(x)).join("|")})$`);
|
|
11319
|
-
const plugin = {
|
|
11320
|
-
name: "alias",
|
|
11321
|
-
setup(build) {
|
|
11322
|
-
build.onResolve({ filter: re }, async (args) => {
|
|
11323
|
-
let resolvedAliasPath = aliasObj[args.path];
|
|
11324
|
-
let namespace = args.namespace;
|
|
11325
|
-
if (resolvedAliasPath) {
|
|
11326
|
-
if (resolvedAliasPath.startsWith("http://")) {
|
|
11327
|
-
namespace = "http";
|
|
11328
|
-
resolvedAliasPath = resolvedAliasPath.slice(5);
|
|
11329
|
-
} else if (resolvedAliasPath.startsWith("https://")) {
|
|
11330
|
-
namespace = "https";
|
|
11331
|
-
resolvedAliasPath = resolvedAliasPath.slice(6);
|
|
11332
|
-
} else {
|
|
11333
|
-
const resolvedAlias = await build.resolve(resolvedAliasPath, {
|
|
11334
|
-
importer: args.importer,
|
|
11335
|
-
kind: args.kind,
|
|
11336
|
-
namespace,
|
|
11337
|
-
resolveDir: args.resolveDir,
|
|
11338
|
-
pluginData: args.pluginData
|
|
11339
|
-
});
|
|
11340
|
-
if (resolvedAlias.errors) {
|
|
11341
|
-
return resolvedAlias;
|
|
11342
|
-
} else {
|
|
11343
|
-
resolvedAliasPath = resolvedAlias.path;
|
|
11344
|
-
namespace = resolvedAlias.namespace;
|
|
11345
|
-
}
|
|
11346
|
-
}
|
|
11347
|
-
if ((0, import_fs.existsSync)(resolvedAliasPath)) {
|
|
11348
|
-
resolvedAliasPath = await (0, import_promises.realpath)(resolvedAliasPath);
|
|
11349
|
-
}
|
|
11350
|
-
return {
|
|
11351
|
-
path: resolvedAliasPath,
|
|
11352
|
-
namespace
|
|
11353
|
-
};
|
|
11354
|
-
}
|
|
11355
|
-
return null;
|
|
11356
|
-
});
|
|
11357
|
-
}
|
|
11358
|
-
};
|
|
11359
|
-
return plugin;
|
|
11360
|
-
};
|
|
11361
|
-
function escapeRegExp(str) {
|
|
11362
|
-
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
11363
|
-
}
|
|
11364
|
-
|
|
11365
|
-
// src/lib/cjs.ts
|
|
11442
|
+
// src/lib/lib.ts
|
|
11443
|
+
var import_esbuild_plugin_alias = __toESM(require_cjs(), 1);
|
|
11366
11444
|
var import_esbuild_plugin_transform_ext = require("@gjsify/esbuild-plugin-transform-ext");
|
|
11367
11445
|
var import_lodash = __toESM(require_lodash(), 1);
|
|
11368
|
-
var
|
|
11446
|
+
var setupLib = async (build, pluginOptions) => {
|
|
11447
|
+
const format = pluginOptions.format || "esm";
|
|
11369
11448
|
pluginOptions.aliases ||= {};
|
|
11370
11449
|
pluginOptions.exclude ||= [];
|
|
11371
11450
|
const esbuildOptions = {
|
|
11451
|
+
format,
|
|
11372
11452
|
bundle: false,
|
|
11373
|
-
splitting: false,
|
|
11374
|
-
// only works with esm, see https://esbuild.github.io/api/#splitting
|
|
11375
11453
|
minify: false,
|
|
11376
11454
|
sourcemap: false,
|
|
11455
|
+
splitting: format === "esm" ? true : false,
|
|
11456
|
+
// Works only on esm
|
|
11377
11457
|
loader: {
|
|
11378
11458
|
".ts": "ts",
|
|
11379
11459
|
".mts": "ts",
|
|
@@ -11386,58 +11466,22 @@ var setupCjsLib = async (build, pluginOptions) => {
|
|
|
11386
11466
|
".js": "ts"
|
|
11387
11467
|
},
|
|
11388
11468
|
target: ["esnext"],
|
|
11389
|
-
platform: "
|
|
11469
|
+
platform: "neutral",
|
|
11470
|
+
mainFields: format === "esm" ? ["module", "main"] : ["main"],
|
|
11390
11471
|
// https://esbuild.github.io/api/#conditions
|
|
11391
|
-
conditions: ["require"]
|
|
11392
|
-
format: "cjs"
|
|
11472
|
+
conditions: format === "esm" ? ["module", "import"] : ["require"]
|
|
11393
11473
|
};
|
|
11394
11474
|
(0, import_lodash.merge)(build.initialOptions, esbuildOptions);
|
|
11395
11475
|
build.initialOptions.entryPoints = await globToEntryPoints(build.initialOptions.entryPoints, pluginOptions.exclude);
|
|
11396
|
-
|
|
11397
|
-
console.debug("initialOptions", build.initialOptions);
|
|
11398
|
-
await aliasPlugin(pluginOptions.aliases).setup(build);
|
|
11476
|
+
await (0, import_esbuild_plugin_alias.aliasPlugin)(pluginOptions.aliases).setup(build);
|
|
11399
11477
|
await (0, import_esbuild_plugin_transform_ext.transformExtPlugin)({ outExtension: getJsExtensions(pluginOptions.jsExtension) }).setup(build);
|
|
11400
11478
|
};
|
|
11401
11479
|
|
|
11402
|
-
// src/lib/esm.ts
|
|
11403
|
-
var import_esbuild_plugin_transform_ext2 = require("@gjsify/esbuild-plugin-transform-ext");
|
|
11404
|
-
var import_lodash2 = __toESM(require_lodash(), 1);
|
|
11405
|
-
var setupEsmLib = async (build, pluginOptions) => {
|
|
11406
|
-
pluginOptions.aliases ||= {};
|
|
11407
|
-
pluginOptions.exclude ||= [];
|
|
11408
|
-
const esbuildOptions = {
|
|
11409
|
-
bundle: false,
|
|
11410
|
-
minify: false,
|
|
11411
|
-
sourcemap: false,
|
|
11412
|
-
splitting: true,
|
|
11413
|
-
// Works only on esm
|
|
11414
|
-
loader: {
|
|
11415
|
-
".ts": "ts",
|
|
11416
|
-
".mts": "ts",
|
|
11417
|
-
".cts": "ts",
|
|
11418
|
-
".tsx": "ts",
|
|
11419
|
-
".mtsx": "ts",
|
|
11420
|
-
".ctsx": "ts",
|
|
11421
|
-
".mjs": "ts",
|
|
11422
|
-
".cjs": "ts",
|
|
11423
|
-
".js": "ts"
|
|
11424
|
-
},
|
|
11425
|
-
target: ["esnext"],
|
|
11426
|
-
platform: "browser",
|
|
11427
|
-
// https://esbuild.github.io/api/#conditions
|
|
11428
|
-
conditions: ["module", "import"],
|
|
11429
|
-
format: "esm"
|
|
11430
|
-
};
|
|
11431
|
-
(0, import_lodash2.merge)(build.initialOptions, esbuildOptions);
|
|
11432
|
-
build.initialOptions.entryPoints = await globToEntryPoints(build.initialOptions.entryPoints, pluginOptions.exclude);
|
|
11433
|
-
await aliasPlugin(pluginOptions.aliases).setup(build);
|
|
11434
|
-
await (0, import_esbuild_plugin_transform_ext2.transformExtPlugin)({ outExtension: getJsExtensions(pluginOptions.jsExtension) }).setup(build);
|
|
11435
|
-
};
|
|
11436
|
-
|
|
11437
11480
|
// src/app/browser.ts
|
|
11481
|
+
var import_esbuild_plugin_alias2 = __toESM(require_cjs(), 1);
|
|
11438
11482
|
var import_esbuild_plugin_deno_loader = require("@gjsify/esbuild-plugin-deno-loader");
|
|
11439
11483
|
var deepkitPlugin = __toESM(require("@gjsify/esbuild-plugin-deepkit"), 1);
|
|
11440
|
-
var
|
|
11484
|
+
var import_lodash2 = __toESM(require_lodash(), 1);
|
|
11441
11485
|
var setupForBrowser = async (build, pluginOptions) => {
|
|
11442
11486
|
const external = [];
|
|
11443
11487
|
pluginOptions.aliases ||= {};
|
|
@@ -11472,26 +11516,31 @@ var setupForBrowser = async (build, pluginOptions) => {
|
|
|
11472
11516
|
window: "globalThis"
|
|
11473
11517
|
}
|
|
11474
11518
|
};
|
|
11475
|
-
(0,
|
|
11519
|
+
(0, import_lodash2.merge)(build.initialOptions, esbuildOptions);
|
|
11476
11520
|
build.initialOptions.entryPoints = await globToEntryPoints(build.initialOptions.entryPoints, pluginOptions.exclude);
|
|
11477
11521
|
const aliases = { ...pluginOptions.aliases };
|
|
11478
11522
|
if (pluginOptions.debug)
|
|
11479
11523
|
console.debug("initialOptions", build.initialOptions);
|
|
11480
|
-
await aliasPlugin(aliases).setup(build);
|
|
11524
|
+
await (0, import_esbuild_plugin_alias2.aliasPlugin)(aliases).setup(build);
|
|
11481
11525
|
await (0, import_esbuild_plugin_deno_loader.denoPlugin)({ reflection: pluginOptions.reflection }).setup(build);
|
|
11482
11526
|
await deepkitPlugin.deepkitPlugin({ reflection: pluginOptions.reflection }).setup(build);
|
|
11483
11527
|
};
|
|
11484
11528
|
|
|
11485
11529
|
// src/app/deno.ts
|
|
11530
|
+
var import_esbuild_plugin_alias3 = __toESM(require_cjs(), 1);
|
|
11486
11531
|
var import_esbuild_plugin_deno_loader2 = require("@gjsify/esbuild-plugin-deno-loader");
|
|
11487
11532
|
var deepkitPlugin3 = __toESM(require("@gjsify/esbuild-plugin-deepkit"), 1);
|
|
11488
|
-
var
|
|
11533
|
+
var import_lodash3 = __toESM(require_lodash(), 1);
|
|
11489
11534
|
var setupForDeno = async (build, pluginOptions) => {
|
|
11490
11535
|
const external = [];
|
|
11536
|
+
const format = pluginOptions.format || "esm";
|
|
11537
|
+
if (format !== "esm")
|
|
11538
|
+
throw new TypeError("Only ESM format is supported for Deno");
|
|
11491
11539
|
pluginOptions.aliases ||= {};
|
|
11492
11540
|
pluginOptions.exclude ||= [];
|
|
11493
11541
|
const esbuildOptions = {
|
|
11494
|
-
format
|
|
11542
|
+
format,
|
|
11543
|
+
// Only 'esm' is supported for Deno
|
|
11495
11544
|
bundle: true,
|
|
11496
11545
|
minify: false,
|
|
11497
11546
|
sourcemap: false,
|
|
@@ -11520,29 +11569,30 @@ var setupForDeno = async (build, pluginOptions) => {
|
|
|
11520
11569
|
window: "globalThis"
|
|
11521
11570
|
}
|
|
11522
11571
|
};
|
|
11523
|
-
(0,
|
|
11572
|
+
(0, import_lodash3.merge)(build.initialOptions, esbuildOptions);
|
|
11524
11573
|
build.initialOptions.entryPoints = await globToEntryPoints(build.initialOptions.entryPoints, pluginOptions.exclude);
|
|
11525
11574
|
const aliases = { ...getAliasesForDeno({ external }), ...pluginOptions.aliases };
|
|
11526
11575
|
if (pluginOptions.debug)
|
|
11527
11576
|
console.debug("initialOptions", build.initialOptions);
|
|
11528
|
-
await aliasPlugin(aliases).setup(build);
|
|
11577
|
+
await (0, import_esbuild_plugin_alias3.aliasPlugin)(aliases).setup(build);
|
|
11529
11578
|
await (0, import_esbuild_plugin_deno_loader2.denoPlugin)({ reflection: pluginOptions.reflection }).setup(build);
|
|
11530
11579
|
await deepkitPlugin3.deepkitPlugin({ reflection: pluginOptions.reflection }).setup(build);
|
|
11531
11580
|
};
|
|
11532
11581
|
|
|
11533
11582
|
// src/app/gjs.ts
|
|
11583
|
+
var import_esbuild_plugin_alias4 = __toESM(require_cjs(), 1);
|
|
11534
11584
|
var import_esbuild_plugin_deno_loader3 = require("@gjsify/esbuild-plugin-deno-loader");
|
|
11535
11585
|
var deepkitPlugin5 = __toESM(require("@gjsify/esbuild-plugin-deepkit"), 1);
|
|
11536
|
-
var
|
|
11586
|
+
var import_lodash4 = __toESM(require_lodash(), 1);
|
|
11537
11587
|
var setupForGjs = async (build, pluginOptions) => {
|
|
11538
11588
|
const external = ["gi://*", "cairo", "gettext", "system"];
|
|
11589
|
+
const format = pluginOptions.format || "esm";
|
|
11539
11590
|
pluginOptions.aliases ||= {};
|
|
11540
11591
|
pluginOptions.exclude ||= [];
|
|
11541
11592
|
const esbuildOptions = {
|
|
11542
|
-
format
|
|
11543
|
-
// On Gjs we only support esm
|
|
11593
|
+
format,
|
|
11544
11594
|
bundle: true,
|
|
11545
|
-
metafile:
|
|
11595
|
+
metafile: false,
|
|
11546
11596
|
minify: false,
|
|
11547
11597
|
sourcemap: false,
|
|
11548
11598
|
treeShaking: true,
|
|
@@ -11555,9 +11605,9 @@ var setupForGjs = async (build, pluginOptions) => {
|
|
|
11555
11605
|
// firefox102 // Since GJS 1.73.2
|
|
11556
11606
|
target: ["firefox102"],
|
|
11557
11607
|
platform: "neutral",
|
|
11558
|
-
mainFields: ["module", "main"],
|
|
11608
|
+
mainFields: format === "esm" ? ["module", "main"] : ["main", "module"],
|
|
11559
11609
|
// https://esbuild.github.io/api/#conditions
|
|
11560
|
-
conditions: ["
|
|
11610
|
+
conditions: format === "esm" ? ["import", "require"] : ["require", "import"],
|
|
11561
11611
|
external,
|
|
11562
11612
|
loader: {
|
|
11563
11613
|
".ts": "ts",
|
|
@@ -11575,25 +11625,26 @@ var setupForGjs = async (build, pluginOptions) => {
|
|
|
11575
11625
|
window: "globalThis"
|
|
11576
11626
|
}
|
|
11577
11627
|
};
|
|
11578
|
-
(0,
|
|
11628
|
+
(0, import_lodash4.merge)(build.initialOptions, esbuildOptions);
|
|
11579
11629
|
build.initialOptions.entryPoints = await globToEntryPoints(build.initialOptions.entryPoints, pluginOptions.exclude);
|
|
11580
11630
|
const aliases = { ...getAliasesForGjs({ external }), ...pluginOptions.aliases };
|
|
11581
11631
|
if (pluginOptions.debug)
|
|
11582
11632
|
console.debug("initialOptions", build.initialOptions);
|
|
11583
|
-
await aliasPlugin(aliases).setup(build);
|
|
11633
|
+
await (0, import_esbuild_plugin_alias4.aliasPlugin)(aliases).setup(build);
|
|
11584
11634
|
await (0, import_esbuild_plugin_deno_loader3.denoPlugin)({ reflection: pluginOptions.reflection }).setup(build);
|
|
11585
11635
|
await deepkitPlugin5.deepkitPlugin({ reflection: pluginOptions.reflection }).setup(build);
|
|
11586
11636
|
};
|
|
11587
11637
|
|
|
11588
11638
|
// src/app/node.ts
|
|
11639
|
+
var import_esbuild_plugin_alias5 = __toESM(require_cjs(), 1);
|
|
11589
11640
|
var import_esbuild_plugin_deno_loader4 = require("@gjsify/esbuild-plugin-deno-loader");
|
|
11590
11641
|
var deepkitPlugin7 = __toESM(require("@gjsify/esbuild-plugin-deepkit"), 1);
|
|
11591
|
-
var
|
|
11642
|
+
var import_lodash5 = __toESM(require_lodash(), 1);
|
|
11592
11643
|
var setupForNode = async (build, pluginOptions) => {
|
|
11593
11644
|
const external = [...EXTERNALS_NODE, "gi://*"];
|
|
11645
|
+
const format = pluginOptions.format || "esm";
|
|
11594
11646
|
pluginOptions.aliases ||= {};
|
|
11595
11647
|
pluginOptions.exclude ||= [];
|
|
11596
|
-
const format = pluginOptions.format || "esm";
|
|
11597
11648
|
const esbuildOptions = {
|
|
11598
11649
|
format,
|
|
11599
11650
|
bundle: true,
|
|
@@ -11604,7 +11655,7 @@ var setupForNode = async (build, pluginOptions) => {
|
|
|
11604
11655
|
// false means follow symlinks
|
|
11605
11656
|
target: ["node18"],
|
|
11606
11657
|
platform: "node",
|
|
11607
|
-
mainFields: format === "esm" ? ["module", "main"] : ["main", "module", "browser"],
|
|
11658
|
+
mainFields: format === "esm" ? ["module", "main", "browser"] : ["main", "module", "browser"],
|
|
11608
11659
|
conditions: format === "esm" ? ["module", "import"] : ["require"],
|
|
11609
11660
|
external,
|
|
11610
11661
|
loader: {
|
|
@@ -11623,12 +11674,12 @@ var setupForNode = async (build, pluginOptions) => {
|
|
|
11623
11674
|
window: "globalThis"
|
|
11624
11675
|
}
|
|
11625
11676
|
};
|
|
11626
|
-
(0,
|
|
11677
|
+
(0, import_lodash5.merge)(build.initialOptions, esbuildOptions);
|
|
11627
11678
|
build.initialOptions.entryPoints = await globToEntryPoints(build.initialOptions.entryPoints, pluginOptions.exclude);
|
|
11628
11679
|
const aliases = { ...getAliasesForNode({ external }), ...pluginOptions.aliases };
|
|
11629
11680
|
if (pluginOptions.debug)
|
|
11630
11681
|
console.debug("initialOptions", build.initialOptions);
|
|
11631
|
-
await aliasPlugin(aliases).setup(build);
|
|
11682
|
+
await (0, import_esbuild_plugin_alias5.aliasPlugin)(aliases).setup(build);
|
|
11632
11683
|
await (0, import_esbuild_plugin_deno_loader4.denoPlugin)({ reflection: pluginOptions.reflection }).setup(build);
|
|
11633
11684
|
await deepkitPlugin7.deepkitPlugin({ reflection: pluginOptions.reflection }).setup(build);
|
|
11634
11685
|
};
|
|
@@ -11641,9 +11692,8 @@ var gjsifyPlugin = (pluginOptions = {}) => {
|
|
|
11641
11692
|
if (pluginOptions.library) {
|
|
11642
11693
|
switch (pluginOptions.library) {
|
|
11643
11694
|
case "esm":
|
|
11644
|
-
return setupEsmLib(build, pluginOptions);
|
|
11645
11695
|
case "cjs":
|
|
11646
|
-
return
|
|
11696
|
+
return setupLib(build, pluginOptions);
|
|
11647
11697
|
default:
|
|
11648
11698
|
throw new TypeError("Unknown library type: " + pluginOptions.library);
|
|
11649
11699
|
}
|