@carbon/upgrade 10.17.0 → 11.0.0-rc.0
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/cli.js +589 -2035
- package/package.json +4 -6
- package/transforms/__testfixtures__/icons-react-size-prop-object-key.output.js +1 -1
- package/transforms/__testfixtures__/icons-react-size-prop-rename.output.js +1 -1
- package/transforms/__testfixtures__/icons-react-size-prop-with-prop.output.js +1 -1
- package/transforms/icons-react-size-prop.js +1 -1
- package/transforms/update-carbon-components-react-import-to-scoped.js +3 -3
package/cli.js
CHANGED
|
@@ -918,15 +918,15 @@ var require_route = __commonJS({
|
|
|
918
918
|
};
|
|
919
919
|
}
|
|
920
920
|
function wrapConversion(toModel, graph) {
|
|
921
|
-
const
|
|
921
|
+
const path3 = [graph[toModel].parent, toModel];
|
|
922
922
|
let fn = conversions[graph[toModel].parent][toModel];
|
|
923
923
|
let cur = graph[toModel].parent;
|
|
924
924
|
while (graph[cur].parent) {
|
|
925
|
-
|
|
925
|
+
path3.unshift(graph[cur].parent);
|
|
926
926
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
927
927
|
cur = graph[cur].parent;
|
|
928
928
|
}
|
|
929
|
-
fn.conversion =
|
|
929
|
+
fn.conversion = path3;
|
|
930
930
|
return fn;
|
|
931
931
|
}
|
|
932
932
|
module2.exports = function(fromModel) {
|
|
@@ -1013,15 +1013,15 @@ var require_ansi_styles = __commonJS({
|
|
|
1013
1013
|
"use strict";
|
|
1014
1014
|
var wrapAnsi16 = (fn, offset) => (...args) => {
|
|
1015
1015
|
const code = fn(...args);
|
|
1016
|
-
return
|
|
1016
|
+
return `\x1B[${code + offset}m`;
|
|
1017
1017
|
};
|
|
1018
1018
|
var wrapAnsi256 = (fn, offset) => (...args) => {
|
|
1019
1019
|
const code = fn(...args);
|
|
1020
|
-
return
|
|
1020
|
+
return `\x1B[${38 + offset};5;${code}m`;
|
|
1021
1021
|
};
|
|
1022
1022
|
var wrapAnsi16m = (fn, offset) => (...args) => {
|
|
1023
1023
|
const rgb = fn(...args);
|
|
1024
|
-
return
|
|
1024
|
+
return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
1025
1025
|
};
|
|
1026
1026
|
var ansi2ansi = (n) => n;
|
|
1027
1027
|
var rgb2rgb = (r, g, b) => [r, g, b];
|
|
@@ -1114,8 +1114,8 @@ var require_ansi_styles = __commonJS({
|
|
|
1114
1114
|
for (const [groupName, group] of Object.entries(styles)) {
|
|
1115
1115
|
for (const [styleName, style] of Object.entries(group)) {
|
|
1116
1116
|
styles[styleName] = {
|
|
1117
|
-
open:
|
|
1118
|
-
close:
|
|
1117
|
+
open: `\x1B[${style[0]}m`,
|
|
1118
|
+
close: `\x1B[${style[1]}m`
|
|
1119
1119
|
};
|
|
1120
1120
|
group[styleName] = styles[styleName];
|
|
1121
1121
|
codes.set(style[0], style[1]);
|
|
@@ -1129,8 +1129,8 @@ var require_ansi_styles = __commonJS({
|
|
|
1129
1129
|
value: codes,
|
|
1130
1130
|
enumerable: false
|
|
1131
1131
|
});
|
|
1132
|
-
styles.color.close = "
|
|
1133
|
-
styles.bgColor.close = "
|
|
1132
|
+
styles.color.close = "\x1B[39m";
|
|
1133
|
+
styles.bgColor.close = "\x1B[49m";
|
|
1134
1134
|
setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
|
|
1135
1135
|
setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
|
|
1136
1136
|
setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
|
|
@@ -1146,9 +1146,9 @@ var require_ansi_styles = __commonJS({
|
|
|
1146
1146
|
}
|
|
1147
1147
|
});
|
|
1148
1148
|
|
|
1149
|
-
// ../../node_modules/
|
|
1149
|
+
// ../../node_modules/has-flag/index.js
|
|
1150
1150
|
var require_has_flag = __commonJS({
|
|
1151
|
-
"../../node_modules/
|
|
1151
|
+
"../../node_modules/has-flag/index.js"(exports, module2) {
|
|
1152
1152
|
"use strict";
|
|
1153
1153
|
module2.exports = (flag, argv = process.argv) => {
|
|
1154
1154
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
@@ -1320,7 +1320,7 @@ var require_templates = __commonJS({
|
|
|
1320
1320
|
["v", "\v"],
|
|
1321
1321
|
["0", "\0"],
|
|
1322
1322
|
["\\", "\\"],
|
|
1323
|
-
["e", "
|
|
1323
|
+
["e", "\x1B"],
|
|
1324
1324
|
["a", "\x07"]
|
|
1325
1325
|
]);
|
|
1326
1326
|
function unescape(c) {
|
|
@@ -1554,7 +1554,7 @@ var require_source = __commonJS({
|
|
|
1554
1554
|
return string;
|
|
1555
1555
|
}
|
|
1556
1556
|
const { openAll, closeAll } = styler;
|
|
1557
|
-
if (string.indexOf("
|
|
1557
|
+
if (string.indexOf("\x1B") !== -1) {
|
|
1558
1558
|
while (styler !== void 0) {
|
|
1559
1559
|
string = stringReplaceAll(string, styler.close, styler.open);
|
|
1560
1560
|
styler = styler.parent;
|
|
@@ -1591,9 +1591,9 @@ var require_source = __commonJS({
|
|
|
1591
1591
|
}
|
|
1592
1592
|
});
|
|
1593
1593
|
|
|
1594
|
-
// ../../node_modules/is-obj/index.js
|
|
1594
|
+
// ../../node_modules/is-git-clean/node_modules/is-obj/index.js
|
|
1595
1595
|
var require_is_obj = __commonJS({
|
|
1596
|
-
"../../node_modules/is-obj/index.js"(exports, module2) {
|
|
1596
|
+
"../../node_modules/is-git-clean/node_modules/is-obj/index.js"(exports, module2) {
|
|
1597
1597
|
"use strict";
|
|
1598
1598
|
module2.exports = function(x) {
|
|
1599
1599
|
var type = typeof x;
|
|
@@ -2438,7 +2438,7 @@ var require_windows = __commonJS({
|
|
|
2438
2438
|
module2.exports = isexe;
|
|
2439
2439
|
isexe.sync = sync;
|
|
2440
2440
|
var fs2 = require("fs");
|
|
2441
|
-
function checkPathExt(
|
|
2441
|
+
function checkPathExt(path3, options) {
|
|
2442
2442
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
2443
2443
|
if (!pathext) {
|
|
2444
2444
|
return true;
|
|
@@ -2449,25 +2449,25 @@ var require_windows = __commonJS({
|
|
|
2449
2449
|
}
|
|
2450
2450
|
for (var i = 0; i < pathext.length; i++) {
|
|
2451
2451
|
var p = pathext[i].toLowerCase();
|
|
2452
|
-
if (p &&
|
|
2452
|
+
if (p && path3.substr(-p.length).toLowerCase() === p) {
|
|
2453
2453
|
return true;
|
|
2454
2454
|
}
|
|
2455
2455
|
}
|
|
2456
2456
|
return false;
|
|
2457
2457
|
}
|
|
2458
|
-
function checkStat(stat,
|
|
2458
|
+
function checkStat(stat, path3, options) {
|
|
2459
2459
|
if (!stat.isSymbolicLink() && !stat.isFile()) {
|
|
2460
2460
|
return false;
|
|
2461
2461
|
}
|
|
2462
|
-
return checkPathExt(
|
|
2462
|
+
return checkPathExt(path3, options);
|
|
2463
2463
|
}
|
|
2464
|
-
function isexe(
|
|
2465
|
-
fs2.stat(
|
|
2466
|
-
cb(er, er ? false : checkStat(stat,
|
|
2464
|
+
function isexe(path3, options, cb) {
|
|
2465
|
+
fs2.stat(path3, function(er, stat) {
|
|
2466
|
+
cb(er, er ? false : checkStat(stat, path3, options));
|
|
2467
2467
|
});
|
|
2468
2468
|
}
|
|
2469
|
-
function sync(
|
|
2470
|
-
return checkStat(fs2.statSync(
|
|
2469
|
+
function sync(path3, options) {
|
|
2470
|
+
return checkStat(fs2.statSync(path3), path3, options);
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
2473
|
});
|
|
@@ -2478,13 +2478,13 @@ var require_mode = __commonJS({
|
|
|
2478
2478
|
module2.exports = isexe;
|
|
2479
2479
|
isexe.sync = sync;
|
|
2480
2480
|
var fs2 = require("fs");
|
|
2481
|
-
function isexe(
|
|
2482
|
-
fs2.stat(
|
|
2481
|
+
function isexe(path3, options, cb) {
|
|
2482
|
+
fs2.stat(path3, function(er, stat) {
|
|
2483
2483
|
cb(er, er ? false : checkStat(stat, options));
|
|
2484
2484
|
});
|
|
2485
2485
|
}
|
|
2486
|
-
function sync(
|
|
2487
|
-
return checkStat(fs2.statSync(
|
|
2486
|
+
function sync(path3, options) {
|
|
2487
|
+
return checkStat(fs2.statSync(path3), options);
|
|
2488
2488
|
}
|
|
2489
2489
|
function checkStat(stat, options) {
|
|
2490
2490
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -2517,7 +2517,7 @@ var require_isexe = __commonJS({
|
|
|
2517
2517
|
}
|
|
2518
2518
|
module2.exports = isexe;
|
|
2519
2519
|
isexe.sync = sync;
|
|
2520
|
-
function isexe(
|
|
2520
|
+
function isexe(path3, options, cb) {
|
|
2521
2521
|
if (typeof options === "function") {
|
|
2522
2522
|
cb = options;
|
|
2523
2523
|
options = {};
|
|
@@ -2527,7 +2527,7 @@ var require_isexe = __commonJS({
|
|
|
2527
2527
|
throw new TypeError("callback not provided");
|
|
2528
2528
|
}
|
|
2529
2529
|
return new Promise(function(resolve, reject) {
|
|
2530
|
-
isexe(
|
|
2530
|
+
isexe(path3, options || {}, function(er, is) {
|
|
2531
2531
|
if (er) {
|
|
2532
2532
|
reject(er);
|
|
2533
2533
|
} else {
|
|
@@ -2536,7 +2536,7 @@ var require_isexe = __commonJS({
|
|
|
2536
2536
|
});
|
|
2537
2537
|
});
|
|
2538
2538
|
}
|
|
2539
|
-
core(
|
|
2539
|
+
core(path3, options || {}, function(er, is) {
|
|
2540
2540
|
if (er) {
|
|
2541
2541
|
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
|
2542
2542
|
er = null;
|
|
@@ -2546,9 +2546,9 @@ var require_isexe = __commonJS({
|
|
|
2546
2546
|
cb(er, is);
|
|
2547
2547
|
});
|
|
2548
2548
|
}
|
|
2549
|
-
function sync(
|
|
2549
|
+
function sync(path3, options) {
|
|
2550
2550
|
try {
|
|
2551
|
-
return core.sync(
|
|
2551
|
+
return core.sync(path3, options || {});
|
|
2552
2552
|
} catch (er) {
|
|
2553
2553
|
if (options && options.ignoreErrors || er.code === "EACCES") {
|
|
2554
2554
|
return false;
|
|
@@ -2566,7 +2566,7 @@ var require_which = __commonJS({
|
|
|
2566
2566
|
module2.exports = which;
|
|
2567
2567
|
which.sync = whichSync;
|
|
2568
2568
|
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
2569
|
-
var
|
|
2569
|
+
var path3 = require("path");
|
|
2570
2570
|
var COLON = isWindows ? ";" : ":";
|
|
2571
2571
|
var isexe = require_isexe();
|
|
2572
2572
|
function getNotFoundError(cmd) {
|
|
@@ -2615,7 +2615,7 @@ var require_which = __commonJS({
|
|
|
2615
2615
|
var pathPart = pathEnv[i];
|
|
2616
2616
|
if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
|
|
2617
2617
|
pathPart = pathPart.slice(1, -1);
|
|
2618
|
-
var p =
|
|
2618
|
+
var p = path3.join(pathPart, cmd);
|
|
2619
2619
|
if (!pathPart && /^\.[\\\/]/.test(cmd)) {
|
|
2620
2620
|
p = cmd.slice(0, 2) + p;
|
|
2621
2621
|
}
|
|
@@ -2647,7 +2647,7 @@ var require_which = __commonJS({
|
|
|
2647
2647
|
var pathPart = pathEnv[i];
|
|
2648
2648
|
if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
|
|
2649
2649
|
pathPart = pathPart.slice(1, -1);
|
|
2650
|
-
var p =
|
|
2650
|
+
var p = path3.join(pathPart, cmd);
|
|
2651
2651
|
if (!pathPart && /^\.[\\\/]/.test(cmd)) {
|
|
2652
2652
|
p = cmd.slice(0, 2) + p;
|
|
2653
2653
|
}
|
|
@@ -2679,7 +2679,7 @@ var require_which = __commonJS({
|
|
|
2679
2679
|
var require_resolveCommand = __commonJS({
|
|
2680
2680
|
"../../node_modules/cross-spawn-async/lib/resolveCommand.js"(exports, module2) {
|
|
2681
2681
|
"use strict";
|
|
2682
|
-
var
|
|
2682
|
+
var path3 = require("path");
|
|
2683
2683
|
var which = require_which();
|
|
2684
2684
|
var LRU = require_lru_cache();
|
|
2685
2685
|
var commandCache = new LRU({ max: 50, maxAge: 30 * 1e3 });
|
|
@@ -2687,7 +2687,7 @@ var require_resolveCommand = __commonJS({
|
|
|
2687
2687
|
function resolveCommand(command, noExtension) {
|
|
2688
2688
|
var resolved;
|
|
2689
2689
|
if (hasSepInPathRegExp.test(command)) {
|
|
2690
|
-
command =
|
|
2690
|
+
command = path3.resolve(command);
|
|
2691
2691
|
}
|
|
2692
2692
|
noExtension = !!noExtension;
|
|
2693
2693
|
resolved = commandCache.get(command + "!" + noExtension);
|
|
@@ -2695,7 +2695,7 @@ var require_resolveCommand = __commonJS({
|
|
|
2695
2695
|
return commandCache.get(command);
|
|
2696
2696
|
}
|
|
2697
2697
|
try {
|
|
2698
|
-
resolved = !noExtension ? which.sync(command) : which.sync(command, { pathExt:
|
|
2698
|
+
resolved = !noExtension ? which.sync(command) : which.sync(command, { pathExt: path3.delimiter + (process.env.PATHEXT || "") });
|
|
2699
2699
|
} catch (e) {
|
|
2700
2700
|
}
|
|
2701
2701
|
commandCache.set(command + "!" + noExtension, resolved);
|
|
@@ -2964,20 +2964,20 @@ var require_path_key = __commonJS({
|
|
|
2964
2964
|
var require_npm_run_path = __commonJS({
|
|
2965
2965
|
"../../node_modules/is-git-clean/node_modules/npm-run-path/index.js"(exports, module2) {
|
|
2966
2966
|
"use strict";
|
|
2967
|
-
var
|
|
2967
|
+
var path3 = require("path");
|
|
2968
2968
|
var pathKey = require_path_key();
|
|
2969
2969
|
module2.exports = function(opts) {
|
|
2970
2970
|
opts = opts || {};
|
|
2971
2971
|
var prev;
|
|
2972
|
-
var pth =
|
|
2972
|
+
var pth = path3.resolve(opts.cwd || ".");
|
|
2973
2973
|
var ret = [];
|
|
2974
2974
|
while (prev !== pth) {
|
|
2975
|
-
ret.push(
|
|
2975
|
+
ret.push(path3.join(pth, "node_modules/.bin"));
|
|
2976
2976
|
prev = pth;
|
|
2977
|
-
pth =
|
|
2977
|
+
pth = path3.resolve(pth, "..");
|
|
2978
2978
|
}
|
|
2979
|
-
ret.push(
|
|
2980
|
-
return ret.concat(opts.path || process.env[pathKey()]).join(
|
|
2979
|
+
ret.push(path3.dirname(process.execPath));
|
|
2980
|
+
return ret.concat(opts.path || process.env[pathKey()]).join(path3.delimiter);
|
|
2981
2981
|
};
|
|
2982
2982
|
}
|
|
2983
2983
|
});
|
|
@@ -3372,9 +3372,9 @@ var require_minimatch = __commonJS({
|
|
|
3372
3372
|
"../../node_modules/minimatch/minimatch.js"(exports, module2) {
|
|
3373
3373
|
module2.exports = minimatch;
|
|
3374
3374
|
minimatch.Minimatch = Minimatch;
|
|
3375
|
-
var
|
|
3375
|
+
var path3 = { sep: "/" };
|
|
3376
3376
|
try {
|
|
3377
|
-
|
|
3377
|
+
path3 = require("path");
|
|
3378
3378
|
} catch (er) {
|
|
3379
3379
|
}
|
|
3380
3380
|
var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
@@ -3457,8 +3457,8 @@ var require_minimatch = __commonJS({
|
|
|
3457
3457
|
if (!options)
|
|
3458
3458
|
options = {};
|
|
3459
3459
|
pattern = pattern.trim();
|
|
3460
|
-
if (
|
|
3461
|
-
pattern = pattern.split(
|
|
3460
|
+
if (path3.sep !== "/") {
|
|
3461
|
+
pattern = pattern.split(path3.sep).join("/");
|
|
3462
3462
|
}
|
|
3463
3463
|
this.options = options;
|
|
3464
3464
|
this.set = [];
|
|
@@ -3825,8 +3825,8 @@ var require_minimatch = __commonJS({
|
|
|
3825
3825
|
if (f === "/" && partial)
|
|
3826
3826
|
return true;
|
|
3827
3827
|
var options = this.options;
|
|
3828
|
-
if (
|
|
3829
|
-
f = f.split(
|
|
3828
|
+
if (path3.sep !== "/") {
|
|
3829
|
+
f = f.split(path3.sep).join("/");
|
|
3830
3830
|
}
|
|
3831
3831
|
f = f.split(slashSplit);
|
|
3832
3832
|
this.debug(this.pattern, "split", f);
|
|
@@ -3984,9 +3984,9 @@ var require_array_uniq = __commonJS({
|
|
|
3984
3984
|
}
|
|
3985
3985
|
});
|
|
3986
3986
|
|
|
3987
|
-
// ../../node_modules/array-union/index.js
|
|
3987
|
+
// ../../node_modules/is-git-clean/node_modules/array-union/index.js
|
|
3988
3988
|
var require_array_union = __commonJS({
|
|
3989
|
-
"../../node_modules/array-union/index.js"(exports, module2) {
|
|
3989
|
+
"../../node_modules/is-git-clean/node_modules/array-union/index.js"(exports, module2) {
|
|
3990
3990
|
"use strict";
|
|
3991
3991
|
var arrayUniq = require_array_uniq();
|
|
3992
3992
|
module2.exports = function() {
|
|
@@ -4054,7 +4054,7 @@ var require_is_git_clean = __commonJS({
|
|
|
4054
4054
|
"use strict";
|
|
4055
4055
|
var child = require("child_process");
|
|
4056
4056
|
var isObj = require_is_obj();
|
|
4057
|
-
var
|
|
4057
|
+
var execa = require_execa();
|
|
4058
4058
|
var multimatch = require_multimatch();
|
|
4059
4059
|
var TEN_MEBIBYTE = 1024 * 1024 * 10;
|
|
4060
4060
|
var porcelainRegex = /([AMRDC]|\?\?)\s/g;
|
|
@@ -4075,7 +4075,7 @@ var require_is_git_clean = __commonJS({
|
|
|
4075
4075
|
};
|
|
4076
4076
|
}
|
|
4077
4077
|
module2.exports = normalizeArgs(function(dir, options) {
|
|
4078
|
-
return
|
|
4078
|
+
return execa("git", ["status", "--porcelain"], {
|
|
4079
4079
|
cwd: dir || process.cwd(),
|
|
4080
4080
|
preferLocal: false
|
|
4081
4081
|
}).then(function(result) {
|
|
@@ -6552,11 +6552,11 @@ var require_baseGet = __commonJS({
|
|
|
6552
6552
|
"../../node_modules/lodash/_baseGet.js"(exports, module2) {
|
|
6553
6553
|
var castPath = require_castPath();
|
|
6554
6554
|
var toKey = require_toKey();
|
|
6555
|
-
function baseGet(object,
|
|
6556
|
-
|
|
6557
|
-
var index = 0, length =
|
|
6555
|
+
function baseGet(object, path3) {
|
|
6556
|
+
path3 = castPath(path3, object);
|
|
6557
|
+
var index = 0, length = path3.length;
|
|
6558
6558
|
while (object != null && index < length) {
|
|
6559
|
-
object = object[toKey(
|
|
6559
|
+
object = object[toKey(path3[index++])];
|
|
6560
6560
|
}
|
|
6561
6561
|
return index && index == length ? object : void 0;
|
|
6562
6562
|
}
|
|
@@ -6593,8 +6593,8 @@ var require_parent = __commonJS({
|
|
|
6593
6593
|
"../../node_modules/lodash/_parent.js"(exports, module2) {
|
|
6594
6594
|
var baseGet = require_baseGet();
|
|
6595
6595
|
var baseSlice = require_baseSlice();
|
|
6596
|
-
function parent(object,
|
|
6597
|
-
return
|
|
6596
|
+
function parent(object, path3) {
|
|
6597
|
+
return path3.length < 2 ? object : baseGet(object, baseSlice(path3, 0, -1));
|
|
6598
6598
|
}
|
|
6599
6599
|
module2.exports = parent;
|
|
6600
6600
|
}
|
|
@@ -6607,10 +6607,10 @@ var require_baseUnset = __commonJS({
|
|
|
6607
6607
|
var last = require_last();
|
|
6608
6608
|
var parent = require_parent();
|
|
6609
6609
|
var toKey = require_toKey();
|
|
6610
|
-
function baseUnset(object,
|
|
6611
|
-
|
|
6612
|
-
object = parent(object,
|
|
6613
|
-
return object == null || delete object[toKey(last(
|
|
6610
|
+
function baseUnset(object, path3) {
|
|
6611
|
+
path3 = castPath(path3, object);
|
|
6612
|
+
object = parent(object, path3);
|
|
6613
|
+
return object == null || delete object[toKey(last(path3))];
|
|
6614
6614
|
}
|
|
6615
6615
|
module2.exports = baseUnset;
|
|
6616
6616
|
}
|
|
@@ -6740,10 +6740,10 @@ var require_omit = __commonJS({
|
|
|
6740
6740
|
return result;
|
|
6741
6741
|
}
|
|
6742
6742
|
var isDeep = false;
|
|
6743
|
-
paths = arrayMap(paths, function(
|
|
6744
|
-
|
|
6745
|
-
isDeep || (isDeep =
|
|
6746
|
-
return
|
|
6743
|
+
paths = arrayMap(paths, function(path3) {
|
|
6744
|
+
path3 = castPath(path3, object);
|
|
6745
|
+
isDeep || (isDeep = path3.length > 1);
|
|
6746
|
+
return path3;
|
|
6747
6747
|
});
|
|
6748
6748
|
copyObject(object, getAllKeysIn(object), result);
|
|
6749
6749
|
if (isDeep) {
|
|
@@ -6953,8 +6953,8 @@ var require_ansi_escapes = __commonJS({
|
|
|
6953
6953
|
"use strict";
|
|
6954
6954
|
var ansiEscapes = module2.exports;
|
|
6955
6955
|
module2.exports.default = ansiEscapes;
|
|
6956
|
-
var ESC = "
|
|
6957
|
-
var OSC = "
|
|
6956
|
+
var ESC = "\x1B[";
|
|
6957
|
+
var OSC = "\x1B]";
|
|
6958
6958
|
var BEL = "\x07";
|
|
6959
6959
|
var SEP = ";";
|
|
6960
6960
|
var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
|
|
@@ -6989,8 +6989,8 @@ var require_ansi_escapes = __commonJS({
|
|
|
6989
6989
|
ansiEscapes.cursorForward = (count = 1) => ESC + count + "C";
|
|
6990
6990
|
ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D";
|
|
6991
6991
|
ansiEscapes.cursorLeft = ESC + "G";
|
|
6992
|
-
ansiEscapes.cursorSavePosition = isTerminalApp ? "
|
|
6993
|
-
ansiEscapes.cursorRestorePosition = isTerminalApp ? "
|
|
6992
|
+
ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
|
|
6993
|
+
ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
|
|
6994
6994
|
ansiEscapes.cursorGetPosition = ESC + "6n";
|
|
6995
6995
|
ansiEscapes.cursorNextLine = ESC + "E";
|
|
6996
6996
|
ansiEscapes.cursorPrevLine = ESC + "F";
|
|
@@ -7014,7 +7014,7 @@ var require_ansi_escapes = __commonJS({
|
|
|
7014
7014
|
ansiEscapes.eraseScreen = ESC + "2J";
|
|
7015
7015
|
ansiEscapes.scrollUp = ESC + "S";
|
|
7016
7016
|
ansiEscapes.scrollDown = ESC + "T";
|
|
7017
|
-
ansiEscapes.clearScreen = "
|
|
7017
|
+
ansiEscapes.clearScreen = "\x1Bc";
|
|
7018
7018
|
ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC}0f` : `${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`;
|
|
7019
7019
|
ansiEscapes.beep = BEL;
|
|
7020
7020
|
ansiEscapes.link = (text, url) => {
|
|
@@ -7171,14 +7171,14 @@ var require_baseSet = __commonJS({
|
|
|
7171
7171
|
var isIndex = require_isIndex();
|
|
7172
7172
|
var isObject = require_isObject();
|
|
7173
7173
|
var toKey = require_toKey();
|
|
7174
|
-
function baseSet(object,
|
|
7174
|
+
function baseSet(object, path3, value, customizer) {
|
|
7175
7175
|
if (!isObject(object)) {
|
|
7176
7176
|
return object;
|
|
7177
7177
|
}
|
|
7178
|
-
|
|
7179
|
-
var index = -1, length =
|
|
7178
|
+
path3 = castPath(path3, object);
|
|
7179
|
+
var index = -1, length = path3.length, lastIndex = length - 1, nested = object;
|
|
7180
7180
|
while (nested != null && ++index < length) {
|
|
7181
|
-
var key = toKey(
|
|
7181
|
+
var key = toKey(path3[index]), newValue = value;
|
|
7182
7182
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
7183
7183
|
return object;
|
|
7184
7184
|
}
|
|
@@ -7186,7 +7186,7 @@ var require_baseSet = __commonJS({
|
|
|
7186
7186
|
var objValue = nested[key];
|
|
7187
7187
|
newValue = customizer ? customizer(objValue, key, nested) : void 0;
|
|
7188
7188
|
if (newValue === void 0) {
|
|
7189
|
-
newValue = isObject(objValue) ? objValue : isIndex(
|
|
7189
|
+
newValue = isObject(objValue) ? objValue : isIndex(path3[index + 1]) ? [] : {};
|
|
7190
7190
|
}
|
|
7191
7191
|
}
|
|
7192
7192
|
assignValue(nested, key, newValue);
|
|
@@ -7202,8 +7202,8 @@ var require_baseSet = __commonJS({
|
|
|
7202
7202
|
var require_set = __commonJS({
|
|
7203
7203
|
"../../node_modules/lodash/set.js"(exports, module2) {
|
|
7204
7204
|
var baseSet = require_baseSet();
|
|
7205
|
-
function set(object,
|
|
7206
|
-
return object == null ? object : baseSet(object,
|
|
7205
|
+
function set(object, path3, value) {
|
|
7206
|
+
return object == null ? object : baseSet(object, path3, value);
|
|
7207
7207
|
}
|
|
7208
7208
|
module2.exports = set;
|
|
7209
7209
|
}
|
|
@@ -19774,8 +19774,8 @@ var require_baseMatches = __commonJS({
|
|
|
19774
19774
|
var require_get = __commonJS({
|
|
19775
19775
|
"../../node_modules/lodash/get.js"(exports, module2) {
|
|
19776
19776
|
var baseGet = require_baseGet();
|
|
19777
|
-
function get(object,
|
|
19778
|
-
var result = object == null ? void 0 : baseGet(object,
|
|
19777
|
+
function get(object, path3, defaultValue) {
|
|
19778
|
+
var result = object == null ? void 0 : baseGet(object, path3);
|
|
19779
19779
|
return result === void 0 ? defaultValue : result;
|
|
19780
19780
|
}
|
|
19781
19781
|
module2.exports = get;
|
|
@@ -19801,11 +19801,11 @@ var require_hasPath = __commonJS({
|
|
|
19801
19801
|
var isIndex = require_isIndex();
|
|
19802
19802
|
var isLength = require_isLength();
|
|
19803
19803
|
var toKey = require_toKey();
|
|
19804
|
-
function hasPath(object,
|
|
19805
|
-
|
|
19806
|
-
var index = -1, length =
|
|
19804
|
+
function hasPath(object, path3, hasFunc) {
|
|
19805
|
+
path3 = castPath(path3, object);
|
|
19806
|
+
var index = -1, length = path3.length, result = false;
|
|
19807
19807
|
while (++index < length) {
|
|
19808
|
-
var key = toKey(
|
|
19808
|
+
var key = toKey(path3[index]);
|
|
19809
19809
|
if (!(result = object != null && hasFunc(object, key))) {
|
|
19810
19810
|
break;
|
|
19811
19811
|
}
|
|
@@ -19826,8 +19826,8 @@ var require_hasIn = __commonJS({
|
|
|
19826
19826
|
"../../node_modules/lodash/hasIn.js"(exports, module2) {
|
|
19827
19827
|
var baseHasIn = require_baseHasIn();
|
|
19828
19828
|
var hasPath = require_hasPath();
|
|
19829
|
-
function hasIn(object,
|
|
19830
|
-
return object != null && hasPath(object,
|
|
19829
|
+
function hasIn(object, path3) {
|
|
19830
|
+
return object != null && hasPath(object, path3, baseHasIn);
|
|
19831
19831
|
}
|
|
19832
19832
|
module2.exports = hasIn;
|
|
19833
19833
|
}
|
|
@@ -19845,13 +19845,13 @@ var require_baseMatchesProperty = __commonJS({
|
|
|
19845
19845
|
var toKey = require_toKey();
|
|
19846
19846
|
var COMPARE_PARTIAL_FLAG = 1;
|
|
19847
19847
|
var COMPARE_UNORDERED_FLAG = 2;
|
|
19848
|
-
function baseMatchesProperty(
|
|
19849
|
-
if (isKey(
|
|
19850
|
-
return matchesStrictComparable(toKey(
|
|
19848
|
+
function baseMatchesProperty(path3, srcValue) {
|
|
19849
|
+
if (isKey(path3) && isStrictComparable(srcValue)) {
|
|
19850
|
+
return matchesStrictComparable(toKey(path3), srcValue);
|
|
19851
19851
|
}
|
|
19852
19852
|
return function(object) {
|
|
19853
|
-
var objValue = get(object,
|
|
19854
|
-
return objValue === void 0 && objValue === srcValue ? hasIn(object,
|
|
19853
|
+
var objValue = get(object, path3);
|
|
19854
|
+
return objValue === void 0 && objValue === srcValue ? hasIn(object, path3) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
19855
19855
|
};
|
|
19856
19856
|
}
|
|
19857
19857
|
module2.exports = baseMatchesProperty;
|
|
@@ -19874,9 +19874,9 @@ var require_baseProperty = __commonJS({
|
|
|
19874
19874
|
var require_basePropertyDeep = __commonJS({
|
|
19875
19875
|
"../../node_modules/lodash/_basePropertyDeep.js"(exports, module2) {
|
|
19876
19876
|
var baseGet = require_baseGet();
|
|
19877
|
-
function basePropertyDeep(
|
|
19877
|
+
function basePropertyDeep(path3) {
|
|
19878
19878
|
return function(object) {
|
|
19879
|
-
return baseGet(object,
|
|
19879
|
+
return baseGet(object, path3);
|
|
19880
19880
|
};
|
|
19881
19881
|
}
|
|
19882
19882
|
module2.exports = basePropertyDeep;
|
|
@@ -19890,8 +19890,8 @@ var require_property = __commonJS({
|
|
|
19890
19890
|
var basePropertyDeep = require_basePropertyDeep();
|
|
19891
19891
|
var isKey = require_isKey();
|
|
19892
19892
|
var toKey = require_toKey();
|
|
19893
|
-
function property(
|
|
19894
|
-
return isKey(
|
|
19893
|
+
function property(path3) {
|
|
19894
|
+
return isKey(path3) ? baseProperty(toKey(path3)) : basePropertyDeep(path3);
|
|
19895
19895
|
}
|
|
19896
19896
|
module2.exports = property;
|
|
19897
19897
|
}
|
|
@@ -20284,7 +20284,7 @@ var require_restore_cursor = __commonJS({
|
|
|
20284
20284
|
var signalExit = require_signal_exit();
|
|
20285
20285
|
module2.exports = onetime(() => {
|
|
20286
20286
|
signalExit(() => {
|
|
20287
|
-
process.stderr.write("
|
|
20287
|
+
process.stderr.write("\x1B[?25h");
|
|
20288
20288
|
}, { alwaysLast: true });
|
|
20289
20289
|
});
|
|
20290
20290
|
}
|
|
@@ -20301,7 +20301,7 @@ var require_cli_cursor = __commonJS({
|
|
|
20301
20301
|
return;
|
|
20302
20302
|
}
|
|
20303
20303
|
isHidden = false;
|
|
20304
|
-
writableStream.write("
|
|
20304
|
+
writableStream.write("\x1B[?25h");
|
|
20305
20305
|
};
|
|
20306
20306
|
exports.hide = (writableStream = process.stderr) => {
|
|
20307
20307
|
if (!writableStream.isTTY) {
|
|
@@ -20309,7 +20309,7 @@ var require_cli_cursor = __commonJS({
|
|
|
20309
20309
|
}
|
|
20310
20310
|
restoreCursor();
|
|
20311
20311
|
isHidden = true;
|
|
20312
|
-
writableStream.write("
|
|
20312
|
+
writableStream.write("\x1B[?25l");
|
|
20313
20313
|
};
|
|
20314
20314
|
exports.toggle = (force, writableStream) => {
|
|
20315
20315
|
if (force !== void 0) {
|
|
@@ -20675,9 +20675,9 @@ var require_choices = __commonJS({
|
|
|
20675
20675
|
}
|
|
20676
20676
|
});
|
|
20677
20677
|
|
|
20678
|
-
// node_modules/cli-width/index.js
|
|
20678
|
+
// ../../node_modules/cli-width/index.js
|
|
20679
20679
|
var require_cli_width = __commonJS({
|
|
20680
|
-
"node_modules/cli-width/index.js"(exports, module2) {
|
|
20680
|
+
"../../node_modules/cli-width/index.js"(exports, module2) {
|
|
20681
20681
|
"use strict";
|
|
20682
20682
|
exports = module2.exports = cliWidth;
|
|
20683
20683
|
function normalizeOpts(options) {
|
|
@@ -20759,9 +20759,9 @@ var require_is_fullwidth_code_point = __commonJS({
|
|
|
20759
20759
|
}
|
|
20760
20760
|
});
|
|
20761
20761
|
|
|
20762
|
-
// ../../node_modules/emoji-regex/index.js
|
|
20762
|
+
// ../../node_modules/string-width/node_modules/emoji-regex/index.js
|
|
20763
20763
|
var require_emoji_regex = __commonJS({
|
|
20764
|
-
"../../node_modules/emoji-regex/index.js"(exports, module2) {
|
|
20764
|
+
"../../node_modules/string-width/node_modules/emoji-regex/index.js"(exports, module2) {
|
|
20765
20765
|
"use strict";
|
|
20766
20766
|
module2.exports = function() {
|
|
20767
20767
|
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
@@ -34028,7 +34028,7 @@ var require_sbcs_data_generated = __commonJS({
|
|
|
34028
34028
|
"csibm863": "cp863",
|
|
34029
34029
|
"cp864": {
|
|
34030
34030
|
"type": "_sbcs",
|
|
34031
|
-
"chars": "\0\x07\b \n\v\f\r
|
|
34031
|
+
"chars": "\0\x07\b \n\v\f\r\x1B !\"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD"
|
|
34032
34032
|
},
|
|
34033
34033
|
"ibm864": "cp864",
|
|
34034
34034
|
"csibm864": "cp864",
|
|
@@ -34166,7 +34166,7 @@ var require_sbcs_data_generated = __commonJS({
|
|
|
34166
34166
|
},
|
|
34167
34167
|
"tcvn": {
|
|
34168
34168
|
"type": "_sbcs",
|
|
34169
|
-
"chars": "\0\xDA\u1EE4\u1EEA\u1EEC\u1EEE\x07\b \n\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4
|
|
34169
|
+
"chars": "\0\xDA\u1EE4\u1EEA\u1EEC\u1EEE\x07\b \n\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0"
|
|
34170
34170
|
},
|
|
34171
34171
|
"georgianacademy": {
|
|
34172
34172
|
"type": "_sbcs",
|
|
@@ -34182,15 +34182,15 @@ var require_sbcs_data_generated = __commonJS({
|
|
|
34182
34182
|
},
|
|
34183
34183
|
"viscii": {
|
|
34184
34184
|
"type": "_sbcs",
|
|
34185
|
-
"chars": "\0\u1EB2\u1EB4\u1EAA\x07\b \n\v\f\r\u1EF6\u1EF8
|
|
34185
|
+
"chars": "\0\u1EB2\u1EB4\u1EAA\x07\b \n\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE"
|
|
34186
34186
|
},
|
|
34187
34187
|
"iso646cn": {
|
|
34188
34188
|
"type": "_sbcs",
|
|
34189
|
-
"chars": "\0\x07\b \n\v\f\r
|
|
34189
|
+
"chars": "\0\x07\b \n\v\f\r\x1B !\"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"
|
|
34190
34190
|
},
|
|
34191
34191
|
"iso646jp": {
|
|
34192
34192
|
"type": "_sbcs",
|
|
34193
|
-
"chars": "\0\x07\b \n\v\f\r
|
|
34193
|
+
"chars": "\0\x07\b \n\v\f\r\x1B !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"
|
|
34194
34194
|
},
|
|
34195
34195
|
"hproman8": {
|
|
34196
34196
|
"type": "_sbcs",
|
|
@@ -36360,16 +36360,16 @@ var require_os_tmpdir = __commonJS({
|
|
|
36360
36360
|
var isWindows = process.platform === "win32";
|
|
36361
36361
|
var trailingSlashRe = isWindows ? /[^:]\\$/ : /.\/$/;
|
|
36362
36362
|
module2.exports = function() {
|
|
36363
|
-
var
|
|
36363
|
+
var path3;
|
|
36364
36364
|
if (isWindows) {
|
|
36365
|
-
|
|
36365
|
+
path3 = process.env.TEMP || process.env.TMP || (process.env.SystemRoot || process.env.windir) + "\\temp";
|
|
36366
36366
|
} else {
|
|
36367
|
-
|
|
36367
|
+
path3 = process.env.TMPDIR || process.env.TMP || process.env.TEMP || "/tmp";
|
|
36368
36368
|
}
|
|
36369
|
-
if (trailingSlashRe.test(
|
|
36370
|
-
|
|
36369
|
+
if (trailingSlashRe.test(path3)) {
|
|
36370
|
+
path3 = path3.slice(0, -1);
|
|
36371
36371
|
}
|
|
36372
|
-
return
|
|
36372
|
+
return path3;
|
|
36373
36373
|
};
|
|
36374
36374
|
}
|
|
36375
36375
|
});
|
|
@@ -36378,7 +36378,7 @@ var require_os_tmpdir = __commonJS({
|
|
|
36378
36378
|
var require_tmp = __commonJS({
|
|
36379
36379
|
"../../node_modules/tmp/lib/tmp.js"(exports, module2) {
|
|
36380
36380
|
var fs2 = require("fs");
|
|
36381
|
-
var
|
|
36381
|
+
var path3 = require("path");
|
|
36382
36382
|
var crypto = require("crypto");
|
|
36383
36383
|
var osTmpDir = require_os_tmpdir();
|
|
36384
36384
|
var _c = process.binding("constants");
|
|
@@ -36420,7 +36420,7 @@ var require_tmp = __commonJS({
|
|
|
36420
36420
|
}
|
|
36421
36421
|
function _generateTmpName(opts) {
|
|
36422
36422
|
if (opts.name) {
|
|
36423
|
-
return
|
|
36423
|
+
return path3.join(opts.dir || tmpDir, opts.name);
|
|
36424
36424
|
}
|
|
36425
36425
|
if (opts.template) {
|
|
36426
36426
|
return opts.template.replace(TEMPLATE_PATTERN, _randomChars(6));
|
|
@@ -36431,7 +36431,7 @@ var require_tmp = __commonJS({
|
|
|
36431
36431
|
_randomChars(12),
|
|
36432
36432
|
opts.postfix || ""
|
|
36433
36433
|
].join("");
|
|
36434
|
-
return
|
|
36434
|
+
return path3.join(opts.dir || tmpDir, name2);
|
|
36435
36435
|
}
|
|
36436
36436
|
function tmpName(options, callback) {
|
|
36437
36437
|
var args = _parseArguments(options, callback), opts = args[0], cb = args[1], tries = opts.name ? 1 : opts.tries || DEFAULT_TRIES;
|
|
@@ -36519,7 +36519,7 @@ var require_tmp = __commonJS({
|
|
|
36519
36519
|
do {
|
|
36520
36520
|
var dir2 = dirs.pop(), deferred = false, files2 = fs2.readdirSync(dir2);
|
|
36521
36521
|
for (var i = 0, length = files2.length; i < length; i++) {
|
|
36522
|
-
var file2 =
|
|
36522
|
+
var file2 = path3.join(dir2, files2[i]), stat = fs2.lstatSync(file2);
|
|
36523
36523
|
if (stat.isDirectory()) {
|
|
36524
36524
|
if (!deferred) {
|
|
36525
36525
|
deferred = true;
|
|
@@ -39481,7 +39481,7 @@ var require_polyfills = __commonJS({
|
|
|
39481
39481
|
fs2.fstatSync = statFixSync(fs2.fstatSync);
|
|
39482
39482
|
fs2.lstatSync = statFixSync(fs2.lstatSync);
|
|
39483
39483
|
if (!fs2.lchmod) {
|
|
39484
|
-
fs2.lchmod = function(
|
|
39484
|
+
fs2.lchmod = function(path3, mode, cb) {
|
|
39485
39485
|
if (cb)
|
|
39486
39486
|
process.nextTick(cb);
|
|
39487
39487
|
};
|
|
@@ -39489,7 +39489,7 @@ var require_polyfills = __commonJS({
|
|
|
39489
39489
|
};
|
|
39490
39490
|
}
|
|
39491
39491
|
if (!fs2.lchown) {
|
|
39492
|
-
fs2.lchown = function(
|
|
39492
|
+
fs2.lchown = function(path3, uid, gid, cb) {
|
|
39493
39493
|
if (cb)
|
|
39494
39494
|
process.nextTick(cb);
|
|
39495
39495
|
};
|
|
@@ -39557,8 +39557,8 @@ var require_polyfills = __commonJS({
|
|
|
39557
39557
|
};
|
|
39558
39558
|
}(fs2.readSync);
|
|
39559
39559
|
function patchLchmod(fs3) {
|
|
39560
|
-
fs3.lchmod = function(
|
|
39561
|
-
fs3.open(
|
|
39560
|
+
fs3.lchmod = function(path3, mode, callback) {
|
|
39561
|
+
fs3.open(path3, constants.O_WRONLY | constants.O_SYMLINK, mode, function(err, fd) {
|
|
39562
39562
|
if (err) {
|
|
39563
39563
|
if (callback)
|
|
39564
39564
|
callback(err);
|
|
@@ -39572,8 +39572,8 @@ var require_polyfills = __commonJS({
|
|
|
39572
39572
|
});
|
|
39573
39573
|
});
|
|
39574
39574
|
};
|
|
39575
|
-
fs3.lchmodSync = function(
|
|
39576
|
-
var fd = fs3.openSync(
|
|
39575
|
+
fs3.lchmodSync = function(path3, mode) {
|
|
39576
|
+
var fd = fs3.openSync(path3, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
39577
39577
|
var threw = true;
|
|
39578
39578
|
var ret;
|
|
39579
39579
|
try {
|
|
@@ -39594,8 +39594,8 @@ var require_polyfills = __commonJS({
|
|
|
39594
39594
|
}
|
|
39595
39595
|
function patchLutimes(fs3) {
|
|
39596
39596
|
if (constants.hasOwnProperty("O_SYMLINK")) {
|
|
39597
|
-
fs3.lutimes = function(
|
|
39598
|
-
fs3.open(
|
|
39597
|
+
fs3.lutimes = function(path3, at, mt, cb) {
|
|
39598
|
+
fs3.open(path3, constants.O_SYMLINK, function(er, fd) {
|
|
39599
39599
|
if (er) {
|
|
39600
39600
|
if (cb)
|
|
39601
39601
|
cb(er);
|
|
@@ -39609,8 +39609,8 @@ var require_polyfills = __commonJS({
|
|
|
39609
39609
|
});
|
|
39610
39610
|
});
|
|
39611
39611
|
};
|
|
39612
|
-
fs3.lutimesSync = function(
|
|
39613
|
-
var fd = fs3.openSync(
|
|
39612
|
+
fs3.lutimesSync = function(path3, at, mt) {
|
|
39613
|
+
var fd = fs3.openSync(path3, constants.O_SYMLINK);
|
|
39614
39614
|
var ret;
|
|
39615
39615
|
var threw = true;
|
|
39616
39616
|
try {
|
|
@@ -39711,10 +39711,12 @@ var require_polyfills = __commonJS({
|
|
|
39711
39711
|
return orig;
|
|
39712
39712
|
return function(target, options) {
|
|
39713
39713
|
var stats = options ? orig.call(fs2, target, options) : orig.call(fs2, target);
|
|
39714
|
-
if (stats
|
|
39715
|
-
stats.uid
|
|
39716
|
-
|
|
39717
|
-
stats.gid
|
|
39714
|
+
if (stats) {
|
|
39715
|
+
if (stats.uid < 0)
|
|
39716
|
+
stats.uid += 4294967296;
|
|
39717
|
+
if (stats.gid < 0)
|
|
39718
|
+
stats.gid += 4294967296;
|
|
39719
|
+
}
|
|
39718
39720
|
return stats;
|
|
39719
39721
|
};
|
|
39720
39722
|
}
|
|
@@ -39744,12 +39746,12 @@ var require_legacy_streams = __commonJS({
|
|
|
39744
39746
|
ReadStream,
|
|
39745
39747
|
WriteStream
|
|
39746
39748
|
};
|
|
39747
|
-
function ReadStream(
|
|
39749
|
+
function ReadStream(path3, options) {
|
|
39748
39750
|
if (!(this instanceof ReadStream))
|
|
39749
|
-
return new ReadStream(
|
|
39751
|
+
return new ReadStream(path3, options);
|
|
39750
39752
|
Stream.call(this);
|
|
39751
39753
|
var self2 = this;
|
|
39752
|
-
this.path =
|
|
39754
|
+
this.path = path3;
|
|
39753
39755
|
this.fd = null;
|
|
39754
39756
|
this.readable = true;
|
|
39755
39757
|
this.paused = false;
|
|
@@ -39795,11 +39797,11 @@ var require_legacy_streams = __commonJS({
|
|
|
39795
39797
|
self2._read();
|
|
39796
39798
|
});
|
|
39797
39799
|
}
|
|
39798
|
-
function WriteStream(
|
|
39800
|
+
function WriteStream(path3, options) {
|
|
39799
39801
|
if (!(this instanceof WriteStream))
|
|
39800
|
-
return new WriteStream(
|
|
39802
|
+
return new WriteStream(path3, options);
|
|
39801
39803
|
Stream.call(this);
|
|
39802
|
-
this.path =
|
|
39804
|
+
this.path = path3;
|
|
39803
39805
|
this.fd = null;
|
|
39804
39806
|
this.writable = true;
|
|
39805
39807
|
this.flags = "w";
|
|
@@ -39898,7 +39900,7 @@ var require_graceful_fs = __commonJS({
|
|
|
39898
39900
|
function close(fd, cb) {
|
|
39899
39901
|
return fs$close.call(fs2, fd, function(err) {
|
|
39900
39902
|
if (!err) {
|
|
39901
|
-
|
|
39903
|
+
resetQueue();
|
|
39902
39904
|
}
|
|
39903
39905
|
if (typeof cb === "function")
|
|
39904
39906
|
cb.apply(this, arguments);
|
|
@@ -39912,7 +39914,7 @@ var require_graceful_fs = __commonJS({
|
|
|
39912
39914
|
fs2.closeSync = function(fs$closeSync) {
|
|
39913
39915
|
function closeSync(fd) {
|
|
39914
39916
|
fs$closeSync.apply(fs2, arguments);
|
|
39915
|
-
|
|
39917
|
+
resetQueue();
|
|
39916
39918
|
}
|
|
39917
39919
|
Object.defineProperty(closeSync, previousSymbol, {
|
|
39918
39920
|
value: fs$closeSync
|
|
@@ -39942,36 +39944,34 @@ var require_graceful_fs = __commonJS({
|
|
|
39942
39944
|
fs3.createWriteStream = createWriteStream;
|
|
39943
39945
|
var fs$readFile = fs3.readFile;
|
|
39944
39946
|
fs3.readFile = readFile;
|
|
39945
|
-
function readFile(
|
|
39947
|
+
function readFile(path3, options, cb) {
|
|
39946
39948
|
if (typeof options === "function")
|
|
39947
39949
|
cb = options, options = null;
|
|
39948
|
-
return go$readFile(
|
|
39949
|
-
function go$readFile(
|
|
39950
|
-
return fs$readFile(
|
|
39950
|
+
return go$readFile(path3, options, cb);
|
|
39951
|
+
function go$readFile(path4, options2, cb2, startTime) {
|
|
39952
|
+
return fs$readFile(path4, options2, function(err) {
|
|
39951
39953
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
39952
|
-
enqueue([go$readFile, [
|
|
39954
|
+
enqueue([go$readFile, [path4, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
39953
39955
|
else {
|
|
39954
39956
|
if (typeof cb2 === "function")
|
|
39955
39957
|
cb2.apply(this, arguments);
|
|
39956
|
-
retry();
|
|
39957
39958
|
}
|
|
39958
39959
|
});
|
|
39959
39960
|
}
|
|
39960
39961
|
}
|
|
39961
39962
|
var fs$writeFile = fs3.writeFile;
|
|
39962
39963
|
fs3.writeFile = writeFile;
|
|
39963
|
-
function writeFile(
|
|
39964
|
+
function writeFile(path3, data, options, cb) {
|
|
39964
39965
|
if (typeof options === "function")
|
|
39965
39966
|
cb = options, options = null;
|
|
39966
|
-
return go$writeFile(
|
|
39967
|
-
function go$writeFile(
|
|
39968
|
-
return fs$writeFile(
|
|
39967
|
+
return go$writeFile(path3, data, options, cb);
|
|
39968
|
+
function go$writeFile(path4, data2, options2, cb2, startTime) {
|
|
39969
|
+
return fs$writeFile(path4, data2, options2, function(err) {
|
|
39969
39970
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
39970
|
-
enqueue([go$writeFile, [
|
|
39971
|
+
enqueue([go$writeFile, [path4, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
39971
39972
|
else {
|
|
39972
39973
|
if (typeof cb2 === "function")
|
|
39973
39974
|
cb2.apply(this, arguments);
|
|
39974
|
-
retry();
|
|
39975
39975
|
}
|
|
39976
39976
|
});
|
|
39977
39977
|
}
|
|
@@ -39979,18 +39979,17 @@ var require_graceful_fs = __commonJS({
|
|
|
39979
39979
|
var fs$appendFile = fs3.appendFile;
|
|
39980
39980
|
if (fs$appendFile)
|
|
39981
39981
|
fs3.appendFile = appendFile;
|
|
39982
|
-
function appendFile(
|
|
39982
|
+
function appendFile(path3, data, options, cb) {
|
|
39983
39983
|
if (typeof options === "function")
|
|
39984
39984
|
cb = options, options = null;
|
|
39985
|
-
return go$appendFile(
|
|
39986
|
-
function go$appendFile(
|
|
39987
|
-
return fs$appendFile(
|
|
39985
|
+
return go$appendFile(path3, data, options, cb);
|
|
39986
|
+
function go$appendFile(path4, data2, options2, cb2, startTime) {
|
|
39987
|
+
return fs$appendFile(path4, data2, options2, function(err) {
|
|
39988
39988
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
39989
|
-
enqueue([go$appendFile, [
|
|
39989
|
+
enqueue([go$appendFile, [path4, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
39990
39990
|
else {
|
|
39991
39991
|
if (typeof cb2 === "function")
|
|
39992
39992
|
cb2.apply(this, arguments);
|
|
39993
|
-
retry();
|
|
39994
39993
|
}
|
|
39995
39994
|
});
|
|
39996
39995
|
}
|
|
@@ -40003,42 +40002,37 @@ var require_graceful_fs = __commonJS({
|
|
|
40003
40002
|
cb = flags;
|
|
40004
40003
|
flags = 0;
|
|
40005
40004
|
}
|
|
40006
|
-
return
|
|
40007
|
-
|
|
40008
|
-
|
|
40009
|
-
|
|
40010
|
-
|
|
40011
|
-
|
|
40012
|
-
|
|
40013
|
-
|
|
40014
|
-
|
|
40005
|
+
return go$copyFile(src, dest, flags, cb);
|
|
40006
|
+
function go$copyFile(src2, dest2, flags2, cb2, startTime) {
|
|
40007
|
+
return fs$copyFile(src2, dest2, flags2, function(err) {
|
|
40008
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
40009
|
+
enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
40010
|
+
else {
|
|
40011
|
+
if (typeof cb2 === "function")
|
|
40012
|
+
cb2.apply(this, arguments);
|
|
40013
|
+
}
|
|
40014
|
+
});
|
|
40015
|
+
}
|
|
40015
40016
|
}
|
|
40016
40017
|
var fs$readdir = fs3.readdir;
|
|
40017
40018
|
fs3.readdir = readdir;
|
|
40018
|
-
function readdir(
|
|
40019
|
-
|
|
40020
|
-
|
|
40021
|
-
|
|
40022
|
-
|
|
40023
|
-
|
|
40024
|
-
|
|
40025
|
-
|
|
40026
|
-
|
|
40027
|
-
|
|
40028
|
-
|
|
40029
|
-
|
|
40030
|
-
|
|
40031
|
-
|
|
40032
|
-
|
|
40033
|
-
if (typeof cb === "function")
|
|
40034
|
-
cb.apply(this, arguments);
|
|
40035
|
-
retry();
|
|
40036
|
-
}
|
|
40019
|
+
function readdir(path3, options, cb) {
|
|
40020
|
+
if (typeof options === "function")
|
|
40021
|
+
cb = options, options = null;
|
|
40022
|
+
return go$readdir(path3, options, cb);
|
|
40023
|
+
function go$readdir(path4, options2, cb2, startTime) {
|
|
40024
|
+
return fs$readdir(path4, options2, function(err, files2) {
|
|
40025
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
40026
|
+
enqueue([go$readdir, [path4, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
40027
|
+
else {
|
|
40028
|
+
if (files2 && files2.sort)
|
|
40029
|
+
files2.sort();
|
|
40030
|
+
if (typeof cb2 === "function")
|
|
40031
|
+
cb2.call(this, err, files2);
|
|
40032
|
+
}
|
|
40033
|
+
});
|
|
40037
40034
|
}
|
|
40038
40035
|
}
|
|
40039
|
-
function go$readdir(args) {
|
|
40040
|
-
return fs$readdir.apply(fs3, args);
|
|
40041
|
-
}
|
|
40042
40036
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
40043
40037
|
var legStreams = legacy(fs3);
|
|
40044
40038
|
ReadStream = legStreams.ReadStream;
|
|
@@ -40096,7 +40090,7 @@ var require_graceful_fs = __commonJS({
|
|
|
40096
40090
|
enumerable: true,
|
|
40097
40091
|
configurable: true
|
|
40098
40092
|
});
|
|
40099
|
-
function ReadStream(
|
|
40093
|
+
function ReadStream(path3, options) {
|
|
40100
40094
|
if (this instanceof ReadStream)
|
|
40101
40095
|
return fs$ReadStream.apply(this, arguments), this;
|
|
40102
40096
|
else
|
|
@@ -40116,7 +40110,7 @@ var require_graceful_fs = __commonJS({
|
|
|
40116
40110
|
}
|
|
40117
40111
|
});
|
|
40118
40112
|
}
|
|
40119
|
-
function WriteStream(
|
|
40113
|
+
function WriteStream(path3, options) {
|
|
40120
40114
|
if (this instanceof WriteStream)
|
|
40121
40115
|
return fs$WriteStream.apply(this, arguments), this;
|
|
40122
40116
|
else
|
|
@@ -40134,26 +40128,25 @@ var require_graceful_fs = __commonJS({
|
|
|
40134
40128
|
}
|
|
40135
40129
|
});
|
|
40136
40130
|
}
|
|
40137
|
-
function createReadStream(
|
|
40138
|
-
return new fs3.ReadStream(
|
|
40131
|
+
function createReadStream(path3, options) {
|
|
40132
|
+
return new fs3.ReadStream(path3, options);
|
|
40139
40133
|
}
|
|
40140
|
-
function createWriteStream(
|
|
40141
|
-
return new fs3.WriteStream(
|
|
40134
|
+
function createWriteStream(path3, options) {
|
|
40135
|
+
return new fs3.WriteStream(path3, options);
|
|
40142
40136
|
}
|
|
40143
40137
|
var fs$open = fs3.open;
|
|
40144
40138
|
fs3.open = open;
|
|
40145
|
-
function open(
|
|
40139
|
+
function open(path3, flags, mode, cb) {
|
|
40146
40140
|
if (typeof mode === "function")
|
|
40147
40141
|
cb = mode, mode = null;
|
|
40148
|
-
return go$open(
|
|
40149
|
-
function go$open(
|
|
40150
|
-
return fs$open(
|
|
40142
|
+
return go$open(path3, flags, mode, cb);
|
|
40143
|
+
function go$open(path4, flags2, mode2, cb2, startTime) {
|
|
40144
|
+
return fs$open(path4, flags2, mode2, function(err, fd) {
|
|
40151
40145
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
40152
|
-
enqueue([go$open, [
|
|
40146
|
+
enqueue([go$open, [path4, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
40153
40147
|
else {
|
|
40154
40148
|
if (typeof cb2 === "function")
|
|
40155
40149
|
cb2.apply(this, arguments);
|
|
40156
|
-
retry();
|
|
40157
40150
|
}
|
|
40158
40151
|
});
|
|
40159
40152
|
}
|
|
@@ -40163,12 +40156,51 @@ var require_graceful_fs = __commonJS({
|
|
|
40163
40156
|
function enqueue(elem) {
|
|
40164
40157
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
40165
40158
|
fs2[gracefulQueue].push(elem);
|
|
40159
|
+
retry();
|
|
40160
|
+
}
|
|
40161
|
+
var retryTimer;
|
|
40162
|
+
function resetQueue() {
|
|
40163
|
+
var now = Date.now();
|
|
40164
|
+
for (var i = 0; i < fs2[gracefulQueue].length; ++i) {
|
|
40165
|
+
if (fs2[gracefulQueue][i].length > 2) {
|
|
40166
|
+
fs2[gracefulQueue][i][3] = now;
|
|
40167
|
+
fs2[gracefulQueue][i][4] = now;
|
|
40168
|
+
}
|
|
40169
|
+
}
|
|
40170
|
+
retry();
|
|
40166
40171
|
}
|
|
40167
40172
|
function retry() {
|
|
40173
|
+
clearTimeout(retryTimer);
|
|
40174
|
+
retryTimer = void 0;
|
|
40175
|
+
if (fs2[gracefulQueue].length === 0)
|
|
40176
|
+
return;
|
|
40168
40177
|
var elem = fs2[gracefulQueue].shift();
|
|
40169
|
-
|
|
40170
|
-
|
|
40171
|
-
|
|
40178
|
+
var fn = elem[0];
|
|
40179
|
+
var args = elem[1];
|
|
40180
|
+
var err = elem[2];
|
|
40181
|
+
var startTime = elem[3];
|
|
40182
|
+
var lastTime = elem[4];
|
|
40183
|
+
if (startTime === void 0) {
|
|
40184
|
+
debug("RETRY", fn.name, args);
|
|
40185
|
+
fn.apply(null, args);
|
|
40186
|
+
} else if (Date.now() - startTime >= 6e4) {
|
|
40187
|
+
debug("TIMEOUT", fn.name, args);
|
|
40188
|
+
var cb = args.pop();
|
|
40189
|
+
if (typeof cb === "function")
|
|
40190
|
+
cb.call(null, err);
|
|
40191
|
+
} else {
|
|
40192
|
+
var sinceAttempt = Date.now() - lastTime;
|
|
40193
|
+
var sinceStart = Math.max(lastTime - startTime, 1);
|
|
40194
|
+
var desiredDelay = Math.min(sinceStart * 1.2, 100);
|
|
40195
|
+
if (sinceAttempt >= desiredDelay) {
|
|
40196
|
+
debug("RETRY", fn.name, args);
|
|
40197
|
+
fn.apply(null, args.concat([startTime]));
|
|
40198
|
+
} else {
|
|
40199
|
+
fs2[gracefulQueue].push(elem);
|
|
40200
|
+
}
|
|
40201
|
+
}
|
|
40202
|
+
if (retryTimer === void 0) {
|
|
40203
|
+
retryTimer = setTimeout(retry, 0);
|
|
40172
40204
|
}
|
|
40173
40205
|
}
|
|
40174
40206
|
}
|
|
@@ -40276,10 +40308,10 @@ var require_fs = __commonJS({
|
|
|
40276
40308
|
var require_utils2 = __commonJS({
|
|
40277
40309
|
"../../node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module2) {
|
|
40278
40310
|
"use strict";
|
|
40279
|
-
var
|
|
40311
|
+
var path3 = require("path");
|
|
40280
40312
|
module2.exports.checkPath = function checkPath(pth) {
|
|
40281
40313
|
if (process.platform === "win32") {
|
|
40282
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
40314
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path3.parse(pth).root, ""));
|
|
40283
40315
|
if (pathHasInvalidWinCharacters) {
|
|
40284
40316
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
40285
40317
|
error.code = "EINVAL";
|
|
@@ -40342,8 +40374,8 @@ var require_utimes = __commonJS({
|
|
|
40342
40374
|
"../../node_modules/fs-extra/lib/util/utimes.js"(exports, module2) {
|
|
40343
40375
|
"use strict";
|
|
40344
40376
|
var fs2 = require_graceful_fs();
|
|
40345
|
-
function utimesMillis(
|
|
40346
|
-
fs2.open(
|
|
40377
|
+
function utimesMillis(path3, atime, mtime, callback) {
|
|
40378
|
+
fs2.open(path3, "r+", (err, fd) => {
|
|
40347
40379
|
if (err)
|
|
40348
40380
|
return callback(err);
|
|
40349
40381
|
fs2.futimes(fd, atime, mtime, (futimesErr) => {
|
|
@@ -40354,8 +40386,8 @@ var require_utimes = __commonJS({
|
|
|
40354
40386
|
});
|
|
40355
40387
|
});
|
|
40356
40388
|
}
|
|
40357
|
-
function utimesMillisSync(
|
|
40358
|
-
const fd = fs2.openSync(
|
|
40389
|
+
function utimesMillisSync(path3, atime, mtime) {
|
|
40390
|
+
const fd = fs2.openSync(path3, "r+");
|
|
40359
40391
|
fs2.futimesSync(fd, atime, mtime);
|
|
40360
40392
|
return fs2.closeSync(fd);
|
|
40361
40393
|
}
|
|
@@ -40371,7 +40403,7 @@ var require_stat = __commonJS({
|
|
|
40371
40403
|
"../../node_modules/fs-extra/lib/util/stat.js"(exports, module2) {
|
|
40372
40404
|
"use strict";
|
|
40373
40405
|
var fs2 = require_fs();
|
|
40374
|
-
var
|
|
40406
|
+
var path3 = require("path");
|
|
40375
40407
|
var util = require("util");
|
|
40376
40408
|
function getStats(src, dest, opts) {
|
|
40377
40409
|
const statFunc = opts.dereference ? (file) => fs2.stat(file, { bigint: true }) : (file) => fs2.lstat(file, { bigint: true });
|
|
@@ -40404,8 +40436,8 @@ var require_stat = __commonJS({
|
|
|
40404
40436
|
const { srcStat, destStat } = stats;
|
|
40405
40437
|
if (destStat) {
|
|
40406
40438
|
if (areIdentical(srcStat, destStat)) {
|
|
40407
|
-
const srcBaseName =
|
|
40408
|
-
const destBaseName =
|
|
40439
|
+
const srcBaseName = path3.basename(src);
|
|
40440
|
+
const destBaseName = path3.basename(dest);
|
|
40409
40441
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
40410
40442
|
return cb(null, { srcStat, destStat, isChangingCase: true });
|
|
40411
40443
|
}
|
|
@@ -40428,8 +40460,8 @@ var require_stat = __commonJS({
|
|
|
40428
40460
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
40429
40461
|
if (destStat) {
|
|
40430
40462
|
if (areIdentical(srcStat, destStat)) {
|
|
40431
|
-
const srcBaseName =
|
|
40432
|
-
const destBaseName =
|
|
40463
|
+
const srcBaseName = path3.basename(src);
|
|
40464
|
+
const destBaseName = path3.basename(dest);
|
|
40433
40465
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
40434
40466
|
return { srcStat, destStat, isChangingCase: true };
|
|
40435
40467
|
}
|
|
@@ -40448,9 +40480,9 @@ var require_stat = __commonJS({
|
|
|
40448
40480
|
return { srcStat, destStat };
|
|
40449
40481
|
}
|
|
40450
40482
|
function checkParentPaths(src, srcStat, dest, funcName, cb) {
|
|
40451
|
-
const srcParent =
|
|
40452
|
-
const destParent =
|
|
40453
|
-
if (destParent === srcParent || destParent ===
|
|
40483
|
+
const srcParent = path3.resolve(path3.dirname(src));
|
|
40484
|
+
const destParent = path3.resolve(path3.dirname(dest));
|
|
40485
|
+
if (destParent === srcParent || destParent === path3.parse(destParent).root)
|
|
40454
40486
|
return cb();
|
|
40455
40487
|
fs2.stat(destParent, { bigint: true }, (err, destStat) => {
|
|
40456
40488
|
if (err) {
|
|
@@ -40465,9 +40497,9 @@ var require_stat = __commonJS({
|
|
|
40465
40497
|
});
|
|
40466
40498
|
}
|
|
40467
40499
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
40468
|
-
const srcParent =
|
|
40469
|
-
const destParent =
|
|
40470
|
-
if (destParent === srcParent || destParent ===
|
|
40500
|
+
const srcParent = path3.resolve(path3.dirname(src));
|
|
40501
|
+
const destParent = path3.resolve(path3.dirname(dest));
|
|
40502
|
+
if (destParent === srcParent || destParent === path3.parse(destParent).root)
|
|
40471
40503
|
return;
|
|
40472
40504
|
let destStat;
|
|
40473
40505
|
try {
|
|
@@ -40486,8 +40518,8 @@ var require_stat = __commonJS({
|
|
|
40486
40518
|
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
40487
40519
|
}
|
|
40488
40520
|
function isSrcSubdir(src, dest) {
|
|
40489
|
-
const srcArr =
|
|
40490
|
-
const destArr =
|
|
40521
|
+
const srcArr = path3.resolve(src).split(path3.sep).filter((i) => i);
|
|
40522
|
+
const destArr = path3.resolve(dest).split(path3.sep).filter((i) => i);
|
|
40491
40523
|
return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
|
|
40492
40524
|
}
|
|
40493
40525
|
function errMsg(src, dest, funcName) {
|
|
@@ -40509,7 +40541,7 @@ var require_copy_sync = __commonJS({
|
|
|
40509
40541
|
"../../node_modules/fs-extra/lib/copy-sync/copy-sync.js"(exports, module2) {
|
|
40510
40542
|
"use strict";
|
|
40511
40543
|
var fs2 = require_graceful_fs();
|
|
40512
|
-
var
|
|
40544
|
+
var path3 = require("path");
|
|
40513
40545
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
40514
40546
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
40515
40547
|
var stat = require_stat();
|
|
@@ -40532,7 +40564,7 @@ var require_copy_sync = __commonJS({
|
|
|
40532
40564
|
function handleFilterAndCopy(destStat, src, dest, opts) {
|
|
40533
40565
|
if (opts.filter && !opts.filter(src, dest))
|
|
40534
40566
|
return;
|
|
40535
|
-
const destParent =
|
|
40567
|
+
const destParent = path3.dirname(dest);
|
|
40536
40568
|
if (!fs2.existsSync(destParent))
|
|
40537
40569
|
mkdirsSync(destParent);
|
|
40538
40570
|
return getStats(destStat, src, dest, opts);
|
|
@@ -40608,15 +40640,15 @@ var require_copy_sync = __commonJS({
|
|
|
40608
40640
|
fs2.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
|
|
40609
40641
|
}
|
|
40610
40642
|
function copyDirItem(item, src, dest, opts) {
|
|
40611
|
-
const srcItem =
|
|
40612
|
-
const destItem =
|
|
40643
|
+
const srcItem = path3.join(src, item);
|
|
40644
|
+
const destItem = path3.join(dest, item);
|
|
40613
40645
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
40614
40646
|
return startCopy(destStat, srcItem, destItem, opts);
|
|
40615
40647
|
}
|
|
40616
40648
|
function onLink(destStat, src, dest, opts) {
|
|
40617
40649
|
let resolvedSrc = fs2.readlinkSync(src);
|
|
40618
40650
|
if (opts.dereference) {
|
|
40619
|
-
resolvedSrc =
|
|
40651
|
+
resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
|
|
40620
40652
|
}
|
|
40621
40653
|
if (!destStat) {
|
|
40622
40654
|
return fs2.symlinkSync(resolvedSrc, dest);
|
|
@@ -40630,7 +40662,7 @@ var require_copy_sync = __commonJS({
|
|
|
40630
40662
|
throw err;
|
|
40631
40663
|
}
|
|
40632
40664
|
if (opts.dereference) {
|
|
40633
|
-
resolvedDest =
|
|
40665
|
+
resolvedDest = path3.resolve(process.cwd(), resolvedDest);
|
|
40634
40666
|
}
|
|
40635
40667
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
40636
40668
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -40665,8 +40697,8 @@ var require_path_exists = __commonJS({
|
|
|
40665
40697
|
"use strict";
|
|
40666
40698
|
var u = require_universalify().fromPromise;
|
|
40667
40699
|
var fs2 = require_fs();
|
|
40668
|
-
function pathExists(
|
|
40669
|
-
return fs2.access(
|
|
40700
|
+
function pathExists(path3) {
|
|
40701
|
+
return fs2.access(path3).then(() => true).catch(() => false);
|
|
40670
40702
|
}
|
|
40671
40703
|
module2.exports = {
|
|
40672
40704
|
pathExists: u(pathExists),
|
|
@@ -40680,7 +40712,7 @@ var require_copy = __commonJS({
|
|
|
40680
40712
|
"../../node_modules/fs-extra/lib/copy/copy.js"(exports, module2) {
|
|
40681
40713
|
"use strict";
|
|
40682
40714
|
var fs2 = require_graceful_fs();
|
|
40683
|
-
var
|
|
40715
|
+
var path3 = require("path");
|
|
40684
40716
|
var mkdirs = require_mkdirs().mkdirs;
|
|
40685
40717
|
var pathExists = require_path_exists().pathExists;
|
|
40686
40718
|
var utimesMillis = require_utimes().utimesMillis;
|
|
@@ -40716,7 +40748,7 @@ var require_copy = __commonJS({
|
|
|
40716
40748
|
});
|
|
40717
40749
|
}
|
|
40718
40750
|
function checkParentDir(destStat, src, dest, opts, cb) {
|
|
40719
|
-
const destParent =
|
|
40751
|
+
const destParent = path3.dirname(dest);
|
|
40720
40752
|
pathExists(destParent, (err, dirExists) => {
|
|
40721
40753
|
if (err)
|
|
40722
40754
|
return cb(err);
|
|
@@ -40848,8 +40880,8 @@ var require_copy = __commonJS({
|
|
|
40848
40880
|
return copyDirItem(items, item, src, dest, opts, cb);
|
|
40849
40881
|
}
|
|
40850
40882
|
function copyDirItem(items, item, src, dest, opts, cb) {
|
|
40851
|
-
const srcItem =
|
|
40852
|
-
const destItem =
|
|
40883
|
+
const srcItem = path3.join(src, item);
|
|
40884
|
+
const destItem = path3.join(dest, item);
|
|
40853
40885
|
stat.checkPaths(srcItem, destItem, "copy", opts, (err, stats) => {
|
|
40854
40886
|
if (err)
|
|
40855
40887
|
return cb(err);
|
|
@@ -40866,7 +40898,7 @@ var require_copy = __commonJS({
|
|
|
40866
40898
|
if (err)
|
|
40867
40899
|
return cb(err);
|
|
40868
40900
|
if (opts.dereference) {
|
|
40869
|
-
resolvedSrc =
|
|
40901
|
+
resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
|
|
40870
40902
|
}
|
|
40871
40903
|
if (!destStat) {
|
|
40872
40904
|
return fs2.symlink(resolvedSrc, dest, cb);
|
|
@@ -40878,7 +40910,7 @@ var require_copy = __commonJS({
|
|
|
40878
40910
|
return cb(err2);
|
|
40879
40911
|
}
|
|
40880
40912
|
if (opts.dereference) {
|
|
40881
|
-
resolvedDest =
|
|
40913
|
+
resolvedDest = path3.resolve(process.cwd(), resolvedDest);
|
|
40882
40914
|
}
|
|
40883
40915
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
40884
40916
|
return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
|
|
@@ -40918,7 +40950,7 @@ var require_rimraf = __commonJS({
|
|
|
40918
40950
|
"../../node_modules/fs-extra/lib/remove/rimraf.js"(exports, module2) {
|
|
40919
40951
|
"use strict";
|
|
40920
40952
|
var fs2 = require_graceful_fs();
|
|
40921
|
-
var
|
|
40953
|
+
var path3 = require("path");
|
|
40922
40954
|
var assert = require("assert");
|
|
40923
40955
|
var isWindows = process.platform === "win32";
|
|
40924
40956
|
function defaults(options) {
|
|
@@ -41066,7 +41098,7 @@ var require_rimraf = __commonJS({
|
|
|
41066
41098
|
if (n === 0)
|
|
41067
41099
|
return options.rmdir(p, cb);
|
|
41068
41100
|
files2.forEach((f) => {
|
|
41069
|
-
rimraf(
|
|
41101
|
+
rimraf(path3.join(p, f), options, (er2) => {
|
|
41070
41102
|
if (errState) {
|
|
41071
41103
|
return;
|
|
41072
41104
|
}
|
|
@@ -41132,7 +41164,7 @@ var require_rimraf = __commonJS({
|
|
|
41132
41164
|
function rmkidsSync(p, options) {
|
|
41133
41165
|
assert(p);
|
|
41134
41166
|
assert(options);
|
|
41135
|
-
options.readdirSync(p).forEach((f) => rimrafSync(
|
|
41167
|
+
options.readdirSync(p).forEach((f) => rimrafSync(path3.join(p, f), options));
|
|
41136
41168
|
if (isWindows) {
|
|
41137
41169
|
const startTime = Date.now();
|
|
41138
41170
|
do {
|
|
@@ -41159,15 +41191,15 @@ var require_remove = __commonJS({
|
|
|
41159
41191
|
var fs2 = require_graceful_fs();
|
|
41160
41192
|
var u = require_universalify().fromCallback;
|
|
41161
41193
|
var rimraf = require_rimraf();
|
|
41162
|
-
function remove(
|
|
41194
|
+
function remove(path3, callback) {
|
|
41163
41195
|
if (fs2.rm)
|
|
41164
|
-
return fs2.rm(
|
|
41165
|
-
rimraf(
|
|
41196
|
+
return fs2.rm(path3, { recursive: true, force: true }, callback);
|
|
41197
|
+
rimraf(path3, callback);
|
|
41166
41198
|
}
|
|
41167
|
-
function removeSync(
|
|
41199
|
+
function removeSync(path3) {
|
|
41168
41200
|
if (fs2.rmSync)
|
|
41169
|
-
return fs2.rmSync(
|
|
41170
|
-
rimraf.sync(
|
|
41201
|
+
return fs2.rmSync(path3, { recursive: true, force: true });
|
|
41202
|
+
rimraf.sync(path3);
|
|
41171
41203
|
}
|
|
41172
41204
|
module2.exports = {
|
|
41173
41205
|
remove: u(remove),
|
|
@@ -41182,7 +41214,7 @@ var require_empty2 = __commonJS({
|
|
|
41182
41214
|
"use strict";
|
|
41183
41215
|
var u = require_universalify().fromPromise;
|
|
41184
41216
|
var fs2 = require_fs();
|
|
41185
|
-
var
|
|
41217
|
+
var path3 = require("path");
|
|
41186
41218
|
var mkdir = require_mkdirs();
|
|
41187
41219
|
var remove = require_remove();
|
|
41188
41220
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
@@ -41192,7 +41224,7 @@ var require_empty2 = __commonJS({
|
|
|
41192
41224
|
} catch {
|
|
41193
41225
|
return mkdir.mkdirs(dir);
|
|
41194
41226
|
}
|
|
41195
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
41227
|
+
return Promise.all(items.map((item) => remove.remove(path3.join(dir, item))));
|
|
41196
41228
|
});
|
|
41197
41229
|
function emptyDirSync(dir) {
|
|
41198
41230
|
let items;
|
|
@@ -41202,7 +41234,7 @@ var require_empty2 = __commonJS({
|
|
|
41202
41234
|
return mkdir.mkdirsSync(dir);
|
|
41203
41235
|
}
|
|
41204
41236
|
items.forEach((item) => {
|
|
41205
|
-
item =
|
|
41237
|
+
item = path3.join(dir, item);
|
|
41206
41238
|
remove.removeSync(item);
|
|
41207
41239
|
});
|
|
41208
41240
|
}
|
|
@@ -41220,7 +41252,7 @@ var require_file = __commonJS({
|
|
|
41220
41252
|
"../../node_modules/fs-extra/lib/ensure/file.js"(exports, module2) {
|
|
41221
41253
|
"use strict";
|
|
41222
41254
|
var u = require_universalify().fromCallback;
|
|
41223
|
-
var
|
|
41255
|
+
var path3 = require("path");
|
|
41224
41256
|
var fs2 = require_graceful_fs();
|
|
41225
41257
|
var mkdir = require_mkdirs();
|
|
41226
41258
|
function createFile(file, callback) {
|
|
@@ -41234,7 +41266,7 @@ var require_file = __commonJS({
|
|
|
41234
41266
|
fs2.stat(file, (err, stats) => {
|
|
41235
41267
|
if (!err && stats.isFile())
|
|
41236
41268
|
return callback();
|
|
41237
|
-
const dir =
|
|
41269
|
+
const dir = path3.dirname(file);
|
|
41238
41270
|
fs2.stat(dir, (err2, stats2) => {
|
|
41239
41271
|
if (err2) {
|
|
41240
41272
|
if (err2.code === "ENOENT") {
|
|
@@ -41265,7 +41297,7 @@ var require_file = __commonJS({
|
|
|
41265
41297
|
}
|
|
41266
41298
|
if (stats && stats.isFile())
|
|
41267
41299
|
return;
|
|
41268
|
-
const dir =
|
|
41300
|
+
const dir = path3.dirname(file);
|
|
41269
41301
|
try {
|
|
41270
41302
|
if (!fs2.statSync(dir).isDirectory()) {
|
|
41271
41303
|
fs2.readdirSync(dir);
|
|
@@ -41290,7 +41322,7 @@ var require_link = __commonJS({
|
|
|
41290
41322
|
"../../node_modules/fs-extra/lib/ensure/link.js"(exports, module2) {
|
|
41291
41323
|
"use strict";
|
|
41292
41324
|
var u = require_universalify().fromCallback;
|
|
41293
|
-
var
|
|
41325
|
+
var path3 = require("path");
|
|
41294
41326
|
var fs2 = require_graceful_fs();
|
|
41295
41327
|
var mkdir = require_mkdirs();
|
|
41296
41328
|
var pathExists = require_path_exists().pathExists;
|
|
@@ -41311,7 +41343,7 @@ var require_link = __commonJS({
|
|
|
41311
41343
|
}
|
|
41312
41344
|
if (dstStat && areIdentical(srcStat, dstStat))
|
|
41313
41345
|
return callback(null);
|
|
41314
|
-
const dir =
|
|
41346
|
+
const dir = path3.dirname(dstpath);
|
|
41315
41347
|
pathExists(dir, (err2, dirExists) => {
|
|
41316
41348
|
if (err2)
|
|
41317
41349
|
return callback(err2);
|
|
@@ -41340,7 +41372,7 @@ var require_link = __commonJS({
|
|
|
41340
41372
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
41341
41373
|
throw err;
|
|
41342
41374
|
}
|
|
41343
|
-
const dir =
|
|
41375
|
+
const dir = path3.dirname(dstpath);
|
|
41344
41376
|
const dirExists = fs2.existsSync(dir);
|
|
41345
41377
|
if (dirExists)
|
|
41346
41378
|
return fs2.linkSync(srcpath, dstpath);
|
|
@@ -41358,11 +41390,11 @@ var require_link = __commonJS({
|
|
|
41358
41390
|
var require_symlink_paths = __commonJS({
|
|
41359
41391
|
"../../node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) {
|
|
41360
41392
|
"use strict";
|
|
41361
|
-
var
|
|
41393
|
+
var path3 = require("path");
|
|
41362
41394
|
var fs2 = require_graceful_fs();
|
|
41363
41395
|
var pathExists = require_path_exists().pathExists;
|
|
41364
41396
|
function symlinkPaths(srcpath, dstpath, callback) {
|
|
41365
|
-
if (
|
|
41397
|
+
if (path3.isAbsolute(srcpath)) {
|
|
41366
41398
|
return fs2.lstat(srcpath, (err) => {
|
|
41367
41399
|
if (err) {
|
|
41368
41400
|
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
@@ -41374,8 +41406,8 @@ var require_symlink_paths = __commonJS({
|
|
|
41374
41406
|
});
|
|
41375
41407
|
});
|
|
41376
41408
|
} else {
|
|
41377
|
-
const dstdir =
|
|
41378
|
-
const relativeToDst =
|
|
41409
|
+
const dstdir = path3.dirname(dstpath);
|
|
41410
|
+
const relativeToDst = path3.join(dstdir, srcpath);
|
|
41379
41411
|
return pathExists(relativeToDst, (err, exists) => {
|
|
41380
41412
|
if (err)
|
|
41381
41413
|
return callback(err);
|
|
@@ -41392,7 +41424,7 @@ var require_symlink_paths = __commonJS({
|
|
|
41392
41424
|
}
|
|
41393
41425
|
return callback(null, {
|
|
41394
41426
|
toCwd: srcpath,
|
|
41395
|
-
toDst:
|
|
41427
|
+
toDst: path3.relative(dstdir, srcpath)
|
|
41396
41428
|
});
|
|
41397
41429
|
});
|
|
41398
41430
|
}
|
|
@@ -41401,7 +41433,7 @@ var require_symlink_paths = __commonJS({
|
|
|
41401
41433
|
}
|
|
41402
41434
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
41403
41435
|
let exists;
|
|
41404
|
-
if (
|
|
41436
|
+
if (path3.isAbsolute(srcpath)) {
|
|
41405
41437
|
exists = fs2.existsSync(srcpath);
|
|
41406
41438
|
if (!exists)
|
|
41407
41439
|
throw new Error("absolute srcpath does not exist");
|
|
@@ -41410,8 +41442,8 @@ var require_symlink_paths = __commonJS({
|
|
|
41410
41442
|
toDst: srcpath
|
|
41411
41443
|
};
|
|
41412
41444
|
} else {
|
|
41413
|
-
const dstdir =
|
|
41414
|
-
const relativeToDst =
|
|
41445
|
+
const dstdir = path3.dirname(dstpath);
|
|
41446
|
+
const relativeToDst = path3.join(dstdir, srcpath);
|
|
41415
41447
|
exists = fs2.existsSync(relativeToDst);
|
|
41416
41448
|
if (exists) {
|
|
41417
41449
|
return {
|
|
@@ -41424,7 +41456,7 @@ var require_symlink_paths = __commonJS({
|
|
|
41424
41456
|
throw new Error("relative srcpath does not exist");
|
|
41425
41457
|
return {
|
|
41426
41458
|
toCwd: srcpath,
|
|
41427
|
-
toDst:
|
|
41459
|
+
toDst: path3.relative(dstdir, srcpath)
|
|
41428
41460
|
};
|
|
41429
41461
|
}
|
|
41430
41462
|
}
|
|
@@ -41476,7 +41508,7 @@ var require_symlink = __commonJS({
|
|
|
41476
41508
|
"../../node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) {
|
|
41477
41509
|
"use strict";
|
|
41478
41510
|
var u = require_universalify().fromCallback;
|
|
41479
|
-
var
|
|
41511
|
+
var path3 = require("path");
|
|
41480
41512
|
var fs2 = require_fs();
|
|
41481
41513
|
var _mkdirs = require_mkdirs();
|
|
41482
41514
|
var mkdirs = _mkdirs.mkdirs;
|
|
@@ -41514,7 +41546,7 @@ var require_symlink = __commonJS({
|
|
|
41514
41546
|
symlinkType(relative.toCwd, type, (err2, type2) => {
|
|
41515
41547
|
if (err2)
|
|
41516
41548
|
return callback(err2);
|
|
41517
|
-
const dir =
|
|
41549
|
+
const dir = path3.dirname(dstpath);
|
|
41518
41550
|
pathExists(dir, (err3, dirExists) => {
|
|
41519
41551
|
if (err3)
|
|
41520
41552
|
return callback(err3);
|
|
@@ -41544,7 +41576,7 @@ var require_symlink = __commonJS({
|
|
|
41544
41576
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
41545
41577
|
srcpath = relative.toDst;
|
|
41546
41578
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
41547
|
-
const dir =
|
|
41579
|
+
const dir = path3.dirname(dstpath);
|
|
41548
41580
|
const exists = fs2.existsSync(dir);
|
|
41549
41581
|
if (exists)
|
|
41550
41582
|
return fs2.symlinkSync(srcpath, dstpath, type);
|
|
@@ -41582,9 +41614,9 @@ var require_ensure = __commonJS({
|
|
|
41582
41614
|
}
|
|
41583
41615
|
});
|
|
41584
41616
|
|
|
41585
|
-
// ../../node_modules/
|
|
41617
|
+
// ../../node_modules/jsonfile/node_modules/universalify/index.js
|
|
41586
41618
|
var require_universalify2 = __commonJS({
|
|
41587
|
-
"../../node_modules/
|
|
41619
|
+
"../../node_modules/jsonfile/node_modules/universalify/index.js"(exports) {
|
|
41588
41620
|
"use strict";
|
|
41589
41621
|
exports.fromCallback = function(fn) {
|
|
41590
41622
|
return Object.defineProperty(function(...args) {
|
|
@@ -41609,9 +41641,9 @@ var require_universalify2 = __commonJS({
|
|
|
41609
41641
|
}
|
|
41610
41642
|
});
|
|
41611
41643
|
|
|
41612
|
-
// ../../node_modules/
|
|
41644
|
+
// ../../node_modules/jsonfile/utils.js
|
|
41613
41645
|
var require_utils3 = __commonJS({
|
|
41614
|
-
"../../node_modules/
|
|
41646
|
+
"../../node_modules/jsonfile/utils.js"(exports, module2) {
|
|
41615
41647
|
function stringify(obj, options = {}) {
|
|
41616
41648
|
const EOL = options.EOL || "\n";
|
|
41617
41649
|
const str = JSON.stringify(obj, options ? options.replacer : null, options.spaces);
|
|
@@ -41626,9 +41658,9 @@ var require_utils3 = __commonJS({
|
|
|
41626
41658
|
}
|
|
41627
41659
|
});
|
|
41628
41660
|
|
|
41629
|
-
// ../../node_modules/
|
|
41661
|
+
// ../../node_modules/jsonfile/index.js
|
|
41630
41662
|
var require_jsonfile = __commonJS({
|
|
41631
|
-
"../../node_modules/
|
|
41663
|
+
"../../node_modules/jsonfile/index.js"(exports, module2) {
|
|
41632
41664
|
var _fs;
|
|
41633
41665
|
try {
|
|
41634
41666
|
_fs = require_graceful_fs();
|
|
@@ -41719,7 +41751,7 @@ var require_output = __commonJS({
|
|
|
41719
41751
|
"use strict";
|
|
41720
41752
|
var u = require_universalify().fromCallback;
|
|
41721
41753
|
var fs2 = require_graceful_fs();
|
|
41722
|
-
var
|
|
41754
|
+
var path3 = require("path");
|
|
41723
41755
|
var mkdir = require_mkdirs();
|
|
41724
41756
|
var pathExists = require_path_exists().pathExists;
|
|
41725
41757
|
function outputFile(file, data, encoding, callback) {
|
|
@@ -41727,7 +41759,7 @@ var require_output = __commonJS({
|
|
|
41727
41759
|
callback = encoding;
|
|
41728
41760
|
encoding = "utf8";
|
|
41729
41761
|
}
|
|
41730
|
-
const dir =
|
|
41762
|
+
const dir = path3.dirname(file);
|
|
41731
41763
|
pathExists(dir, (err, itDoes) => {
|
|
41732
41764
|
if (err)
|
|
41733
41765
|
return callback(err);
|
|
@@ -41741,7 +41773,7 @@ var require_output = __commonJS({
|
|
|
41741
41773
|
});
|
|
41742
41774
|
}
|
|
41743
41775
|
function outputFileSync(file, ...args) {
|
|
41744
|
-
const dir =
|
|
41776
|
+
const dir = path3.dirname(file);
|
|
41745
41777
|
if (fs2.existsSync(dir)) {
|
|
41746
41778
|
return fs2.writeFileSync(file, ...args);
|
|
41747
41779
|
}
|
|
@@ -41806,7 +41838,7 @@ var require_move_sync = __commonJS({
|
|
|
41806
41838
|
"../../node_modules/fs-extra/lib/move-sync/move-sync.js"(exports, module2) {
|
|
41807
41839
|
"use strict";
|
|
41808
41840
|
var fs2 = require_graceful_fs();
|
|
41809
|
-
var
|
|
41841
|
+
var path3 = require("path");
|
|
41810
41842
|
var copySync = require_copy_sync2().copySync;
|
|
41811
41843
|
var removeSync = require_remove().removeSync;
|
|
41812
41844
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -41817,12 +41849,12 @@ var require_move_sync = __commonJS({
|
|
|
41817
41849
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
|
|
41818
41850
|
stat.checkParentPathsSync(src, srcStat, dest, "move");
|
|
41819
41851
|
if (!isParentRoot(dest))
|
|
41820
|
-
mkdirpSync(
|
|
41852
|
+
mkdirpSync(path3.dirname(dest));
|
|
41821
41853
|
return doRename(src, dest, overwrite, isChangingCase);
|
|
41822
41854
|
}
|
|
41823
41855
|
function isParentRoot(dest) {
|
|
41824
|
-
const parent =
|
|
41825
|
-
const parsedPath =
|
|
41856
|
+
const parent = path3.dirname(dest);
|
|
41857
|
+
const parsedPath = path3.parse(parent);
|
|
41826
41858
|
return parsedPath.root === parent;
|
|
41827
41859
|
}
|
|
41828
41860
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
@@ -41872,7 +41904,7 @@ var require_move = __commonJS({
|
|
|
41872
41904
|
"../../node_modules/fs-extra/lib/move/move.js"(exports, module2) {
|
|
41873
41905
|
"use strict";
|
|
41874
41906
|
var fs2 = require_graceful_fs();
|
|
41875
|
-
var
|
|
41907
|
+
var path3 = require("path");
|
|
41876
41908
|
var copy = require_copy2().copy;
|
|
41877
41909
|
var remove = require_remove().remove;
|
|
41878
41910
|
var mkdirp = require_mkdirs().mkdirp;
|
|
@@ -41893,7 +41925,7 @@ var require_move = __commonJS({
|
|
|
41893
41925
|
return cb(err2);
|
|
41894
41926
|
if (isParentRoot(dest))
|
|
41895
41927
|
return doRename(src, dest, overwrite, isChangingCase, cb);
|
|
41896
|
-
mkdirp(
|
|
41928
|
+
mkdirp(path3.dirname(dest), (err3) => {
|
|
41897
41929
|
if (err3)
|
|
41898
41930
|
return cb(err3);
|
|
41899
41931
|
return doRename(src, dest, overwrite, isChangingCase, cb);
|
|
@@ -41902,8 +41934,8 @@ var require_move = __commonJS({
|
|
|
41902
41934
|
});
|
|
41903
41935
|
}
|
|
41904
41936
|
function isParentRoot(dest) {
|
|
41905
|
-
const parent =
|
|
41906
|
-
const parsedPath =
|
|
41937
|
+
const parent = path3.dirname(dest);
|
|
41938
|
+
const parsedPath = path3.parse(parent);
|
|
41907
41939
|
return parsedPath.root === parent;
|
|
41908
41940
|
}
|
|
41909
41941
|
function doRename(src, dest, overwrite, isChangingCase, cb) {
|
|
@@ -42038,7 +42070,7 @@ var require_path = __commonJS({
|
|
|
42038
42070
|
"use strict";
|
|
42039
42071
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42040
42072
|
exports.removeLeadingDotSegment = exports.escape = exports.makeAbsolute = exports.unixify = void 0;
|
|
42041
|
-
var
|
|
42073
|
+
var path3 = require("path");
|
|
42042
42074
|
var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
42043
42075
|
var UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;
|
|
42044
42076
|
function unixify(filepath) {
|
|
@@ -42046,7 +42078,7 @@ var require_path = __commonJS({
|
|
|
42046
42078
|
}
|
|
42047
42079
|
exports.unixify = unixify;
|
|
42048
42080
|
function makeAbsolute(cwd, filepath) {
|
|
42049
|
-
return
|
|
42081
|
+
return path3.resolve(cwd, filepath);
|
|
42050
42082
|
}
|
|
42051
42083
|
exports.makeAbsolute = makeAbsolute;
|
|
42052
42084
|
function escape(pattern) {
|
|
@@ -42066,9 +42098,9 @@ var require_path = __commonJS({
|
|
|
42066
42098
|
}
|
|
42067
42099
|
});
|
|
42068
42100
|
|
|
42069
|
-
// ../../node_modules/is-
|
|
42101
|
+
// ../../node_modules/is-extglob/index.js
|
|
42070
42102
|
var require_is_extglob = __commonJS({
|
|
42071
|
-
"../../node_modules/is-
|
|
42103
|
+
"../../node_modules/is-extglob/index.js"(exports, module2) {
|
|
42072
42104
|
module2.exports = function isExtglob(str) {
|
|
42073
42105
|
if (typeof str !== "string" || str === "") {
|
|
42074
42106
|
return false;
|
|
@@ -43294,7 +43326,7 @@ var require_braces = __commonJS({
|
|
|
43294
43326
|
var require_constants3 = __commonJS({
|
|
43295
43327
|
"../../node_modules/picomatch/lib/constants.js"(exports, module2) {
|
|
43296
43328
|
"use strict";
|
|
43297
|
-
var
|
|
43329
|
+
var path3 = require("path");
|
|
43298
43330
|
var WIN_SLASH = "\\\\/";
|
|
43299
43331
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
43300
43332
|
var DOT_LITERAL = "\\.";
|
|
@@ -43415,7 +43447,7 @@ var require_constants3 = __commonJS({
|
|
|
43415
43447
|
CHAR_UNDERSCORE: 95,
|
|
43416
43448
|
CHAR_VERTICAL_LINE: 124,
|
|
43417
43449
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
43418
|
-
SEP:
|
|
43450
|
+
SEP: path3.sep,
|
|
43419
43451
|
extglobChars(chars) {
|
|
43420
43452
|
return {
|
|
43421
43453
|
"!": { type: "negate", open: "(?:(?!(?:", close: `))${chars.STAR})` },
|
|
@@ -43436,7 +43468,7 @@ var require_constants3 = __commonJS({
|
|
|
43436
43468
|
var require_utils5 = __commonJS({
|
|
43437
43469
|
"../../node_modules/picomatch/lib/utils.js"(exports) {
|
|
43438
43470
|
"use strict";
|
|
43439
|
-
var
|
|
43471
|
+
var path3 = require("path");
|
|
43440
43472
|
var win32 = process.platform === "win32";
|
|
43441
43473
|
var {
|
|
43442
43474
|
REGEX_BACKSLASH,
|
|
@@ -43465,7 +43497,7 @@ var require_utils5 = __commonJS({
|
|
|
43465
43497
|
if (options && typeof options.windows === "boolean") {
|
|
43466
43498
|
return options.windows;
|
|
43467
43499
|
}
|
|
43468
|
-
return win32 === true ||
|
|
43500
|
+
return win32 === true || path3.sep === "\\";
|
|
43469
43501
|
};
|
|
43470
43502
|
exports.escapeLast = (input, char, lastIdx) => {
|
|
43471
43503
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
@@ -43726,7 +43758,7 @@ var require_scan2 = __commonJS({
|
|
|
43726
43758
|
}
|
|
43727
43759
|
let base = str;
|
|
43728
43760
|
let prefix = "";
|
|
43729
|
-
let
|
|
43761
|
+
let glob3 = "";
|
|
43730
43762
|
if (start > 0) {
|
|
43731
43763
|
prefix = str.slice(0, start);
|
|
43732
43764
|
str = str.slice(start);
|
|
@@ -43734,10 +43766,10 @@ var require_scan2 = __commonJS({
|
|
|
43734
43766
|
}
|
|
43735
43767
|
if (base && isGlob === true && lastIndex > 0) {
|
|
43736
43768
|
base = str.slice(0, lastIndex);
|
|
43737
|
-
|
|
43769
|
+
glob3 = str.slice(lastIndex);
|
|
43738
43770
|
} else if (isGlob === true) {
|
|
43739
43771
|
base = "";
|
|
43740
|
-
|
|
43772
|
+
glob3 = str;
|
|
43741
43773
|
} else {
|
|
43742
43774
|
base = str;
|
|
43743
43775
|
}
|
|
@@ -43747,8 +43779,8 @@ var require_scan2 = __commonJS({
|
|
|
43747
43779
|
}
|
|
43748
43780
|
}
|
|
43749
43781
|
if (opts.unescape === true) {
|
|
43750
|
-
if (
|
|
43751
|
-
|
|
43782
|
+
if (glob3)
|
|
43783
|
+
glob3 = utils.removeBackslashes(glob3);
|
|
43752
43784
|
if (base && backslashes === true) {
|
|
43753
43785
|
base = utils.removeBackslashes(base);
|
|
43754
43786
|
}
|
|
@@ -43758,7 +43790,7 @@ var require_scan2 = __commonJS({
|
|
|
43758
43790
|
input,
|
|
43759
43791
|
start,
|
|
43760
43792
|
base,
|
|
43761
|
-
glob:
|
|
43793
|
+
glob: glob3,
|
|
43762
43794
|
isBrace,
|
|
43763
43795
|
isBracket,
|
|
43764
43796
|
isGlob,
|
|
@@ -44597,15 +44629,15 @@ var require_parse4 = __commonJS({
|
|
|
44597
44629
|
var require_picomatch = __commonJS({
|
|
44598
44630
|
"../../node_modules/picomatch/lib/picomatch.js"(exports, module2) {
|
|
44599
44631
|
"use strict";
|
|
44600
|
-
var
|
|
44632
|
+
var path3 = require("path");
|
|
44601
44633
|
var scan = require_scan2();
|
|
44602
44634
|
var parse = require_parse4();
|
|
44603
44635
|
var utils = require_utils5();
|
|
44604
44636
|
var constants = require_constants3();
|
|
44605
44637
|
var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
44606
|
-
var picomatch = (
|
|
44607
|
-
if (Array.isArray(
|
|
44608
|
-
const fns =
|
|
44638
|
+
var picomatch = (glob3, options, returnState = false) => {
|
|
44639
|
+
if (Array.isArray(glob3)) {
|
|
44640
|
+
const fns = glob3.map((input) => picomatch(input, options, returnState));
|
|
44609
44641
|
const arrayMatcher = (str) => {
|
|
44610
44642
|
for (const isMatch of fns) {
|
|
44611
44643
|
const state2 = isMatch(str);
|
|
@@ -44616,13 +44648,13 @@ var require_picomatch = __commonJS({
|
|
|
44616
44648
|
};
|
|
44617
44649
|
return arrayMatcher;
|
|
44618
44650
|
}
|
|
44619
|
-
const isState = isObject(
|
|
44620
|
-
if (
|
|
44651
|
+
const isState = isObject(glob3) && glob3.tokens && glob3.input;
|
|
44652
|
+
if (glob3 === "" || typeof glob3 !== "string" && !isState) {
|
|
44621
44653
|
throw new TypeError("Expected pattern to be a non-empty string");
|
|
44622
44654
|
}
|
|
44623
44655
|
const opts = options || {};
|
|
44624
44656
|
const posix = utils.isWindows(options);
|
|
44625
|
-
const regex = isState ? picomatch.compileRe(
|
|
44657
|
+
const regex = isState ? picomatch.compileRe(glob3, options) : picomatch.makeRe(glob3, options, false, true);
|
|
44626
44658
|
const state = regex.state;
|
|
44627
44659
|
delete regex.state;
|
|
44628
44660
|
let isIgnored = () => false;
|
|
@@ -44631,8 +44663,8 @@ var require_picomatch = __commonJS({
|
|
|
44631
44663
|
isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
|
|
44632
44664
|
}
|
|
44633
44665
|
const matcher = (input, returnObject = false) => {
|
|
44634
|
-
const { isMatch, match, output } = picomatch.test(input, regex, options, { glob:
|
|
44635
|
-
const result = { glob:
|
|
44666
|
+
const { isMatch, match, output } = picomatch.test(input, regex, options, { glob: glob3, posix });
|
|
44667
|
+
const result = { glob: glob3, state, regex, posix, input, output, match, isMatch };
|
|
44636
44668
|
if (typeof opts.onResult === "function") {
|
|
44637
44669
|
opts.onResult(result);
|
|
44638
44670
|
}
|
|
@@ -44657,7 +44689,7 @@ var require_picomatch = __commonJS({
|
|
|
44657
44689
|
}
|
|
44658
44690
|
return matcher;
|
|
44659
44691
|
};
|
|
44660
|
-
picomatch.test = (input, regex, options, { glob:
|
|
44692
|
+
picomatch.test = (input, regex, options, { glob: glob3, posix } = {}) => {
|
|
44661
44693
|
if (typeof input !== "string") {
|
|
44662
44694
|
throw new TypeError("Expected input to be a string");
|
|
44663
44695
|
}
|
|
@@ -44666,11 +44698,11 @@ var require_picomatch = __commonJS({
|
|
|
44666
44698
|
}
|
|
44667
44699
|
const opts = options || {};
|
|
44668
44700
|
const format = opts.format || (posix ? utils.toPosixSlashes : null);
|
|
44669
|
-
let match = input ===
|
|
44701
|
+
let match = input === glob3;
|
|
44670
44702
|
let output = match && format ? format(input) : input;
|
|
44671
44703
|
if (match === false) {
|
|
44672
44704
|
output = format ? format(input) : input;
|
|
44673
|
-
match = output ===
|
|
44705
|
+
match = output === glob3;
|
|
44674
44706
|
}
|
|
44675
44707
|
if (match === false || opts.capture === true) {
|
|
44676
44708
|
if (opts.matchBase === true || opts.basename === true) {
|
|
@@ -44681,9 +44713,9 @@ var require_picomatch = __commonJS({
|
|
|
44681
44713
|
}
|
|
44682
44714
|
return { isMatch: Boolean(match), match, output };
|
|
44683
44715
|
};
|
|
44684
|
-
picomatch.matchBase = (input,
|
|
44685
|
-
const regex =
|
|
44686
|
-
return regex.test(
|
|
44716
|
+
picomatch.matchBase = (input, glob3, options, posix = utils.isWindows(options)) => {
|
|
44717
|
+
const regex = glob3 instanceof RegExp ? glob3 : picomatch.makeRe(glob3, options);
|
|
44718
|
+
return regex.test(path3.basename(input));
|
|
44687
44719
|
};
|
|
44688
44720
|
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
44689
44721
|
picomatch.parse = (pattern, options) => {
|
|
@@ -44871,9 +44903,9 @@ var require_micromatch = __commonJS({
|
|
|
44871
44903
|
}
|
|
44872
44904
|
return [].concat(patterns).every((p) => picomatch(p, options)(str));
|
|
44873
44905
|
};
|
|
44874
|
-
micromatch.capture = (
|
|
44906
|
+
micromatch.capture = (glob3, input, options) => {
|
|
44875
44907
|
let posix = utils.isWindows(options);
|
|
44876
|
-
let regex = picomatch.makeRe(String(
|
|
44908
|
+
let regex = picomatch.makeRe(String(glob3), __spreadProps(__spreadValues({}, options), { capture: true }));
|
|
44877
44909
|
let match = regex.exec(posix ? utils.toPosixSlashes(input) : input);
|
|
44878
44910
|
if (match) {
|
|
44879
44911
|
return match.slice(1).map((v) => v === void 0 ? "" : v);
|
|
@@ -44913,16 +44945,16 @@ var require_pattern = __commonJS({
|
|
|
44913
44945
|
"use strict";
|
|
44914
44946
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44915
44947
|
exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
|
|
44916
|
-
var
|
|
44948
|
+
var path3 = require("path");
|
|
44917
44949
|
var globParent = require_glob_parent();
|
|
44918
44950
|
var micromatch = require_micromatch();
|
|
44919
44951
|
var GLOBSTAR = "**";
|
|
44920
44952
|
var ESCAPE_SYMBOL = "\\";
|
|
44921
44953
|
var COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/;
|
|
44922
|
-
var REGEX_CHARACTER_CLASS_SYMBOLS_RE = /\[
|
|
44923
|
-
var REGEX_GROUP_SYMBOLS_RE = /(?:^|[^!*+?@])\(
|
|
44924
|
-
var GLOB_EXTENSION_SYMBOLS_RE = /[!*+?@]\(
|
|
44925
|
-
var
|
|
44954
|
+
var REGEX_CHARACTER_CLASS_SYMBOLS_RE = /\[[^[]*]/;
|
|
44955
|
+
var REGEX_GROUP_SYMBOLS_RE = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;
|
|
44956
|
+
var GLOB_EXTENSION_SYMBOLS_RE = /[!*+?@]\([^(]*\)/;
|
|
44957
|
+
var BRACE_EXPANSION_SEPARATORS_RE = /,|\.\./;
|
|
44926
44958
|
function isStaticPattern(pattern, options = {}) {
|
|
44927
44959
|
return !isDynamicPattern(pattern, options);
|
|
44928
44960
|
}
|
|
@@ -44940,12 +44972,24 @@ var require_pattern = __commonJS({
|
|
|
44940
44972
|
if (options.extglob !== false && GLOB_EXTENSION_SYMBOLS_RE.test(pattern)) {
|
|
44941
44973
|
return true;
|
|
44942
44974
|
}
|
|
44943
|
-
if (options.braceExpansion !== false &&
|
|
44975
|
+
if (options.braceExpansion !== false && hasBraceExpansion(pattern)) {
|
|
44944
44976
|
return true;
|
|
44945
44977
|
}
|
|
44946
44978
|
return false;
|
|
44947
44979
|
}
|
|
44948
44980
|
exports.isDynamicPattern = isDynamicPattern;
|
|
44981
|
+
function hasBraceExpansion(pattern) {
|
|
44982
|
+
const openingBraceIndex = pattern.indexOf("{");
|
|
44983
|
+
if (openingBraceIndex === -1) {
|
|
44984
|
+
return false;
|
|
44985
|
+
}
|
|
44986
|
+
const closingBraceIndex = pattern.indexOf("}", openingBraceIndex + 1);
|
|
44987
|
+
if (closingBraceIndex === -1) {
|
|
44988
|
+
return false;
|
|
44989
|
+
}
|
|
44990
|
+
const braceContent = pattern.slice(openingBraceIndex, closingBraceIndex);
|
|
44991
|
+
return BRACE_EXPANSION_SEPARATORS_RE.test(braceContent);
|
|
44992
|
+
}
|
|
44949
44993
|
function convertToPositivePattern(pattern) {
|
|
44950
44994
|
return isNegativePattern(pattern) ? pattern.slice(1) : pattern;
|
|
44951
44995
|
}
|
|
@@ -44995,7 +45039,7 @@ var require_pattern = __commonJS({
|
|
|
44995
45039
|
}
|
|
44996
45040
|
exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
44997
45041
|
function isAffectDepthOfReadingPattern(pattern) {
|
|
44998
|
-
const basename =
|
|
45042
|
+
const basename = path3.basename(pattern);
|
|
44999
45043
|
return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
|
|
45000
45044
|
}
|
|
45001
45045
|
exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
|
|
@@ -45049,18 +45093,22 @@ var require_merge22 = __commonJS({
|
|
|
45049
45093
|
module2.exports = merge2;
|
|
45050
45094
|
function merge2() {
|
|
45051
45095
|
const streamsQueue = [];
|
|
45052
|
-
let merging = false;
|
|
45053
45096
|
const args = slice.call(arguments);
|
|
45097
|
+
let merging = false;
|
|
45054
45098
|
let options = args[args.length - 1];
|
|
45055
|
-
if (options && !Array.isArray(options) && options.pipe == null)
|
|
45099
|
+
if (options && !Array.isArray(options) && options.pipe == null) {
|
|
45056
45100
|
args.pop();
|
|
45057
|
-
else
|
|
45101
|
+
} else {
|
|
45058
45102
|
options = {};
|
|
45103
|
+
}
|
|
45059
45104
|
const doEnd = options.end !== false;
|
|
45060
|
-
|
|
45105
|
+
const doPipeError = options.pipeError === true;
|
|
45106
|
+
if (options.objectMode == null) {
|
|
45061
45107
|
options.objectMode = true;
|
|
45062
|
-
|
|
45108
|
+
}
|
|
45109
|
+
if (options.highWaterMark == null) {
|
|
45063
45110
|
options.highWaterMark = 64 * 1024;
|
|
45111
|
+
}
|
|
45064
45112
|
const mergedStream = PassThrough(options);
|
|
45065
45113
|
function addStream() {
|
|
45066
45114
|
for (let i = 0, len = arguments.length; i < len; i++) {
|
|
@@ -45070,20 +45118,23 @@ var require_merge22 = __commonJS({
|
|
|
45070
45118
|
return this;
|
|
45071
45119
|
}
|
|
45072
45120
|
function mergeStream() {
|
|
45073
|
-
if (merging)
|
|
45121
|
+
if (merging) {
|
|
45074
45122
|
return;
|
|
45123
|
+
}
|
|
45075
45124
|
merging = true;
|
|
45076
45125
|
let streams = streamsQueue.shift();
|
|
45077
45126
|
if (!streams) {
|
|
45078
45127
|
process.nextTick(endStream);
|
|
45079
45128
|
return;
|
|
45080
45129
|
}
|
|
45081
|
-
if (!Array.isArray(streams))
|
|
45130
|
+
if (!Array.isArray(streams)) {
|
|
45082
45131
|
streams = [streams];
|
|
45132
|
+
}
|
|
45083
45133
|
let pipesCount = streams.length + 1;
|
|
45084
45134
|
function next() {
|
|
45085
|
-
if (--pipesCount > 0)
|
|
45135
|
+
if (--pipesCount > 0) {
|
|
45086
45136
|
return;
|
|
45137
|
+
}
|
|
45087
45138
|
merging = false;
|
|
45088
45139
|
mergeStream();
|
|
45089
45140
|
}
|
|
@@ -45091,44 +45142,60 @@ var require_merge22 = __commonJS({
|
|
|
45091
45142
|
function onend() {
|
|
45092
45143
|
stream.removeListener("merge2UnpipeEnd", onend);
|
|
45093
45144
|
stream.removeListener("end", onend);
|
|
45145
|
+
if (doPipeError) {
|
|
45146
|
+
stream.removeListener("error", onerror);
|
|
45147
|
+
}
|
|
45094
45148
|
next();
|
|
45095
45149
|
}
|
|
45096
|
-
|
|
45150
|
+
function onerror(err) {
|
|
45151
|
+
mergedStream.emit("error", err);
|
|
45152
|
+
}
|
|
45153
|
+
if (stream._readableState.endEmitted) {
|
|
45097
45154
|
return next();
|
|
45155
|
+
}
|
|
45098
45156
|
stream.on("merge2UnpipeEnd", onend);
|
|
45099
45157
|
stream.on("end", onend);
|
|
45158
|
+
if (doPipeError) {
|
|
45159
|
+
stream.on("error", onerror);
|
|
45160
|
+
}
|
|
45100
45161
|
stream.pipe(mergedStream, { end: false });
|
|
45101
45162
|
stream.resume();
|
|
45102
45163
|
}
|
|
45103
|
-
for (let i = 0; i < streams.length; i++)
|
|
45164
|
+
for (let i = 0; i < streams.length; i++) {
|
|
45104
45165
|
pipe(streams[i]);
|
|
45166
|
+
}
|
|
45105
45167
|
next();
|
|
45106
45168
|
}
|
|
45107
45169
|
function endStream() {
|
|
45108
45170
|
merging = false;
|
|
45109
45171
|
mergedStream.emit("queueDrain");
|
|
45110
|
-
|
|
45172
|
+
if (doEnd) {
|
|
45173
|
+
mergedStream.end();
|
|
45174
|
+
}
|
|
45111
45175
|
}
|
|
45112
45176
|
mergedStream.setMaxListeners(0);
|
|
45113
45177
|
mergedStream.add = addStream;
|
|
45114
45178
|
mergedStream.on("unpipe", function(stream) {
|
|
45115
45179
|
stream.emit("merge2UnpipeEnd");
|
|
45116
45180
|
});
|
|
45117
|
-
if (args.length)
|
|
45181
|
+
if (args.length) {
|
|
45118
45182
|
addStream.apply(null, args);
|
|
45183
|
+
}
|
|
45119
45184
|
return mergedStream;
|
|
45120
45185
|
}
|
|
45121
45186
|
function pauseStreams(streams, options) {
|
|
45122
45187
|
if (!Array.isArray(streams)) {
|
|
45123
|
-
if (!streams._readableState && streams.pipe)
|
|
45188
|
+
if (!streams._readableState && streams.pipe) {
|
|
45124
45189
|
streams = streams.pipe(PassThrough(options));
|
|
45190
|
+
}
|
|
45125
45191
|
if (!streams._readableState || !streams.pause || !streams.pipe) {
|
|
45126
45192
|
throw new Error("Only readable stream can be merged.");
|
|
45127
45193
|
}
|
|
45128
45194
|
streams.pause();
|
|
45129
45195
|
} else {
|
|
45130
|
-
for (let i = 0, len = streams.length; i < len; i++)
|
|
45196
|
+
for (let i = 0, len = streams.length; i < len; i++) {
|
|
45131
45197
|
streams[i] = pauseStreams(streams[i], options);
|
|
45198
|
+
}
|
|
45132
45199
|
}
|
|
45133
45200
|
return streams;
|
|
45134
45201
|
}
|
|
@@ -45187,8 +45254,8 @@ var require_utils6 = __commonJS({
|
|
|
45187
45254
|
exports.errno = errno;
|
|
45188
45255
|
var fs2 = require_fs2();
|
|
45189
45256
|
exports.fs = fs2;
|
|
45190
|
-
var
|
|
45191
|
-
exports.path =
|
|
45257
|
+
var path3 = require_path();
|
|
45258
|
+
exports.path = path3;
|
|
45192
45259
|
var pattern = require_pattern();
|
|
45193
45260
|
exports.pattern = pattern;
|
|
45194
45261
|
var stream = require_stream2();
|
|
@@ -45272,20 +45339,38 @@ var require_tasks = __commonJS({
|
|
|
45272
45339
|
}
|
|
45273
45340
|
});
|
|
45274
45341
|
|
|
45342
|
+
// ../../node_modules/fast-glob/out/managers/patterns.js
|
|
45343
|
+
var require_patterns = __commonJS({
|
|
45344
|
+
"../../node_modules/fast-glob/out/managers/patterns.js"(exports) {
|
|
45345
|
+
"use strict";
|
|
45346
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45347
|
+
exports.removeDuplicateSlashes = exports.transform = void 0;
|
|
45348
|
+
var DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
|
|
45349
|
+
function transform(patterns) {
|
|
45350
|
+
return patterns.map((pattern) => removeDuplicateSlashes(pattern));
|
|
45351
|
+
}
|
|
45352
|
+
exports.transform = transform;
|
|
45353
|
+
function removeDuplicateSlashes(pattern) {
|
|
45354
|
+
return pattern.replace(DOUBLE_SLASH_RE, "/");
|
|
45355
|
+
}
|
|
45356
|
+
exports.removeDuplicateSlashes = removeDuplicateSlashes;
|
|
45357
|
+
}
|
|
45358
|
+
});
|
|
45359
|
+
|
|
45275
45360
|
// ../../node_modules/@nodelib/fs.stat/out/providers/async.js
|
|
45276
45361
|
var require_async2 = __commonJS({
|
|
45277
45362
|
"../../node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
|
|
45278
45363
|
"use strict";
|
|
45279
45364
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45280
|
-
function read(
|
|
45281
|
-
settings.fs.lstat(
|
|
45365
|
+
function read(path3, settings, callback) {
|
|
45366
|
+
settings.fs.lstat(path3, (lstatError, lstat) => {
|
|
45282
45367
|
if (lstatError !== null) {
|
|
45283
45368
|
return callFailureCallback(callback, lstatError);
|
|
45284
45369
|
}
|
|
45285
45370
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
45286
45371
|
return callSuccessCallback(callback, lstat);
|
|
45287
45372
|
}
|
|
45288
|
-
settings.fs.stat(
|
|
45373
|
+
settings.fs.stat(path3, (statError, stat) => {
|
|
45289
45374
|
if (statError !== null) {
|
|
45290
45375
|
if (settings.throwErrorOnBrokenSymbolicLink) {
|
|
45291
45376
|
return callFailureCallback(callback, statError);
|
|
@@ -45314,13 +45399,13 @@ var require_sync = __commonJS({
|
|
|
45314
45399
|
"../../node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
|
|
45315
45400
|
"use strict";
|
|
45316
45401
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45317
|
-
function read(
|
|
45318
|
-
const lstat = settings.fs.lstatSync(
|
|
45402
|
+
function read(path3, settings) {
|
|
45403
|
+
const lstat = settings.fs.lstatSync(path3);
|
|
45319
45404
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
45320
45405
|
return lstat;
|
|
45321
45406
|
}
|
|
45322
45407
|
try {
|
|
45323
|
-
const stat = settings.fs.statSync(
|
|
45408
|
+
const stat = settings.fs.statSync(path3);
|
|
45324
45409
|
if (settings.markSymbolicLink) {
|
|
45325
45410
|
stat.isSymbolicLink = () => true;
|
|
45326
45411
|
}
|
|
@@ -45389,16 +45474,16 @@ var require_out = __commonJS({
|
|
|
45389
45474
|
var sync = require_sync();
|
|
45390
45475
|
var settings_1 = require_settings();
|
|
45391
45476
|
exports.Settings = settings_1.default;
|
|
45392
|
-
function stat(
|
|
45477
|
+
function stat(path3, optionsOrSettingsOrCallback, callback) {
|
|
45393
45478
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
45394
|
-
return async.read(
|
|
45479
|
+
return async.read(path3, getSettings(), optionsOrSettingsOrCallback);
|
|
45395
45480
|
}
|
|
45396
|
-
async.read(
|
|
45481
|
+
async.read(path3, getSettings(optionsOrSettingsOrCallback), callback);
|
|
45397
45482
|
}
|
|
45398
45483
|
exports.stat = stat;
|
|
45399
|
-
function statSync(
|
|
45484
|
+
function statSync(path3, optionsOrSettings) {
|
|
45400
45485
|
const settings = getSettings(optionsOrSettings);
|
|
45401
|
-
return sync.read(
|
|
45486
|
+
return sync.read(path3, settings);
|
|
45402
45487
|
}
|
|
45403
45488
|
exports.statSync = statSync;
|
|
45404
45489
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -45694,7 +45779,7 @@ var require_settings2 = __commonJS({
|
|
|
45694
45779
|
"../../node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
|
|
45695
45780
|
"use strict";
|
|
45696
45781
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45697
|
-
var
|
|
45782
|
+
var path3 = require("path");
|
|
45698
45783
|
var fsStat = require_out();
|
|
45699
45784
|
var fs2 = require_fs5();
|
|
45700
45785
|
var Settings = class {
|
|
@@ -45702,7 +45787,7 @@ var require_settings2 = __commonJS({
|
|
|
45702
45787
|
this._options = _options;
|
|
45703
45788
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
45704
45789
|
this.fs = fs2.createFileSystemAdapter(this._options.fs);
|
|
45705
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
45790
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path3.sep);
|
|
45706
45791
|
this.stats = this._getValue(this._options.stats, false);
|
|
45707
45792
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
45708
45793
|
this.fsStatSettings = new fsStat.Settings({
|
|
@@ -45728,16 +45813,16 @@ var require_out2 = __commonJS({
|
|
|
45728
45813
|
var sync = require_sync2();
|
|
45729
45814
|
var settings_1 = require_settings2();
|
|
45730
45815
|
exports.Settings = settings_1.default;
|
|
45731
|
-
function scandir(
|
|
45816
|
+
function scandir(path3, optionsOrSettingsOrCallback, callback) {
|
|
45732
45817
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
45733
|
-
return async.read(
|
|
45818
|
+
return async.read(path3, getSettings(), optionsOrSettingsOrCallback);
|
|
45734
45819
|
}
|
|
45735
|
-
async.read(
|
|
45820
|
+
async.read(path3, getSettings(optionsOrSettingsOrCallback), callback);
|
|
45736
45821
|
}
|
|
45737
45822
|
exports.scandir = scandir;
|
|
45738
|
-
function scandirSync(
|
|
45823
|
+
function scandirSync(path3, optionsOrSettings) {
|
|
45739
45824
|
const settings = getSettings(optionsOrSettings);
|
|
45740
|
-
return sync.read(
|
|
45825
|
+
return sync.read(path3, settings);
|
|
45741
45826
|
}
|
|
45742
45827
|
exports.scandirSync = scandirSync;
|
|
45743
45828
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -46243,7 +46328,7 @@ var require_settings3 = __commonJS({
|
|
|
46243
46328
|
"../../node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
|
|
46244
46329
|
"use strict";
|
|
46245
46330
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46246
|
-
var
|
|
46331
|
+
var path3 = require("path");
|
|
46247
46332
|
var fsScandir = require_out2();
|
|
46248
46333
|
var Settings = class {
|
|
46249
46334
|
constructor(_options = {}) {
|
|
@@ -46253,7 +46338,7 @@ var require_settings3 = __commonJS({
|
|
|
46253
46338
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
46254
46339
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
46255
46340
|
this.errorFilter = this._getValue(this._options.errorFilter, null);
|
|
46256
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
46341
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path3.sep);
|
|
46257
46342
|
this.fsScandirSettings = new fsScandir.Settings({
|
|
46258
46343
|
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
46259
46344
|
fs: this._options.fs,
|
|
@@ -46313,7 +46398,7 @@ var require_reader2 = __commonJS({
|
|
|
46313
46398
|
"../../node_modules/fast-glob/out/readers/reader.js"(exports) {
|
|
46314
46399
|
"use strict";
|
|
46315
46400
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46316
|
-
var
|
|
46401
|
+
var path3 = require("path");
|
|
46317
46402
|
var fsStat = require_out();
|
|
46318
46403
|
var utils = require_utils6();
|
|
46319
46404
|
var Reader = class {
|
|
@@ -46326,7 +46411,7 @@ var require_reader2 = __commonJS({
|
|
|
46326
46411
|
});
|
|
46327
46412
|
}
|
|
46328
46413
|
_getFullEntryPath(filepath) {
|
|
46329
|
-
return
|
|
46414
|
+
return path3.resolve(this._settings.cwd, filepath);
|
|
46330
46415
|
}
|
|
46331
46416
|
_makeEntry(stats, pattern) {
|
|
46332
46417
|
const entry = {
|
|
@@ -46613,7 +46698,7 @@ var require_entry = __commonJS({
|
|
|
46613
46698
|
}
|
|
46614
46699
|
_isMatchToPatterns(entryPath, patternsRe) {
|
|
46615
46700
|
const filepath = utils.path.removeLeadingDotSegment(entryPath);
|
|
46616
|
-
return utils.pattern.matchAny(filepath, patternsRe);
|
|
46701
|
+
return utils.pattern.matchAny(filepath, patternsRe) || utils.pattern.matchAny(filepath + "/", patternsRe);
|
|
46617
46702
|
}
|
|
46618
46703
|
};
|
|
46619
46704
|
exports.default = EntryFilter;
|
|
@@ -46678,7 +46763,7 @@ var require_provider = __commonJS({
|
|
|
46678
46763
|
"../../node_modules/fast-glob/out/providers/provider.js"(exports) {
|
|
46679
46764
|
"use strict";
|
|
46680
46765
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46681
|
-
var
|
|
46766
|
+
var path3 = require("path");
|
|
46682
46767
|
var deep_1 = require_deep();
|
|
46683
46768
|
var entry_1 = require_entry();
|
|
46684
46769
|
var error_1 = require_error();
|
|
@@ -46692,7 +46777,7 @@ var require_provider = __commonJS({
|
|
|
46692
46777
|
this.entryTransformer = new entry_2.default(this._settings);
|
|
46693
46778
|
}
|
|
46694
46779
|
_getRootDirectory(task) {
|
|
46695
|
-
return
|
|
46780
|
+
return path3.resolve(this._settings.cwd, task.base);
|
|
46696
46781
|
}
|
|
46697
46782
|
_getReaderOptions(task) {
|
|
46698
46783
|
const basePath = task.base === "." ? "" : task.base;
|
|
@@ -46936,6 +47021,7 @@ var require_out4 = __commonJS({
|
|
|
46936
47021
|
"../../node_modules/fast-glob/out/index.js"(exports, module2) {
|
|
46937
47022
|
"use strict";
|
|
46938
47023
|
var taskManager = require_tasks();
|
|
47024
|
+
var patternManager = require_patterns();
|
|
46939
47025
|
var async_1 = require_async6();
|
|
46940
47026
|
var stream_1 = require_stream5();
|
|
46941
47027
|
var sync_1 = require_sync6();
|
|
@@ -46962,7 +47048,7 @@ var require_out4 = __commonJS({
|
|
|
46962
47048
|
FastGlob2.stream = stream;
|
|
46963
47049
|
function generateTasks(source, options) {
|
|
46964
47050
|
assertPatternsInput(source);
|
|
46965
|
-
const patterns = [].concat(source);
|
|
47051
|
+
const patterns = patternManager.transform([].concat(source));
|
|
46966
47052
|
const settings = new settings_1.default(options);
|
|
46967
47053
|
return taskManager.generate(patterns, settings);
|
|
46968
47054
|
}
|
|
@@ -46980,7 +47066,7 @@ var require_out4 = __commonJS({
|
|
|
46980
47066
|
FastGlob2.escapePath = escapePath;
|
|
46981
47067
|
})(FastGlob || (FastGlob = {}));
|
|
46982
47068
|
function getWorks(source, _Provider, options) {
|
|
46983
|
-
const patterns = [].concat(source);
|
|
47069
|
+
const patterns = patternManager.transform([].concat(source));
|
|
46984
47070
|
const settings = new settings_1.default(options);
|
|
46985
47071
|
const tasks = taskManager.generate(patterns, settings);
|
|
46986
47072
|
const provider = new _Provider(settings);
|
|
@@ -47671,8 +47757,8 @@ var require_ansi_styles2 = __commonJS({
|
|
|
47671
47757
|
"../../node_modules/pretty-format/node_modules/ansi-styles/index.js"(exports, module2) {
|
|
47672
47758
|
"use strict";
|
|
47673
47759
|
var ANSI_BACKGROUND_OFFSET = 10;
|
|
47674
|
-
var wrapAnsi256 = (offset = 0) => (code) =>
|
|
47675
|
-
var wrapAnsi16m = (offset = 0) => (red, green, blue) =>
|
|
47760
|
+
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
47761
|
+
var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
47676
47762
|
function assembleStyles() {
|
|
47677
47763
|
const codes = /* @__PURE__ */ new Map();
|
|
47678
47764
|
const styles = {
|
|
@@ -47731,8 +47817,8 @@ var require_ansi_styles2 = __commonJS({
|
|
|
47731
47817
|
for (const [groupName, group] of Object.entries(styles)) {
|
|
47732
47818
|
for (const [styleName, style] of Object.entries(group)) {
|
|
47733
47819
|
styles[styleName] = {
|
|
47734
|
-
open:
|
|
47735
|
-
close:
|
|
47820
|
+
open: `\x1B[${style[0]}m`,
|
|
47821
|
+
close: `\x1B[${style[1]}m`
|
|
47736
47822
|
};
|
|
47737
47823
|
group[styleName] = styles[styleName];
|
|
47738
47824
|
codes.set(style[0], style[1]);
|
|
@@ -47746,8 +47832,8 @@ var require_ansi_styles2 = __commonJS({
|
|
|
47746
47832
|
value: codes,
|
|
47747
47833
|
enumerable: false
|
|
47748
47834
|
});
|
|
47749
|
-
styles.color.close = "
|
|
47750
|
-
styles.bgColor.close = "
|
|
47835
|
+
styles.color.close = "\x1B[39m";
|
|
47836
|
+
styles.bgColor.close = "\x1B[49m";
|
|
47751
47837
|
styles.color.ansi256 = wrapAnsi256();
|
|
47752
47838
|
styles.color.ansi16m = wrapAnsi16m();
|
|
47753
47839
|
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
@@ -50600,1580 +50686,13 @@ var require_build4 = __commonJS({
|
|
|
50600
50686
|
}
|
|
50601
50687
|
});
|
|
50602
50688
|
|
|
50603
|
-
// ../../node_modules/execa/node_modules/which/which.js
|
|
50604
|
-
var require_which2 = __commonJS({
|
|
50605
|
-
"../../node_modules/execa/node_modules/which/which.js"(exports, module2) {
|
|
50606
|
-
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
50607
|
-
var path4 = require("path");
|
|
50608
|
-
var COLON = isWindows ? ";" : ":";
|
|
50609
|
-
var isexe = require_isexe();
|
|
50610
|
-
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
50611
|
-
var getPathInfo = (cmd, opt) => {
|
|
50612
|
-
const colon = opt.colon || COLON;
|
|
50613
|
-
const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [
|
|
50614
|
-
...isWindows ? [process.cwd()] : [],
|
|
50615
|
-
...(opt.path || process.env.PATH || "").split(colon)
|
|
50616
|
-
];
|
|
50617
|
-
const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
50618
|
-
const pathExt = isWindows ? pathExtExe.split(colon) : [""];
|
|
50619
|
-
if (isWindows) {
|
|
50620
|
-
if (cmd.indexOf(".") !== -1 && pathExt[0] !== "")
|
|
50621
|
-
pathExt.unshift("");
|
|
50622
|
-
}
|
|
50623
|
-
return {
|
|
50624
|
-
pathEnv,
|
|
50625
|
-
pathExt,
|
|
50626
|
-
pathExtExe
|
|
50627
|
-
};
|
|
50628
|
-
};
|
|
50629
|
-
var which = (cmd, opt, cb) => {
|
|
50630
|
-
if (typeof opt === "function") {
|
|
50631
|
-
cb = opt;
|
|
50632
|
-
opt = {};
|
|
50633
|
-
}
|
|
50634
|
-
if (!opt)
|
|
50635
|
-
opt = {};
|
|
50636
|
-
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
50637
|
-
const found = [];
|
|
50638
|
-
const step = (i) => new Promise((resolve, reject) => {
|
|
50639
|
-
if (i === pathEnv.length)
|
|
50640
|
-
return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
50641
|
-
const ppRaw = pathEnv[i];
|
|
50642
|
-
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
50643
|
-
const pCmd = path4.join(pathPart, cmd);
|
|
50644
|
-
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
50645
|
-
resolve(subStep(p, i, 0));
|
|
50646
|
-
});
|
|
50647
|
-
const subStep = (p, i, ii) => new Promise((resolve, reject) => {
|
|
50648
|
-
if (ii === pathExt.length)
|
|
50649
|
-
return resolve(step(i + 1));
|
|
50650
|
-
const ext = pathExt[ii];
|
|
50651
|
-
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
50652
|
-
if (!er && is) {
|
|
50653
|
-
if (opt.all)
|
|
50654
|
-
found.push(p + ext);
|
|
50655
|
-
else
|
|
50656
|
-
return resolve(p + ext);
|
|
50657
|
-
}
|
|
50658
|
-
return resolve(subStep(p, i, ii + 1));
|
|
50659
|
-
});
|
|
50660
|
-
});
|
|
50661
|
-
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
50662
|
-
};
|
|
50663
|
-
var whichSync = (cmd, opt) => {
|
|
50664
|
-
opt = opt || {};
|
|
50665
|
-
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
50666
|
-
const found = [];
|
|
50667
|
-
for (let i = 0; i < pathEnv.length; i++) {
|
|
50668
|
-
const ppRaw = pathEnv[i];
|
|
50669
|
-
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
50670
|
-
const pCmd = path4.join(pathPart, cmd);
|
|
50671
|
-
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
50672
|
-
for (let j = 0; j < pathExt.length; j++) {
|
|
50673
|
-
const cur = p + pathExt[j];
|
|
50674
|
-
try {
|
|
50675
|
-
const is = isexe.sync(cur, { pathExt: pathExtExe });
|
|
50676
|
-
if (is) {
|
|
50677
|
-
if (opt.all)
|
|
50678
|
-
found.push(cur);
|
|
50679
|
-
else
|
|
50680
|
-
return cur;
|
|
50681
|
-
}
|
|
50682
|
-
} catch (ex) {
|
|
50683
|
-
}
|
|
50684
|
-
}
|
|
50685
|
-
}
|
|
50686
|
-
if (opt.all && found.length)
|
|
50687
|
-
return found;
|
|
50688
|
-
if (opt.nothrow)
|
|
50689
|
-
return null;
|
|
50690
|
-
throw getNotFoundError(cmd);
|
|
50691
|
-
};
|
|
50692
|
-
module2.exports = which;
|
|
50693
|
-
which.sync = whichSync;
|
|
50694
|
-
}
|
|
50695
|
-
});
|
|
50696
|
-
|
|
50697
|
-
// ../../node_modules/path-key/index.js
|
|
50698
|
-
var require_path_key2 = __commonJS({
|
|
50699
|
-
"../../node_modules/path-key/index.js"(exports, module2) {
|
|
50700
|
-
"use strict";
|
|
50701
|
-
var pathKey = (options = {}) => {
|
|
50702
|
-
const environment = options.env || process.env;
|
|
50703
|
-
const platform = options.platform || process.platform;
|
|
50704
|
-
if (platform !== "win32") {
|
|
50705
|
-
return "PATH";
|
|
50706
|
-
}
|
|
50707
|
-
return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
50708
|
-
};
|
|
50709
|
-
module2.exports = pathKey;
|
|
50710
|
-
module2.exports.default = pathKey;
|
|
50711
|
-
}
|
|
50712
|
-
});
|
|
50713
|
-
|
|
50714
|
-
// ../../node_modules/execa/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
50715
|
-
var require_resolveCommand2 = __commonJS({
|
|
50716
|
-
"../../node_modules/execa/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) {
|
|
50717
|
-
"use strict";
|
|
50718
|
-
var path4 = require("path");
|
|
50719
|
-
var which = require_which2();
|
|
50720
|
-
var getPathKey = require_path_key2();
|
|
50721
|
-
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
50722
|
-
const env = parsed.options.env || process.env;
|
|
50723
|
-
const cwd = process.cwd();
|
|
50724
|
-
const hasCustomCwd = parsed.options.cwd != null;
|
|
50725
|
-
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
50726
|
-
if (shouldSwitchCwd) {
|
|
50727
|
-
try {
|
|
50728
|
-
process.chdir(parsed.options.cwd);
|
|
50729
|
-
} catch (err) {
|
|
50730
|
-
}
|
|
50731
|
-
}
|
|
50732
|
-
let resolved;
|
|
50733
|
-
try {
|
|
50734
|
-
resolved = which.sync(parsed.command, {
|
|
50735
|
-
path: env[getPathKey({ env })],
|
|
50736
|
-
pathExt: withoutPathExt ? path4.delimiter : void 0
|
|
50737
|
-
});
|
|
50738
|
-
} catch (e) {
|
|
50739
|
-
} finally {
|
|
50740
|
-
if (shouldSwitchCwd) {
|
|
50741
|
-
process.chdir(cwd);
|
|
50742
|
-
}
|
|
50743
|
-
}
|
|
50744
|
-
if (resolved) {
|
|
50745
|
-
resolved = path4.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
50746
|
-
}
|
|
50747
|
-
return resolved;
|
|
50748
|
-
}
|
|
50749
|
-
function resolveCommand(parsed) {
|
|
50750
|
-
return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
|
|
50751
|
-
}
|
|
50752
|
-
module2.exports = resolveCommand;
|
|
50753
|
-
}
|
|
50754
|
-
});
|
|
50755
|
-
|
|
50756
|
-
// ../../node_modules/execa/node_modules/cross-spawn/lib/util/escape.js
|
|
50757
|
-
var require_escape = __commonJS({
|
|
50758
|
-
"../../node_modules/execa/node_modules/cross-spawn/lib/util/escape.js"(exports, module2) {
|
|
50759
|
-
"use strict";
|
|
50760
|
-
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
50761
|
-
function escapeCommand(arg) {
|
|
50762
|
-
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
50763
|
-
return arg;
|
|
50764
|
-
}
|
|
50765
|
-
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
50766
|
-
arg = `${arg}`;
|
|
50767
|
-
arg = arg.replace(/(\\*)"/g, '$1$1\\"');
|
|
50768
|
-
arg = arg.replace(/(\\*)$/, "$1$1");
|
|
50769
|
-
arg = `"${arg}"`;
|
|
50770
|
-
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
50771
|
-
if (doubleEscapeMetaChars) {
|
|
50772
|
-
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
50773
|
-
}
|
|
50774
|
-
return arg;
|
|
50775
|
-
}
|
|
50776
|
-
module2.exports.command = escapeCommand;
|
|
50777
|
-
module2.exports.argument = escapeArgument;
|
|
50778
|
-
}
|
|
50779
|
-
});
|
|
50780
|
-
|
|
50781
|
-
// ../../node_modules/shebang-regex/index.js
|
|
50782
|
-
var require_shebang_regex = __commonJS({
|
|
50783
|
-
"../../node_modules/shebang-regex/index.js"(exports, module2) {
|
|
50784
|
-
"use strict";
|
|
50785
|
-
module2.exports = /^#!(.*)/;
|
|
50786
|
-
}
|
|
50787
|
-
});
|
|
50788
|
-
|
|
50789
|
-
// ../../node_modules/execa/node_modules/shebang-command/index.js
|
|
50790
|
-
var require_shebang_command = __commonJS({
|
|
50791
|
-
"../../node_modules/execa/node_modules/shebang-command/index.js"(exports, module2) {
|
|
50792
|
-
"use strict";
|
|
50793
|
-
var shebangRegex = require_shebang_regex();
|
|
50794
|
-
module2.exports = (string = "") => {
|
|
50795
|
-
const match = string.match(shebangRegex);
|
|
50796
|
-
if (!match) {
|
|
50797
|
-
return null;
|
|
50798
|
-
}
|
|
50799
|
-
const [path4, argument] = match[0].replace(/#! ?/, "").split(" ");
|
|
50800
|
-
const binary = path4.split("/").pop();
|
|
50801
|
-
if (binary === "env") {
|
|
50802
|
-
return argument;
|
|
50803
|
-
}
|
|
50804
|
-
return argument ? `${binary} ${argument}` : binary;
|
|
50805
|
-
};
|
|
50806
|
-
}
|
|
50807
|
-
});
|
|
50808
|
-
|
|
50809
|
-
// ../../node_modules/execa/node_modules/cross-spawn/lib/util/readShebang.js
|
|
50810
|
-
var require_readShebang = __commonJS({
|
|
50811
|
-
"../../node_modules/execa/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module2) {
|
|
50812
|
-
"use strict";
|
|
50813
|
-
var fs2 = require("fs");
|
|
50814
|
-
var shebangCommand = require_shebang_command();
|
|
50815
|
-
function readShebang(command) {
|
|
50816
|
-
const size = 150;
|
|
50817
|
-
const buffer = Buffer.alloc(size);
|
|
50818
|
-
let fd;
|
|
50819
|
-
try {
|
|
50820
|
-
fd = fs2.openSync(command, "r");
|
|
50821
|
-
fs2.readSync(fd, buffer, 0, size, 0);
|
|
50822
|
-
fs2.closeSync(fd);
|
|
50823
|
-
} catch (e) {
|
|
50824
|
-
}
|
|
50825
|
-
return shebangCommand(buffer.toString());
|
|
50826
|
-
}
|
|
50827
|
-
module2.exports = readShebang;
|
|
50828
|
-
}
|
|
50829
|
-
});
|
|
50830
|
-
|
|
50831
|
-
// ../../node_modules/execa/node_modules/cross-spawn/lib/parse.js
|
|
50832
|
-
var require_parse5 = __commonJS({
|
|
50833
|
-
"../../node_modules/execa/node_modules/cross-spawn/lib/parse.js"(exports, module2) {
|
|
50834
|
-
"use strict";
|
|
50835
|
-
var path4 = require("path");
|
|
50836
|
-
var resolveCommand = require_resolveCommand2();
|
|
50837
|
-
var escape = require_escape();
|
|
50838
|
-
var readShebang = require_readShebang();
|
|
50839
|
-
var isWin = process.platform === "win32";
|
|
50840
|
-
var isExecutableRegExp = /\.(?:com|exe)$/i;
|
|
50841
|
-
var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
50842
|
-
function detectShebang(parsed) {
|
|
50843
|
-
parsed.file = resolveCommand(parsed);
|
|
50844
|
-
const shebang = parsed.file && readShebang(parsed.file);
|
|
50845
|
-
if (shebang) {
|
|
50846
|
-
parsed.args.unshift(parsed.file);
|
|
50847
|
-
parsed.command = shebang;
|
|
50848
|
-
return resolveCommand(parsed);
|
|
50849
|
-
}
|
|
50850
|
-
return parsed.file;
|
|
50851
|
-
}
|
|
50852
|
-
function parseNonShell(parsed) {
|
|
50853
|
-
if (!isWin) {
|
|
50854
|
-
return parsed;
|
|
50855
|
-
}
|
|
50856
|
-
const commandFile = detectShebang(parsed);
|
|
50857
|
-
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
50858
|
-
if (parsed.options.forceShell || needsShell) {
|
|
50859
|
-
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
50860
|
-
parsed.command = path4.normalize(parsed.command);
|
|
50861
|
-
parsed.command = escape.command(parsed.command);
|
|
50862
|
-
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
50863
|
-
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
50864
|
-
parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`];
|
|
50865
|
-
parsed.command = process.env.comspec || "cmd.exe";
|
|
50866
|
-
parsed.options.windowsVerbatimArguments = true;
|
|
50867
|
-
}
|
|
50868
|
-
return parsed;
|
|
50869
|
-
}
|
|
50870
|
-
function parse(command, args, options) {
|
|
50871
|
-
if (args && !Array.isArray(args)) {
|
|
50872
|
-
options = args;
|
|
50873
|
-
args = null;
|
|
50874
|
-
}
|
|
50875
|
-
args = args ? args.slice(0) : [];
|
|
50876
|
-
options = Object.assign({}, options);
|
|
50877
|
-
const parsed = {
|
|
50878
|
-
command,
|
|
50879
|
-
args,
|
|
50880
|
-
options,
|
|
50881
|
-
file: void 0,
|
|
50882
|
-
original: {
|
|
50883
|
-
command,
|
|
50884
|
-
args
|
|
50885
|
-
}
|
|
50886
|
-
};
|
|
50887
|
-
return options.shell ? parsed : parseNonShell(parsed);
|
|
50888
|
-
}
|
|
50889
|
-
module2.exports = parse;
|
|
50890
|
-
}
|
|
50891
|
-
});
|
|
50892
|
-
|
|
50893
|
-
// ../../node_modules/execa/node_modules/cross-spawn/lib/enoent.js
|
|
50894
|
-
var require_enoent2 = __commonJS({
|
|
50895
|
-
"../../node_modules/execa/node_modules/cross-spawn/lib/enoent.js"(exports, module2) {
|
|
50896
|
-
"use strict";
|
|
50897
|
-
var isWin = process.platform === "win32";
|
|
50898
|
-
function notFoundError(original, syscall) {
|
|
50899
|
-
return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
|
|
50900
|
-
code: "ENOENT",
|
|
50901
|
-
errno: "ENOENT",
|
|
50902
|
-
syscall: `${syscall} ${original.command}`,
|
|
50903
|
-
path: original.command,
|
|
50904
|
-
spawnargs: original.args
|
|
50905
|
-
});
|
|
50906
|
-
}
|
|
50907
|
-
function hookChildProcess(cp, parsed) {
|
|
50908
|
-
if (!isWin) {
|
|
50909
|
-
return;
|
|
50910
|
-
}
|
|
50911
|
-
const originalEmit = cp.emit;
|
|
50912
|
-
cp.emit = function(name2, arg1) {
|
|
50913
|
-
if (name2 === "exit") {
|
|
50914
|
-
const err = verifyENOENT(arg1, parsed, "spawn");
|
|
50915
|
-
if (err) {
|
|
50916
|
-
return originalEmit.call(cp, "error", err);
|
|
50917
|
-
}
|
|
50918
|
-
}
|
|
50919
|
-
return originalEmit.apply(cp, arguments);
|
|
50920
|
-
};
|
|
50921
|
-
}
|
|
50922
|
-
function verifyENOENT(status, parsed) {
|
|
50923
|
-
if (isWin && status === 1 && !parsed.file) {
|
|
50924
|
-
return notFoundError(parsed.original, "spawn");
|
|
50925
|
-
}
|
|
50926
|
-
return null;
|
|
50927
|
-
}
|
|
50928
|
-
function verifyENOENTSync(status, parsed) {
|
|
50929
|
-
if (isWin && status === 1 && !parsed.file) {
|
|
50930
|
-
return notFoundError(parsed.original, "spawnSync");
|
|
50931
|
-
}
|
|
50932
|
-
return null;
|
|
50933
|
-
}
|
|
50934
|
-
module2.exports = {
|
|
50935
|
-
hookChildProcess,
|
|
50936
|
-
verifyENOENT,
|
|
50937
|
-
verifyENOENTSync,
|
|
50938
|
-
notFoundError
|
|
50939
|
-
};
|
|
50940
|
-
}
|
|
50941
|
-
});
|
|
50942
|
-
|
|
50943
|
-
// ../../node_modules/execa/node_modules/cross-spawn/index.js
|
|
50944
|
-
var require_cross_spawn = __commonJS({
|
|
50945
|
-
"../../node_modules/execa/node_modules/cross-spawn/index.js"(exports, module2) {
|
|
50946
|
-
"use strict";
|
|
50947
|
-
var cp = require("child_process");
|
|
50948
|
-
var parse = require_parse5();
|
|
50949
|
-
var enoent = require_enoent2();
|
|
50950
|
-
function spawn(command, args, options) {
|
|
50951
|
-
const parsed = parse(command, args, options);
|
|
50952
|
-
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
50953
|
-
enoent.hookChildProcess(spawned, parsed);
|
|
50954
|
-
return spawned;
|
|
50955
|
-
}
|
|
50956
|
-
function spawnSync(command, args, options) {
|
|
50957
|
-
const parsed = parse(command, args, options);
|
|
50958
|
-
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
50959
|
-
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
50960
|
-
return result;
|
|
50961
|
-
}
|
|
50962
|
-
module2.exports = spawn;
|
|
50963
|
-
module2.exports.spawn = spawn;
|
|
50964
|
-
module2.exports.sync = spawnSync;
|
|
50965
|
-
module2.exports._parse = parse;
|
|
50966
|
-
module2.exports._enoent = enoent;
|
|
50967
|
-
}
|
|
50968
|
-
});
|
|
50969
|
-
|
|
50970
|
-
// ../../node_modules/strip-final-newline/index.js
|
|
50971
|
-
var require_strip_final_newline = __commonJS({
|
|
50972
|
-
"../../node_modules/strip-final-newline/index.js"(exports, module2) {
|
|
50973
|
-
"use strict";
|
|
50974
|
-
module2.exports = (input) => {
|
|
50975
|
-
const LF = typeof input === "string" ? "\n" : "\n".charCodeAt();
|
|
50976
|
-
const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
|
|
50977
|
-
if (input[input.length - 1] === LF) {
|
|
50978
|
-
input = input.slice(0, input.length - 1);
|
|
50979
|
-
}
|
|
50980
|
-
if (input[input.length - 1] === CR) {
|
|
50981
|
-
input = input.slice(0, input.length - 1);
|
|
50982
|
-
}
|
|
50983
|
-
return input;
|
|
50984
|
-
};
|
|
50985
|
-
}
|
|
50986
|
-
});
|
|
50987
|
-
|
|
50988
|
-
// ../../node_modules/npm-run-path/index.js
|
|
50989
|
-
var require_npm_run_path2 = __commonJS({
|
|
50990
|
-
"../../node_modules/npm-run-path/index.js"(exports, module2) {
|
|
50991
|
-
"use strict";
|
|
50992
|
-
var path4 = require("path");
|
|
50993
|
-
var pathKey = require_path_key2();
|
|
50994
|
-
var npmRunPath = (options) => {
|
|
50995
|
-
options = __spreadValues({
|
|
50996
|
-
cwd: process.cwd(),
|
|
50997
|
-
path: process.env[pathKey()],
|
|
50998
|
-
execPath: process.execPath
|
|
50999
|
-
}, options);
|
|
51000
|
-
let previous;
|
|
51001
|
-
let cwdPath = path4.resolve(options.cwd);
|
|
51002
|
-
const result = [];
|
|
51003
|
-
while (previous !== cwdPath) {
|
|
51004
|
-
result.push(path4.join(cwdPath, "node_modules/.bin"));
|
|
51005
|
-
previous = cwdPath;
|
|
51006
|
-
cwdPath = path4.resolve(cwdPath, "..");
|
|
51007
|
-
}
|
|
51008
|
-
const execPathDir = path4.resolve(options.cwd, options.execPath, "..");
|
|
51009
|
-
result.push(execPathDir);
|
|
51010
|
-
return result.concat(options.path).join(path4.delimiter);
|
|
51011
|
-
};
|
|
51012
|
-
module2.exports = npmRunPath;
|
|
51013
|
-
module2.exports.default = npmRunPath;
|
|
51014
|
-
module2.exports.env = (options) => {
|
|
51015
|
-
options = __spreadValues({
|
|
51016
|
-
env: process.env
|
|
51017
|
-
}, options);
|
|
51018
|
-
const env = __spreadValues({}, options.env);
|
|
51019
|
-
const path5 = pathKey({ env });
|
|
51020
|
-
options.path = env[path5];
|
|
51021
|
-
env[path5] = module2.exports(options);
|
|
51022
|
-
return env;
|
|
51023
|
-
};
|
|
51024
|
-
}
|
|
51025
|
-
});
|
|
51026
|
-
|
|
51027
|
-
// ../../node_modules/human-signals/build/src/core.js
|
|
51028
|
-
var require_core = __commonJS({
|
|
51029
|
-
"../../node_modules/human-signals/build/src/core.js"(exports) {
|
|
51030
|
-
"use strict";
|
|
51031
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51032
|
-
exports.SIGNALS = void 0;
|
|
51033
|
-
var SIGNALS = [
|
|
51034
|
-
{
|
|
51035
|
-
name: "SIGHUP",
|
|
51036
|
-
number: 1,
|
|
51037
|
-
action: "terminate",
|
|
51038
|
-
description: "Terminal closed",
|
|
51039
|
-
standard: "posix"
|
|
51040
|
-
},
|
|
51041
|
-
{
|
|
51042
|
-
name: "SIGINT",
|
|
51043
|
-
number: 2,
|
|
51044
|
-
action: "terminate",
|
|
51045
|
-
description: "User interruption with CTRL-C",
|
|
51046
|
-
standard: "ansi"
|
|
51047
|
-
},
|
|
51048
|
-
{
|
|
51049
|
-
name: "SIGQUIT",
|
|
51050
|
-
number: 3,
|
|
51051
|
-
action: "core",
|
|
51052
|
-
description: "User interruption with CTRL-\\",
|
|
51053
|
-
standard: "posix"
|
|
51054
|
-
},
|
|
51055
|
-
{
|
|
51056
|
-
name: "SIGILL",
|
|
51057
|
-
number: 4,
|
|
51058
|
-
action: "core",
|
|
51059
|
-
description: "Invalid machine instruction",
|
|
51060
|
-
standard: "ansi"
|
|
51061
|
-
},
|
|
51062
|
-
{
|
|
51063
|
-
name: "SIGTRAP",
|
|
51064
|
-
number: 5,
|
|
51065
|
-
action: "core",
|
|
51066
|
-
description: "Debugger breakpoint",
|
|
51067
|
-
standard: "posix"
|
|
51068
|
-
},
|
|
51069
|
-
{
|
|
51070
|
-
name: "SIGABRT",
|
|
51071
|
-
number: 6,
|
|
51072
|
-
action: "core",
|
|
51073
|
-
description: "Aborted",
|
|
51074
|
-
standard: "ansi"
|
|
51075
|
-
},
|
|
51076
|
-
{
|
|
51077
|
-
name: "SIGIOT",
|
|
51078
|
-
number: 6,
|
|
51079
|
-
action: "core",
|
|
51080
|
-
description: "Aborted",
|
|
51081
|
-
standard: "bsd"
|
|
51082
|
-
},
|
|
51083
|
-
{
|
|
51084
|
-
name: "SIGBUS",
|
|
51085
|
-
number: 7,
|
|
51086
|
-
action: "core",
|
|
51087
|
-
description: "Bus error due to misaligned, non-existing address or paging error",
|
|
51088
|
-
standard: "bsd"
|
|
51089
|
-
},
|
|
51090
|
-
{
|
|
51091
|
-
name: "SIGEMT",
|
|
51092
|
-
number: 7,
|
|
51093
|
-
action: "terminate",
|
|
51094
|
-
description: "Command should be emulated but is not implemented",
|
|
51095
|
-
standard: "other"
|
|
51096
|
-
},
|
|
51097
|
-
{
|
|
51098
|
-
name: "SIGFPE",
|
|
51099
|
-
number: 8,
|
|
51100
|
-
action: "core",
|
|
51101
|
-
description: "Floating point arithmetic error",
|
|
51102
|
-
standard: "ansi"
|
|
51103
|
-
},
|
|
51104
|
-
{
|
|
51105
|
-
name: "SIGKILL",
|
|
51106
|
-
number: 9,
|
|
51107
|
-
action: "terminate",
|
|
51108
|
-
description: "Forced termination",
|
|
51109
|
-
standard: "posix",
|
|
51110
|
-
forced: true
|
|
51111
|
-
},
|
|
51112
|
-
{
|
|
51113
|
-
name: "SIGUSR1",
|
|
51114
|
-
number: 10,
|
|
51115
|
-
action: "terminate",
|
|
51116
|
-
description: "Application-specific signal",
|
|
51117
|
-
standard: "posix"
|
|
51118
|
-
},
|
|
51119
|
-
{
|
|
51120
|
-
name: "SIGSEGV",
|
|
51121
|
-
number: 11,
|
|
51122
|
-
action: "core",
|
|
51123
|
-
description: "Segmentation fault",
|
|
51124
|
-
standard: "ansi"
|
|
51125
|
-
},
|
|
51126
|
-
{
|
|
51127
|
-
name: "SIGUSR2",
|
|
51128
|
-
number: 12,
|
|
51129
|
-
action: "terminate",
|
|
51130
|
-
description: "Application-specific signal",
|
|
51131
|
-
standard: "posix"
|
|
51132
|
-
},
|
|
51133
|
-
{
|
|
51134
|
-
name: "SIGPIPE",
|
|
51135
|
-
number: 13,
|
|
51136
|
-
action: "terminate",
|
|
51137
|
-
description: "Broken pipe or socket",
|
|
51138
|
-
standard: "posix"
|
|
51139
|
-
},
|
|
51140
|
-
{
|
|
51141
|
-
name: "SIGALRM",
|
|
51142
|
-
number: 14,
|
|
51143
|
-
action: "terminate",
|
|
51144
|
-
description: "Timeout or timer",
|
|
51145
|
-
standard: "posix"
|
|
51146
|
-
},
|
|
51147
|
-
{
|
|
51148
|
-
name: "SIGTERM",
|
|
51149
|
-
number: 15,
|
|
51150
|
-
action: "terminate",
|
|
51151
|
-
description: "Termination",
|
|
51152
|
-
standard: "ansi"
|
|
51153
|
-
},
|
|
51154
|
-
{
|
|
51155
|
-
name: "SIGSTKFLT",
|
|
51156
|
-
number: 16,
|
|
51157
|
-
action: "terminate",
|
|
51158
|
-
description: "Stack is empty or overflowed",
|
|
51159
|
-
standard: "other"
|
|
51160
|
-
},
|
|
51161
|
-
{
|
|
51162
|
-
name: "SIGCHLD",
|
|
51163
|
-
number: 17,
|
|
51164
|
-
action: "ignore",
|
|
51165
|
-
description: "Child process terminated, paused or unpaused",
|
|
51166
|
-
standard: "posix"
|
|
51167
|
-
},
|
|
51168
|
-
{
|
|
51169
|
-
name: "SIGCLD",
|
|
51170
|
-
number: 17,
|
|
51171
|
-
action: "ignore",
|
|
51172
|
-
description: "Child process terminated, paused or unpaused",
|
|
51173
|
-
standard: "other"
|
|
51174
|
-
},
|
|
51175
|
-
{
|
|
51176
|
-
name: "SIGCONT",
|
|
51177
|
-
number: 18,
|
|
51178
|
-
action: "unpause",
|
|
51179
|
-
description: "Unpaused",
|
|
51180
|
-
standard: "posix",
|
|
51181
|
-
forced: true
|
|
51182
|
-
},
|
|
51183
|
-
{
|
|
51184
|
-
name: "SIGSTOP",
|
|
51185
|
-
number: 19,
|
|
51186
|
-
action: "pause",
|
|
51187
|
-
description: "Paused",
|
|
51188
|
-
standard: "posix",
|
|
51189
|
-
forced: true
|
|
51190
|
-
},
|
|
51191
|
-
{
|
|
51192
|
-
name: "SIGTSTP",
|
|
51193
|
-
number: 20,
|
|
51194
|
-
action: "pause",
|
|
51195
|
-
description: 'Paused using CTRL-Z or "suspend"',
|
|
51196
|
-
standard: "posix"
|
|
51197
|
-
},
|
|
51198
|
-
{
|
|
51199
|
-
name: "SIGTTIN",
|
|
51200
|
-
number: 21,
|
|
51201
|
-
action: "pause",
|
|
51202
|
-
description: "Background process cannot read terminal input",
|
|
51203
|
-
standard: "posix"
|
|
51204
|
-
},
|
|
51205
|
-
{
|
|
51206
|
-
name: "SIGBREAK",
|
|
51207
|
-
number: 21,
|
|
51208
|
-
action: "terminate",
|
|
51209
|
-
description: "User interruption with CTRL-BREAK",
|
|
51210
|
-
standard: "other"
|
|
51211
|
-
},
|
|
51212
|
-
{
|
|
51213
|
-
name: "SIGTTOU",
|
|
51214
|
-
number: 22,
|
|
51215
|
-
action: "pause",
|
|
51216
|
-
description: "Background process cannot write to terminal output",
|
|
51217
|
-
standard: "posix"
|
|
51218
|
-
},
|
|
51219
|
-
{
|
|
51220
|
-
name: "SIGURG",
|
|
51221
|
-
number: 23,
|
|
51222
|
-
action: "ignore",
|
|
51223
|
-
description: "Socket received out-of-band data",
|
|
51224
|
-
standard: "bsd"
|
|
51225
|
-
},
|
|
51226
|
-
{
|
|
51227
|
-
name: "SIGXCPU",
|
|
51228
|
-
number: 24,
|
|
51229
|
-
action: "core",
|
|
51230
|
-
description: "Process timed out",
|
|
51231
|
-
standard: "bsd"
|
|
51232
|
-
},
|
|
51233
|
-
{
|
|
51234
|
-
name: "SIGXFSZ",
|
|
51235
|
-
number: 25,
|
|
51236
|
-
action: "core",
|
|
51237
|
-
description: "File too big",
|
|
51238
|
-
standard: "bsd"
|
|
51239
|
-
},
|
|
51240
|
-
{
|
|
51241
|
-
name: "SIGVTALRM",
|
|
51242
|
-
number: 26,
|
|
51243
|
-
action: "terminate",
|
|
51244
|
-
description: "Timeout or timer",
|
|
51245
|
-
standard: "bsd"
|
|
51246
|
-
},
|
|
51247
|
-
{
|
|
51248
|
-
name: "SIGPROF",
|
|
51249
|
-
number: 27,
|
|
51250
|
-
action: "terminate",
|
|
51251
|
-
description: "Timeout or timer",
|
|
51252
|
-
standard: "bsd"
|
|
51253
|
-
},
|
|
51254
|
-
{
|
|
51255
|
-
name: "SIGWINCH",
|
|
51256
|
-
number: 28,
|
|
51257
|
-
action: "ignore",
|
|
51258
|
-
description: "Terminal window size changed",
|
|
51259
|
-
standard: "bsd"
|
|
51260
|
-
},
|
|
51261
|
-
{
|
|
51262
|
-
name: "SIGIO",
|
|
51263
|
-
number: 29,
|
|
51264
|
-
action: "terminate",
|
|
51265
|
-
description: "I/O is available",
|
|
51266
|
-
standard: "other"
|
|
51267
|
-
},
|
|
51268
|
-
{
|
|
51269
|
-
name: "SIGPOLL",
|
|
51270
|
-
number: 29,
|
|
51271
|
-
action: "terminate",
|
|
51272
|
-
description: "Watched event",
|
|
51273
|
-
standard: "other"
|
|
51274
|
-
},
|
|
51275
|
-
{
|
|
51276
|
-
name: "SIGINFO",
|
|
51277
|
-
number: 29,
|
|
51278
|
-
action: "ignore",
|
|
51279
|
-
description: "Request for process information",
|
|
51280
|
-
standard: "other"
|
|
51281
|
-
},
|
|
51282
|
-
{
|
|
51283
|
-
name: "SIGPWR",
|
|
51284
|
-
number: 30,
|
|
51285
|
-
action: "terminate",
|
|
51286
|
-
description: "Device running out of power",
|
|
51287
|
-
standard: "systemv"
|
|
51288
|
-
},
|
|
51289
|
-
{
|
|
51290
|
-
name: "SIGSYS",
|
|
51291
|
-
number: 31,
|
|
51292
|
-
action: "core",
|
|
51293
|
-
description: "Invalid system call",
|
|
51294
|
-
standard: "other"
|
|
51295
|
-
},
|
|
51296
|
-
{
|
|
51297
|
-
name: "SIGUNUSED",
|
|
51298
|
-
number: 31,
|
|
51299
|
-
action: "terminate",
|
|
51300
|
-
description: "Invalid system call",
|
|
51301
|
-
standard: "other"
|
|
51302
|
-
}
|
|
51303
|
-
];
|
|
51304
|
-
exports.SIGNALS = SIGNALS;
|
|
51305
|
-
}
|
|
51306
|
-
});
|
|
51307
|
-
|
|
51308
|
-
// ../../node_modules/human-signals/build/src/realtime.js
|
|
51309
|
-
var require_realtime = __commonJS({
|
|
51310
|
-
"../../node_modules/human-signals/build/src/realtime.js"(exports) {
|
|
51311
|
-
"use strict";
|
|
51312
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51313
|
-
exports.SIGRTMAX = exports.getRealtimeSignals = void 0;
|
|
51314
|
-
var getRealtimeSignals = function() {
|
|
51315
|
-
const length = SIGRTMAX - SIGRTMIN + 1;
|
|
51316
|
-
return Array.from({ length }, getRealtimeSignal);
|
|
51317
|
-
};
|
|
51318
|
-
exports.getRealtimeSignals = getRealtimeSignals;
|
|
51319
|
-
var getRealtimeSignal = function(value, index) {
|
|
51320
|
-
return {
|
|
51321
|
-
name: `SIGRT${index + 1}`,
|
|
51322
|
-
number: SIGRTMIN + index,
|
|
51323
|
-
action: "terminate",
|
|
51324
|
-
description: "Application-specific signal (realtime)",
|
|
51325
|
-
standard: "posix"
|
|
51326
|
-
};
|
|
51327
|
-
};
|
|
51328
|
-
var SIGRTMIN = 34;
|
|
51329
|
-
var SIGRTMAX = 64;
|
|
51330
|
-
exports.SIGRTMAX = SIGRTMAX;
|
|
51331
|
-
}
|
|
51332
|
-
});
|
|
51333
|
-
|
|
51334
|
-
// ../../node_modules/human-signals/build/src/signals.js
|
|
51335
|
-
var require_signals2 = __commonJS({
|
|
51336
|
-
"../../node_modules/human-signals/build/src/signals.js"(exports) {
|
|
51337
|
-
"use strict";
|
|
51338
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51339
|
-
exports.getSignals = void 0;
|
|
51340
|
-
var _os = require("os");
|
|
51341
|
-
var _core = require_core();
|
|
51342
|
-
var _realtime = require_realtime();
|
|
51343
|
-
var getSignals = function() {
|
|
51344
|
-
const realtimeSignals = (0, _realtime.getRealtimeSignals)();
|
|
51345
|
-
const signals = [..._core.SIGNALS, ...realtimeSignals].map(normalizeSignal);
|
|
51346
|
-
return signals;
|
|
51347
|
-
};
|
|
51348
|
-
exports.getSignals = getSignals;
|
|
51349
|
-
var normalizeSignal = function({
|
|
51350
|
-
name: name2,
|
|
51351
|
-
number: defaultNumber,
|
|
51352
|
-
description: description2,
|
|
51353
|
-
action,
|
|
51354
|
-
forced = false,
|
|
51355
|
-
standard
|
|
51356
|
-
}) {
|
|
51357
|
-
const {
|
|
51358
|
-
signals: { [name2]: constantSignal }
|
|
51359
|
-
} = _os.constants;
|
|
51360
|
-
const supported = constantSignal !== void 0;
|
|
51361
|
-
const number = supported ? constantSignal : defaultNumber;
|
|
51362
|
-
return { name: name2, number, description: description2, supported, action, forced, standard };
|
|
51363
|
-
};
|
|
51364
|
-
}
|
|
51365
|
-
});
|
|
51366
|
-
|
|
51367
|
-
// ../../node_modules/human-signals/build/src/main.js
|
|
51368
|
-
var require_main2 = __commonJS({
|
|
51369
|
-
"../../node_modules/human-signals/build/src/main.js"(exports) {
|
|
51370
|
-
"use strict";
|
|
51371
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51372
|
-
exports.signalsByNumber = exports.signalsByName = void 0;
|
|
51373
|
-
var _os = require("os");
|
|
51374
|
-
var _signals = require_signals2();
|
|
51375
|
-
var _realtime = require_realtime();
|
|
51376
|
-
var getSignalsByName = function() {
|
|
51377
|
-
const signals = (0, _signals.getSignals)();
|
|
51378
|
-
return signals.reduce(getSignalByName, {});
|
|
51379
|
-
};
|
|
51380
|
-
var getSignalByName = function(signalByNameMemo, { name: name2, number, description: description2, supported, action, forced, standard }) {
|
|
51381
|
-
return __spreadProps(__spreadValues({}, signalByNameMemo), {
|
|
51382
|
-
[name2]: { name: name2, number, description: description2, supported, action, forced, standard }
|
|
51383
|
-
});
|
|
51384
|
-
};
|
|
51385
|
-
var signalsByName = getSignalsByName();
|
|
51386
|
-
exports.signalsByName = signalsByName;
|
|
51387
|
-
var getSignalsByNumber = function() {
|
|
51388
|
-
const signals = (0, _signals.getSignals)();
|
|
51389
|
-
const length = _realtime.SIGRTMAX + 1;
|
|
51390
|
-
const signalsA = Array.from({ length }, (value, number) => getSignalByNumber(number, signals));
|
|
51391
|
-
return Object.assign({}, ...signalsA);
|
|
51392
|
-
};
|
|
51393
|
-
var getSignalByNumber = function(number, signals) {
|
|
51394
|
-
const signal = findSignalByNumber(number, signals);
|
|
51395
|
-
if (signal === void 0) {
|
|
51396
|
-
return {};
|
|
51397
|
-
}
|
|
51398
|
-
const { name: name2, description: description2, supported, action, forced, standard } = signal;
|
|
51399
|
-
return {
|
|
51400
|
-
[number]: {
|
|
51401
|
-
name: name2,
|
|
51402
|
-
number,
|
|
51403
|
-
description: description2,
|
|
51404
|
-
supported,
|
|
51405
|
-
action,
|
|
51406
|
-
forced,
|
|
51407
|
-
standard
|
|
51408
|
-
}
|
|
51409
|
-
};
|
|
51410
|
-
};
|
|
51411
|
-
var findSignalByNumber = function(number, signals) {
|
|
51412
|
-
const signal = signals.find(({ name: name2 }) => _os.constants.signals[name2] === number);
|
|
51413
|
-
if (signal !== void 0) {
|
|
51414
|
-
return signal;
|
|
51415
|
-
}
|
|
51416
|
-
return signals.find((signalA) => signalA.number === number);
|
|
51417
|
-
};
|
|
51418
|
-
var signalsByNumber = getSignalsByNumber();
|
|
51419
|
-
exports.signalsByNumber = signalsByNumber;
|
|
51420
|
-
}
|
|
51421
|
-
});
|
|
51422
|
-
|
|
51423
|
-
// ../../node_modules/execa/lib/error.js
|
|
51424
|
-
var require_error2 = __commonJS({
|
|
51425
|
-
"../../node_modules/execa/lib/error.js"(exports, module2) {
|
|
51426
|
-
"use strict";
|
|
51427
|
-
var { signalsByName } = require_main2();
|
|
51428
|
-
var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => {
|
|
51429
|
-
if (timedOut) {
|
|
51430
|
-
return `timed out after ${timeout} milliseconds`;
|
|
51431
|
-
}
|
|
51432
|
-
if (isCanceled) {
|
|
51433
|
-
return "was canceled";
|
|
51434
|
-
}
|
|
51435
|
-
if (errorCode !== void 0) {
|
|
51436
|
-
return `failed with ${errorCode}`;
|
|
51437
|
-
}
|
|
51438
|
-
if (signal !== void 0) {
|
|
51439
|
-
return `was killed with ${signal} (${signalDescription})`;
|
|
51440
|
-
}
|
|
51441
|
-
if (exitCode !== void 0) {
|
|
51442
|
-
return `failed with exit code ${exitCode}`;
|
|
51443
|
-
}
|
|
51444
|
-
return "failed";
|
|
51445
|
-
};
|
|
51446
|
-
var makeError = ({
|
|
51447
|
-
stdout,
|
|
51448
|
-
stderr,
|
|
51449
|
-
all,
|
|
51450
|
-
error,
|
|
51451
|
-
signal,
|
|
51452
|
-
exitCode,
|
|
51453
|
-
command,
|
|
51454
|
-
escapedCommand,
|
|
51455
|
-
timedOut,
|
|
51456
|
-
isCanceled,
|
|
51457
|
-
killed,
|
|
51458
|
-
parsed: { options: { timeout } }
|
|
51459
|
-
}) => {
|
|
51460
|
-
exitCode = exitCode === null ? void 0 : exitCode;
|
|
51461
|
-
signal = signal === null ? void 0 : signal;
|
|
51462
|
-
const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description;
|
|
51463
|
-
const errorCode = error && error.code;
|
|
51464
|
-
const prefix = getErrorPrefix({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled });
|
|
51465
|
-
const execaMessage = `Command ${prefix}: ${command}`;
|
|
51466
|
-
const isError = Object.prototype.toString.call(error) === "[object Error]";
|
|
51467
|
-
const shortMessage = isError ? `${execaMessage}
|
|
51468
|
-
${error.message}` : execaMessage;
|
|
51469
|
-
const message = [shortMessage, stderr, stdout].filter(Boolean).join("\n");
|
|
51470
|
-
if (isError) {
|
|
51471
|
-
error.originalMessage = error.message;
|
|
51472
|
-
error.message = message;
|
|
51473
|
-
} else {
|
|
51474
|
-
error = new Error(message);
|
|
51475
|
-
}
|
|
51476
|
-
error.shortMessage = shortMessage;
|
|
51477
|
-
error.command = command;
|
|
51478
|
-
error.escapedCommand = escapedCommand;
|
|
51479
|
-
error.exitCode = exitCode;
|
|
51480
|
-
error.signal = signal;
|
|
51481
|
-
error.signalDescription = signalDescription;
|
|
51482
|
-
error.stdout = stdout;
|
|
51483
|
-
error.stderr = stderr;
|
|
51484
|
-
if (all !== void 0) {
|
|
51485
|
-
error.all = all;
|
|
51486
|
-
}
|
|
51487
|
-
if ("bufferedData" in error) {
|
|
51488
|
-
delete error.bufferedData;
|
|
51489
|
-
}
|
|
51490
|
-
error.failed = true;
|
|
51491
|
-
error.timedOut = Boolean(timedOut);
|
|
51492
|
-
error.isCanceled = isCanceled;
|
|
51493
|
-
error.killed = killed && !timedOut;
|
|
51494
|
-
return error;
|
|
51495
|
-
};
|
|
51496
|
-
module2.exports = makeError;
|
|
51497
|
-
}
|
|
51498
|
-
});
|
|
51499
|
-
|
|
51500
|
-
// ../../node_modules/execa/lib/stdio.js
|
|
51501
|
-
var require_stdio = __commonJS({
|
|
51502
|
-
"../../node_modules/execa/lib/stdio.js"(exports, module2) {
|
|
51503
|
-
"use strict";
|
|
51504
|
-
var aliases = ["stdin", "stdout", "stderr"];
|
|
51505
|
-
var hasAlias = (options) => aliases.some((alias) => options[alias] !== void 0);
|
|
51506
|
-
var normalizeStdio = (options) => {
|
|
51507
|
-
if (!options) {
|
|
51508
|
-
return;
|
|
51509
|
-
}
|
|
51510
|
-
const { stdio } = options;
|
|
51511
|
-
if (stdio === void 0) {
|
|
51512
|
-
return aliases.map((alias) => options[alias]);
|
|
51513
|
-
}
|
|
51514
|
-
if (hasAlias(options)) {
|
|
51515
|
-
throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`);
|
|
51516
|
-
}
|
|
51517
|
-
if (typeof stdio === "string") {
|
|
51518
|
-
return stdio;
|
|
51519
|
-
}
|
|
51520
|
-
if (!Array.isArray(stdio)) {
|
|
51521
|
-
throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
|
|
51522
|
-
}
|
|
51523
|
-
const length = Math.max(stdio.length, aliases.length);
|
|
51524
|
-
return Array.from({ length }, (value, index) => stdio[index]);
|
|
51525
|
-
};
|
|
51526
|
-
module2.exports = normalizeStdio;
|
|
51527
|
-
module2.exports.node = (options) => {
|
|
51528
|
-
const stdio = normalizeStdio(options);
|
|
51529
|
-
if (stdio === "ipc") {
|
|
51530
|
-
return "ipc";
|
|
51531
|
-
}
|
|
51532
|
-
if (stdio === void 0 || typeof stdio === "string") {
|
|
51533
|
-
return [stdio, stdio, stdio, "ipc"];
|
|
51534
|
-
}
|
|
51535
|
-
if (stdio.includes("ipc")) {
|
|
51536
|
-
return stdio;
|
|
51537
|
-
}
|
|
51538
|
-
return [...stdio, "ipc"];
|
|
51539
|
-
};
|
|
51540
|
-
}
|
|
51541
|
-
});
|
|
51542
|
-
|
|
51543
|
-
// ../../node_modules/execa/lib/kill.js
|
|
51544
|
-
var require_kill = __commonJS({
|
|
51545
|
-
"../../node_modules/execa/lib/kill.js"(exports, module2) {
|
|
51546
|
-
"use strict";
|
|
51547
|
-
var os = require("os");
|
|
51548
|
-
var onExit = require_signal_exit();
|
|
51549
|
-
var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
|
|
51550
|
-
var spawnedKill = (kill, signal = "SIGTERM", options = {}) => {
|
|
51551
|
-
const killResult = kill(signal);
|
|
51552
|
-
setKillTimeout(kill, signal, options, killResult);
|
|
51553
|
-
return killResult;
|
|
51554
|
-
};
|
|
51555
|
-
var setKillTimeout = (kill, signal, options, killResult) => {
|
|
51556
|
-
if (!shouldForceKill(signal, options, killResult)) {
|
|
51557
|
-
return;
|
|
51558
|
-
}
|
|
51559
|
-
const timeout = getForceKillAfterTimeout(options);
|
|
51560
|
-
const t = setTimeout(() => {
|
|
51561
|
-
kill("SIGKILL");
|
|
51562
|
-
}, timeout);
|
|
51563
|
-
if (t.unref) {
|
|
51564
|
-
t.unref();
|
|
51565
|
-
}
|
|
51566
|
-
};
|
|
51567
|
-
var shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => {
|
|
51568
|
-
return isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
|
|
51569
|
-
};
|
|
51570
|
-
var isSigterm = (signal) => {
|
|
51571
|
-
return signal === os.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
|
|
51572
|
-
};
|
|
51573
|
-
var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
|
|
51574
|
-
if (forceKillAfterTimeout === true) {
|
|
51575
|
-
return DEFAULT_FORCE_KILL_TIMEOUT;
|
|
51576
|
-
}
|
|
51577
|
-
if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {
|
|
51578
|
-
throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);
|
|
51579
|
-
}
|
|
51580
|
-
return forceKillAfterTimeout;
|
|
51581
|
-
};
|
|
51582
|
-
var spawnedCancel = (spawned, context) => {
|
|
51583
|
-
const killResult = spawned.kill();
|
|
51584
|
-
if (killResult) {
|
|
51585
|
-
context.isCanceled = true;
|
|
51586
|
-
}
|
|
51587
|
-
};
|
|
51588
|
-
var timeoutKill = (spawned, signal, reject) => {
|
|
51589
|
-
spawned.kill(signal);
|
|
51590
|
-
reject(Object.assign(new Error("Timed out"), { timedOut: true, signal }));
|
|
51591
|
-
};
|
|
51592
|
-
var setupTimeout = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => {
|
|
51593
|
-
if (timeout === 0 || timeout === void 0) {
|
|
51594
|
-
return spawnedPromise;
|
|
51595
|
-
}
|
|
51596
|
-
let timeoutId;
|
|
51597
|
-
const timeoutPromise = new Promise((resolve, reject) => {
|
|
51598
|
-
timeoutId = setTimeout(() => {
|
|
51599
|
-
timeoutKill(spawned, killSignal, reject);
|
|
51600
|
-
}, timeout);
|
|
51601
|
-
});
|
|
51602
|
-
const safeSpawnedPromise = spawnedPromise.finally(() => {
|
|
51603
|
-
clearTimeout(timeoutId);
|
|
51604
|
-
});
|
|
51605
|
-
return Promise.race([timeoutPromise, safeSpawnedPromise]);
|
|
51606
|
-
};
|
|
51607
|
-
var validateTimeout = ({ timeout }) => {
|
|
51608
|
-
if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) {
|
|
51609
|
-
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
|
|
51610
|
-
}
|
|
51611
|
-
};
|
|
51612
|
-
var setExitHandler = async (spawned, { cleanup, detached }, timedPromise) => {
|
|
51613
|
-
if (!cleanup || detached) {
|
|
51614
|
-
return timedPromise;
|
|
51615
|
-
}
|
|
51616
|
-
const removeExitHandler = onExit(() => {
|
|
51617
|
-
spawned.kill();
|
|
51618
|
-
});
|
|
51619
|
-
return timedPromise.finally(() => {
|
|
51620
|
-
removeExitHandler();
|
|
51621
|
-
});
|
|
51622
|
-
};
|
|
51623
|
-
module2.exports = {
|
|
51624
|
-
spawnedKill,
|
|
51625
|
-
spawnedCancel,
|
|
51626
|
-
setupTimeout,
|
|
51627
|
-
validateTimeout,
|
|
51628
|
-
setExitHandler
|
|
51629
|
-
};
|
|
51630
|
-
}
|
|
51631
|
-
});
|
|
51632
|
-
|
|
51633
|
-
// ../../node_modules/execa/node_modules/is-stream/index.js
|
|
51634
|
-
var require_is_stream2 = __commonJS({
|
|
51635
|
-
"../../node_modules/execa/node_modules/is-stream/index.js"(exports, module2) {
|
|
51636
|
-
"use strict";
|
|
51637
|
-
var isStream = (stream) => stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
|
|
51638
|
-
isStream.writable = (stream) => isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object";
|
|
51639
|
-
isStream.readable = (stream) => isStream(stream) && stream.readable !== false && typeof stream._read === "function" && typeof stream._readableState === "object";
|
|
51640
|
-
isStream.duplex = (stream) => isStream.writable(stream) && isStream.readable(stream);
|
|
51641
|
-
isStream.transform = (stream) => isStream.duplex(stream) && typeof stream._transform === "function" && typeof stream._transformState === "object";
|
|
51642
|
-
module2.exports = isStream;
|
|
51643
|
-
}
|
|
51644
|
-
});
|
|
51645
|
-
|
|
51646
|
-
// ../../node_modules/execa/node_modules/get-stream/buffer-stream.js
|
|
51647
|
-
var require_buffer_stream = __commonJS({
|
|
51648
|
-
"../../node_modules/execa/node_modules/get-stream/buffer-stream.js"(exports, module2) {
|
|
51649
|
-
"use strict";
|
|
51650
|
-
var { PassThrough: PassThroughStream } = require("stream");
|
|
51651
|
-
module2.exports = (options) => {
|
|
51652
|
-
options = __spreadValues({}, options);
|
|
51653
|
-
const { array } = options;
|
|
51654
|
-
let { encoding } = options;
|
|
51655
|
-
const isBuffer = encoding === "buffer";
|
|
51656
|
-
let objectMode = false;
|
|
51657
|
-
if (array) {
|
|
51658
|
-
objectMode = !(encoding || isBuffer);
|
|
51659
|
-
} else {
|
|
51660
|
-
encoding = encoding || "utf8";
|
|
51661
|
-
}
|
|
51662
|
-
if (isBuffer) {
|
|
51663
|
-
encoding = null;
|
|
51664
|
-
}
|
|
51665
|
-
const stream = new PassThroughStream({ objectMode });
|
|
51666
|
-
if (encoding) {
|
|
51667
|
-
stream.setEncoding(encoding);
|
|
51668
|
-
}
|
|
51669
|
-
let length = 0;
|
|
51670
|
-
const chunks = [];
|
|
51671
|
-
stream.on("data", (chunk) => {
|
|
51672
|
-
chunks.push(chunk);
|
|
51673
|
-
if (objectMode) {
|
|
51674
|
-
length = chunks.length;
|
|
51675
|
-
} else {
|
|
51676
|
-
length += chunk.length;
|
|
51677
|
-
}
|
|
51678
|
-
});
|
|
51679
|
-
stream.getBufferedValue = () => {
|
|
51680
|
-
if (array) {
|
|
51681
|
-
return chunks;
|
|
51682
|
-
}
|
|
51683
|
-
return isBuffer ? Buffer.concat(chunks, length) : chunks.join("");
|
|
51684
|
-
};
|
|
51685
|
-
stream.getBufferedLength = () => length;
|
|
51686
|
-
return stream;
|
|
51687
|
-
};
|
|
51688
|
-
}
|
|
51689
|
-
});
|
|
51690
|
-
|
|
51691
|
-
// ../../node_modules/execa/node_modules/get-stream/index.js
|
|
51692
|
-
var require_get_stream = __commonJS({
|
|
51693
|
-
"../../node_modules/execa/node_modules/get-stream/index.js"(exports, module2) {
|
|
51694
|
-
"use strict";
|
|
51695
|
-
var { constants: BufferConstants } = require("buffer");
|
|
51696
|
-
var stream = require("stream");
|
|
51697
|
-
var { promisify } = require("util");
|
|
51698
|
-
var bufferStream = require_buffer_stream();
|
|
51699
|
-
var streamPipelinePromisified = promisify(stream.pipeline);
|
|
51700
|
-
var MaxBufferError = class extends Error {
|
|
51701
|
-
constructor() {
|
|
51702
|
-
super("maxBuffer exceeded");
|
|
51703
|
-
this.name = "MaxBufferError";
|
|
51704
|
-
}
|
|
51705
|
-
};
|
|
51706
|
-
async function getStream(inputStream, options) {
|
|
51707
|
-
if (!inputStream) {
|
|
51708
|
-
throw new Error("Expected a stream");
|
|
51709
|
-
}
|
|
51710
|
-
options = __spreadValues({
|
|
51711
|
-
maxBuffer: Infinity
|
|
51712
|
-
}, options);
|
|
51713
|
-
const { maxBuffer } = options;
|
|
51714
|
-
const stream2 = bufferStream(options);
|
|
51715
|
-
await new Promise((resolve, reject) => {
|
|
51716
|
-
const rejectPromise = (error) => {
|
|
51717
|
-
if (error && stream2.getBufferedLength() <= BufferConstants.MAX_LENGTH) {
|
|
51718
|
-
error.bufferedData = stream2.getBufferedValue();
|
|
51719
|
-
}
|
|
51720
|
-
reject(error);
|
|
51721
|
-
};
|
|
51722
|
-
(async () => {
|
|
51723
|
-
try {
|
|
51724
|
-
await streamPipelinePromisified(inputStream, stream2);
|
|
51725
|
-
resolve();
|
|
51726
|
-
} catch (error) {
|
|
51727
|
-
rejectPromise(error);
|
|
51728
|
-
}
|
|
51729
|
-
})();
|
|
51730
|
-
stream2.on("data", () => {
|
|
51731
|
-
if (stream2.getBufferedLength() > maxBuffer) {
|
|
51732
|
-
rejectPromise(new MaxBufferError());
|
|
51733
|
-
}
|
|
51734
|
-
});
|
|
51735
|
-
});
|
|
51736
|
-
return stream2.getBufferedValue();
|
|
51737
|
-
}
|
|
51738
|
-
module2.exports = getStream;
|
|
51739
|
-
module2.exports.buffer = (stream2, options) => getStream(stream2, __spreadProps(__spreadValues({}, options), { encoding: "buffer" }));
|
|
51740
|
-
module2.exports.array = (stream2, options) => getStream(stream2, __spreadProps(__spreadValues({}, options), { array: true }));
|
|
51741
|
-
module2.exports.MaxBufferError = MaxBufferError;
|
|
51742
|
-
}
|
|
51743
|
-
});
|
|
51744
|
-
|
|
51745
|
-
// ../../node_modules/merge-stream/index.js
|
|
51746
|
-
var require_merge_stream = __commonJS({
|
|
51747
|
-
"../../node_modules/merge-stream/index.js"(exports, module2) {
|
|
51748
|
-
"use strict";
|
|
51749
|
-
var { PassThrough } = require("stream");
|
|
51750
|
-
module2.exports = function() {
|
|
51751
|
-
var sources = [];
|
|
51752
|
-
var output = new PassThrough({ objectMode: true });
|
|
51753
|
-
output.setMaxListeners(0);
|
|
51754
|
-
output.add = add;
|
|
51755
|
-
output.isEmpty = isEmpty;
|
|
51756
|
-
output.on("unpipe", remove);
|
|
51757
|
-
Array.prototype.slice.call(arguments).forEach(add);
|
|
51758
|
-
return output;
|
|
51759
|
-
function add(source) {
|
|
51760
|
-
if (Array.isArray(source)) {
|
|
51761
|
-
source.forEach(add);
|
|
51762
|
-
return this;
|
|
51763
|
-
}
|
|
51764
|
-
sources.push(source);
|
|
51765
|
-
source.once("end", remove.bind(null, source));
|
|
51766
|
-
source.once("error", output.emit.bind(output, "error"));
|
|
51767
|
-
source.pipe(output, { end: false });
|
|
51768
|
-
return this;
|
|
51769
|
-
}
|
|
51770
|
-
function isEmpty() {
|
|
51771
|
-
return sources.length == 0;
|
|
51772
|
-
}
|
|
51773
|
-
function remove(source) {
|
|
51774
|
-
sources = sources.filter(function(it) {
|
|
51775
|
-
return it !== source;
|
|
51776
|
-
});
|
|
51777
|
-
if (!sources.length && output.readable) {
|
|
51778
|
-
output.end();
|
|
51779
|
-
}
|
|
51780
|
-
}
|
|
51781
|
-
};
|
|
51782
|
-
}
|
|
51783
|
-
});
|
|
51784
|
-
|
|
51785
|
-
// ../../node_modules/execa/lib/stream.js
|
|
51786
|
-
var require_stream6 = __commonJS({
|
|
51787
|
-
"../../node_modules/execa/lib/stream.js"(exports, module2) {
|
|
51788
|
-
"use strict";
|
|
51789
|
-
var isStream = require_is_stream2();
|
|
51790
|
-
var getStream = require_get_stream();
|
|
51791
|
-
var mergeStream = require_merge_stream();
|
|
51792
|
-
var handleInput = (spawned, input) => {
|
|
51793
|
-
if (input === void 0 || spawned.stdin === void 0) {
|
|
51794
|
-
return;
|
|
51795
|
-
}
|
|
51796
|
-
if (isStream(input)) {
|
|
51797
|
-
input.pipe(spawned.stdin);
|
|
51798
|
-
} else {
|
|
51799
|
-
spawned.stdin.end(input);
|
|
51800
|
-
}
|
|
51801
|
-
};
|
|
51802
|
-
var makeAllStream = (spawned, { all }) => {
|
|
51803
|
-
if (!all || !spawned.stdout && !spawned.stderr) {
|
|
51804
|
-
return;
|
|
51805
|
-
}
|
|
51806
|
-
const mixed = mergeStream();
|
|
51807
|
-
if (spawned.stdout) {
|
|
51808
|
-
mixed.add(spawned.stdout);
|
|
51809
|
-
}
|
|
51810
|
-
if (spawned.stderr) {
|
|
51811
|
-
mixed.add(spawned.stderr);
|
|
51812
|
-
}
|
|
51813
|
-
return mixed;
|
|
51814
|
-
};
|
|
51815
|
-
var getBufferedData = async (stream, streamPromise) => {
|
|
51816
|
-
if (!stream) {
|
|
51817
|
-
return;
|
|
51818
|
-
}
|
|
51819
|
-
stream.destroy();
|
|
51820
|
-
try {
|
|
51821
|
-
return await streamPromise;
|
|
51822
|
-
} catch (error) {
|
|
51823
|
-
return error.bufferedData;
|
|
51824
|
-
}
|
|
51825
|
-
};
|
|
51826
|
-
var getStreamPromise = (stream, { encoding, buffer, maxBuffer }) => {
|
|
51827
|
-
if (!stream || !buffer) {
|
|
51828
|
-
return;
|
|
51829
|
-
}
|
|
51830
|
-
if (encoding) {
|
|
51831
|
-
return getStream(stream, { encoding, maxBuffer });
|
|
51832
|
-
}
|
|
51833
|
-
return getStream.buffer(stream, { maxBuffer });
|
|
51834
|
-
};
|
|
51835
|
-
var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => {
|
|
51836
|
-
const stdoutPromise = getStreamPromise(stdout, { encoding, buffer, maxBuffer });
|
|
51837
|
-
const stderrPromise = getStreamPromise(stderr, { encoding, buffer, maxBuffer });
|
|
51838
|
-
const allPromise = getStreamPromise(all, { encoding, buffer, maxBuffer: maxBuffer * 2 });
|
|
51839
|
-
try {
|
|
51840
|
-
return await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);
|
|
51841
|
-
} catch (error) {
|
|
51842
|
-
return Promise.all([
|
|
51843
|
-
{ error, signal: error.signal, timedOut: error.timedOut },
|
|
51844
|
-
getBufferedData(stdout, stdoutPromise),
|
|
51845
|
-
getBufferedData(stderr, stderrPromise),
|
|
51846
|
-
getBufferedData(all, allPromise)
|
|
51847
|
-
]);
|
|
51848
|
-
}
|
|
51849
|
-
};
|
|
51850
|
-
var validateInputSync = ({ input }) => {
|
|
51851
|
-
if (isStream(input)) {
|
|
51852
|
-
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
51853
|
-
}
|
|
51854
|
-
};
|
|
51855
|
-
module2.exports = {
|
|
51856
|
-
handleInput,
|
|
51857
|
-
makeAllStream,
|
|
51858
|
-
getSpawnedResult,
|
|
51859
|
-
validateInputSync
|
|
51860
|
-
};
|
|
51861
|
-
}
|
|
51862
|
-
});
|
|
51863
|
-
|
|
51864
|
-
// ../../node_modules/execa/lib/promise.js
|
|
51865
|
-
var require_promise = __commonJS({
|
|
51866
|
-
"../../node_modules/execa/lib/promise.js"(exports, module2) {
|
|
51867
|
-
"use strict";
|
|
51868
|
-
var nativePromisePrototype = (async () => {
|
|
51869
|
-
})().constructor.prototype;
|
|
51870
|
-
var descriptors = ["then", "catch", "finally"].map((property) => [
|
|
51871
|
-
property,
|
|
51872
|
-
Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
|
|
51873
|
-
]);
|
|
51874
|
-
var mergePromise = (spawned, promise) => {
|
|
51875
|
-
for (const [property, descriptor] of descriptors) {
|
|
51876
|
-
const value = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);
|
|
51877
|
-
Reflect.defineProperty(spawned, property, __spreadProps(__spreadValues({}, descriptor), { value }));
|
|
51878
|
-
}
|
|
51879
|
-
return spawned;
|
|
51880
|
-
};
|
|
51881
|
-
var getSpawnedPromise = (spawned) => {
|
|
51882
|
-
return new Promise((resolve, reject) => {
|
|
51883
|
-
spawned.on("exit", (exitCode, signal) => {
|
|
51884
|
-
resolve({ exitCode, signal });
|
|
51885
|
-
});
|
|
51886
|
-
spawned.on("error", (error) => {
|
|
51887
|
-
reject(error);
|
|
51888
|
-
});
|
|
51889
|
-
if (spawned.stdin) {
|
|
51890
|
-
spawned.stdin.on("error", (error) => {
|
|
51891
|
-
reject(error);
|
|
51892
|
-
});
|
|
51893
|
-
}
|
|
51894
|
-
});
|
|
51895
|
-
};
|
|
51896
|
-
module2.exports = {
|
|
51897
|
-
mergePromise,
|
|
51898
|
-
getSpawnedPromise
|
|
51899
|
-
};
|
|
51900
|
-
}
|
|
51901
|
-
});
|
|
51902
|
-
|
|
51903
|
-
// ../../node_modules/execa/lib/command.js
|
|
51904
|
-
var require_command = __commonJS({
|
|
51905
|
-
"../../node_modules/execa/lib/command.js"(exports, module2) {
|
|
51906
|
-
"use strict";
|
|
51907
|
-
var normalizeArgs = (file, args = []) => {
|
|
51908
|
-
if (!Array.isArray(args)) {
|
|
51909
|
-
return [file];
|
|
51910
|
-
}
|
|
51911
|
-
return [file, ...args];
|
|
51912
|
-
};
|
|
51913
|
-
var NO_ESCAPE_REGEXP = /^[\w.-]+$/;
|
|
51914
|
-
var DOUBLE_QUOTES_REGEXP = /"/g;
|
|
51915
|
-
var escapeArg = (arg) => {
|
|
51916
|
-
if (typeof arg !== "string" || NO_ESCAPE_REGEXP.test(arg)) {
|
|
51917
|
-
return arg;
|
|
51918
|
-
}
|
|
51919
|
-
return `"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\"')}"`;
|
|
51920
|
-
};
|
|
51921
|
-
var joinCommand = (file, args) => {
|
|
51922
|
-
return normalizeArgs(file, args).join(" ");
|
|
51923
|
-
};
|
|
51924
|
-
var getEscapedCommand = (file, args) => {
|
|
51925
|
-
return normalizeArgs(file, args).map((arg) => escapeArg(arg)).join(" ");
|
|
51926
|
-
};
|
|
51927
|
-
var SPACES_REGEXP = / +/g;
|
|
51928
|
-
var parseCommand = (command) => {
|
|
51929
|
-
const tokens = [];
|
|
51930
|
-
for (const token of command.trim().split(SPACES_REGEXP)) {
|
|
51931
|
-
const previousToken = tokens[tokens.length - 1];
|
|
51932
|
-
if (previousToken && previousToken.endsWith("\\")) {
|
|
51933
|
-
tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;
|
|
51934
|
-
} else {
|
|
51935
|
-
tokens.push(token);
|
|
51936
|
-
}
|
|
51937
|
-
}
|
|
51938
|
-
return tokens;
|
|
51939
|
-
};
|
|
51940
|
-
module2.exports = {
|
|
51941
|
-
joinCommand,
|
|
51942
|
-
getEscapedCommand,
|
|
51943
|
-
parseCommand
|
|
51944
|
-
};
|
|
51945
|
-
}
|
|
51946
|
-
});
|
|
51947
|
-
|
|
51948
|
-
// ../../node_modules/execa/index.js
|
|
51949
|
-
var require_execa2 = __commonJS({
|
|
51950
|
-
"../../node_modules/execa/index.js"(exports, module2) {
|
|
51951
|
-
"use strict";
|
|
51952
|
-
var path4 = require("path");
|
|
51953
|
-
var childProcess = require("child_process");
|
|
51954
|
-
var crossSpawn = require_cross_spawn();
|
|
51955
|
-
var stripFinalNewline = require_strip_final_newline();
|
|
51956
|
-
var npmRunPath = require_npm_run_path2();
|
|
51957
|
-
var onetime = require_onetime();
|
|
51958
|
-
var makeError = require_error2();
|
|
51959
|
-
var normalizeStdio = require_stdio();
|
|
51960
|
-
var { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler } = require_kill();
|
|
51961
|
-
var { handleInput, getSpawnedResult, makeAllStream, validateInputSync } = require_stream6();
|
|
51962
|
-
var { mergePromise, getSpawnedPromise } = require_promise();
|
|
51963
|
-
var { joinCommand, parseCommand, getEscapedCommand } = require_command();
|
|
51964
|
-
var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
|
|
51965
|
-
var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
|
51966
|
-
const env = extendEnv ? __spreadValues(__spreadValues({}, process.env), envOption) : envOption;
|
|
51967
|
-
if (preferLocal) {
|
|
51968
|
-
return npmRunPath.env({ env, cwd: localDir, execPath });
|
|
51969
|
-
}
|
|
51970
|
-
return env;
|
|
51971
|
-
};
|
|
51972
|
-
var handleArguments = (file, args, options = {}) => {
|
|
51973
|
-
const parsed = crossSpawn._parse(file, args, options);
|
|
51974
|
-
file = parsed.command;
|
|
51975
|
-
args = parsed.args;
|
|
51976
|
-
options = parsed.options;
|
|
51977
|
-
options = __spreadValues({
|
|
51978
|
-
maxBuffer: DEFAULT_MAX_BUFFER,
|
|
51979
|
-
buffer: true,
|
|
51980
|
-
stripFinalNewline: true,
|
|
51981
|
-
extendEnv: true,
|
|
51982
|
-
preferLocal: false,
|
|
51983
|
-
localDir: options.cwd || process.cwd(),
|
|
51984
|
-
execPath: process.execPath,
|
|
51985
|
-
encoding: "utf8",
|
|
51986
|
-
reject: true,
|
|
51987
|
-
cleanup: true,
|
|
51988
|
-
all: false,
|
|
51989
|
-
windowsHide: true
|
|
51990
|
-
}, options);
|
|
51991
|
-
options.env = getEnv(options);
|
|
51992
|
-
options.stdio = normalizeStdio(options);
|
|
51993
|
-
if (process.platform === "win32" && path4.basename(file, ".exe") === "cmd") {
|
|
51994
|
-
args.unshift("/q");
|
|
51995
|
-
}
|
|
51996
|
-
return { file, args, options, parsed };
|
|
51997
|
-
};
|
|
51998
|
-
var handleOutput = (options, value, error) => {
|
|
51999
|
-
if (typeof value !== "string" && !Buffer.isBuffer(value)) {
|
|
52000
|
-
return error === void 0 ? void 0 : "";
|
|
52001
|
-
}
|
|
52002
|
-
if (options.stripFinalNewline) {
|
|
52003
|
-
return stripFinalNewline(value);
|
|
52004
|
-
}
|
|
52005
|
-
return value;
|
|
52006
|
-
};
|
|
52007
|
-
var execa2 = (file, args, options) => {
|
|
52008
|
-
const parsed = handleArguments(file, args, options);
|
|
52009
|
-
const command = joinCommand(file, args);
|
|
52010
|
-
const escapedCommand = getEscapedCommand(file, args);
|
|
52011
|
-
validateTimeout(parsed.options);
|
|
52012
|
-
let spawned;
|
|
52013
|
-
try {
|
|
52014
|
-
spawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);
|
|
52015
|
-
} catch (error) {
|
|
52016
|
-
const dummySpawned = new childProcess.ChildProcess();
|
|
52017
|
-
const errorPromise = Promise.reject(makeError({
|
|
52018
|
-
error,
|
|
52019
|
-
stdout: "",
|
|
52020
|
-
stderr: "",
|
|
52021
|
-
all: "",
|
|
52022
|
-
command,
|
|
52023
|
-
escapedCommand,
|
|
52024
|
-
parsed,
|
|
52025
|
-
timedOut: false,
|
|
52026
|
-
isCanceled: false,
|
|
52027
|
-
killed: false
|
|
52028
|
-
}));
|
|
52029
|
-
return mergePromise(dummySpawned, errorPromise);
|
|
52030
|
-
}
|
|
52031
|
-
const spawnedPromise = getSpawnedPromise(spawned);
|
|
52032
|
-
const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);
|
|
52033
|
-
const processDone = setExitHandler(spawned, parsed.options, timedPromise);
|
|
52034
|
-
const context = { isCanceled: false };
|
|
52035
|
-
spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));
|
|
52036
|
-
spawned.cancel = spawnedCancel.bind(null, spawned, context);
|
|
52037
|
-
const handlePromise = async () => {
|
|
52038
|
-
const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);
|
|
52039
|
-
const stdout = handleOutput(parsed.options, stdoutResult);
|
|
52040
|
-
const stderr = handleOutput(parsed.options, stderrResult);
|
|
52041
|
-
const all = handleOutput(parsed.options, allResult);
|
|
52042
|
-
if (error || exitCode !== 0 || signal !== null) {
|
|
52043
|
-
const returnedError = makeError({
|
|
52044
|
-
error,
|
|
52045
|
-
exitCode,
|
|
52046
|
-
signal,
|
|
52047
|
-
stdout,
|
|
52048
|
-
stderr,
|
|
52049
|
-
all,
|
|
52050
|
-
command,
|
|
52051
|
-
escapedCommand,
|
|
52052
|
-
parsed,
|
|
52053
|
-
timedOut,
|
|
52054
|
-
isCanceled: context.isCanceled,
|
|
52055
|
-
killed: spawned.killed
|
|
52056
|
-
});
|
|
52057
|
-
if (!parsed.options.reject) {
|
|
52058
|
-
return returnedError;
|
|
52059
|
-
}
|
|
52060
|
-
throw returnedError;
|
|
52061
|
-
}
|
|
52062
|
-
return {
|
|
52063
|
-
command,
|
|
52064
|
-
escapedCommand,
|
|
52065
|
-
exitCode: 0,
|
|
52066
|
-
stdout,
|
|
52067
|
-
stderr,
|
|
52068
|
-
all,
|
|
52069
|
-
failed: false,
|
|
52070
|
-
timedOut: false,
|
|
52071
|
-
isCanceled: false,
|
|
52072
|
-
killed: false
|
|
52073
|
-
};
|
|
52074
|
-
};
|
|
52075
|
-
const handlePromiseOnce = onetime(handlePromise);
|
|
52076
|
-
handleInput(spawned, parsed.options.input);
|
|
52077
|
-
spawned.all = makeAllStream(spawned, parsed.options);
|
|
52078
|
-
return mergePromise(spawned, handlePromiseOnce);
|
|
52079
|
-
};
|
|
52080
|
-
module2.exports = execa2;
|
|
52081
|
-
module2.exports.sync = (file, args, options) => {
|
|
52082
|
-
const parsed = handleArguments(file, args, options);
|
|
52083
|
-
const command = joinCommand(file, args);
|
|
52084
|
-
const escapedCommand = getEscapedCommand(file, args);
|
|
52085
|
-
validateInputSync(parsed.options);
|
|
52086
|
-
let result;
|
|
52087
|
-
try {
|
|
52088
|
-
result = childProcess.spawnSync(parsed.file, parsed.args, parsed.options);
|
|
52089
|
-
} catch (error) {
|
|
52090
|
-
throw makeError({
|
|
52091
|
-
error,
|
|
52092
|
-
stdout: "",
|
|
52093
|
-
stderr: "",
|
|
52094
|
-
all: "",
|
|
52095
|
-
command,
|
|
52096
|
-
escapedCommand,
|
|
52097
|
-
parsed,
|
|
52098
|
-
timedOut: false,
|
|
52099
|
-
isCanceled: false,
|
|
52100
|
-
killed: false
|
|
52101
|
-
});
|
|
52102
|
-
}
|
|
52103
|
-
const stdout = handleOutput(parsed.options, result.stdout, result.error);
|
|
52104
|
-
const stderr = handleOutput(parsed.options, result.stderr, result.error);
|
|
52105
|
-
if (result.error || result.status !== 0 || result.signal !== null) {
|
|
52106
|
-
const error = makeError({
|
|
52107
|
-
stdout,
|
|
52108
|
-
stderr,
|
|
52109
|
-
error: result.error,
|
|
52110
|
-
signal: result.signal,
|
|
52111
|
-
exitCode: result.status,
|
|
52112
|
-
command,
|
|
52113
|
-
escapedCommand,
|
|
52114
|
-
parsed,
|
|
52115
|
-
timedOut: result.error && result.error.code === "ETIMEDOUT",
|
|
52116
|
-
isCanceled: false,
|
|
52117
|
-
killed: result.signal !== null
|
|
52118
|
-
});
|
|
52119
|
-
if (!parsed.options.reject) {
|
|
52120
|
-
return error;
|
|
52121
|
-
}
|
|
52122
|
-
throw error;
|
|
52123
|
-
}
|
|
52124
|
-
return {
|
|
52125
|
-
command,
|
|
52126
|
-
escapedCommand,
|
|
52127
|
-
exitCode: 0,
|
|
52128
|
-
stdout,
|
|
52129
|
-
stderr,
|
|
52130
|
-
failed: false,
|
|
52131
|
-
timedOut: false,
|
|
52132
|
-
isCanceled: false,
|
|
52133
|
-
killed: false
|
|
52134
|
-
};
|
|
52135
|
-
};
|
|
52136
|
-
module2.exports.command = (command, options) => {
|
|
52137
|
-
const [file, ...args] = parseCommand(command);
|
|
52138
|
-
return execa2(file, args, options);
|
|
52139
|
-
};
|
|
52140
|
-
module2.exports.commandSync = (command, options) => {
|
|
52141
|
-
const [file, ...args] = parseCommand(command);
|
|
52142
|
-
return execa2.sync(file, args, options);
|
|
52143
|
-
};
|
|
52144
|
-
module2.exports.node = (scriptPath, args, options = {}) => {
|
|
52145
|
-
if (args && !Array.isArray(args) && typeof args === "object") {
|
|
52146
|
-
options = args;
|
|
52147
|
-
args = [];
|
|
52148
|
-
}
|
|
52149
|
-
const stdio = normalizeStdio.node(options);
|
|
52150
|
-
const defaultExecArgv = process.execArgv.filter((arg) => !arg.startsWith("--inspect"));
|
|
52151
|
-
const {
|
|
52152
|
-
nodePath = process.execPath,
|
|
52153
|
-
nodeOptions = defaultExecArgv
|
|
52154
|
-
} = options;
|
|
52155
|
-
return execa2(nodePath, [
|
|
52156
|
-
...nodeOptions,
|
|
52157
|
-
scriptPath,
|
|
52158
|
-
...Array.isArray(args) ? args : []
|
|
52159
|
-
], __spreadProps(__spreadValues({}, options), {
|
|
52160
|
-
stdin: void 0,
|
|
52161
|
-
stdout: void 0,
|
|
52162
|
-
stderr: void 0,
|
|
52163
|
-
stdio,
|
|
52164
|
-
shell: false
|
|
52165
|
-
}));
|
|
52166
|
-
};
|
|
52167
|
-
}
|
|
52168
|
-
});
|
|
52169
|
-
|
|
52170
50689
|
// ../../node_modules/yargs/node_modules/y18n/build/index.cjs
|
|
52171
50690
|
var require_build5 = __commonJS({
|
|
52172
50691
|
"../../node_modules/yargs/node_modules/y18n/build/index.cjs"(exports, module2) {
|
|
52173
50692
|
"use strict";
|
|
52174
50693
|
var fs2 = require("fs");
|
|
52175
50694
|
var util = require("util");
|
|
52176
|
-
var
|
|
50695
|
+
var path3 = require("path");
|
|
52177
50696
|
var shim;
|
|
52178
50697
|
var Y18N = class {
|
|
52179
50698
|
constructor(opts) {
|
|
@@ -52337,7 +50856,7 @@ var require_build5 = __commonJS({
|
|
|
52337
50856
|
writeFile: fs2.writeFile
|
|
52338
50857
|
},
|
|
52339
50858
|
format: util.format,
|
|
52340
|
-
resolve:
|
|
50859
|
+
resolve: path3.resolve,
|
|
52341
50860
|
exists: (file) => {
|
|
52342
50861
|
try {
|
|
52343
50862
|
return fs2.statSync(file).isFile();
|
|
@@ -52359,7 +50878,7 @@ var require_build6 = __commonJS({
|
|
|
52359
50878
|
"use strict";
|
|
52360
50879
|
var util = require("util");
|
|
52361
50880
|
var fs2 = require("fs");
|
|
52362
|
-
var
|
|
50881
|
+
var path3 = require("path");
|
|
52363
50882
|
function camelCase(str) {
|
|
52364
50883
|
const isCamelCase = str !== str.toLowerCase() && str !== str.toUpperCase();
|
|
52365
50884
|
if (!isCamelCase) {
|
|
@@ -53285,13 +51804,13 @@ var require_build6 = __commonJS({
|
|
|
53285
51804
|
return env;
|
|
53286
51805
|
},
|
|
53287
51806
|
format: util.format,
|
|
53288
|
-
normalize:
|
|
53289
|
-
resolve:
|
|
53290
|
-
require: (
|
|
51807
|
+
normalize: path3.normalize,
|
|
51808
|
+
resolve: path3.resolve,
|
|
51809
|
+
require: (path4) => {
|
|
53291
51810
|
if (typeof require !== "undefined") {
|
|
53292
|
-
return require(
|
|
53293
|
-
} else if (
|
|
53294
|
-
return fs2.readFileSync(
|
|
51811
|
+
return require(path4);
|
|
51812
|
+
} else if (path4.match(/\.json$/)) {
|
|
51813
|
+
return fs2.readFileSync(path4, "utf8");
|
|
53295
51814
|
} else {
|
|
53296
51815
|
throw Error("only .json config files are supported in ESM");
|
|
53297
51816
|
}
|
|
@@ -53319,7 +51838,7 @@ var require_wrap_ansi = __commonJS({
|
|
|
53319
51838
|
var stripAnsi = require_strip_ansi();
|
|
53320
51839
|
var ansiStyles = require_ansi_styles();
|
|
53321
51840
|
var ESCAPES = /* @__PURE__ */ new Set([
|
|
53322
|
-
"
|
|
51841
|
+
"\x1B",
|
|
53323
51842
|
"\x9B"
|
|
53324
51843
|
]);
|
|
53325
51844
|
var END_CODE = 39;
|
|
@@ -53470,9 +51989,9 @@ var require_wrap_ansi = __commonJS({
|
|
|
53470
51989
|
}
|
|
53471
51990
|
});
|
|
53472
51991
|
|
|
53473
|
-
// ../../node_modules/
|
|
51992
|
+
// ../../node_modules/cliui/build/index.cjs
|
|
53474
51993
|
var require_build7 = __commonJS({
|
|
53475
|
-
"../../node_modules/
|
|
51994
|
+
"../../node_modules/cliui/build/index.cjs"(exports, module2) {
|
|
53476
51995
|
"use strict";
|
|
53477
51996
|
var align = {
|
|
53478
51997
|
right: alignRight,
|
|
@@ -53805,14 +52324,14 @@ var require_require_directory = __commonJS({
|
|
|
53805
52324
|
return obj;
|
|
53806
52325
|
}
|
|
53807
52326
|
};
|
|
53808
|
-
function checkFileInclusion(
|
|
53809
|
-
return new RegExp("\\.(" + options.extensions.join("|") + ")$", "i").test(filename) && !(options.include && options.include instanceof RegExp && !options.include.test(
|
|
52327
|
+
function checkFileInclusion(path3, filename, options) {
|
|
52328
|
+
return new RegExp("\\.(" + options.extensions.join("|") + ")$", "i").test(filename) && !(options.include && options.include instanceof RegExp && !options.include.test(path3)) && !(options.include && typeof options.include === "function" && !options.include(path3, filename)) && !(options.exclude && options.exclude instanceof RegExp && options.exclude.test(path3)) && !(options.exclude && typeof options.exclude === "function" && options.exclude(path3, filename));
|
|
53810
52329
|
}
|
|
53811
|
-
function requireDirectory(m,
|
|
52330
|
+
function requireDirectory(m, path3, options) {
|
|
53812
52331
|
var retval = {};
|
|
53813
|
-
if (
|
|
53814
|
-
options =
|
|
53815
|
-
|
|
52332
|
+
if (path3 && !options && typeof path3 !== "string") {
|
|
52333
|
+
options = path3;
|
|
52334
|
+
path3 = null;
|
|
53816
52335
|
}
|
|
53817
52336
|
options = options || {};
|
|
53818
52337
|
for (var prop in defaultOptions) {
|
|
@@ -53820,9 +52339,9 @@ var require_require_directory = __commonJS({
|
|
|
53820
52339
|
options[prop] = defaultOptions[prop];
|
|
53821
52340
|
}
|
|
53822
52341
|
}
|
|
53823
|
-
|
|
53824
|
-
fs2.readdirSync(
|
|
53825
|
-
var joined = join(
|
|
52342
|
+
path3 = !path3 ? dirname(m.filename) : resolve(dirname(m.filename), path3);
|
|
52343
|
+
fs2.readdirSync(path3).forEach(function(filename) {
|
|
52344
|
+
var joined = join(path3, filename), files2, key, obj;
|
|
53826
52345
|
if (fs2.statSync(joined).isDirectory() && options.recurse) {
|
|
53827
52346
|
files2 = requireDirectory(m, joined, options);
|
|
53828
52347
|
if (Object.keys(files2).length) {
|
|
@@ -55690,11 +54209,11 @@ var Workspace = class {
|
|
|
55690
54209
|
static create(workspace) {
|
|
55691
54210
|
return new Workspace(workspace);
|
|
55692
54211
|
}
|
|
55693
|
-
constructor({ directory, name: name2, version: version2, dependencies
|
|
54212
|
+
constructor({ directory, name: name2, version: version2, dependencies }) {
|
|
55694
54213
|
this.directory = directory;
|
|
55695
54214
|
this.name = name2;
|
|
55696
54215
|
this.version = version2;
|
|
55697
|
-
this.dependencies =
|
|
54216
|
+
this.dependencies = dependencies;
|
|
55698
54217
|
this.workspaces = /* @__PURE__ */ new Set();
|
|
55699
54218
|
this.id = hash(this.directory);
|
|
55700
54219
|
}
|
|
@@ -55733,13 +54252,13 @@ async function loadWorkspace(directory) {
|
|
|
55733
54252
|
}
|
|
55734
54253
|
const packageJson = await import_fs_extra.default.readJson(packageJsonPath);
|
|
55735
54254
|
const types = ["dependencies", "devDependencies", "peerDependencies"];
|
|
55736
|
-
const
|
|
54255
|
+
const dependencies = [];
|
|
55737
54256
|
for (const type of types) {
|
|
55738
54257
|
if (!packageJson[type]) {
|
|
55739
54258
|
continue;
|
|
55740
54259
|
}
|
|
55741
54260
|
for (const [name2, version2] of Object.entries(packageJson[type])) {
|
|
55742
|
-
|
|
54261
|
+
dependencies.push({
|
|
55743
54262
|
type,
|
|
55744
54263
|
name: name2,
|
|
55745
54264
|
version: version2
|
|
@@ -55761,7 +54280,7 @@ async function loadWorkspace(directory) {
|
|
|
55761
54280
|
return {
|
|
55762
54281
|
type: "worktree",
|
|
55763
54282
|
directory,
|
|
55764
|
-
dependencies
|
|
54283
|
+
dependencies,
|
|
55765
54284
|
children,
|
|
55766
54285
|
name: packageJson.name,
|
|
55767
54286
|
version: packageJson.version
|
|
@@ -55770,7 +54289,7 @@ async function loadWorkspace(directory) {
|
|
|
55770
54289
|
return {
|
|
55771
54290
|
type: "workspace",
|
|
55772
54291
|
directory,
|
|
55773
|
-
dependencies
|
|
54292
|
+
dependencies,
|
|
55774
54293
|
name: packageJson.name,
|
|
55775
54294
|
version: packageJson.version
|
|
55776
54295
|
};
|
|
@@ -56044,57 +54563,72 @@ async function getSelectedWorkspace2(workspaces) {
|
|
|
56044
54563
|
}
|
|
56045
54564
|
|
|
56046
54565
|
// src/upgrades.js
|
|
56047
|
-
var
|
|
54566
|
+
var import_fast_glob2 = __toESM(require_out4());
|
|
54567
|
+
var import_path2 = __toESM(require("path"));
|
|
56048
54568
|
|
|
56049
54569
|
// src/jscodeshift.js
|
|
56050
|
-
var
|
|
56051
|
-
|
|
56052
|
-
var _jscodeshift;
|
|
56053
|
-
function getBinPath() {
|
|
56054
|
-
if (!_jscodeshift) {
|
|
56055
|
-
const directory = import_path2.default.dirname(require.resolve("jscodeshift"));
|
|
56056
|
-
_jscodeshift = import_path2.default.join(directory, "bin", "jscodeshift.js");
|
|
56057
|
-
}
|
|
56058
|
-
return _jscodeshift;
|
|
56059
|
-
}
|
|
56060
|
-
async function run(options) {
|
|
54570
|
+
var Runner = __toESM(require("jscodeshift/src/Runner"));
|
|
54571
|
+
async function run2(options) {
|
|
56061
54572
|
const {
|
|
56062
|
-
|
|
56063
|
-
|
|
56064
|
-
parser = "babel",
|
|
54573
|
+
dry,
|
|
54574
|
+
parser = "babylon",
|
|
56065
54575
|
paths,
|
|
56066
|
-
|
|
54576
|
+
print = dry,
|
|
54577
|
+
transform,
|
|
54578
|
+
verbose
|
|
56067
54579
|
} = options;
|
|
56068
|
-
|
|
56069
|
-
|
|
56070
|
-
|
|
56071
|
-
|
|
56072
|
-
|
|
56073
|
-
|
|
56074
|
-
|
|
56075
|
-
|
|
56076
|
-
|
|
56077
|
-
|
|
56078
|
-
|
|
56079
|
-
|
|
56080
|
-
|
|
56081
|
-
|
|
56082
|
-
|
|
56083
|
-
|
|
56084
|
-
|
|
56085
|
-
|
|
56086
|
-
|
|
56087
|
-
|
|
56088
|
-
|
|
56089
|
-
|
|
56090
|
-
|
|
56091
|
-
|
|
56092
|
-
|
|
54580
|
+
await Runner.run(transform, paths, {
|
|
54581
|
+
dry,
|
|
54582
|
+
parser,
|
|
54583
|
+
parserConfig: {
|
|
54584
|
+
sourceType: "module",
|
|
54585
|
+
allowHashBang: true,
|
|
54586
|
+
ecmaVersion: Infinity,
|
|
54587
|
+
allowImportExportEverywhere: true,
|
|
54588
|
+
allowReturnOutsideFunction: true,
|
|
54589
|
+
startLine: 1,
|
|
54590
|
+
tokens: true,
|
|
54591
|
+
plugins: [
|
|
54592
|
+
"estree",
|
|
54593
|
+
"jsx",
|
|
54594
|
+
"typescript",
|
|
54595
|
+
"asyncGenerators",
|
|
54596
|
+
"classProperties",
|
|
54597
|
+
"doExpressions",
|
|
54598
|
+
"exportDefaultFrom",
|
|
54599
|
+
"exportExtensions",
|
|
54600
|
+
"functionBind",
|
|
54601
|
+
"functionSent",
|
|
54602
|
+
"objectRestSpread",
|
|
54603
|
+
"dynamicImport",
|
|
54604
|
+
"nullishCoalescingOperator",
|
|
54605
|
+
"optionalChaining",
|
|
54606
|
+
["decorators", { decoratorsBeforeExport: false }]
|
|
54607
|
+
]
|
|
54608
|
+
},
|
|
54609
|
+
print,
|
|
54610
|
+
ignorePattern: [
|
|
54611
|
+
"**/build/**",
|
|
54612
|
+
"**/dist/**",
|
|
54613
|
+
"**/es/**",
|
|
54614
|
+
"**/lib/**",
|
|
54615
|
+
"**/node_modules/**",
|
|
54616
|
+
"**/storybook-static/**",
|
|
54617
|
+
"**/umd/**",
|
|
54618
|
+
"*.md",
|
|
54619
|
+
"*.mdx",
|
|
54620
|
+
"*.css",
|
|
54621
|
+
"*.scss",
|
|
54622
|
+
".DS_Store",
|
|
54623
|
+
".gitignore",
|
|
54624
|
+
"yarn.lock"
|
|
54625
|
+
],
|
|
54626
|
+
verbose: verbose === true ? 2 : 0
|
|
56093
54627
|
});
|
|
56094
54628
|
}
|
|
56095
54629
|
|
|
56096
54630
|
// src/upgrades.js
|
|
56097
|
-
var TRANSFORM_DIR =
|
|
54631
|
+
var TRANSFORM_DIR = import_path2.default.join(__dirname, "transforms");
|
|
56098
54632
|
var Change = {
|
|
56099
54633
|
install({ name: name2, version: version2 }) {
|
|
56100
54634
|
return {
|
|
@@ -56193,26 +54727,48 @@ var upgrades = [
|
|
|
56193
54727
|
migrations: [
|
|
56194
54728
|
{
|
|
56195
54729
|
name: "icons-react-size-prop",
|
|
56196
|
-
description: "Update imports and size usage for @carbon/icons",
|
|
54730
|
+
description: "Update imports and size usage for @carbon/icons-react",
|
|
56197
54731
|
migrate: async (options) => {
|
|
56198
|
-
const transform =
|
|
56199
|
-
await
|
|
54732
|
+
const transform = import_path2.default.join(TRANSFORM_DIR, "icons-react-size-prop.js");
|
|
54733
|
+
const paths = Array.isArray(options.paths) && options.paths.length > 0 ? options.paths : await (0, import_fast_glob2.default)(["**/*.js", "**/*.jsx"], {
|
|
54734
|
+
cwd: options.workspaceDir,
|
|
54735
|
+
ignore: [
|
|
54736
|
+
"**/es/**",
|
|
54737
|
+
"**/lib/**",
|
|
54738
|
+
"**/umd/**",
|
|
54739
|
+
"**/node_modules/**",
|
|
54740
|
+
"**/storybook-static/**"
|
|
54741
|
+
]
|
|
54742
|
+
});
|
|
54743
|
+
await run2({
|
|
54744
|
+
dry: !options.write,
|
|
56200
54745
|
transform,
|
|
56201
|
-
paths
|
|
56202
|
-
|
|
56203
|
-
}
|
|
54746
|
+
paths,
|
|
54747
|
+
verbose: options.verbose
|
|
54748
|
+
});
|
|
56204
54749
|
}
|
|
56205
54750
|
},
|
|
56206
54751
|
{
|
|
56207
54752
|
name: "update-carbon-components-react-import-to-scoped",
|
|
56208
54753
|
description: "Rewrites imports from `carbon-components-react` to `@carbon/react`",
|
|
56209
54754
|
migrate: async (options) => {
|
|
56210
|
-
const transform =
|
|
56211
|
-
await
|
|
54755
|
+
const transform = import_path2.default.join(TRANSFORM_DIR, "update-carbon-components-react-import-to-scoped.js");
|
|
54756
|
+
const paths = Array.isArray(options.paths) && options.paths.length > 0 ? options.paths : await (0, import_fast_glob2.default)(["**/*.js", "**/*.jsx"], {
|
|
54757
|
+
cwd: options.workspaceDir,
|
|
54758
|
+
ignore: [
|
|
54759
|
+
"**/es/**",
|
|
54760
|
+
"**/lib/**",
|
|
54761
|
+
"**/umd/**",
|
|
54762
|
+
"**/node_modules/**",
|
|
54763
|
+
"**/storybook-static/**"
|
|
54764
|
+
]
|
|
54765
|
+
});
|
|
54766
|
+
await run2({
|
|
54767
|
+
dry: !options.write,
|
|
56212
54768
|
transform,
|
|
56213
|
-
paths
|
|
56214
|
-
|
|
56215
|
-
}
|
|
54769
|
+
paths,
|
|
54770
|
+
verbose: options.verbose
|
|
54771
|
+
});
|
|
56216
54772
|
}
|
|
56217
54773
|
}
|
|
56218
54774
|
]
|
|
@@ -56241,7 +54797,7 @@ var upgrades = [
|
|
|
56241
54797
|
// package.json
|
|
56242
54798
|
var name = "@carbon/upgrade";
|
|
56243
54799
|
var description = "A tool for upgrading Carbon versions";
|
|
56244
|
-
var version = "
|
|
54800
|
+
var version = "11.0.0-rc.0";
|
|
56245
54801
|
var license = "Apache-2.0";
|
|
56246
54802
|
var bin = {
|
|
56247
54803
|
"carbon-upgrade": "./bin/carbon-upgrade.js"
|
|
@@ -56280,11 +54836,12 @@ var devDependencies = {
|
|
|
56280
54836
|
"change-case": "^4.1.2",
|
|
56281
54837
|
esbuild: "^0.14.10",
|
|
56282
54838
|
execa: "^5.1.1",
|
|
56283
|
-
"fast-glob": "^3.2.
|
|
54839
|
+
"fast-glob": "^3.2.11",
|
|
56284
54840
|
"fs-extra": "^10.0.0",
|
|
56285
54841
|
inquirer: "^8.1.0",
|
|
56286
54842
|
"is-git-clean": "^1.1.0",
|
|
56287
54843
|
"jest-diff": "^27.4.6",
|
|
54844
|
+
jscodeshift: "^0.13.1",
|
|
56288
54845
|
"lodash.clonedeep": "^4.5.0",
|
|
56289
54846
|
"lodash.merge": "^4.6.2",
|
|
56290
54847
|
memfs: "^3.4.0",
|
|
@@ -56294,9 +54851,6 @@ var devDependencies = {
|
|
|
56294
54851
|
semver: "^7.3.5",
|
|
56295
54852
|
yargs: "^17.0.1"
|
|
56296
54853
|
};
|
|
56297
|
-
var dependencies = {
|
|
56298
|
-
jscodeshift: "^0.13.1"
|
|
56299
|
-
};
|
|
56300
54854
|
var package_default = {
|
|
56301
54855
|
name,
|
|
56302
54856
|
description,
|
|
@@ -56309,8 +54863,7 @@ var package_default = {
|
|
|
56309
54863
|
keywords,
|
|
56310
54864
|
publishConfig,
|
|
56311
54865
|
scripts,
|
|
56312
|
-
devDependencies
|
|
56313
|
-
dependencies
|
|
54866
|
+
devDependencies
|
|
56314
54867
|
};
|
|
56315
54868
|
|
|
56316
54869
|
// src/cli.js
|
|
@@ -56332,7 +54885,7 @@ async function main({ argv, cwd }) {
|
|
|
56332
54885
|
describe: "optionally include additional logs, useful for debugging",
|
|
56333
54886
|
type: "boolean"
|
|
56334
54887
|
});
|
|
56335
|
-
cli.usage("Usage: $0 [options]").command(["upgrade", "$0"], "upgrade your project", {},
|
|
54888
|
+
cli.usage("Usage: $0 [options]").command(["upgrade", "$0"], "upgrade your project", {}, run3(async (args) => {
|
|
56336
54889
|
const { verbose, write } = args;
|
|
56337
54890
|
const options = {
|
|
56338
54891
|
cwd: cwd(),
|
|
@@ -56341,25 +54894,26 @@ async function main({ argv, cwd }) {
|
|
|
56341
54894
|
};
|
|
56342
54895
|
await upgrade(options, upgrades);
|
|
56343
54896
|
}));
|
|
56344
|
-
cli.command("migrate <migration>", "run a Carbon migration on your source files", async (cli2) => {
|
|
56345
|
-
cli2.command("list", "list all migrations", {},
|
|
54897
|
+
cli.command("migrate <migration> [paths...]", "run a Carbon migration on your source files", async (cli2) => {
|
|
54898
|
+
cli2.command("list", "list all migrations", {}, run3(async (args) => {
|
|
56346
54899
|
const { verbose } = args;
|
|
56347
54900
|
const options = { cwd: cwd(), verbose, list: true };
|
|
56348
54901
|
await migrate(options, upgrades);
|
|
56349
54902
|
}, true));
|
|
56350
|
-
},
|
|
56351
|
-
const { verbose, migration, write } = args;
|
|
54903
|
+
}, run3(async (args) => {
|
|
54904
|
+
const { verbose, migration, write, paths } = args;
|
|
56352
54905
|
const options = {
|
|
56353
54906
|
cwd: cwd(),
|
|
56354
54907
|
verbose,
|
|
56355
54908
|
write,
|
|
56356
|
-
migration
|
|
54909
|
+
migration,
|
|
54910
|
+
paths
|
|
56357
54911
|
};
|
|
56358
54912
|
await migrate(options, upgrades);
|
|
56359
54913
|
}));
|
|
56360
54914
|
cli.strict().parse(argv.slice(2));
|
|
56361
54915
|
}
|
|
56362
|
-
function
|
|
54916
|
+
function run3(command, ignoreSafetyChecks = false) {
|
|
56363
54917
|
return async (args) => {
|
|
56364
54918
|
if (args.verbose === true) {
|
|
56365
54919
|
logger.setLevel("verbose");
|