create-tamagui 1.99.0 → 1.100.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/dist/index.js +340 -605
- package/dist/index.js.map +1 -1
- package/dist/index.native.js +6256 -7932
- package/dist/index.native.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1116,10 +1116,9 @@ var require_commander = __commonJS({
|
|
|
1116
1116
|
if (arg = args[i], i > 0 && (lastOpt = this.optionFor(args[i - 1])), arg === "--") {
|
|
1117
1117
|
ret = ret.concat(args.slice(i));
|
|
1118
1118
|
break;
|
|
1119
|
-
} else
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
}) : /^--/.test(arg) && ~(index = arg.indexOf("=")) ? ret.push(arg.slice(0, index), arg.slice(index + 1)) : ret.push(arg);
|
|
1119
|
+
} else lastOpt && lastOpt.required ? ret.push(arg) : arg.length > 1 && arg[0] === "-" && arg[1] !== "-" ? arg.slice(1).split("").forEach(function(c) {
|
|
1120
|
+
ret.push("-" + c);
|
|
1121
|
+
}) : /^--/.test(arg) && ~(index = arg.indexOf("=")) ? ret.push(arg.slice(0, index), arg.slice(index + 1)) : ret.push(arg);
|
|
1123
1122
|
return ret;
|
|
1124
1123
|
};
|
|
1125
1124
|
Command.prototype.parseArgs = function(args, unknown) {
|
|
@@ -1145,11 +1144,9 @@ var require_commander = __commonJS({
|
|
|
1145
1144
|
}
|
|
1146
1145
|
if (option = this.optionFor(arg), option) {
|
|
1147
1146
|
if (option.required) {
|
|
1148
|
-
if (arg = argv2[++i], arg == null)
|
|
1149
|
-
return this.optionMissingArgument(option);
|
|
1147
|
+
if (arg = argv2[++i], arg == null) return this.optionMissingArgument(option);
|
|
1150
1148
|
this.emit("option:" + option.name(), arg);
|
|
1151
|
-
} else
|
|
1152
|
-
option.optional ? (arg = argv2[i + 1], arg == null || arg[0] === "-" && arg !== "-" ? arg = null : ++i, this.emit("option:" + option.name(), arg)) : this.emit("option:" + option.name());
|
|
1149
|
+
} else option.optional ? (arg = argv2[i + 1], arg == null || arg[0] === "-" && arg !== "-" ? arg = null : ++i, this.emit("option:" + option.name(), arg)) : this.emit("option:" + option.name());
|
|
1153
1150
|
continue;
|
|
1154
1151
|
}
|
|
1155
1152
|
if (arg.length > 1 && arg[0] === "-") {
|
|
@@ -1180,8 +1177,7 @@ var require_commander = __commonJS({
|
|
|
1180
1177
|
console.error("error: variadic arguments must be last `%s'", name), process.exit(1);
|
|
1181
1178
|
};
|
|
1182
1179
|
Command.prototype.version = function(str, flags) {
|
|
1183
|
-
if (arguments.length === 0)
|
|
1184
|
-
return this._version;
|
|
1180
|
+
if (arguments.length === 0) return this._version;
|
|
1185
1181
|
this._version = str, flags = flags || "-V, --version";
|
|
1186
1182
|
var versionOption = new Option(flags, "output the version number");
|
|
1187
1183
|
return this._versionOptionName = versionOption.long.substr(2) || "version", this.options.push(versionOption), this.on("option:" + this._versionOptionName, function() {
|
|
@@ -1194,10 +1190,8 @@ var require_commander = __commonJS({
|
|
|
1194
1190
|
};
|
|
1195
1191
|
Command.prototype.alias = function(alias) {
|
|
1196
1192
|
var command = this;
|
|
1197
|
-
if (this.commands.length !== 0 && (command = this.commands[this.commands.length - 1]), arguments.length === 0)
|
|
1198
|
-
|
|
1199
|
-
if (alias === command._name)
|
|
1200
|
-
throw new Error("Command alias can't be the same as its name");
|
|
1193
|
+
if (this.commands.length !== 0 && (command = this.commands[this.commands.length - 1]), arguments.length === 0) return command._alias;
|
|
1194
|
+
if (alias === command._name) throw new Error("Command alias can't be the same as its name");
|
|
1201
1195
|
return command._alias = alias, this;
|
|
1202
1196
|
};
|
|
1203
1197
|
Command.prototype.usage = function(str) {
|
|
@@ -1253,8 +1247,7 @@ var require_commander = __commonJS({
|
|
|
1253
1247
|
`);
|
|
1254
1248
|
};
|
|
1255
1249
|
Command.prototype.commandHelp = function() {
|
|
1256
|
-
if (!this.commands.length)
|
|
1257
|
-
return "";
|
|
1250
|
+
if (!this.commands.length) return "";
|
|
1258
1251
|
var commands = this.prepareCommands(), width = this.padWidth();
|
|
1259
1252
|
return [
|
|
1260
1253
|
"Commands:",
|
|
@@ -2719,8 +2712,7 @@ var require_universalify = __commonJS({
|
|
|
2719
2712
|
"use strict";
|
|
2720
2713
|
exports2.fromCallback = function(fn) {
|
|
2721
2714
|
return Object.defineProperty(function(...args) {
|
|
2722
|
-
if (typeof args[args.length - 1] == "function")
|
|
2723
|
-
fn.apply(this, args);
|
|
2715
|
+
if (typeof args[args.length - 1] == "function") fn.apply(this, args);
|
|
2724
2716
|
else
|
|
2725
2717
|
return new Promise((resolve7, reject) => {
|
|
2726
2718
|
fn.call(
|
|
@@ -2734,8 +2726,7 @@ var require_universalify = __commonJS({
|
|
|
2734
2726
|
exports2.fromPromise = function(fn) {
|
|
2735
2727
|
return Object.defineProperty(function(...args) {
|
|
2736
2728
|
let cb = args[args.length - 1];
|
|
2737
|
-
if (typeof cb != "function")
|
|
2738
|
-
return fn.apply(this, args);
|
|
2729
|
+
if (typeof cb != "function") return fn.apply(this, args);
|
|
2739
2730
|
fn.apply(this, args.slice(0, -1)).then((r) => cb(null, r), cb);
|
|
2740
2731
|
}, "name", { value: fn.name });
|
|
2741
2732
|
};
|
|
@@ -2887,8 +2878,7 @@ var require_polyfills = __commonJS({
|
|
|
2887
2878
|
try {
|
|
2888
2879
|
return orig.call(fs7, target, mode);
|
|
2889
2880
|
} catch (er) {
|
|
2890
|
-
if (!chownErOk(er))
|
|
2891
|
-
throw er;
|
|
2881
|
+
if (!chownErOk(er)) throw er;
|
|
2892
2882
|
}
|
|
2893
2883
|
};
|
|
2894
2884
|
}
|
|
@@ -2904,8 +2894,7 @@ var require_polyfills = __commonJS({
|
|
|
2904
2894
|
try {
|
|
2905
2895
|
return orig.call(fs7, target, uid, gid);
|
|
2906
2896
|
} catch (er) {
|
|
2907
|
-
if (!chownErOk(er))
|
|
2908
|
-
throw er;
|
|
2897
|
+
if (!chownErOk(er)) throw er;
|
|
2909
2898
|
}
|
|
2910
2899
|
};
|
|
2911
2900
|
}
|
|
@@ -2945,8 +2934,7 @@ var require_legacy_streams = __commonJS({
|
|
|
2945
2934
|
WriteStream
|
|
2946
2935
|
};
|
|
2947
2936
|
function ReadStream(path6, options) {
|
|
2948
|
-
if (!(this instanceof ReadStream))
|
|
2949
|
-
return new ReadStream(path6, options);
|
|
2937
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path6, options);
|
|
2950
2938
|
Stream3.call(this);
|
|
2951
2939
|
var self = this;
|
|
2952
2940
|
this.path = path6, this.fd = null, this.readable = !0, this.paused = !1, this.flags = "r", this.mode = 438, this.bufferSize = 64 * 1024, options = options || {};
|
|
@@ -2980,8 +2968,7 @@ var require_legacy_streams = __commonJS({
|
|
|
2980
2968
|
});
|
|
2981
2969
|
}
|
|
2982
2970
|
function WriteStream(path6, options) {
|
|
2983
|
-
if (!(this instanceof WriteStream))
|
|
2984
|
-
return new WriteStream(path6, options);
|
|
2971
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path6, options);
|
|
2985
2972
|
Stream3.call(this), this.path = path6, this.fd = null, this.writable = !0, this.flags = "w", this.encoding = "binary", this.mode = 438, this.bytesWritten = 0, options = options || {};
|
|
2986
2973
|
for (var keys = Object.keys(options), index = 0, length = keys.length; index < length; index++) {
|
|
2987
2974
|
var key = keys[index];
|
|
@@ -3302,8 +3289,7 @@ var require_fs = __commonJS({
|
|
|
3302
3289
|
exports2.read = function(fd, buffer, offset, length, position, callback) {
|
|
3303
3290
|
return typeof callback == "function" ? fs7.read(fd, buffer, offset, length, position, callback) : new Promise((resolve7, reject) => {
|
|
3304
3291
|
fs7.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
|
|
3305
|
-
if (err)
|
|
3306
|
-
return reject(err);
|
|
3292
|
+
if (err) return reject(err);
|
|
3307
3293
|
resolve7({ bytesRead, buffer: buffer2 });
|
|
3308
3294
|
});
|
|
3309
3295
|
});
|
|
@@ -3311,8 +3297,7 @@ var require_fs = __commonJS({
|
|
|
3311
3297
|
exports2.write = function(fd, buffer, ...args) {
|
|
3312
3298
|
return typeof args[args.length - 1] == "function" ? fs7.write(fd, buffer, ...args) : new Promise((resolve7, reject) => {
|
|
3313
3299
|
fs7.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
|
|
3314
|
-
if (err)
|
|
3315
|
-
return reject(err);
|
|
3300
|
+
if (err) return reject(err);
|
|
3316
3301
|
resolve7({ bytesWritten, buffer: buffer2 });
|
|
3317
3302
|
});
|
|
3318
3303
|
});
|
|
@@ -3320,8 +3305,7 @@ var require_fs = __commonJS({
|
|
|
3320
3305
|
exports2.readv = function(fd, buffers, ...args) {
|
|
3321
3306
|
return typeof args[args.length - 1] == "function" ? fs7.readv(fd, buffers, ...args) : new Promise((resolve7, reject) => {
|
|
3322
3307
|
fs7.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
|
|
3323
|
-
if (err)
|
|
3324
|
-
return reject(err);
|
|
3308
|
+
if (err) return reject(err);
|
|
3325
3309
|
resolve7({ bytesRead, buffers: buffers2 });
|
|
3326
3310
|
});
|
|
3327
3311
|
});
|
|
@@ -3329,8 +3313,7 @@ var require_fs = __commonJS({
|
|
|
3329
3313
|
exports2.writev = function(fd, buffers, ...args) {
|
|
3330
3314
|
return typeof args[args.length - 1] == "function" ? fs7.writev(fd, buffers, ...args) : new Promise((resolve7, reject) => {
|
|
3331
3315
|
fs7.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
|
|
3332
|
-
if (err)
|
|
3333
|
-
return reject(err);
|
|
3316
|
+
if (err) return reject(err);
|
|
3334
3317
|
resolve7({ bytesWritten, buffers: buffers2 });
|
|
3335
3318
|
});
|
|
3336
3319
|
});
|
|
@@ -3448,8 +3431,7 @@ var require_stat = __commonJS({
|
|
|
3448
3431
|
return Promise.all([
|
|
3449
3432
|
statFunc(src),
|
|
3450
3433
|
statFunc(dest).catch((err) => {
|
|
3451
|
-
if (err.code === "ENOENT")
|
|
3452
|
-
return null;
|
|
3434
|
+
if (err.code === "ENOENT") return null;
|
|
3453
3435
|
throw err;
|
|
3454
3436
|
})
|
|
3455
3437
|
]).then(([srcStat, destStat]) => ({ srcStat, destStat }));
|
|
@@ -3459,8 +3441,7 @@ var require_stat = __commonJS({
|
|
|
3459
3441
|
try {
|
|
3460
3442
|
destStat = statFunc(dest);
|
|
3461
3443
|
} catch (err) {
|
|
3462
|
-
if (err.code === "ENOENT")
|
|
3463
|
-
return { srcStat, destStat: null };
|
|
3444
|
+
if (err.code === "ENOENT") return { srcStat, destStat: null };
|
|
3464
3445
|
throw err;
|
|
3465
3446
|
}
|
|
3466
3447
|
return { srcStat, destStat };
|
|
@@ -3503,14 +3484,12 @@ var require_stat = __commonJS({
|
|
|
3503
3484
|
}
|
|
3504
3485
|
async function checkParentPaths(src, srcStat, dest, funcName) {
|
|
3505
3486
|
let srcParent = path6.resolve(path6.dirname(src)), destParent = path6.resolve(path6.dirname(dest));
|
|
3506
|
-
if (destParent === srcParent || destParent === path6.parse(destParent).root)
|
|
3507
|
-
return;
|
|
3487
|
+
if (destParent === srcParent || destParent === path6.parse(destParent).root) return;
|
|
3508
3488
|
let destStat;
|
|
3509
3489
|
try {
|
|
3510
3490
|
destStat = await fs7.stat(destParent, { bigint: !0 });
|
|
3511
3491
|
} catch (err) {
|
|
3512
|
-
if (err.code === "ENOENT")
|
|
3513
|
-
return;
|
|
3492
|
+
if (err.code === "ENOENT") return;
|
|
3514
3493
|
throw err;
|
|
3515
3494
|
}
|
|
3516
3495
|
if (areIdentical(srcStat, destStat))
|
|
@@ -3519,14 +3498,12 @@ var require_stat = __commonJS({
|
|
|
3519
3498
|
}
|
|
3520
3499
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
3521
3500
|
let srcParent = path6.resolve(path6.dirname(src)), destParent = path6.resolve(path6.dirname(dest));
|
|
3522
|
-
if (destParent === srcParent || destParent === path6.parse(destParent).root)
|
|
3523
|
-
return;
|
|
3501
|
+
if (destParent === srcParent || destParent === path6.parse(destParent).root) return;
|
|
3524
3502
|
let destStat;
|
|
3525
3503
|
try {
|
|
3526
3504
|
destStat = fs7.statSync(destParent, { bigint: !0 });
|
|
3527
3505
|
} catch (err) {
|
|
3528
|
-
if (err.code === "ENOENT")
|
|
3529
|
-
return;
|
|
3506
|
+
if (err.code === "ENOENT") return;
|
|
3530
3507
|
throw err;
|
|
3531
3508
|
}
|
|
3532
3509
|
if (areIdentical(srcStat, destStat))
|
|
@@ -3571,8 +3548,7 @@ var require_copy = __commonJS({
|
|
|
3571
3548
|
"fs-extra-WARN0001"
|
|
3572
3549
|
);
|
|
3573
3550
|
let { srcStat, destStat } = await stat3.checkPaths(src, dest, "copy", opts);
|
|
3574
|
-
if (await stat3.checkParentPaths(src, srcStat, dest, "copy"), !await runFilter(src, dest, opts))
|
|
3575
|
-
return;
|
|
3551
|
+
if (await stat3.checkParentPaths(src, srcStat, dest, "copy"), !await runFilter(src, dest, opts)) return;
|
|
3576
3552
|
let destParent = path6.dirname(dest);
|
|
3577
3553
|
await pathExists3(destParent) || await mkdirs(destParent), await getStatsAndPerformCopy(destStat, src, dest, opts);
|
|
3578
3554
|
}
|
|
@@ -3581,17 +3557,13 @@ var require_copy = __commonJS({
|
|
|
3581
3557
|
}
|
|
3582
3558
|
async function getStatsAndPerformCopy(destStat, src, dest, opts) {
|
|
3583
3559
|
let srcStat = await (opts.dereference ? fs7.stat : fs7.lstat)(src);
|
|
3584
|
-
if (srcStat.isDirectory())
|
|
3585
|
-
|
|
3586
|
-
if (srcStat.
|
|
3587
|
-
return onFile(srcStat, destStat, src, dest, opts);
|
|
3588
|
-
if (srcStat.isSymbolicLink())
|
|
3589
|
-
return onLink(destStat, src, dest, opts);
|
|
3560
|
+
if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
|
|
3561
|
+
if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
|
|
3562
|
+
if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts);
|
|
3590
3563
|
throw srcStat.isSocket() ? new Error(`Cannot copy a socket file: ${src}`) : srcStat.isFIFO() ? new Error(`Cannot copy a FIFO pipe: ${src}`) : new Error(`Unknown file: ${src}`);
|
|
3591
3564
|
}
|
|
3592
3565
|
async function onFile(srcStat, destStat, src, dest, opts) {
|
|
3593
|
-
if (!destStat)
|
|
3594
|
-
return copyFile(srcStat, src, dest, opts);
|
|
3566
|
+
if (!destStat) return copyFile(srcStat, src, dest, opts);
|
|
3595
3567
|
if (opts.overwrite)
|
|
3596
3568
|
return await fs7.unlink(dest), copyFile(srcStat, src, dest, opts);
|
|
3597
3569
|
if (opts.errorOnExist)
|
|
@@ -3616,8 +3588,7 @@ var require_copy = __commonJS({
|
|
|
3616
3588
|
let items = await fs7.readdir(src);
|
|
3617
3589
|
await Promise.all(items.map(async (item) => {
|
|
3618
3590
|
let srcItem = path6.join(src, item), destItem = path6.join(dest, item);
|
|
3619
|
-
if (!await runFilter(srcItem, destItem, opts))
|
|
3620
|
-
return;
|
|
3591
|
+
if (!await runFilter(srcItem, destItem, opts)) return;
|
|
3621
3592
|
let { destStat: destStat2 } = await stat3.checkPaths(srcItem, destItem, "copy", opts);
|
|
3622
3593
|
return getStatsAndPerformCopy(destStat2, srcItem, destItem, opts);
|
|
3623
3594
|
})), destStat || await fs7.chmod(dest, srcStat.mode);
|
|
@@ -3630,8 +3601,7 @@ var require_copy = __commonJS({
|
|
|
3630
3601
|
try {
|
|
3631
3602
|
resolvedDest = await fs7.readlink(dest);
|
|
3632
3603
|
} catch (e) {
|
|
3633
|
-
if (e.code === "EINVAL" || e.code === "UNKNOWN")
|
|
3634
|
-
return fs7.symlink(resolvedSrc, dest);
|
|
3604
|
+
if (e.code === "EINVAL" || e.code === "UNKNOWN") return fs7.symlink(resolvedSrc, dest);
|
|
3635
3605
|
throw e;
|
|
3636
3606
|
}
|
|
3637
3607
|
if (opts.dereference && (resolvedDest = path6.resolve(process.cwd(), resolvedDest)), stat3.isSrcSubdir(resolvedSrc, resolvedDest))
|
|
@@ -3658,19 +3628,15 @@ var require_copy_sync = __commonJS({
|
|
|
3658
3628
|
"fs-extra-WARN0002"
|
|
3659
3629
|
);
|
|
3660
3630
|
let { srcStat, destStat } = stat3.checkPathsSync(src, dest, "copy", opts);
|
|
3661
|
-
if (stat3.checkParentPathsSync(src, srcStat, dest, "copy"), opts.filter && !opts.filter(src, dest))
|
|
3662
|
-
return;
|
|
3631
|
+
if (stat3.checkParentPathsSync(src, srcStat, dest, "copy"), opts.filter && !opts.filter(src, dest)) return;
|
|
3663
3632
|
let destParent = path6.dirname(dest);
|
|
3664
3633
|
return fs7.existsSync(destParent) || mkdirsSync(destParent), getStats(destStat, src, dest, opts);
|
|
3665
3634
|
}
|
|
3666
3635
|
function getStats(destStat, src, dest, opts) {
|
|
3667
3636
|
let srcStat = (opts.dereference ? fs7.statSync : fs7.lstatSync)(src);
|
|
3668
|
-
if (srcStat.isDirectory())
|
|
3669
|
-
|
|
3670
|
-
if (srcStat.
|
|
3671
|
-
return onFile(srcStat, destStat, src, dest, opts);
|
|
3672
|
-
if (srcStat.isSymbolicLink())
|
|
3673
|
-
return onLink(destStat, src, dest, opts);
|
|
3637
|
+
if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
|
|
3638
|
+
if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
|
|
3639
|
+
if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts);
|
|
3674
3640
|
throw srcStat.isSocket() ? new Error(`Cannot copy a socket file: ${src}`) : srcStat.isFIFO() ? new Error(`Cannot copy a FIFO pipe: ${src}`) : new Error(`Unknown file: ${src}`);
|
|
3675
3641
|
}
|
|
3676
3642
|
function onFile(srcStat, destStat, src, dest, opts) {
|
|
@@ -3712,8 +3678,7 @@ var require_copy_sync = __commonJS({
|
|
|
3712
3678
|
}
|
|
3713
3679
|
function copyDirItem(item, src, dest, opts) {
|
|
3714
3680
|
let srcItem = path6.join(src, item), destItem = path6.join(dest, item);
|
|
3715
|
-
if (opts.filter && !opts.filter(srcItem, destItem))
|
|
3716
|
-
return;
|
|
3681
|
+
if (opts.filter && !opts.filter(srcItem, destItem)) return;
|
|
3717
3682
|
let { destStat } = stat3.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
3718
3683
|
return getStats(destStat, srcItem, destItem, opts);
|
|
3719
3684
|
}
|
|
@@ -3724,8 +3689,7 @@ var require_copy_sync = __commonJS({
|
|
|
3724
3689
|
try {
|
|
3725
3690
|
resolvedDest = fs7.readlinkSync(dest);
|
|
3726
3691
|
} catch (err) {
|
|
3727
|
-
if (err.code === "EINVAL" || err.code === "UNKNOWN")
|
|
3728
|
-
return fs7.symlinkSync(resolvedSrc, dest);
|
|
3692
|
+
if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs7.symlinkSync(resolvedSrc, dest);
|
|
3729
3693
|
throw err;
|
|
3730
3694
|
}
|
|
3731
3695
|
if (opts.dereference && (resolvedDest = path6.resolve(process.cwd(), resolvedDest)), stat3.isSrcSubdir(resolvedSrc, resolvedDest))
|
|
@@ -3817,8 +3781,7 @@ var require_file = __commonJS({
|
|
|
3817
3781
|
stats = await fs7.stat(file);
|
|
3818
3782
|
} catch {
|
|
3819
3783
|
}
|
|
3820
|
-
if (stats && stats.isFile())
|
|
3821
|
-
return;
|
|
3784
|
+
if (stats && stats.isFile()) return;
|
|
3822
3785
|
let dir = path6.dirname(file), dirStats = null;
|
|
3823
3786
|
try {
|
|
3824
3787
|
dirStats = await fs7.stat(dir);
|
|
@@ -3837,16 +3800,13 @@ var require_file = __commonJS({
|
|
|
3837
3800
|
stats = fs7.statSync(file);
|
|
3838
3801
|
} catch {
|
|
3839
3802
|
}
|
|
3840
|
-
if (stats && stats.isFile())
|
|
3841
|
-
return;
|
|
3803
|
+
if (stats && stats.isFile()) return;
|
|
3842
3804
|
let dir = path6.dirname(file);
|
|
3843
3805
|
try {
|
|
3844
3806
|
fs7.statSync(dir).isDirectory() || fs7.readdirSync(dir);
|
|
3845
3807
|
} catch (err) {
|
|
3846
|
-
if (err && err.code === "ENOENT")
|
|
3847
|
-
|
|
3848
|
-
else
|
|
3849
|
-
throw err;
|
|
3808
|
+
if (err && err.code === "ENOENT") mkdir2.mkdirsSync(dir);
|
|
3809
|
+
else throw err;
|
|
3850
3810
|
}
|
|
3851
3811
|
fs7.writeFileSync(file, "");
|
|
3852
3812
|
}
|
|
@@ -3874,8 +3834,7 @@ var require_link = __commonJS({
|
|
|
3874
3834
|
} catch (err) {
|
|
3875
3835
|
throw err.message = err.message.replace("lstat", "ensureLink"), err;
|
|
3876
3836
|
}
|
|
3877
|
-
if (dstStat && areIdentical(srcStat, dstStat))
|
|
3878
|
-
return;
|
|
3837
|
+
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
3879
3838
|
let dir = path6.dirname(dstpath);
|
|
3880
3839
|
await pathExists3(dir) || await mkdir2.mkdirs(dir), await fs7.link(srcpath, dstpath);
|
|
3881
3840
|
}
|
|
@@ -3887,8 +3846,7 @@ var require_link = __commonJS({
|
|
|
3887
3846
|
}
|
|
3888
3847
|
try {
|
|
3889
3848
|
let srcStat = fs7.lstatSync(srcpath);
|
|
3890
|
-
if (dstStat && areIdentical(srcStat, dstStat))
|
|
3891
|
-
return;
|
|
3849
|
+
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
3892
3850
|
} catch (err) {
|
|
3893
3851
|
throw err.message = err.message.replace("lstat", "ensureLink"), err;
|
|
3894
3852
|
}
|
|
@@ -3937,8 +3895,7 @@ var require_symlink_paths = __commonJS({
|
|
|
3937
3895
|
}
|
|
3938
3896
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
3939
3897
|
if (path6.isAbsolute(srcpath)) {
|
|
3940
|
-
if (!fs7.existsSync(srcpath))
|
|
3941
|
-
throw new Error("absolute srcpath does not exist");
|
|
3898
|
+
if (!fs7.existsSync(srcpath)) throw new Error("absolute srcpath does not exist");
|
|
3942
3899
|
return {
|
|
3943
3900
|
toCwd: srcpath,
|
|
3944
3901
|
toDst: srcpath
|
|
@@ -3950,8 +3907,7 @@ var require_symlink_paths = __commonJS({
|
|
|
3950
3907
|
toCwd: relativeToDst,
|
|
3951
3908
|
toDst: srcpath
|
|
3952
3909
|
};
|
|
3953
|
-
if (!fs7.existsSync(srcpath))
|
|
3954
|
-
throw new Error("relative srcpath does not exist");
|
|
3910
|
+
if (!fs7.existsSync(srcpath)) throw new Error("relative srcpath does not exist");
|
|
3955
3911
|
return {
|
|
3956
3912
|
toCwd: srcpath,
|
|
3957
3913
|
toDst: path6.relative(dstdir, srcpath)
|
|
@@ -3970,8 +3926,7 @@ var require_symlink_type = __commonJS({
|
|
|
3970
3926
|
"use strict";
|
|
3971
3927
|
var fs7 = require_fs(), u = require_universalify().fromPromise;
|
|
3972
3928
|
async function symlinkType(srcpath, type) {
|
|
3973
|
-
if (type)
|
|
3974
|
-
return type;
|
|
3929
|
+
if (type) return type;
|
|
3975
3930
|
let stats;
|
|
3976
3931
|
try {
|
|
3977
3932
|
stats = await fs7.lstat(srcpath);
|
|
@@ -3981,8 +3936,7 @@ var require_symlink_type = __commonJS({
|
|
|
3981
3936
|
return stats && stats.isDirectory() ? "dir" : "file";
|
|
3982
3937
|
}
|
|
3983
3938
|
function symlinkTypeSync(srcpath, type) {
|
|
3984
|
-
if (type)
|
|
3985
|
-
return type;
|
|
3939
|
+
if (type) return type;
|
|
3986
3940
|
let stats;
|
|
3987
3941
|
try {
|
|
3988
3942
|
stats = fs7.lstatSync(srcpath);
|
|
@@ -4014,8 +3968,7 @@ var require_symlink = __commonJS({
|
|
|
4014
3968
|
fs7.stat(srcpath),
|
|
4015
3969
|
fs7.stat(dstpath)
|
|
4016
3970
|
]);
|
|
4017
|
-
if (areIdentical(srcStat, dstStat))
|
|
4018
|
-
return;
|
|
3971
|
+
if (areIdentical(srcStat, dstStat)) return;
|
|
4019
3972
|
}
|
|
4020
3973
|
let relative = await symlinkPaths(srcpath, dstpath);
|
|
4021
3974
|
srcpath = relative.toDst;
|
|
@@ -4030,8 +3983,7 @@ var require_symlink = __commonJS({
|
|
|
4030
3983
|
}
|
|
4031
3984
|
if (stats && stats.isSymbolicLink()) {
|
|
4032
3985
|
let srcStat = fs7.statSync(srcpath), dstStat = fs7.statSync(dstpath);
|
|
4033
|
-
if (areIdentical(srcStat, dstStat))
|
|
4034
|
-
return;
|
|
3986
|
+
if (areIdentical(srcStat, dstStat)) return;
|
|
4035
3987
|
}
|
|
4036
3988
|
let relative = symlinkPathsSync(srcpath, dstpath);
|
|
4037
3989
|
srcpath = relative.toDst, type = symlinkTypeSync(relative.toCwd, type);
|
|
@@ -4271,20 +4223,17 @@ var require_move_sync = __commonJS({
|
|
|
4271
4223
|
return path6.parse(parent).root === parent;
|
|
4272
4224
|
}
|
|
4273
4225
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
4274
|
-
if (isChangingCase)
|
|
4275
|
-
return rename3(src, dest, overwrite);
|
|
4226
|
+
if (isChangingCase) return rename3(src, dest, overwrite);
|
|
4276
4227
|
if (overwrite)
|
|
4277
4228
|
return removeSync(dest), rename3(src, dest, overwrite);
|
|
4278
|
-
if (fs7.existsSync(dest))
|
|
4279
|
-
throw new Error("dest already exists.");
|
|
4229
|
+
if (fs7.existsSync(dest)) throw new Error("dest already exists.");
|
|
4280
4230
|
return rename3(src, dest, overwrite);
|
|
4281
4231
|
}
|
|
4282
4232
|
function rename3(src, dest, overwrite) {
|
|
4283
4233
|
try {
|
|
4284
4234
|
fs7.renameSync(src, dest);
|
|
4285
4235
|
} catch (err) {
|
|
4286
|
-
if (err.code !== "EXDEV")
|
|
4287
|
-
throw err;
|
|
4236
|
+
if (err.code !== "EXDEV") throw err;
|
|
4288
4237
|
return moveAcrossDevice(src, dest, overwrite);
|
|
4289
4238
|
}
|
|
4290
4239
|
}
|
|
@@ -4428,14 +4377,10 @@ var require_action = __commonJS({
|
|
|
4428
4377
|
"use strict";
|
|
4429
4378
|
module2.exports = (key) => {
|
|
4430
4379
|
if (key.ctrl) {
|
|
4431
|
-
if (key.name === "a")
|
|
4432
|
-
|
|
4433
|
-
if (key.name === "
|
|
4434
|
-
|
|
4435
|
-
if (key.name === "e")
|
|
4436
|
-
return "last";
|
|
4437
|
-
if (key.name === "g")
|
|
4438
|
-
return "reset";
|
|
4380
|
+
if (key.name === "a") return "first";
|
|
4381
|
+
if (key.name === "c" || key.name === "d") return "abort";
|
|
4382
|
+
if (key.name === "e") return "last";
|
|
4383
|
+
if (key.name === "g") return "reset";
|
|
4439
4384
|
}
|
|
4440
4385
|
return key.name === "return" || key.name === "enter" ? "submit" : key.name === "backspace" ? "delete" : key.name === "delete" ? "deleteForward" : key.name === "abort" || key.name === "escape" ? "abort" : key.name === "tab" ? "next" : key.name === "pagedown" ? "nextPage" : key.name === "pageup" ? "prevPage" : key.name === "up" ? "up" : key.name === "down" ? "down" : key.name === "right" ? "right" : key.name === "left" ? "left" : !1;
|
|
4441
4386
|
};
|
|
@@ -4503,8 +4448,7 @@ var require_clear = __commonJS({
|
|
|
4503
4448
|
"use strict";
|
|
4504
4449
|
var strip = require_strip(), _require = require_src(), erase = _require.erase, cursor = _require.cursor, width = (str) => [...strip(str)].length;
|
|
4505
4450
|
module2.exports = function(prompt, perLine = process.stdout.columns) {
|
|
4506
|
-
if (!perLine)
|
|
4507
|
-
return erase.line + cursor.to(0);
|
|
4451
|
+
if (!perLine) return erase.line + cursor.to(0);
|
|
4508
4452
|
let rows = 0, lines = prompt.split(/\r?\n/);
|
|
4509
4453
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
4510
4454
|
try {
|
|
@@ -4712,8 +4656,7 @@ var require_text = __commonJS({
|
|
|
4712
4656
|
})();
|
|
4713
4657
|
}
|
|
4714
4658
|
next() {
|
|
4715
|
-
if (!this.placeholder)
|
|
4716
|
-
return this.bell();
|
|
4659
|
+
if (!this.placeholder) return this.bell();
|
|
4717
4660
|
this.value = this.initial, this.cursor = this.rendered.length, this.fire(), this.render();
|
|
4718
4661
|
}
|
|
4719
4662
|
moveCursor(n) {
|
|
@@ -4724,14 +4667,12 @@ var require_text = __commonJS({
|
|
|
4724
4667
|
this.value = `${s1}${c}${s2}`, this.red = !1, this.cursor = this.placeholder ? 0 : s1.length + 1, this.render();
|
|
4725
4668
|
}
|
|
4726
4669
|
delete() {
|
|
4727
|
-
if (this.cursor === 0)
|
|
4728
|
-
return this.bell();
|
|
4670
|
+
if (this.cursor === 0) return this.bell();
|
|
4729
4671
|
let s1 = this.value.slice(0, this.cursor - 1), s2 = this.value.slice(this.cursor);
|
|
4730
4672
|
this.value = `${s1}${s2}`, this.red = !1, this.moveCursor(-1), this.render();
|
|
4731
4673
|
}
|
|
4732
4674
|
deleteForward() {
|
|
4733
|
-
if (this.cursor * this.scale >= this.rendered.length || this.placeholder)
|
|
4734
|
-
return this.bell();
|
|
4675
|
+
if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell();
|
|
4735
4676
|
let s1 = this.value.slice(0, this.cursor), s2 = this.value.slice(this.cursor + 1);
|
|
4736
4677
|
this.value = `${s1}${s2}`, this.red = !1, this.render();
|
|
4737
4678
|
}
|
|
@@ -4742,18 +4683,15 @@ var require_text = __commonJS({
|
|
|
4742
4683
|
this.cursor = this.value.length, this.render();
|
|
4743
4684
|
}
|
|
4744
4685
|
left() {
|
|
4745
|
-
if (this.cursor <= 0 || this.placeholder)
|
|
4746
|
-
return this.bell();
|
|
4686
|
+
if (this.cursor <= 0 || this.placeholder) return this.bell();
|
|
4747
4687
|
this.moveCursor(-1), this.render();
|
|
4748
4688
|
}
|
|
4749
4689
|
right() {
|
|
4750
|
-
if (this.cursor * this.scale >= this.rendered.length || this.placeholder)
|
|
4751
|
-
return this.bell();
|
|
4690
|
+
if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell();
|
|
4752
4691
|
this.moveCursor(1), this.render();
|
|
4753
4692
|
}
|
|
4754
4693
|
render() {
|
|
4755
|
-
if (this.closed)
|
|
4756
|
-
return;
|
|
4694
|
+
if (this.closed) return;
|
|
4757
4695
|
super.render();
|
|
4758
4696
|
let erase = (this.lines ? cursor.down(this.lines) : "") + this.clear;
|
|
4759
4697
|
this.lines = 0;
|
|
@@ -4809,21 +4747,18 @@ var require_select = __commonJS({
|
|
|
4809
4747
|
this.moveCursor(this.choices.length - 1), this.render();
|
|
4810
4748
|
}
|
|
4811
4749
|
up() {
|
|
4812
|
-
if (this.cursor === 0)
|
|
4813
|
-
return this.bell();
|
|
4750
|
+
if (this.cursor === 0) return this.bell();
|
|
4814
4751
|
this.moveCursor(this.cursor - 1), this.render();
|
|
4815
4752
|
}
|
|
4816
4753
|
down() {
|
|
4817
|
-
if (this.cursor === this.choices.length - 1)
|
|
4818
|
-
return this.bell();
|
|
4754
|
+
if (this.cursor === this.choices.length - 1) return this.bell();
|
|
4819
4755
|
this.moveCursor(this.cursor + 1), this.render();
|
|
4820
4756
|
}
|
|
4821
4757
|
next() {
|
|
4822
4758
|
this.moveCursor((this.cursor + 1) % this.choices.length), this.render();
|
|
4823
4759
|
}
|
|
4824
4760
|
_(c, key) {
|
|
4825
|
-
if (c === " ")
|
|
4826
|
-
return this.submit();
|
|
4761
|
+
if (c === " ") return this.submit();
|
|
4827
4762
|
}
|
|
4828
4763
|
get selection() {
|
|
4829
4764
|
return this.choices[this.cursor];
|
|
@@ -4861,13 +4796,11 @@ var require_toggle = __commonJS({
|
|
|
4861
4796
|
`), this.close();
|
|
4862
4797
|
}
|
|
4863
4798
|
deactivate() {
|
|
4864
|
-
if (this.value === !1)
|
|
4865
|
-
return this.bell();
|
|
4799
|
+
if (this.value === !1) return this.bell();
|
|
4866
4800
|
this.value = !1, this.render();
|
|
4867
4801
|
}
|
|
4868
4802
|
activate() {
|
|
4869
|
-
if (this.value === !0)
|
|
4870
|
-
return this.bell();
|
|
4803
|
+
if (this.value === !0) return this.bell();
|
|
4871
4804
|
this.value = !0, this.render();
|
|
4872
4805
|
}
|
|
4873
4806
|
delete() {
|
|
@@ -4895,8 +4828,7 @@ var require_toggle = __commonJS({
|
|
|
4895
4828
|
this.value = !0;
|
|
4896
4829
|
else if (c === "0")
|
|
4897
4830
|
this.value = !1;
|
|
4898
|
-
else
|
|
4899
|
-
return this.bell();
|
|
4831
|
+
else return this.bell();
|
|
4900
4832
|
this.render();
|
|
4901
4833
|
}
|
|
4902
4834
|
render() {
|
|
@@ -5292,14 +5224,12 @@ var require_date = __commonJS({
|
|
|
5292
5224
|
}
|
|
5293
5225
|
left() {
|
|
5294
5226
|
let prev = this.parts[this.cursor].prev();
|
|
5295
|
-
if (prev == null)
|
|
5296
|
-
return this.bell();
|
|
5227
|
+
if (prev == null) return this.bell();
|
|
5297
5228
|
this.moveCursor(this.parts.indexOf(prev)), this.render();
|
|
5298
5229
|
}
|
|
5299
5230
|
right() {
|
|
5300
5231
|
let next = this.parts[this.cursor].next();
|
|
5301
|
-
if (next == null)
|
|
5302
|
-
return this.bell();
|
|
5232
|
+
if (next == null) return this.bell();
|
|
5303
5233
|
this.moveCursor(this.parts.indexOf(next)), this.render();
|
|
5304
5234
|
}
|
|
5305
5235
|
next() {
|
|
@@ -5310,8 +5240,7 @@ var require_date = __commonJS({
|
|
|
5310
5240
|
/\d/.test(c) && (this.typed += c, this.parts[this.cursor].setTo(this.typed), this.render());
|
|
5311
5241
|
}
|
|
5312
5242
|
render() {
|
|
5313
|
-
if (this.closed)
|
|
5314
|
-
return;
|
|
5243
|
+
if (this.closed) return;
|
|
5315
5244
|
this.firstRender ? this.out.write(cursor.hide) : this.out.write(erase.lines(1)), super.render();
|
|
5316
5245
|
let clear2 = erase.line + (this.lines ? erase.down(this.lines) : "") + cursor.to(0);
|
|
5317
5246
|
this.lines = 0;
|
|
@@ -5405,35 +5334,29 @@ var require_number = __commonJS({
|
|
|
5405
5334
|
})();
|
|
5406
5335
|
}
|
|
5407
5336
|
up() {
|
|
5408
|
-
if (this.typed = "", this.value >= this.max)
|
|
5409
|
-
return this.bell();
|
|
5337
|
+
if (this.typed = "", this.value >= this.max) return this.bell();
|
|
5410
5338
|
this.value += this.inc, this.color = "cyan", this.fire(), this.render();
|
|
5411
5339
|
}
|
|
5412
5340
|
down() {
|
|
5413
|
-
if (this.typed = "", this.value <= this.min)
|
|
5414
|
-
return this.bell();
|
|
5341
|
+
if (this.typed = "", this.value <= this.min) return this.bell();
|
|
5415
5342
|
this.value -= this.inc, this.color = "cyan", this.fire(), this.render();
|
|
5416
5343
|
}
|
|
5417
5344
|
delete() {
|
|
5418
5345
|
let val = this.value.toString();
|
|
5419
|
-
if (val.length === 0)
|
|
5420
|
-
return this.bell();
|
|
5346
|
+
if (val.length === 0) return this.bell();
|
|
5421
5347
|
this.value = this.parse(val = val.slice(0, -1)) || "", this.color = "cyan", this.fire(), this.render();
|
|
5422
5348
|
}
|
|
5423
5349
|
next() {
|
|
5424
5350
|
this.value = this.initial, this.fire(), this.render();
|
|
5425
5351
|
}
|
|
5426
5352
|
_(c, key) {
|
|
5427
|
-
if (!this.valid(c))
|
|
5428
|
-
return this.bell();
|
|
5353
|
+
if (!this.valid(c)) return this.bell();
|
|
5429
5354
|
let now = Date.now();
|
|
5430
|
-
if (now - this.lastHit > 1e3 && (this.typed = ""), this.typed += c, this.lastHit = now, this.color = "cyan", c === ".")
|
|
5431
|
-
return this.fire();
|
|
5355
|
+
if (now - this.lastHit > 1e3 && (this.typed = ""), this.typed += c, this.lastHit = now, this.color = "cyan", c === ".") return this.fire();
|
|
5432
5356
|
this.value = Math.min(this.parse(this.typed), this.max), this.value > this.max && (this.value = this.max), this.value < this.min && (this.value = this.min), this.fire(), this.render();
|
|
5433
5357
|
}
|
|
5434
5358
|
render() {
|
|
5435
|
-
if (this.closed)
|
|
5436
|
-
return;
|
|
5359
|
+
if (this.closed) return;
|
|
5437
5360
|
super.render();
|
|
5438
5361
|
let clear2 = erase.line + (this.lines ? erase.down(this.lines) : "") + cursor.to(0);
|
|
5439
5362
|
this.lines = 0;
|
|
@@ -5502,8 +5425,7 @@ var require_multiselect = __commonJS({
|
|
|
5502
5425
|
this.value[this.cursor].selected = !1, this.render();
|
|
5503
5426
|
}
|
|
5504
5427
|
right() {
|
|
5505
|
-
if (this.value.filter((e) => e.selected).length >= this.maxChoices)
|
|
5506
|
-
return this.bell();
|
|
5428
|
+
if (this.value.filter((e) => e.selected).length >= this.maxChoices) return this.bell();
|
|
5507
5429
|
this.value[this.cursor].selected = !0, this.render();
|
|
5508
5430
|
}
|
|
5509
5431
|
handleSpaceToggle() {
|
|
@@ -5559,8 +5481,7 @@ Instructions:
|
|
|
5559
5481
|
return this.value[this.cursor].disabled && output.push(color.yellow(this.warn)), output.join(" ");
|
|
5560
5482
|
}
|
|
5561
5483
|
render() {
|
|
5562
|
-
if (this.closed)
|
|
5563
|
-
return;
|
|
5484
|
+
if (this.closed) return;
|
|
5564
5485
|
this.firstRender && this.out.write(cursor.hide), super.render();
|
|
5565
5486
|
let prompt = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(!1), this.renderDoneOrInstructions()].join(" ");
|
|
5566
5487
|
this.showMinError && (prompt += color.red(`You must select a minimum of ${this.minSelected} choices.`), this.showMinError = !1), prompt += this.renderOptions(this.value), this.out.write(this.clear + prompt), this.clear = clear(prompt);
|
|
@@ -5612,8 +5533,7 @@ var require_autocomplete = __commonJS({
|
|
|
5612
5533
|
var _this = this;
|
|
5613
5534
|
return _asyncToGenerator(function* () {
|
|
5614
5535
|
let p = _this.completing = _this.suggest(_this.input, _this.choices), suggestions = yield p;
|
|
5615
|
-
if (_this.completing !== p)
|
|
5616
|
-
return;
|
|
5536
|
+
if (_this.completing !== p) return;
|
|
5617
5537
|
if (_this.suggestions = suggestions.map((s, i, arr) => ({
|
|
5618
5538
|
title: getTitle(arr, i),
|
|
5619
5539
|
value: getVal(arr, i)
|
|
@@ -5646,14 +5566,12 @@ var require_autocomplete = __commonJS({
|
|
|
5646
5566
|
this.input = `${s1}${c}${s2}`, this.cursor = s1.length + 1, this.complete(this.render), this.render();
|
|
5647
5567
|
}
|
|
5648
5568
|
delete() {
|
|
5649
|
-
if (this.cursor === 0)
|
|
5650
|
-
return this.bell();
|
|
5569
|
+
if (this.cursor === 0) return this.bell();
|
|
5651
5570
|
let s1 = this.input.slice(0, this.cursor - 1), s2 = this.input.slice(this.cursor);
|
|
5652
5571
|
this.input = `${s1}${s2}`, this.complete(this.render), this.cursor = this.cursor - 1, this.render();
|
|
5653
5572
|
}
|
|
5654
5573
|
deleteForward() {
|
|
5655
|
-
if (this.cursor * this.scale >= this.rendered.length)
|
|
5656
|
-
return this.bell();
|
|
5574
|
+
if (this.cursor * this.scale >= this.rendered.length) return this.bell();
|
|
5657
5575
|
let s1 = this.input.slice(0, this.cursor), s2 = this.input.slice(this.cursor + 1);
|
|
5658
5576
|
this.input = `${s1}${s2}`, this.complete(this.render), this.render();
|
|
5659
5577
|
}
|
|
@@ -5664,41 +5582,34 @@ var require_autocomplete = __commonJS({
|
|
|
5664
5582
|
this.moveSelect(this.suggestions[this.page].length - 1), this.render();
|
|
5665
5583
|
}
|
|
5666
5584
|
up() {
|
|
5667
|
-
if (this.select <= 0)
|
|
5668
|
-
return this.bell();
|
|
5585
|
+
if (this.select <= 0) return this.bell();
|
|
5669
5586
|
this.moveSelect(this.select - 1), this.render();
|
|
5670
5587
|
}
|
|
5671
5588
|
down() {
|
|
5672
|
-
if (this.select >= this.suggestions[this.page].length - 1)
|
|
5673
|
-
return this.bell();
|
|
5589
|
+
if (this.select >= this.suggestions[this.page].length - 1) return this.bell();
|
|
5674
5590
|
this.moveSelect(this.select + 1), this.render();
|
|
5675
5591
|
}
|
|
5676
5592
|
next() {
|
|
5677
5593
|
this.select === this.suggestions[this.page].length - 1 ? (this.page = (this.page + 1) % this.suggestions.length, this.moveSelect(0)) : this.moveSelect(this.select + 1), this.render();
|
|
5678
5594
|
}
|
|
5679
5595
|
nextPage() {
|
|
5680
|
-
if (this.page >= this.suggestions.length - 1)
|
|
5681
|
-
return this.bell();
|
|
5596
|
+
if (this.page >= this.suggestions.length - 1) return this.bell();
|
|
5682
5597
|
this.page++, this.moveSelect(0), this.render();
|
|
5683
5598
|
}
|
|
5684
5599
|
prevPage() {
|
|
5685
|
-
if (this.page <= 0)
|
|
5686
|
-
return this.bell();
|
|
5600
|
+
if (this.page <= 0) return this.bell();
|
|
5687
5601
|
this.page--, this.moveSelect(0), this.render();
|
|
5688
5602
|
}
|
|
5689
5603
|
left() {
|
|
5690
|
-
if (this.cursor <= 0)
|
|
5691
|
-
return this.bell();
|
|
5604
|
+
if (this.cursor <= 0) return this.bell();
|
|
5692
5605
|
this.cursor = this.cursor - 1, this.render();
|
|
5693
5606
|
}
|
|
5694
5607
|
right() {
|
|
5695
|
-
if (this.cursor * this.scale >= this.rendered.length)
|
|
5696
|
-
return this.bell();
|
|
5608
|
+
if (this.cursor * this.scale >= this.rendered.length) return this.bell();
|
|
5697
5609
|
this.cursor = this.cursor + 1, this.render();
|
|
5698
5610
|
}
|
|
5699
5611
|
render() {
|
|
5700
|
-
if (this.closed)
|
|
5701
|
-
return;
|
|
5612
|
+
if (this.closed) return;
|
|
5702
5613
|
super.render(), this.lineCount && this.out.write(cursor.down(this.lineCount));
|
|
5703
5614
|
let prompt = color.bold(`${style.symbol(this.done, this.aborted)} ${this.msg} `) + `${style.delimiter(this.completing)} `, length = strip(prompt).length;
|
|
5704
5615
|
if (this.done && this.suggestions[this.page][this.select] ? prompt += `${this.suggestions[this.page][this.select].title}` : (this.rendered = `${this.transform.render(this.input)}`, length += this.rendered.length, prompt += this.rendered), !this.done) {
|
|
@@ -5748,8 +5659,7 @@ var require_autocompleteMultiselect = __commonJS({
|
|
|
5748
5659
|
this.filteredOptions[this.cursor].selected = !1, this.render();
|
|
5749
5660
|
}
|
|
5750
5661
|
right() {
|
|
5751
|
-
if (this.value.filter((e) => e.selected).length >= this.maxChoices)
|
|
5752
|
-
return this.bell();
|
|
5662
|
+
if (this.value.filter((e) => e.selected).length >= this.maxChoices) return this.bell();
|
|
5753
5663
|
this.filteredOptions[this.cursor].selected = !0, this.render();
|
|
5754
5664
|
}
|
|
5755
5665
|
delete() {
|
|
@@ -5802,8 +5712,7 @@ Filtered results for: ${this.inputValue ? this.inputValue : color.gray("Enter so
|
|
|
5802
5712
|
return this.filteredOptions.length && this.filteredOptions[this.cursor].disabled && output.push(color.yellow(this.warn)), output.join(" ");
|
|
5803
5713
|
}
|
|
5804
5714
|
render() {
|
|
5805
|
-
if (this.closed)
|
|
5806
|
-
return;
|
|
5715
|
+
if (this.closed) return;
|
|
5807
5716
|
this.firstRender && this.out.write(cursor.hide), super.render();
|
|
5808
5717
|
let prompt = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(!1), this.renderDoneOrInstructions()].join(" ");
|
|
5809
5718
|
this.showMinError && (prompt += color.red(`You must select a minimum of ${this.minSelected} choices.`), this.showMinError = !1), prompt += this.renderOptions(this.filteredOptions), this.out.write(this.clear + prompt), this.clear = clear(prompt);
|
|
@@ -5977,8 +5886,7 @@ var require_dist = __commonJS({
|
|
|
5977
5886
|
var _question = question;
|
|
5978
5887
|
name = _question.name, type = _question.type;
|
|
5979
5888
|
for (let key in question) {
|
|
5980
|
-
if (passOn.includes(key))
|
|
5981
|
-
continue;
|
|
5889
|
+
if (passOn.includes(key)) continue;
|
|
5982
5890
|
let value = question[key];
|
|
5983
5891
|
question[key] = typeof value == "function" ? yield value(answer, _objectSpread({}, answers), question) : value;
|
|
5984
5892
|
}
|
|
@@ -5997,8 +5905,7 @@ var require_dist = __commonJS({
|
|
|
5997
5905
|
} catch {
|
|
5998
5906
|
quit = !(yield onCancel(question, answers));
|
|
5999
5907
|
}
|
|
6000
|
-
if (quit)
|
|
6001
|
-
return answers;
|
|
5908
|
+
if (quit) return answers;
|
|
6002
5909
|
}
|
|
6003
5910
|
}
|
|
6004
5911
|
} catch (err) {
|
|
@@ -6041,14 +5948,10 @@ var require_action2 = __commonJS({
|
|
|
6041
5948
|
"use strict";
|
|
6042
5949
|
module2.exports = (key) => {
|
|
6043
5950
|
if (key.ctrl) {
|
|
6044
|
-
if (key.name === "a")
|
|
6045
|
-
|
|
6046
|
-
if (key.name === "
|
|
6047
|
-
|
|
6048
|
-
if (key.name === "e")
|
|
6049
|
-
return "last";
|
|
6050
|
-
if (key.name === "g")
|
|
6051
|
-
return "reset";
|
|
5951
|
+
if (key.name === "a") return "first";
|
|
5952
|
+
if (key.name === "c" || key.name === "d") return "abort";
|
|
5953
|
+
if (key.name === "e") return "last";
|
|
5954
|
+
if (key.name === "g") return "reset";
|
|
6052
5955
|
}
|
|
6053
5956
|
return key.name === "return" || key.name === "enter" ? "submit" : key.name === "backspace" ? "delete" : key.name === "delete" ? "deleteForward" : key.name === "abort" || key.name === "escape" ? "abort" : key.name === "tab" ? "next" : key.name === "pagedown" ? "nextPage" : key.name === "pageup" ? "prevPage" : key.name === "up" ? "up" : key.name === "down" ? "down" : key.name === "right" ? "right" : key.name === "left" ? "left" : !1;
|
|
6054
5957
|
};
|
|
@@ -6075,8 +5978,7 @@ var require_clear2 = __commonJS({
|
|
|
6075
5978
|
"use strict";
|
|
6076
5979
|
var strip = require_strip2(), { erase, cursor } = require_src(), width = (str) => [...strip(str)].length;
|
|
6077
5980
|
module2.exports = function(prompt, perLine = process.stdout.columns) {
|
|
6078
|
-
if (!perLine)
|
|
6079
|
-
return erase.line + cursor.to(0);
|
|
5981
|
+
if (!perLine) return erase.line + cursor.to(0);
|
|
6080
5982
|
let rows = 0, lines = prompt.split(/\r?\n/);
|
|
6081
5983
|
for (let line of lines)
|
|
6082
5984
|
rows += 1 + Math.floor(Math.max(width(line) - 1, 0) / perLine);
|
|
@@ -6227,8 +6129,7 @@ var require_text2 = __commonJS({
|
|
|
6227
6129
|
`), this.close();
|
|
6228
6130
|
}
|
|
6229
6131
|
next() {
|
|
6230
|
-
if (!this.placeholder)
|
|
6231
|
-
return this.bell();
|
|
6132
|
+
if (!this.placeholder) return this.bell();
|
|
6232
6133
|
this.value = this.initial, this.cursor = this.rendered.length, this.fire(), this.render();
|
|
6233
6134
|
}
|
|
6234
6135
|
moveCursor(n) {
|
|
@@ -6239,14 +6140,12 @@ var require_text2 = __commonJS({
|
|
|
6239
6140
|
this.value = `${s1}${c}${s2}`, this.red = !1, this.cursor = this.placeholder ? 0 : s1.length + 1, this.render();
|
|
6240
6141
|
}
|
|
6241
6142
|
delete() {
|
|
6242
|
-
if (this.cursor === 0)
|
|
6243
|
-
return this.bell();
|
|
6143
|
+
if (this.cursor === 0) return this.bell();
|
|
6244
6144
|
let s1 = this.value.slice(0, this.cursor - 1), s2 = this.value.slice(this.cursor);
|
|
6245
6145
|
this.value = `${s1}${s2}`, this.red = !1, this.moveCursor(-1), this.render();
|
|
6246
6146
|
}
|
|
6247
6147
|
deleteForward() {
|
|
6248
|
-
if (this.cursor * this.scale >= this.rendered.length || this.placeholder)
|
|
6249
|
-
return this.bell();
|
|
6148
|
+
if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell();
|
|
6250
6149
|
let s1 = this.value.slice(0, this.cursor), s2 = this.value.slice(this.cursor + 1);
|
|
6251
6150
|
this.value = `${s1}${s2}`, this.red = !1, this.render();
|
|
6252
6151
|
}
|
|
@@ -6257,18 +6156,15 @@ var require_text2 = __commonJS({
|
|
|
6257
6156
|
this.cursor = this.value.length, this.render();
|
|
6258
6157
|
}
|
|
6259
6158
|
left() {
|
|
6260
|
-
if (this.cursor <= 0 || this.placeholder)
|
|
6261
|
-
return this.bell();
|
|
6159
|
+
if (this.cursor <= 0 || this.placeholder) return this.bell();
|
|
6262
6160
|
this.moveCursor(-1), this.render();
|
|
6263
6161
|
}
|
|
6264
6162
|
right() {
|
|
6265
|
-
if (this.cursor * this.scale >= this.rendered.length || this.placeholder)
|
|
6266
|
-
return this.bell();
|
|
6163
|
+
if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell();
|
|
6267
6164
|
this.moveCursor(1), this.render();
|
|
6268
6165
|
}
|
|
6269
6166
|
render() {
|
|
6270
|
-
if (this.closed)
|
|
6271
|
-
return;
|
|
6167
|
+
if (this.closed) return;
|
|
6272
6168
|
super.render();
|
|
6273
6169
|
let erase = (this.lines ? cursor.down(this.lines) : "") + this.clear;
|
|
6274
6170
|
this.lines = 0;
|
|
@@ -6328,21 +6224,18 @@ var require_select2 = __commonJS({
|
|
|
6328
6224
|
this.moveCursor(this.choices.length - 1), this.render();
|
|
6329
6225
|
}
|
|
6330
6226
|
up() {
|
|
6331
|
-
if (this.cursor === 0)
|
|
6332
|
-
return this.bell();
|
|
6227
|
+
if (this.cursor === 0) return this.bell();
|
|
6333
6228
|
this.moveCursor(this.cursor - 1), this.render();
|
|
6334
6229
|
}
|
|
6335
6230
|
down() {
|
|
6336
|
-
if (this.cursor === this.choices.length - 1)
|
|
6337
|
-
return this.bell();
|
|
6231
|
+
if (this.cursor === this.choices.length - 1) return this.bell();
|
|
6338
6232
|
this.moveCursor(this.cursor + 1), this.render();
|
|
6339
6233
|
}
|
|
6340
6234
|
next() {
|
|
6341
6235
|
this.moveCursor((this.cursor + 1) % this.choices.length), this.render();
|
|
6342
6236
|
}
|
|
6343
6237
|
_(c, key) {
|
|
6344
|
-
if (c === " ")
|
|
6345
|
-
return this.submit();
|
|
6238
|
+
if (c === " ") return this.submit();
|
|
6346
6239
|
}
|
|
6347
6240
|
get selection() {
|
|
6348
6241
|
return this.choices[this.cursor];
|
|
@@ -6386,13 +6279,11 @@ var require_toggle2 = __commonJS({
|
|
|
6386
6279
|
`), this.close();
|
|
6387
6280
|
}
|
|
6388
6281
|
deactivate() {
|
|
6389
|
-
if (this.value === !1)
|
|
6390
|
-
return this.bell();
|
|
6282
|
+
if (this.value === !1) return this.bell();
|
|
6391
6283
|
this.value = !1, this.render();
|
|
6392
6284
|
}
|
|
6393
6285
|
activate() {
|
|
6394
|
-
if (this.value === !0)
|
|
6395
|
-
return this.bell();
|
|
6286
|
+
if (this.value === !0) return this.bell();
|
|
6396
6287
|
this.value = !0, this.render();
|
|
6397
6288
|
}
|
|
6398
6289
|
delete() {
|
|
@@ -6420,8 +6311,7 @@ var require_toggle2 = __commonJS({
|
|
|
6420
6311
|
this.value = !0;
|
|
6421
6312
|
else if (c === "0")
|
|
6422
6313
|
this.value = !1;
|
|
6423
|
-
else
|
|
6424
|
-
return this.bell();
|
|
6314
|
+
else return this.bell();
|
|
6425
6315
|
this.render();
|
|
6426
6316
|
}
|
|
6427
6317
|
render() {
|
|
@@ -6772,14 +6662,12 @@ var require_date2 = __commonJS({
|
|
|
6772
6662
|
}
|
|
6773
6663
|
left() {
|
|
6774
6664
|
let prev = this.parts[this.cursor].prev();
|
|
6775
|
-
if (prev == null)
|
|
6776
|
-
return this.bell();
|
|
6665
|
+
if (prev == null) return this.bell();
|
|
6777
6666
|
this.moveCursor(this.parts.indexOf(prev)), this.render();
|
|
6778
6667
|
}
|
|
6779
6668
|
right() {
|
|
6780
6669
|
let next = this.parts[this.cursor].next();
|
|
6781
|
-
if (next == null)
|
|
6782
|
-
return this.bell();
|
|
6670
|
+
if (next == null) return this.bell();
|
|
6783
6671
|
this.moveCursor(this.parts.indexOf(next)), this.render();
|
|
6784
6672
|
}
|
|
6785
6673
|
next() {
|
|
@@ -6790,8 +6678,7 @@ var require_date2 = __commonJS({
|
|
|
6790
6678
|
/\d/.test(c) && (this.typed += c, this.parts[this.cursor].setTo(this.typed), this.render());
|
|
6791
6679
|
}
|
|
6792
6680
|
render() {
|
|
6793
|
-
if (this.closed)
|
|
6794
|
-
return;
|
|
6681
|
+
if (this.closed) return;
|
|
6795
6682
|
this.firstRender ? this.out.write(cursor.hide) : this.out.write(erase.lines(1)), super.render();
|
|
6796
6683
|
let clear2 = erase.line + (this.lines ? erase.down(this.lines) : "") + cursor.to(0);
|
|
6797
6684
|
this.lines = 0;
|
|
@@ -6859,35 +6746,29 @@ var require_number2 = __commonJS({
|
|
|
6859
6746
|
`), this.close();
|
|
6860
6747
|
}
|
|
6861
6748
|
up() {
|
|
6862
|
-
if (this.typed = "", this.value >= this.max)
|
|
6863
|
-
return this.bell();
|
|
6749
|
+
if (this.typed = "", this.value >= this.max) return this.bell();
|
|
6864
6750
|
this.value += this.inc, this.color = "cyan", this.fire(), this.render();
|
|
6865
6751
|
}
|
|
6866
6752
|
down() {
|
|
6867
|
-
if (this.typed = "", this.value <= this.min)
|
|
6868
|
-
return this.bell();
|
|
6753
|
+
if (this.typed = "", this.value <= this.min) return this.bell();
|
|
6869
6754
|
this.value -= this.inc, this.color = "cyan", this.fire(), this.render();
|
|
6870
6755
|
}
|
|
6871
6756
|
delete() {
|
|
6872
6757
|
let val = this.value.toString();
|
|
6873
|
-
if (val.length === 0)
|
|
6874
|
-
return this.bell();
|
|
6758
|
+
if (val.length === 0) return this.bell();
|
|
6875
6759
|
this.value = this.parse(val = val.slice(0, -1)) || "", this.color = "cyan", this.fire(), this.render();
|
|
6876
6760
|
}
|
|
6877
6761
|
next() {
|
|
6878
6762
|
this.value = this.initial, this.fire(), this.render();
|
|
6879
6763
|
}
|
|
6880
6764
|
_(c, key) {
|
|
6881
|
-
if (!this.valid(c))
|
|
6882
|
-
return this.bell();
|
|
6765
|
+
if (!this.valid(c)) return this.bell();
|
|
6883
6766
|
let now = Date.now();
|
|
6884
|
-
if (now - this.lastHit > 1e3 && (this.typed = ""), this.typed += c, this.lastHit = now, this.color = "cyan", c === ".")
|
|
6885
|
-
return this.fire();
|
|
6767
|
+
if (now - this.lastHit > 1e3 && (this.typed = ""), this.typed += c, this.lastHit = now, this.color = "cyan", c === ".") return this.fire();
|
|
6886
6768
|
this.value = Math.min(this.parse(this.typed), this.max), this.value > this.max && (this.value = this.max), this.value < this.min && (this.value = this.min), this.fire(), this.render();
|
|
6887
6769
|
}
|
|
6888
6770
|
render() {
|
|
6889
|
-
if (this.closed)
|
|
6890
|
-
return;
|
|
6771
|
+
if (this.closed) return;
|
|
6891
6772
|
super.render();
|
|
6892
6773
|
let clear2 = erase.line + (this.lines ? erase.down(this.lines) : "") + cursor.to(0);
|
|
6893
6774
|
this.lines = 0;
|
|
@@ -6958,8 +6839,7 @@ var require_multiselect2 = __commonJS({
|
|
|
6958
6839
|
this.value[this.cursor].selected = !1, this.render();
|
|
6959
6840
|
}
|
|
6960
6841
|
right() {
|
|
6961
|
-
if (this.value.filter((e) => e.selected).length >= this.maxChoices)
|
|
6962
|
-
return this.bell();
|
|
6842
|
+
if (this.value.filter((e) => e.selected).length >= this.maxChoices) return this.bell();
|
|
6963
6843
|
this.value[this.cursor].selected = !0, this.render();
|
|
6964
6844
|
}
|
|
6965
6845
|
handleSpaceToggle() {
|
|
@@ -7015,8 +6895,7 @@ Instructions:
|
|
|
7015
6895
|
return this.value[this.cursor].disabled && output.push(color.yellow(this.warn)), output.join(" ");
|
|
7016
6896
|
}
|
|
7017
6897
|
render() {
|
|
7018
|
-
if (this.closed)
|
|
7019
|
-
return;
|
|
6898
|
+
if (this.closed) return;
|
|
7020
6899
|
this.firstRender && this.out.write(cursor.hide), super.render();
|
|
7021
6900
|
let prompt = [
|
|
7022
6901
|
style.symbol(this.done, this.aborted),
|
|
@@ -7047,8 +6926,7 @@ var require_autocomplete2 = __commonJS({
|
|
|
7047
6926
|
}
|
|
7048
6927
|
async complete(cb) {
|
|
7049
6928
|
let p = this.completing = this.suggest(this.input, this.choices), suggestions = await p;
|
|
7050
|
-
if (this.completing !== p)
|
|
7051
|
-
return;
|
|
6929
|
+
if (this.completing !== p) return;
|
|
7052
6930
|
if (this.suggestions = suggestions.map((s, i, arr) => ({ title: getTitle(arr, i), value: getVal(arr, i) })).reduce((arr, sug) => (arr[arr.length - 1].length < this.limit ? arr[arr.length - 1].push(sug) : arr.push([sug]), arr), [[]]), this.isFallback = !1, this.completing = !1, this.suggestions[this.page] || (this.page = 0), !this.suggestions.length && this.fallback) {
|
|
7053
6931
|
let index = getIndex(this.choices, this.fallback);
|
|
7054
6932
|
this.suggestions = [[]], index !== void 0 && this.suggestions[0].push({ title: getTitle(this.choices, index), value: getVal(this.choices, index) }), this.isFallback = !0;
|
|
@@ -7074,14 +6952,12 @@ var require_autocomplete2 = __commonJS({
|
|
|
7074
6952
|
this.input = `${s1}${c}${s2}`, this.cursor = s1.length + 1, this.complete(this.render), this.render();
|
|
7075
6953
|
}
|
|
7076
6954
|
delete() {
|
|
7077
|
-
if (this.cursor === 0)
|
|
7078
|
-
return this.bell();
|
|
6955
|
+
if (this.cursor === 0) return this.bell();
|
|
7079
6956
|
let s1 = this.input.slice(0, this.cursor - 1), s2 = this.input.slice(this.cursor);
|
|
7080
6957
|
this.input = `${s1}${s2}`, this.complete(this.render), this.cursor = this.cursor - 1, this.render();
|
|
7081
6958
|
}
|
|
7082
6959
|
deleteForward() {
|
|
7083
|
-
if (this.cursor * this.scale >= this.rendered.length)
|
|
7084
|
-
return this.bell();
|
|
6960
|
+
if (this.cursor * this.scale >= this.rendered.length) return this.bell();
|
|
7085
6961
|
let s1 = this.input.slice(0, this.cursor), s2 = this.input.slice(this.cursor + 1);
|
|
7086
6962
|
this.input = `${s1}${s2}`, this.complete(this.render), this.render();
|
|
7087
6963
|
}
|
|
@@ -7092,13 +6968,11 @@ var require_autocomplete2 = __commonJS({
|
|
|
7092
6968
|
this.moveSelect(this.suggestions[this.page].length - 1), this.render();
|
|
7093
6969
|
}
|
|
7094
6970
|
up() {
|
|
7095
|
-
if (this.select <= 0)
|
|
7096
|
-
return this.bell();
|
|
6971
|
+
if (this.select <= 0) return this.bell();
|
|
7097
6972
|
this.moveSelect(this.select - 1), this.render();
|
|
7098
6973
|
}
|
|
7099
6974
|
down() {
|
|
7100
|
-
if (this.select >= this.suggestions[this.page].length - 1)
|
|
7101
|
-
return this.bell();
|
|
6975
|
+
if (this.select >= this.suggestions[this.page].length - 1) return this.bell();
|
|
7102
6976
|
this.moveSelect(this.select + 1), this.render();
|
|
7103
6977
|
}
|
|
7104
6978
|
next() {
|
|
@@ -7115,18 +6989,15 @@ var require_autocomplete2 = __commonJS({
|
|
|
7115
6989
|
this.page--, this.moveSelect(0), this.render();
|
|
7116
6990
|
}
|
|
7117
6991
|
left() {
|
|
7118
|
-
if (this.cursor <= 0)
|
|
7119
|
-
return this.bell();
|
|
6992
|
+
if (this.cursor <= 0) return this.bell();
|
|
7120
6993
|
this.cursor = this.cursor - 1, this.render();
|
|
7121
6994
|
}
|
|
7122
6995
|
right() {
|
|
7123
|
-
if (this.cursor * this.scale >= this.rendered.length)
|
|
7124
|
-
return this.bell();
|
|
6996
|
+
if (this.cursor * this.scale >= this.rendered.length) return this.bell();
|
|
7125
6997
|
this.cursor = this.cursor + 1, this.render();
|
|
7126
6998
|
}
|
|
7127
6999
|
render() {
|
|
7128
|
-
if (this.closed)
|
|
7129
|
-
return;
|
|
7000
|
+
if (this.closed) return;
|
|
7130
7001
|
super.render(), this.lineCount && this.out.write(cursor.down(this.lineCount));
|
|
7131
7002
|
let prompt = color.bold(`${style.symbol(this.done, this.aborted)} ${this.msg} `) + `${style.delimiter(this.completing)} `, length = strip(prompt).length;
|
|
7132
7003
|
if (this.done && this.suggestions[this.page][this.select] ? prompt += `${this.suggestions[this.page][this.select].title}` : (this.rendered = `${this.transform.render(this.input)}`, length += this.rendered.length, prompt += this.rendered), !this.done) {
|
|
@@ -7176,8 +7047,7 @@ var require_autocompleteMultiselect2 = __commonJS({
|
|
|
7176
7047
|
this.filteredOptions[this.cursor].selected = !1, this.render();
|
|
7177
7048
|
}
|
|
7178
7049
|
right() {
|
|
7179
|
-
if (this.value.filter((e) => e.selected).length >= this.maxChoices)
|
|
7180
|
-
return this.bell();
|
|
7050
|
+
if (this.value.filter((e) => e.selected).length >= this.maxChoices) return this.bell();
|
|
7181
7051
|
this.filteredOptions[this.cursor].selected = !0, this.render();
|
|
7182
7052
|
}
|
|
7183
7053
|
delete() {
|
|
@@ -7230,8 +7100,7 @@ Filtered results for: ${this.inputValue ? this.inputValue : color.gray("Enter so
|
|
|
7230
7100
|
return this.filteredOptions.length && this.filteredOptions[this.cursor].disabled && output.push(color.yellow(this.warn)), output.join(" ");
|
|
7231
7101
|
}
|
|
7232
7102
|
render() {
|
|
7233
|
-
if (this.closed)
|
|
7234
|
-
return;
|
|
7103
|
+
if (this.closed) return;
|
|
7235
7104
|
this.firstRender && this.out.write(cursor.hide), super.render();
|
|
7236
7105
|
let prompt = [
|
|
7237
7106
|
style.symbol(this.done, this.aborted),
|
|
@@ -7364,8 +7233,7 @@ var require_lib2 = __commonJS({
|
|
|
7364
7233
|
for (question of questions) {
|
|
7365
7234
|
({ name, type } = question);
|
|
7366
7235
|
for (let key in question) {
|
|
7367
|
-
if (passOn.includes(key))
|
|
7368
|
-
continue;
|
|
7236
|
+
if (passOn.includes(key)) continue;
|
|
7369
7237
|
let value = question[key];
|
|
7370
7238
|
question[key] = typeof value == "function" ? await value(answer, { ...answers }, question) : value;
|
|
7371
7239
|
}
|
|
@@ -7383,8 +7251,7 @@ var require_lib2 = __commonJS({
|
|
|
7383
7251
|
} catch {
|
|
7384
7252
|
quit = !await onCancel(question, answers);
|
|
7385
7253
|
}
|
|
7386
|
-
if (quit)
|
|
7387
|
-
return answers;
|
|
7254
|
+
if (quit) return answers;
|
|
7388
7255
|
}
|
|
7389
7256
|
}
|
|
7390
7257
|
return answers;
|
|
@@ -7412,10 +7279,8 @@ var require_prompts3 = __commonJS({
|
|
|
7412
7279
|
tar = (Array.isArray(tar) ? tar : tar.split(".")).map(Number);
|
|
7413
7280
|
let i = 0, src = process.versions.node.split(".").map(Number);
|
|
7414
7281
|
for (; i < tar.length; i++) {
|
|
7415
|
-
if (src[i] > tar[i])
|
|
7416
|
-
|
|
7417
|
-
if (tar[i] > src[i])
|
|
7418
|
-
return !0;
|
|
7282
|
+
if (src[i] > tar[i]) return !1;
|
|
7283
|
+
if (tar[i] > src[i]) return !0;
|
|
7419
7284
|
}
|
|
7420
7285
|
return !1;
|
|
7421
7286
|
}
|
|
@@ -7652,8 +7517,7 @@ var require_map_stream = __commonJS({
|
|
|
7652
7517
|
});
|
|
7653
7518
|
}
|
|
7654
7519
|
stream2.write = function(data) {
|
|
7655
|
-
if (ended)
|
|
7656
|
-
throw new Error("map stream is not writable");
|
|
7520
|
+
if (ended) throw new Error("map stream is not writable");
|
|
7657
7521
|
inNext = !1, inputs++;
|
|
7658
7522
|
try {
|
|
7659
7523
|
var written = wrappedMapper(data, inputs, next);
|
|
@@ -8134,8 +7998,7 @@ var require_is_extglob = __commonJS({
|
|
|
8134
7998
|
if (typeof str != "string" || str === "")
|
|
8135
7999
|
return !1;
|
|
8136
8000
|
for (var match2; match2 = /(\\).|([@?!+*]\(.*\))/g.exec(str); ) {
|
|
8137
|
-
if (match2[2])
|
|
8138
|
-
return !0;
|
|
8001
|
+
if (match2[2]) return !0;
|
|
8139
8002
|
str = str.slice(match2.index + match2[0].length);
|
|
8140
8003
|
}
|
|
8141
8004
|
return !1;
|
|
@@ -8346,8 +8209,7 @@ var require_to_regex_range = __commonJS({
|
|
|
8346
8209
|
}
|
|
8347
8210
|
function zip(a, b) {
|
|
8348
8211
|
let arr = [];
|
|
8349
|
-
for (let i = 0; i < a.length; i++)
|
|
8350
|
-
arr.push([a[i], b[i]]);
|
|
8212
|
+
for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
|
|
8351
8213
|
return arr;
|
|
8352
8214
|
}
|
|
8353
8215
|
function compare(a, b) {
|
|
@@ -8399,10 +8261,8 @@ var require_fill_range = __commonJS({
|
|
|
8399
8261
|
"use strict";
|
|
8400
8262
|
var util = require("util"), toRegexRange = require_to_regex_range(), isObject = (val) => val !== null && typeof val == "object" && !Array.isArray(val), transform = (toNumber) => (value) => toNumber === !0 ? Number(value) : String(value), isValidValue = (value) => typeof value == "number" || typeof value == "string" && value !== "", isNumber = (num) => Number.isInteger(+num), zeros = (input) => {
|
|
8401
8263
|
let value = `${input}`, index = -1;
|
|
8402
|
-
if (value[0] === "-" && (value = value.slice(1)), value === "0")
|
|
8403
|
-
|
|
8404
|
-
for (; value[++index] === "0"; )
|
|
8405
|
-
;
|
|
8264
|
+
if (value[0] === "-" && (value = value.slice(1)), value === "0") return !1;
|
|
8265
|
+
for (; value[++index] === "0"; ) ;
|
|
8406
8266
|
return index > 0;
|
|
8407
8267
|
}, stringify = (start, end, options) => typeof start == "string" || typeof end == "string" ? !0 : options.stringify === !0, pad = (input, maxLength, toNumber) => {
|
|
8408
8268
|
if (maxLength > 0) {
|
|
@@ -8412,8 +8272,7 @@ var require_fill_range = __commonJS({
|
|
|
8412
8272
|
return toNumber === !1 ? String(input) : input;
|
|
8413
8273
|
}, toMaxLen = (input, maxLength) => {
|
|
8414
8274
|
let negative = input[0] === "-" ? "-" : "";
|
|
8415
|
-
for (negative && (input = input.slice(1), maxLength--); input.length < maxLength; )
|
|
8416
|
-
input = "0" + input;
|
|
8275
|
+
for (negative && (input = input.slice(1), maxLength--); input.length < maxLength; ) input = "0" + input;
|
|
8417
8276
|
return negative ? "-" + input : input;
|
|
8418
8277
|
}, toSequence = (parts, options) => {
|
|
8419
8278
|
parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0), parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
@@ -8423,8 +8282,7 @@ var require_fill_range = __commonJS({
|
|
|
8423
8282
|
if (isNumbers)
|
|
8424
8283
|
return toRegexRange(a, b, { wrap: !1, ...options });
|
|
8425
8284
|
let start = String.fromCharCode(a);
|
|
8426
|
-
if (a === b)
|
|
8427
|
-
return start;
|
|
8285
|
+
if (a === b) return start;
|
|
8428
8286
|
let stop = String.fromCharCode(b);
|
|
8429
8287
|
return `[${start}-${stop}]`;
|
|
8430
8288
|
}, toRegex = (start, end, options) => {
|
|
@@ -8434,8 +8292,7 @@ var require_fill_range = __commonJS({
|
|
|
8434
8292
|
}
|
|
8435
8293
|
return toRegexRange(start, end, options);
|
|
8436
8294
|
}, rangeError = (...args) => new RangeError("Invalid range arguments: " + util.inspect(...args)), invalidRange = (start, end, options) => {
|
|
8437
|
-
if (options.strictRanges === !0)
|
|
8438
|
-
throw rangeError([start, end]);
|
|
8295
|
+
if (options.strictRanges === !0) throw rangeError([start, end]);
|
|
8439
8296
|
return [];
|
|
8440
8297
|
}, invalidStep = (step, options) => {
|
|
8441
8298
|
if (options.strictRanges === !0)
|
|
@@ -8444,8 +8301,7 @@ var require_fill_range = __commonJS({
|
|
|
8444
8301
|
}, fillNumbers = (start, end, step = 1, options = {}) => {
|
|
8445
8302
|
let a = Number(start), b = Number(end);
|
|
8446
8303
|
if (!Number.isInteger(a) || !Number.isInteger(b)) {
|
|
8447
|
-
if (options.strictRanges === !0)
|
|
8448
|
-
throw rangeError([start, end]);
|
|
8304
|
+
if (options.strictRanges === !0) throw rangeError([start, end]);
|
|
8449
8305
|
return [];
|
|
8450
8306
|
}
|
|
8451
8307
|
a === 0 && (a = 0), b === 0 && (b = 0);
|
|
@@ -8523,8 +8379,7 @@ var require_expand = __commonJS({
|
|
|
8523
8379
|
"use strict";
|
|
8524
8380
|
var fill = require_fill_range(), stringify = require_stringify(), utils = require_utils3(), append = (queue = "", stash = "", enclose = !1) => {
|
|
8525
8381
|
let result = [];
|
|
8526
|
-
if (queue = [].concat(queue), stash = [].concat(stash), !stash.length)
|
|
8527
|
-
return queue;
|
|
8382
|
+
if (queue = [].concat(queue), stash = [].concat(stash), !stash.length) return queue;
|
|
8528
8383
|
if (!queue.length)
|
|
8529
8384
|
return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
|
|
8530
8385
|
for (let item of queue)
|
|
@@ -9177,8 +9032,7 @@ var require_scan = __commonJS({
|
|
|
9177
9032
|
break;
|
|
9178
9033
|
}
|
|
9179
9034
|
if (code === CHAR_FORWARD_SLASH) {
|
|
9180
|
-
if (slashes.push(index), tokens.push(token), token = { value: "", depth: 0, isGlob: !1 }, finished === !0)
|
|
9181
|
-
continue;
|
|
9035
|
+
if (slashes.push(index), tokens.push(token), token = { value: "", depth: 0, isGlob: !1 }, finished === !0) continue;
|
|
9182
9036
|
if (prev === CHAR_DOT && index === start + 1) {
|
|
9183
9037
|
start += 2;
|
|
9184
9038
|
continue;
|
|
@@ -9666,18 +9520,15 @@ var require_parse3 = __commonJS({
|
|
|
9666
9520
|
(state.index === state.start || prev.type === "slash" || prev.type === "dot") && (prev.type === "dot" ? (state.output += NO_DOT_SLASH, prev.output += NO_DOT_SLASH) : opts.dot === !0 ? (state.output += NO_DOTS_SLASH, prev.output += NO_DOTS_SLASH) : (state.output += nodot, prev.output += nodot), peek() !== "*" && (state.output += ONE_CHAR, prev.output += ONE_CHAR)), push(token);
|
|
9667
9521
|
}
|
|
9668
9522
|
for (; state.brackets > 0; ) {
|
|
9669
|
-
if (opts.strictBrackets === !0)
|
|
9670
|
-
throw new SyntaxError(syntaxError("closing", "]"));
|
|
9523
|
+
if (opts.strictBrackets === !0) throw new SyntaxError(syntaxError("closing", "]"));
|
|
9671
9524
|
state.output = utils.escapeLast(state.output, "["), decrement("brackets");
|
|
9672
9525
|
}
|
|
9673
9526
|
for (; state.parens > 0; ) {
|
|
9674
|
-
if (opts.strictBrackets === !0)
|
|
9675
|
-
throw new SyntaxError(syntaxError("closing", ")"));
|
|
9527
|
+
if (opts.strictBrackets === !0) throw new SyntaxError(syntaxError("closing", ")"));
|
|
9676
9528
|
state.output = utils.escapeLast(state.output, "("), decrement("parens");
|
|
9677
9529
|
}
|
|
9678
9530
|
for (; state.braces > 0; ) {
|
|
9679
|
-
if (opts.strictBrackets === !0)
|
|
9680
|
-
throw new SyntaxError(syntaxError("closing", "}"));
|
|
9531
|
+
if (opts.strictBrackets === !0) throw new SyntaxError(syntaxError("closing", "}"));
|
|
9681
9532
|
state.output = utils.escapeLast(state.output, "{"), decrement("braces");
|
|
9682
9533
|
}
|
|
9683
9534
|
if (opts.strictSlashes !== !0 && (prev.type === "star" || prev.type === "bracket") && push({ type: "maybe_slash", value: "", output: `${SLASH_LITERAL}?` }), state.backtrack === !0) {
|
|
@@ -9724,8 +9575,7 @@ var require_parse3 = __commonJS({
|
|
|
9724
9575
|
return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star3}`;
|
|
9725
9576
|
default: {
|
|
9726
9577
|
let match2 = /^(.*?)\.(\w+)$/.exec(str);
|
|
9727
|
-
if (!match2)
|
|
9728
|
-
return;
|
|
9578
|
+
if (!match2) return;
|
|
9729
9579
|
let source2 = create(match2[1]);
|
|
9730
9580
|
return source2 ? source2 + DOT_LITERAL + match2[2] : void 0;
|
|
9731
9581
|
}
|
|
@@ -9747,8 +9597,7 @@ var require_picomatch = __commonJS({
|
|
|
9747
9597
|
return (str) => {
|
|
9748
9598
|
for (let isMatch of fns) {
|
|
9749
9599
|
let state2 = isMatch(str);
|
|
9750
|
-
if (state2)
|
|
9751
|
-
return state2;
|
|
9600
|
+
if (state2) return state2;
|
|
9752
9601
|
}
|
|
9753
9602
|
return !1;
|
|
9754
9603
|
};
|
|
@@ -9800,8 +9649,7 @@ var require_picomatch = __commonJS({
|
|
|
9800
9649
|
let opts = options || {};
|
|
9801
9650
|
return new RegExp(source, opts.flags || (opts.nocase ? "i" : ""));
|
|
9802
9651
|
} catch (err) {
|
|
9803
|
-
if (options && options.debug === !0)
|
|
9804
|
-
throw err;
|
|
9652
|
+
if (options && options.debug === !0) throw err;
|
|
9805
9653
|
return /$^/;
|
|
9806
9654
|
}
|
|
9807
9655
|
};
|
|
@@ -9874,8 +9722,7 @@ var require_micromatch = __commonJS({
|
|
|
9874
9722
|
if (!utils.isObject(obj))
|
|
9875
9723
|
throw new TypeError("Expected the first argument to be an object");
|
|
9876
9724
|
let keys = micromatch(Object.keys(obj), patterns, options), res = {};
|
|
9877
|
-
for (let key of keys)
|
|
9878
|
-
res[key] = obj[key];
|
|
9725
|
+
for (let key of keys) res[key] = obj[key];
|
|
9879
9726
|
return res;
|
|
9880
9727
|
};
|
|
9881
9728
|
micromatch.some = (list, patterns, options) => {
|
|
@@ -9916,13 +9763,11 @@ var require_micromatch = __commonJS({
|
|
|
9916
9763
|
return res;
|
|
9917
9764
|
};
|
|
9918
9765
|
micromatch.braces = (pattern, options) => {
|
|
9919
|
-
if (typeof pattern != "string")
|
|
9920
|
-
throw new TypeError("Expected a string");
|
|
9766
|
+
if (typeof pattern != "string") throw new TypeError("Expected a string");
|
|
9921
9767
|
return options && options.nobrace === !0 || !/\{.*\}/.test(pattern) ? [pattern] : braces(pattern, options);
|
|
9922
9768
|
};
|
|
9923
9769
|
micromatch.braceExpand = (pattern, options) => {
|
|
9924
|
-
if (typeof pattern != "string")
|
|
9925
|
-
throw new TypeError("Expected a string");
|
|
9770
|
+
if (typeof pattern != "string") throw new TypeError("Expected a string");
|
|
9926
9771
|
return micromatch.braces(pattern, { ...options, expand: !0 });
|
|
9927
9772
|
};
|
|
9928
9773
|
module2.exports = micromatch;
|
|
@@ -13271,8 +13116,7 @@ ${ctx.indent}`;
|
|
|
13271
13116
|
hasPropsLine || (ws = `
|
|
13272
13117
|
${ctx.indent}`);
|
|
13273
13118
|
}
|
|
13274
|
-
} else
|
|
13275
|
-
(valueStr === "" || valueStr[0] === `
|
|
13119
|
+
} else (valueStr === "" || valueStr[0] === `
|
|
13276
13120
|
`) && (ws = "");
|
|
13277
13121
|
return str += ws + valueStr, ctx.inFlow ? valueCommentDone && onComment && onComment() : valueComment && !valueCommentDone ? str += stringifyComment.lineComment(str, ctx.indent, commentString(valueComment)) : chompKeep && onChompKeep && onChompKeep(), str;
|
|
13278
13122
|
}
|
|
@@ -14478,8 +14322,7 @@ var require_tags = __commonJS({
|
|
|
14478
14322
|
if (Array.isArray(customTags))
|
|
14479
14323
|
for (let tag of customTags)
|
|
14480
14324
|
tags = tags.concat(tag);
|
|
14481
|
-
else
|
|
14482
|
-
typeof customTags == "function" && (tags = customTags(tags.slice()));
|
|
14325
|
+
else typeof customTags == "function" && (tags = customTags(tags.slice()));
|
|
14483
14326
|
return tags.map((tag) => {
|
|
14484
14327
|
if (typeof tag != "string")
|
|
14485
14328
|
return tag;
|
|
@@ -14627,8 +14470,7 @@ var require_Document = __commonJS({
|
|
|
14627
14470
|
else if (Array.isArray(replacer)) {
|
|
14628
14471
|
let keyToStr = (v) => typeof v == "number" || v instanceof String || v instanceof Number, asStr = replacer.filter(keyToStr).map(String);
|
|
14629
14472
|
asStr.length > 0 && (replacer = replacer.concat(asStr)), _replacer = replacer;
|
|
14630
|
-
} else
|
|
14631
|
-
options === void 0 && replacer && (options = replacer, replacer = void 0);
|
|
14473
|
+
} else options === void 0 && replacer && (options = replacer, replacer = void 0);
|
|
14632
14474
|
let { aliasDuplicateObjects, anchorPrefix, flow, keepUndefined, onTagObj, tag } = options ?? {}, { onAnchor, setAnchors, sourceObjects } = anchors.createNodeAnchors(
|
|
14633
14475
|
this,
|
|
14634
14476
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
@@ -14989,8 +14831,7 @@ var require_resolve_block_map = __commonJS({
|
|
|
14989
14831
|
continue;
|
|
14990
14832
|
}
|
|
14991
14833
|
(keyProps.hasNewlineAfterProp || utilContainsNewline.containsNewline(key)) && onError(key ?? start[start.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
14992
|
-
} else
|
|
14993
|
-
keyProps.found?.indent !== bm.indent && onError(offset, "BAD_INDENT", startColMsg);
|
|
14834
|
+
} else keyProps.found?.indent !== bm.indent && onError(offset, "BAD_INDENT", startColMsg);
|
|
14994
14835
|
let keyStart = keyProps.end, keyNode = key ? composeNode(ctx, key, keyProps, onError) : composeEmptyNode(ctx, keyStart, start, null, keyProps, onError);
|
|
14995
14836
|
ctx.schema.compat && utilFlowIndentCheck.flowIndentCheck(bm.indent, key, onError), utilMapIncludes.mapIncludes(ctx, map.items, keyNode) && onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
|
14996
14837
|
let valueProps = resolveProps.resolveProps(sep2 ?? [], {
|
|
@@ -15124,18 +14965,17 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
15124
14965
|
props.comma && onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
|
|
15125
14966
|
else if (props.comma || onError(props.start, "MISSING_CHAR", `Missing , between ${fcName} items`), props.comment) {
|
|
15126
14967
|
let prevItemComment = "";
|
|
15127
|
-
loop:
|
|
15128
|
-
|
|
15129
|
-
|
|
15130
|
-
|
|
15131
|
-
|
|
15132
|
-
|
|
15133
|
-
|
|
15134
|
-
|
|
15135
|
-
|
|
15136
|
-
|
|
15137
|
-
|
|
15138
|
-
}
|
|
14968
|
+
loop: for (let st of start)
|
|
14969
|
+
switch (st.type) {
|
|
14970
|
+
case "comma":
|
|
14971
|
+
case "space":
|
|
14972
|
+
break;
|
|
14973
|
+
case "comment":
|
|
14974
|
+
prevItemComment = st.source.substring(1);
|
|
14975
|
+
break loop;
|
|
14976
|
+
default:
|
|
14977
|
+
break loop;
|
|
14978
|
+
}
|
|
15139
14979
|
if (prevItemComment) {
|
|
15140
14980
|
let prev = coll.items[coll.items.length - 1];
|
|
15141
14981
|
identity.isPair(prev) && (prev = prev.value ?? prev.key), prev.comment ? prev.comment += `
|
|
@@ -15169,8 +15009,7 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
15169
15009
|
}
|
|
15170
15010
|
props.start < valueProps.found.offset - 1024 && onError(valueProps.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
|
|
15171
15011
|
}
|
|
15172
|
-
} else
|
|
15173
|
-
value && ("source" in value && value.source && value.source[0] === ":" ? onError(value, "MISSING_CHAR", `Missing space after : in ${fcName}`) : onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`));
|
|
15012
|
+
} else value && ("source" in value && value.source && value.source[0] === ":" ? onError(value, "MISSING_CHAR", `Missing space after : in ${fcName}`) : onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`));
|
|
15174
15013
|
let valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep2, null, valueProps, onError) : null;
|
|
15175
15014
|
valueNode ? isBlock(value) && onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg) : valueProps.comment && (keyNode.comment ? keyNode.comment += `
|
|
15176
15015
|
` + valueProps.comment : keyNode.comment = valueProps.comment);
|
|
@@ -16463,27 +16302,26 @@ var require_lexer = __commonJS({
|
|
|
16463
16302
|
}
|
|
16464
16303
|
*parseBlockScalar() {
|
|
16465
16304
|
let nl = this.pos - 1, indent = 0, ch;
|
|
16466
|
-
loop:
|
|
16467
|
-
|
|
16468
|
-
|
|
16469
|
-
|
|
16470
|
-
|
|
16471
|
-
|
|
16472
|
-
case `
|
|
16305
|
+
loop: for (let i = this.pos; ch = this.buffer[i]; ++i)
|
|
16306
|
+
switch (ch) {
|
|
16307
|
+
case " ":
|
|
16308
|
+
indent += 1;
|
|
16309
|
+
break;
|
|
16310
|
+
case `
|
|
16473
16311
|
`:
|
|
16474
|
-
|
|
16475
|
-
|
|
16476
|
-
|
|
16477
|
-
|
|
16478
|
-
|
|
16479
|
-
|
|
16480
|
-
|
|
16312
|
+
nl = i, indent = 0;
|
|
16313
|
+
break;
|
|
16314
|
+
case "\r": {
|
|
16315
|
+
let next = this.buffer[i + 1];
|
|
16316
|
+
if (!next && !this.atEnd)
|
|
16317
|
+
return this.setNext("block-scalar");
|
|
16318
|
+
if (next === `
|
|
16481
16319
|
`)
|
|
16482
|
-
|
|
16483
|
-
}
|
|
16484
|
-
default:
|
|
16485
|
-
break loop;
|
|
16320
|
+
break;
|
|
16486
16321
|
}
|
|
16322
|
+
default:
|
|
16323
|
+
break loop;
|
|
16324
|
+
}
|
|
16487
16325
|
if (!ch && !this.atEnd)
|
|
16488
16326
|
return this.setNext("block-scalar");
|
|
16489
16327
|
if (indent >= this.indentNext) {
|
|
@@ -16688,16 +16526,15 @@ var require_parser = __commonJS({
|
|
|
16688
16526
|
if (prev.length === 0)
|
|
16689
16527
|
return [];
|
|
16690
16528
|
let i = prev.length;
|
|
16691
|
-
loop:
|
|
16692
|
-
|
|
16693
|
-
|
|
16694
|
-
|
|
16695
|
-
|
|
16696
|
-
|
|
16697
|
-
|
|
16698
|
-
|
|
16699
|
-
|
|
16700
|
-
}
|
|
16529
|
+
loop: for (; --i >= 0; )
|
|
16530
|
+
switch (prev[i].type) {
|
|
16531
|
+
case "doc-start":
|
|
16532
|
+
case "explicit-key-ind":
|
|
16533
|
+
case "map-value-ind":
|
|
16534
|
+
case "seq-item-ind":
|
|
16535
|
+
case "newline":
|
|
16536
|
+
break loop;
|
|
16537
|
+
}
|
|
16701
16538
|
for (; prev[++i]?.type === "space"; )
|
|
16702
16539
|
;
|
|
16703
16540
|
return prev.splice(i, prev.length);
|
|
@@ -16960,8 +16797,7 @@ var require_parser = __commonJS({
|
|
|
16960
16797
|
if (this.onKeyLine = !1, it.value) {
|
|
16961
16798
|
let end = "end" in it.value ? it.value.end : void 0;
|
|
16962
16799
|
(Array.isArray(end) ? end[end.length - 1] : void 0)?.type === "comment" ? end?.push(this.sourceToken) : map.items.push({ start: [this.sourceToken] });
|
|
16963
|
-
} else
|
|
16964
|
-
it.sep ? it.sep.push(this.sourceToken) : it.start.push(this.sourceToken);
|
|
16800
|
+
} else it.sep ? it.sep.push(this.sourceToken) : it.start.push(this.sourceToken);
|
|
16965
16801
|
return;
|
|
16966
16802
|
case "space":
|
|
16967
16803
|
case "comment":
|
|
@@ -17035,8 +16871,7 @@ var require_parser = __commonJS({
|
|
|
17035
16871
|
indent: this.indent,
|
|
17036
16872
|
items: [{ start: start2, key, sep: sep2 }]
|
|
17037
16873
|
});
|
|
17038
|
-
} else
|
|
17039
|
-
start.length > 0 ? it.sep = it.sep.concat(start, this.sourceToken) : it.sep.push(this.sourceToken);
|
|
16874
|
+
} else start.length > 0 ? it.sep = it.sep.concat(start, this.sourceToken) : it.sep.push(this.sourceToken);
|
|
17040
16875
|
else if (includesToken(it.start, "newline"))
|
|
17041
16876
|
Object.assign(it, { key: null, sep: [this.sourceToken] });
|
|
17042
16877
|
else {
|
|
@@ -17454,8 +17289,7 @@ var require_brace_expansion = __commonJS({
|
|
|
17454
17289
|
}
|
|
17455
17290
|
function expand2(str, isTop) {
|
|
17456
17291
|
var expansions = [], m = balanced("{", "}", str);
|
|
17457
|
-
if (!m)
|
|
17458
|
-
return [str];
|
|
17292
|
+
if (!m) return [str];
|
|
17459
17293
|
var pre = m.pre, post = m.post.length ? expand2(m.post, !1) : [""];
|
|
17460
17294
|
if (/\$$/.test(m.pre))
|
|
17461
17295
|
for (var k = 0; k < post.length; k++) {
|
|
@@ -17919,17 +17753,13 @@ var require_sudo_prompt = __commonJS({
|
|
|
17919
17753
|
};
|
|
17920
17754
|
function Attempt(instance, end) {
|
|
17921
17755
|
var platform = Node.process.platform;
|
|
17922
|
-
if (platform === "darwin")
|
|
17923
|
-
|
|
17924
|
-
if (platform === "
|
|
17925
|
-
return Linux(instance, end);
|
|
17926
|
-
if (platform === "win32")
|
|
17927
|
-
return Windows(instance, end);
|
|
17756
|
+
if (platform === "darwin") return Mac(instance, end);
|
|
17757
|
+
if (platform === "linux") return Linux(instance, end);
|
|
17758
|
+
if (platform === "win32") return Windows(instance, end);
|
|
17928
17759
|
end(new Error("Platform not yet supported."));
|
|
17929
17760
|
}
|
|
17930
17761
|
function EscapeDoubleQuotes(string) {
|
|
17931
|
-
if (typeof string != "string")
|
|
17932
|
-
throw new Error("Expected a string.");
|
|
17762
|
+
if (typeof string != "string") throw new Error("Expected a string.");
|
|
17933
17763
|
return string.replace(/"/g, '\\"');
|
|
17934
17764
|
}
|
|
17935
17765
|
function Exec() {
|
|
@@ -18014,8 +17844,7 @@ var require_sudo_prompt = __commonJS({
|
|
|
18014
17844
|
LinuxBinary(
|
|
18015
17845
|
instance,
|
|
18016
17846
|
function(error, binary) {
|
|
18017
|
-
if (error)
|
|
18018
|
-
return end(error);
|
|
17847
|
+
if (error) return end(error);
|
|
18019
17848
|
var command = [];
|
|
18020
17849
|
command.push('cd "' + EscapeDoubleQuotes(Node.process.cwd()) + '";');
|
|
18021
17850
|
for (var key in instance.options.env) {
|
|
@@ -18051,8 +17880,7 @@ var require_sudo_prompt = __commonJS({
|
|
|
18051
17880
|
path6,
|
|
18052
17881
|
function(error) {
|
|
18053
17882
|
if (error) {
|
|
18054
|
-
if (error.code === "ENOTDIR" || error.code === "ENOENT")
|
|
18055
|
-
return test();
|
|
17883
|
+
if (error.code === "ENOTDIR" || error.code === "ENOENT") return test();
|
|
18056
17884
|
end(error);
|
|
18057
17885
|
} else
|
|
18058
17886
|
end(void 0, path6);
|
|
@@ -18063,16 +17891,13 @@ var require_sudo_prompt = __commonJS({
|
|
|
18063
17891
|
}
|
|
18064
17892
|
function Mac(instance, callback) {
|
|
18065
17893
|
var temp = Node.os.tmpdir();
|
|
18066
|
-
if (!temp)
|
|
18067
|
-
return callback(new Error("os.tmpdir() not defined."));
|
|
17894
|
+
if (!temp) return callback(new Error("os.tmpdir() not defined."));
|
|
18068
17895
|
var user = Node.process.env.USER;
|
|
18069
|
-
if (!user)
|
|
18070
|
-
return callback(new Error("env['USER'] not defined."));
|
|
17896
|
+
if (!user) return callback(new Error("env['USER'] not defined."));
|
|
18071
17897
|
UUID(
|
|
18072
17898
|
instance,
|
|
18073
17899
|
function(error, uuid) {
|
|
18074
|
-
if (error)
|
|
18075
|
-
return callback(error);
|
|
17900
|
+
if (error) return callback(error);
|
|
18076
17901
|
instance.uuid = uuid, instance.path = Node.path.join(
|
|
18077
17902
|
temp,
|
|
18078
17903
|
instance.uuid,
|
|
@@ -18082,10 +17907,8 @@ var require_sudo_prompt = __commonJS({
|
|
|
18082
17907
|
Remove(
|
|
18083
17908
|
Node.path.dirname(instance.path),
|
|
18084
17909
|
function(errorRemove) {
|
|
18085
|
-
if (error2)
|
|
18086
|
-
|
|
18087
|
-
if (errorRemove)
|
|
18088
|
-
return callback(errorRemove);
|
|
17910
|
+
if (error2) return callback(error2);
|
|
17911
|
+
if (errorRemove) return callback(errorRemove);
|
|
18089
17912
|
callback(void 0, stdout, stderr);
|
|
18090
17913
|
}
|
|
18091
17914
|
);
|
|
@@ -18093,28 +17916,23 @@ var require_sudo_prompt = __commonJS({
|
|
|
18093
17916
|
MacApplet(
|
|
18094
17917
|
instance,
|
|
18095
17918
|
function(error2, stdout, stderr) {
|
|
18096
|
-
if (error2)
|
|
18097
|
-
return end(error2, stdout, stderr);
|
|
17919
|
+
if (error2) return end(error2, stdout, stderr);
|
|
18098
17920
|
MacIcon(
|
|
18099
17921
|
instance,
|
|
18100
17922
|
function(error3) {
|
|
18101
|
-
if (error3)
|
|
18102
|
-
return end(error3);
|
|
17923
|
+
if (error3) return end(error3);
|
|
18103
17924
|
MacPropertyList(
|
|
18104
17925
|
instance,
|
|
18105
17926
|
function(error4, stdout2, stderr2) {
|
|
18106
|
-
if (error4)
|
|
18107
|
-
return end(error4, stdout2, stderr2);
|
|
17927
|
+
if (error4) return end(error4, stdout2, stderr2);
|
|
18108
17928
|
MacCommand(
|
|
18109
17929
|
instance,
|
|
18110
17930
|
function(error5) {
|
|
18111
|
-
if (error5)
|
|
18112
|
-
return end(error5);
|
|
17931
|
+
if (error5) return end(error5);
|
|
18113
17932
|
MacOpen(
|
|
18114
17933
|
instance,
|
|
18115
17934
|
function(error6, stdout3, stderr3) {
|
|
18116
|
-
if (error6)
|
|
18117
|
-
return end(error6, stdout3, stderr3);
|
|
17935
|
+
if (error6) return end(error6, stdout3, stderr3);
|
|
18118
17936
|
MacResult(instance, end);
|
|
18119
17937
|
}
|
|
18120
17938
|
);
|
|
@@ -18134,16 +17952,14 @@ var require_sudo_prompt = __commonJS({
|
|
|
18134
17952
|
Node.fs.mkdir(
|
|
18135
17953
|
parent,
|
|
18136
17954
|
function(error) {
|
|
18137
|
-
if (error)
|
|
18138
|
-
return end(error);
|
|
17955
|
+
if (error) return end(error);
|
|
18139
17956
|
var zip = Node.path.join(parent, "sudo-prompt-applet.zip");
|
|
18140
17957
|
Node.fs.writeFile(
|
|
18141
17958
|
zip,
|
|
18142
17959
|
APPLET,
|
|
18143
17960
|
"base64",
|
|
18144
17961
|
function(error2) {
|
|
18145
|
-
if (error2)
|
|
18146
|
-
return end(error2);
|
|
17962
|
+
if (error2) return end(error2);
|
|
18147
17963
|
var command = [];
|
|
18148
17964
|
command.push("/usr/bin/unzip"), command.push("-o"), command.push('"' + EscapeDoubleQuotes(zip) + '"'), command.push('-d "' + EscapeDoubleQuotes(instance.path) + '"'), command = command.join(" "), Node.child.exec(command, { encoding: "utf-8" }, end);
|
|
18149
17965
|
}
|
|
@@ -18167,13 +17983,11 @@ var require_sudo_prompt = __commonJS({
|
|
|
18167
17983
|
`), Node.fs.writeFile(path6, script, "utf-8", end);
|
|
18168
17984
|
}
|
|
18169
17985
|
function MacIcon(instance, end) {
|
|
18170
|
-
if (!instance.options.icns)
|
|
18171
|
-
return end();
|
|
17986
|
+
if (!instance.options.icns) return end();
|
|
18172
17987
|
Node.fs.readFile(
|
|
18173
17988
|
instance.options.icns,
|
|
18174
17989
|
function(error, buffer) {
|
|
18175
|
-
if (error)
|
|
18176
|
-
return end(error);
|
|
17990
|
+
if (error) return end(error);
|
|
18177
17991
|
var icns = Node.path.join(
|
|
18178
17992
|
instance.path,
|
|
18179
17993
|
"Contents",
|
|
@@ -18205,22 +18019,19 @@ var require_sudo_prompt = __commonJS({
|
|
|
18205
18019
|
"utf-8",
|
|
18206
18020
|
function(error, code) {
|
|
18207
18021
|
if (error) {
|
|
18208
|
-
if (error.code === "ENOENT")
|
|
18209
|
-
return end(new Error(PERMISSION_DENIED));
|
|
18022
|
+
if (error.code === "ENOENT") return end(new Error(PERMISSION_DENIED));
|
|
18210
18023
|
end(error);
|
|
18211
18024
|
} else
|
|
18212
18025
|
Node.fs.readFile(
|
|
18213
18026
|
Node.path.join(cwd2, "stdout"),
|
|
18214
18027
|
"utf-8",
|
|
18215
18028
|
function(error2, stdout) {
|
|
18216
|
-
if (error2)
|
|
18217
|
-
return end(error2);
|
|
18029
|
+
if (error2) return end(error2);
|
|
18218
18030
|
Node.fs.readFile(
|
|
18219
18031
|
Node.path.join(cwd2, "stderr"),
|
|
18220
18032
|
"utf-8",
|
|
18221
18033
|
function(error3, stderr) {
|
|
18222
|
-
if (error3)
|
|
18223
|
-
return end(error3);
|
|
18034
|
+
if (error3) return end(error3);
|
|
18224
18035
|
code = parseInt(code.trim(), 10), code === 0 ? end(void 0, stdout, stderr) : (error3 = new Error(
|
|
18225
18036
|
"Command failed: " + instance.command + `
|
|
18226
18037
|
` + stderr
|
|
@@ -18263,13 +18074,11 @@ var require_sudo_prompt = __commonJS({
|
|
|
18263
18074
|
}
|
|
18264
18075
|
function Windows(instance, callback) {
|
|
18265
18076
|
var temp = Node.os.tmpdir();
|
|
18266
|
-
if (!temp)
|
|
18267
|
-
return callback(new Error("os.tmpdir() not defined."));
|
|
18077
|
+
if (!temp) return callback(new Error("os.tmpdir() not defined."));
|
|
18268
18078
|
UUID(
|
|
18269
18079
|
instance,
|
|
18270
18080
|
function(error, uuid) {
|
|
18271
|
-
if (error)
|
|
18272
|
-
return callback(error);
|
|
18081
|
+
if (error) return callback(error);
|
|
18273
18082
|
if (instance.uuid = uuid, instance.path = Node.path.join(temp, instance.uuid), /"/.test(instance.path))
|
|
18274
18083
|
return callback(
|
|
18275
18084
|
new Error("instance.path cannot contain double-quotes.")
|
|
@@ -18277,16 +18086,13 @@ var require_sudo_prompt = __commonJS({
|
|
|
18277
18086
|
instance.pathElevate = Node.path.join(instance.path, "elevate.vbs"), instance.pathExecute = Node.path.join(instance.path, "execute.bat"), instance.pathCommand = Node.path.join(instance.path, "command.bat"), instance.pathStdout = Node.path.join(instance.path, "stdout"), instance.pathStderr = Node.path.join(instance.path, "stderr"), instance.pathStatus = Node.path.join(instance.path, "status"), Node.fs.mkdir(
|
|
18278
18087
|
instance.path,
|
|
18279
18088
|
function(error2) {
|
|
18280
|
-
if (error2)
|
|
18281
|
-
return callback(error2);
|
|
18089
|
+
if (error2) return callback(error2);
|
|
18282
18090
|
function end(error3, stdout, stderr) {
|
|
18283
18091
|
Remove(
|
|
18284
18092
|
instance.path,
|
|
18285
18093
|
function(errorRemove) {
|
|
18286
|
-
if (error3)
|
|
18287
|
-
|
|
18288
|
-
if (errorRemove)
|
|
18289
|
-
return callback(errorRemove);
|
|
18094
|
+
if (error3) return callback(error3);
|
|
18095
|
+
if (errorRemove) return callback(errorRemove);
|
|
18290
18096
|
callback(void 0, stdout, stderr);
|
|
18291
18097
|
}
|
|
18292
18098
|
);
|
|
@@ -18294,23 +18100,19 @@ var require_sudo_prompt = __commonJS({
|
|
|
18294
18100
|
WindowsWriteExecuteScript(
|
|
18295
18101
|
instance,
|
|
18296
18102
|
function(error3) {
|
|
18297
|
-
if (error3)
|
|
18298
|
-
return end(error3);
|
|
18103
|
+
if (error3) return end(error3);
|
|
18299
18104
|
WindowsWriteCommandScript(
|
|
18300
18105
|
instance,
|
|
18301
18106
|
function(error4) {
|
|
18302
|
-
if (error4)
|
|
18303
|
-
return end(error4);
|
|
18107
|
+
if (error4) return end(error4);
|
|
18304
18108
|
WindowsElevate(
|
|
18305
18109
|
instance,
|
|
18306
18110
|
function(error5, stdout, stderr) {
|
|
18307
|
-
if (error5)
|
|
18308
|
-
return end(error5, stdout, stderr);
|
|
18111
|
+
if (error5) return end(error5, stdout, stderr);
|
|
18309
18112
|
WindowsWaitForStatus(
|
|
18310
18113
|
instance,
|
|
18311
18114
|
function(error6) {
|
|
18312
|
-
if (error6)
|
|
18313
|
-
return end(error6);
|
|
18115
|
+
if (error6) return end(error6);
|
|
18314
18116
|
WindowsResult(instance, end);
|
|
18315
18117
|
}
|
|
18316
18118
|
);
|
|
@@ -18332,8 +18134,7 @@ var require_sudo_prompt = __commonJS({
|
|
|
18332
18134
|
command,
|
|
18333
18135
|
{ encoding: "utf-8" },
|
|
18334
18136
|
function(error, stdout, stderr) {
|
|
18335
|
-
if (error)
|
|
18336
|
-
return end(new Error(PERMISSION_DENIED), stdout, stderr);
|
|
18137
|
+
if (error) return end(new Error(PERMISSION_DENIED), stdout, stderr);
|
|
18337
18138
|
end();
|
|
18338
18139
|
}
|
|
18339
18140
|
);
|
|
@@ -18344,20 +18145,17 @@ var require_sudo_prompt = __commonJS({
|
|
|
18344
18145
|
instance.pathStatus,
|
|
18345
18146
|
"utf-8",
|
|
18346
18147
|
function(error, code) {
|
|
18347
|
-
if (error)
|
|
18348
|
-
return end(error);
|
|
18148
|
+
if (error) return end(error);
|
|
18349
18149
|
Node.fs.readFile(
|
|
18350
18150
|
instance.pathStdout,
|
|
18351
18151
|
"utf-8",
|
|
18352
18152
|
function(error2, stdout) {
|
|
18353
|
-
if (error2)
|
|
18354
|
-
return end(error2);
|
|
18153
|
+
if (error2) return end(error2);
|
|
18355
18154
|
Node.fs.readFile(
|
|
18356
18155
|
instance.pathStderr,
|
|
18357
18156
|
"utf-8",
|
|
18358
18157
|
function(error3, stderr) {
|
|
18359
|
-
if (error3)
|
|
18360
|
-
return end(error3);
|
|
18158
|
+
if (error3) return end(error3);
|
|
18361
18159
|
code = parseInt(code.trim(), 10), code === 0 ? end(void 0, stdout, stderr) : (error3 = new Error(
|
|
18362
18160
|
"Command failed: " + instance.command + `\r
|
|
18363
18161
|
` + stderr
|
|
@@ -18378,8 +18176,7 @@ var require_sudo_prompt = __commonJS({
|
|
|
18378
18176
|
Node.fs.stat(
|
|
18379
18177
|
instance.pathStdout,
|
|
18380
18178
|
function(error2) {
|
|
18381
|
-
if (error2)
|
|
18382
|
-
return end(new Error(PERMISSION_DENIED));
|
|
18179
|
+
if (error2) return end(new Error(PERMISSION_DENIED));
|
|
18383
18180
|
WindowsWaitForStatus(instance, end);
|
|
18384
18181
|
}
|
|
18385
18182
|
);
|
|
@@ -18741,10 +18538,8 @@ var require_identifier = __commonJS({
|
|
|
18741
18538
|
function isInAstralSet(code, set) {
|
|
18742
18539
|
let pos = 65536;
|
|
18743
18540
|
for (let i = 0, length = set.length; i < length; i += 2) {
|
|
18744
|
-
if (pos += set[i], pos > code)
|
|
18745
|
-
|
|
18746
|
-
if (pos += set[i + 1], pos >= code)
|
|
18747
|
-
return !0;
|
|
18541
|
+
if (pos += set[i], pos > code) return !1;
|
|
18542
|
+
if (pos += set[i + 1], pos >= code) return !0;
|
|
18748
18543
|
}
|
|
18749
18544
|
return !1;
|
|
18750
18545
|
}
|
|
@@ -19864,27 +19659,22 @@ var require_lib5 = __commonJS({
|
|
|
19864
19659
|
exports2.shouldHighlight = shouldHighlight;
|
|
19865
19660
|
var _jsTokens = require_js_tokens(), _helperValidatorIdentifier = require_lib4(), _picocolors = _interopRequireWildcard(require_picocolors(), !0);
|
|
19866
19661
|
function _getRequireWildcardCache(e) {
|
|
19867
|
-
if (typeof WeakMap != "function")
|
|
19868
|
-
return null;
|
|
19662
|
+
if (typeof WeakMap != "function") return null;
|
|
19869
19663
|
var r = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap();
|
|
19870
19664
|
return (_getRequireWildcardCache = function(e2) {
|
|
19871
19665
|
return e2 ? t : r;
|
|
19872
19666
|
})(e);
|
|
19873
19667
|
}
|
|
19874
19668
|
function _interopRequireWildcard(e, r) {
|
|
19875
|
-
if (!r && e && e.__esModule)
|
|
19876
|
-
|
|
19877
|
-
if (e === null || typeof e != "object" && typeof e != "function")
|
|
19878
|
-
return { default: e };
|
|
19669
|
+
if (!r && e && e.__esModule) return e;
|
|
19670
|
+
if (e === null || typeof e != "object" && typeof e != "function") return { default: e };
|
|
19879
19671
|
var t = _getRequireWildcardCache(r);
|
|
19880
|
-
if (t && t.has(e))
|
|
19881
|
-
return t.get(e);
|
|
19672
|
+
if (t && t.has(e)) return t.get(e);
|
|
19882
19673
|
var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
19883
|
-
for (var u in e)
|
|
19884
|
-
|
|
19885
|
-
|
|
19886
|
-
|
|
19887
|
-
}
|
|
19674
|
+
for (var u in e) if (u !== "default" && Object.prototype.hasOwnProperty.call(e, u)) {
|
|
19675
|
+
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
|
19676
|
+
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
|
19677
|
+
}
|
|
19888
19678
|
return n.default = e, t && t.set(e, n), n;
|
|
19889
19679
|
}
|
|
19890
19680
|
var colors = typeof process == "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(!1) : _picocolors.default, compose = (f, g) => (v) => f(g(v)), sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
|
|
@@ -19985,8 +19775,7 @@ var require_lib6 = __commonJS({
|
|
|
19985
19775
|
exports2.default = _default;
|
|
19986
19776
|
var _highlight = _interopRequireWildcard(require_lib5());
|
|
19987
19777
|
function _getRequireWildcardCache() {
|
|
19988
|
-
if (typeof WeakMap != "function")
|
|
19989
|
-
return null;
|
|
19778
|
+
if (typeof WeakMap != "function") return null;
|
|
19990
19779
|
var cache2 = /* @__PURE__ */ new WeakMap();
|
|
19991
19780
|
return _getRequireWildcardCache = function() {
|
|
19992
19781
|
return cache2;
|
|
@@ -21174,12 +20963,9 @@ var require_JsonFile = __commonJS({
|
|
|
21174
20963
|
} : function(o, v) {
|
|
21175
20964
|
o.default = v;
|
|
21176
20965
|
}), __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
21177
|
-
if (mod && mod.__esModule)
|
|
21178
|
-
return mod;
|
|
20966
|
+
if (mod && mod.__esModule) return mod;
|
|
21179
20967
|
var result = {};
|
|
21180
|
-
if (mod != null)
|
|
21181
|
-
for (var k in mod)
|
|
21182
|
-
k !== "default" && Object.prototype.hasOwnProperty.call(mod, k) && __createBinding(result, mod, k);
|
|
20968
|
+
if (mod != null) for (var k in mod) k !== "default" && Object.prototype.hasOwnProperty.call(mod, k) && __createBinding(result, mod, k);
|
|
21183
20969
|
return __setModuleDefault(result, mod), result;
|
|
21184
20970
|
}, __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
21185
20971
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
@@ -21444,8 +21230,7 @@ var require_git_host = __commonJS({
|
|
|
21444
21230
|
"../../node_modules/npm-package-arg/node_modules/hosted-git-info/git-host.js"(exports2, module2) {
|
|
21445
21231
|
"use strict";
|
|
21446
21232
|
var gitHosts = require_git_host_info(), extend = Object.assign || function(target, source) {
|
|
21447
|
-
if (source === null || typeof source != "object")
|
|
21448
|
-
return target;
|
|
21233
|
+
if (source === null || typeof source != "object") return target;
|
|
21449
21234
|
let keys = Object.keys(source), i = keys.length;
|
|
21450
21235
|
for (; i--; )
|
|
21451
21236
|
target[keys[i]] = source[keys[i]];
|
|
@@ -21831,8 +21616,7 @@ var require_lru_cache = __commonJS({
|
|
|
21831
21616
|
return hit.length > this[MAX] ? (this[DISPOSE] && this[DISPOSE](key, value), !1) : (this[LENGTH] += hit.length, this[LRU_LIST].unshift(hit), this[CACHE].set(key, this[LRU_LIST].head), trim(this), !0);
|
|
21832
21617
|
}
|
|
21833
21618
|
has(key) {
|
|
21834
|
-
if (!this[CACHE].has(key))
|
|
21835
|
-
return !1;
|
|
21619
|
+
if (!this[CACHE].has(key)) return !1;
|
|
21836
21620
|
let hit = this[CACHE].get(key).value;
|
|
21837
21621
|
return !isStale(this, hit);
|
|
21838
21622
|
}
|
|
@@ -21942,11 +21726,9 @@ var require_hosted_git_info = __commonJS({
|
|
|
21942
21726
|
if (shortcutMatch && shortcutMatch[1] === gitHostName)
|
|
21943
21727
|
user = shortcutMatch[2] && decodeURIComponent(shortcutMatch[2]), project = decodeURIComponent(shortcutMatch[3].replace(/\.git$/, "")), defaultRepresentation = "shortcut";
|
|
21944
21728
|
else {
|
|
21945
|
-
if (parsed.host && parsed.host !== gitHostInfo.domain && parsed.host.replace(/^www[.]/, "") !== gitHostInfo.domain || !gitHostInfo.protocols_re.test(parsed.protocol) || !parsed.path)
|
|
21946
|
-
return;
|
|
21729
|
+
if (parsed.host && parsed.host !== gitHostInfo.domain && parsed.host.replace(/^www[.]/, "") !== gitHostInfo.domain || !gitHostInfo.protocols_re.test(parsed.protocol) || !parsed.path) return;
|
|
21947
21730
|
var pathmatch = gitHostInfo.pathmatch, matched = parsed.path.match(pathmatch);
|
|
21948
|
-
if (!matched)
|
|
21949
|
-
return;
|
|
21731
|
+
if (!matched) return;
|
|
21950
21732
|
matched[1] !== null && matched[1] !== void 0 && (user = decodeURIComponent(matched[1].replace(/^:/, ""))), project = decodeURIComponent(matched[2]), defaultRepresentation = protocolToRepresentation(parsed.protocol);
|
|
21951
21733
|
}
|
|
21952
21734
|
return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts);
|
|
@@ -23244,8 +23026,7 @@ var require_mark = __commonJS({
|
|
|
23244
23026
|
}
|
|
23245
23027
|
Mark.prototype.getSnippet = function(indent, maxLength) {
|
|
23246
23028
|
var head, start, tail, end, snippet;
|
|
23247
|
-
if (!this.buffer)
|
|
23248
|
-
return null;
|
|
23029
|
+
if (!this.buffer) return null;
|
|
23249
23030
|
for (indent = indent || 4, maxLength = maxLength || 75, head = "", start = this.position; start > 0 && `\0\r
|
|
23250
23031
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(start - 1)) === -1; )
|
|
23251
23032
|
if (start -= 1, this.position - start > maxLength / 2 - 1) {
|
|
@@ -23441,8 +23222,7 @@ var require_null2 = __commonJS({
|
|
|
23441
23222
|
"use strict";
|
|
23442
23223
|
var Type = require_type();
|
|
23443
23224
|
function resolveYamlNull(data) {
|
|
23444
|
-
if (data === null)
|
|
23445
|
-
return !0;
|
|
23225
|
+
if (data === null) return !0;
|
|
23446
23226
|
var max = data.length;
|
|
23447
23227
|
return max === 1 && data === "~" || max === 4 && (data === "null" || data === "Null" || data === "NULL");
|
|
23448
23228
|
}
|
|
@@ -23482,8 +23262,7 @@ var require_bool3 = __commonJS({
|
|
|
23482
23262
|
"use strict";
|
|
23483
23263
|
var Type = require_type();
|
|
23484
23264
|
function resolveYamlBoolean(data) {
|
|
23485
|
-
if (data === null)
|
|
23486
|
-
return !1;
|
|
23265
|
+
if (data === null) return !1;
|
|
23487
23266
|
var max = data.length;
|
|
23488
23267
|
return max === 4 && (data === "true" || data === "True" || data === "TRUE") || max === 5 && (data === "false" || data === "False" || data === "FALSE");
|
|
23489
23268
|
}
|
|
@@ -23529,19 +23308,15 @@ var require_int3 = __commonJS({
|
|
|
23529
23308
|
return 48 <= c && c <= 57;
|
|
23530
23309
|
}
|
|
23531
23310
|
function resolveYamlInteger(data) {
|
|
23532
|
-
if (data === null)
|
|
23533
|
-
return !1;
|
|
23311
|
+
if (data === null) return !1;
|
|
23534
23312
|
var max = data.length, index = 0, hasDigits = !1, ch;
|
|
23535
|
-
if (!max)
|
|
23536
|
-
return !1;
|
|
23313
|
+
if (!max) return !1;
|
|
23537
23314
|
if (ch = data[index], (ch === "-" || ch === "+") && (ch = data[++index]), ch === "0") {
|
|
23538
|
-
if (index + 1 === max)
|
|
23539
|
-
return !0;
|
|
23315
|
+
if (index + 1 === max) return !0;
|
|
23540
23316
|
if (ch = data[++index], ch === "b") {
|
|
23541
23317
|
for (index++; index < max; index++)
|
|
23542
23318
|
if (ch = data[index], ch !== "_") {
|
|
23543
|
-
if (ch !== "0" && ch !== "1")
|
|
23544
|
-
return !1;
|
|
23319
|
+
if (ch !== "0" && ch !== "1") return !1;
|
|
23545
23320
|
hasDigits = !0;
|
|
23546
23321
|
}
|
|
23547
23322
|
return hasDigits && ch !== "_";
|
|
@@ -23549,26 +23324,22 @@ var require_int3 = __commonJS({
|
|
|
23549
23324
|
if (ch === "x") {
|
|
23550
23325
|
for (index++; index < max; index++)
|
|
23551
23326
|
if (ch = data[index], ch !== "_") {
|
|
23552
|
-
if (!isHexCode(data.charCodeAt(index)))
|
|
23553
|
-
return !1;
|
|
23327
|
+
if (!isHexCode(data.charCodeAt(index))) return !1;
|
|
23554
23328
|
hasDigits = !0;
|
|
23555
23329
|
}
|
|
23556
23330
|
return hasDigits && ch !== "_";
|
|
23557
23331
|
}
|
|
23558
23332
|
for (; index < max; index++)
|
|
23559
23333
|
if (ch = data[index], ch !== "_") {
|
|
23560
|
-
if (!isOctCode(data.charCodeAt(index)))
|
|
23561
|
-
return !1;
|
|
23334
|
+
if (!isOctCode(data.charCodeAt(index))) return !1;
|
|
23562
23335
|
hasDigits = !0;
|
|
23563
23336
|
}
|
|
23564
23337
|
return hasDigits && ch !== "_";
|
|
23565
23338
|
}
|
|
23566
|
-
if (ch === "_")
|
|
23567
|
-
return !1;
|
|
23339
|
+
if (ch === "_") return !1;
|
|
23568
23340
|
for (; index < max; index++)
|
|
23569
23341
|
if (ch = data[index], ch !== "_") {
|
|
23570
|
-
if (ch === ":")
|
|
23571
|
-
break;
|
|
23342
|
+
if (ch === ":") break;
|
|
23572
23343
|
if (!isDecCode(data.charCodeAt(index)))
|
|
23573
23344
|
return !1;
|
|
23574
23345
|
hasDigits = !0;
|
|
@@ -23732,8 +23503,7 @@ var require_timestamp2 = __commonJS({
|
|
|
23732
23503
|
}
|
|
23733
23504
|
function constructYamlTimestamp(data) {
|
|
23734
23505
|
var match2, year, month, day, hour, minute, second, fraction = 0, delta = null, tz_hour, tz_minute, date;
|
|
23735
|
-
if (match2 = YAML_DATE_REGEXP.exec(data), match2 === null && (match2 = YAML_TIMESTAMP_REGEXP.exec(data)), match2 === null)
|
|
23736
|
-
throw new Error("Date resolve error");
|
|
23506
|
+
if (match2 = YAML_DATE_REGEXP.exec(data), match2 === null && (match2 = YAML_TIMESTAMP_REGEXP.exec(data)), match2 === null) throw new Error("Date resolve error");
|
|
23737
23507
|
if (year = +match2[1], month = +match2[2] - 1, day = +match2[3], !match2[4])
|
|
23738
23508
|
return new Date(Date.UTC(year, month, day));
|
|
23739
23509
|
if (hour = +match2[4], minute = +match2[5], second = +match2[6], match2[7]) {
|
|
@@ -23783,13 +23553,11 @@ var require_binary2 = __commonJS({
|
|
|
23783
23553
|
var _require, Type = require_type(), BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
23784
23554
|
\r`;
|
|
23785
23555
|
function resolveYamlBinary(data) {
|
|
23786
|
-
if (data === null)
|
|
23787
|
-
return !1;
|
|
23556
|
+
if (data === null) return !1;
|
|
23788
23557
|
var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;
|
|
23789
23558
|
for (idx = 0; idx < max; idx++)
|
|
23790
23559
|
if (code = map.indexOf(data.charAt(idx)), !(code > 64)) {
|
|
23791
|
-
if (code < 0)
|
|
23792
|
-
return !1;
|
|
23560
|
+
if (code < 0) return !1;
|
|
23793
23561
|
bitlen += 6;
|
|
23794
23562
|
}
|
|
23795
23563
|
return bitlen % 8 === 0;
|
|
@@ -23825,24 +23593,17 @@ var require_omap2 = __commonJS({
|
|
|
23825
23593
|
"use strict";
|
|
23826
23594
|
var Type = require_type(), _hasOwnProperty = Object.prototype.hasOwnProperty, _toString = Object.prototype.toString;
|
|
23827
23595
|
function resolveYamlOmap(data) {
|
|
23828
|
-
if (data === null)
|
|
23829
|
-
return !0;
|
|
23596
|
+
if (data === null) return !0;
|
|
23830
23597
|
var objectKeys = [], index, length, pair, pairKey, pairHasKey, object = data;
|
|
23831
23598
|
for (index = 0, length = object.length; index < length; index += 1) {
|
|
23832
|
-
if (pair = object[index], pairHasKey = !1, _toString.call(pair) !== "[object Object]")
|
|
23833
|
-
return !1;
|
|
23599
|
+
if (pair = object[index], pairHasKey = !1, _toString.call(pair) !== "[object Object]") return !1;
|
|
23834
23600
|
for (pairKey in pair)
|
|
23835
23601
|
if (_hasOwnProperty.call(pair, pairKey))
|
|
23836
|
-
if (!pairHasKey)
|
|
23837
|
-
|
|
23838
|
-
|
|
23839
|
-
|
|
23840
|
-
|
|
23841
|
-
return !1;
|
|
23842
|
-
if (objectKeys.indexOf(pairKey) === -1)
|
|
23843
|
-
objectKeys.push(pairKey);
|
|
23844
|
-
else
|
|
23845
|
-
return !1;
|
|
23602
|
+
if (!pairHasKey) pairHasKey = !0;
|
|
23603
|
+
else return !1;
|
|
23604
|
+
if (!pairHasKey) return !1;
|
|
23605
|
+
if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
|
|
23606
|
+
else return !1;
|
|
23846
23607
|
}
|
|
23847
23608
|
return !0;
|
|
23848
23609
|
}
|
|
@@ -23863,19 +23624,16 @@ var require_pairs2 = __commonJS({
|
|
|
23863
23624
|
"use strict";
|
|
23864
23625
|
var Type = require_type(), _toString = Object.prototype.toString;
|
|
23865
23626
|
function resolveYamlPairs(data) {
|
|
23866
|
-
if (data === null)
|
|
23867
|
-
return !0;
|
|
23627
|
+
if (data === null) return !0;
|
|
23868
23628
|
var index, length, pair, keys, result, object = data;
|
|
23869
23629
|
for (result = new Array(object.length), index = 0, length = object.length; index < length; index += 1) {
|
|
23870
|
-
if (pair = object[index], _toString.call(pair) !== "[object Object]" || (keys = Object.keys(pair), keys.length !== 1))
|
|
23871
|
-
return !1;
|
|
23630
|
+
if (pair = object[index], _toString.call(pair) !== "[object Object]" || (keys = Object.keys(pair), keys.length !== 1)) return !1;
|
|
23872
23631
|
result[index] = [keys[0], pair[keys[0]]];
|
|
23873
23632
|
}
|
|
23874
23633
|
return !0;
|
|
23875
23634
|
}
|
|
23876
23635
|
function constructYamlPairs(data) {
|
|
23877
|
-
if (data === null)
|
|
23878
|
-
return [];
|
|
23636
|
+
if (data === null) return [];
|
|
23879
23637
|
var index, length, pair, keys, result, object = data;
|
|
23880
23638
|
for (result = new Array(object.length), index = 0, length = object.length; index < length; index += 1)
|
|
23881
23639
|
pair = object[index], keys = Object.keys(pair), result[index] = [keys[0], pair[keys[0]]];
|
|
@@ -23895,8 +23653,7 @@ var require_set2 = __commonJS({
|
|
|
23895
23653
|
"use strict";
|
|
23896
23654
|
var Type = require_type(), _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
23897
23655
|
function resolveYamlSet(data) {
|
|
23898
|
-
if (data === null)
|
|
23899
|
-
return !0;
|
|
23656
|
+
if (data === null) return !0;
|
|
23900
23657
|
var key, object = data;
|
|
23901
23658
|
for (key in object)
|
|
23902
23659
|
if (_hasOwnProperty.call(object, key) && object[key] !== null)
|
|
@@ -23969,8 +23726,7 @@ var require_regexp = __commonJS({
|
|
|
23969
23726
|
"use strict";
|
|
23970
23727
|
var Type = require_type();
|
|
23971
23728
|
function resolveJavascriptRegExp(data) {
|
|
23972
|
-
if (data === null || data.length === 0)
|
|
23973
|
-
return !1;
|
|
23729
|
+
if (data === null || data.length === 0) return !1;
|
|
23974
23730
|
var regexp = data, tail = /\/([gim]*)$/.exec(data), modifiers = "";
|
|
23975
23731
|
return !(regexp[0] === "/" && (tail && (modifiers = tail[1]), modifiers.length > 3 || regexp[regexp.length - modifiers.length - 1] !== "/"));
|
|
23976
23732
|
}
|
|
@@ -24007,8 +23763,7 @@ var require_function = __commonJS({
|
|
|
24007
23763
|
}
|
|
24008
23764
|
var _require, Type = require_type();
|
|
24009
23765
|
function resolveJavascriptFunction(data) {
|
|
24010
|
-
if (data === null)
|
|
24011
|
-
return !1;
|
|
23766
|
+
if (data === null) return !1;
|
|
24012
23767
|
try {
|
|
24013
23768
|
var source = "(" + data + ")", ast = esprima.parse(source, { range: !0 });
|
|
24014
23769
|
return !(ast.type !== "Program" || ast.body.length !== 1 || ast.body[0].type !== "ExpressionStatement" || ast.body[0].expression.type !== "ArrowFunctionExpression" && ast.body[0].expression.type !== "FunctionExpression");
|
|
@@ -24133,8 +23888,7 @@ var require_loader = __commonJS({
|
|
|
24133
23888
|
if (_result = state.input.slice(start, end), checkJson)
|
|
24134
23889
|
for (_position = 0, _length = _result.length; _position < _length; _position += 1)
|
|
24135
23890
|
_character = _result.charCodeAt(_position), _character === 9 || 32 <= _character && _character <= 1114111 || throwError(state, "expected valid JSON character");
|
|
24136
|
-
else
|
|
24137
|
-
PATTERN_NON_PRINTABLE.test(_result) && throwError(state, "the stream contains non-printable characters");
|
|
23891
|
+
else PATTERN_NON_PRINTABLE.test(_result) && throwError(state, "the stream contains non-printable characters");
|
|
24138
23892
|
state.result += _result;
|
|
24139
23893
|
}
|
|
24140
23894
|
}
|
|
@@ -24223,8 +23977,7 @@ var require_loader = __commonJS({
|
|
|
24223
23977
|
captureStart = state.position, state.position++, captureEnd = state.position;
|
|
24224
23978
|
else
|
|
24225
23979
|
return !0;
|
|
24226
|
-
else
|
|
24227
|
-
is_EOL(ch) ? (captureSegment(state, captureStart, captureEnd, !0), writeFoldedLines(state, skipSeparationSpace(state, !1, nodeIndent)), captureStart = captureEnd = state.position) : state.position === state.lineStart && testDocumentSeparator(state) ? throwError(state, "unexpected end of the document within a single quoted scalar") : (state.position++, captureEnd = state.position);
|
|
23980
|
+
else is_EOL(ch) ? (captureSegment(state, captureStart, captureEnd, !0), writeFoldedLines(state, skipSeparationSpace(state, !1, nodeIndent)), captureStart = captureEnd = state.position) : state.position === state.lineStart && testDocumentSeparator(state) ? throwError(state, "unexpected end of the document within a single quoted scalar") : (state.position++, captureEnd = state.position);
|
|
24228
23981
|
throwError(state, "unexpected end of the stream within a single quoted scalar");
|
|
24229
23982
|
}
|
|
24230
23983
|
function readDoubleQuotedScalar(state, nodeIndent) {
|
|
@@ -24246,8 +23999,7 @@ var require_loader = __commonJS({
|
|
|
24246
23999
|
} else
|
|
24247
24000
|
throwError(state, "unknown escape sequence");
|
|
24248
24001
|
captureStart = captureEnd = state.position;
|
|
24249
|
-
} else
|
|
24250
|
-
is_EOL(ch) ? (captureSegment(state, captureStart, captureEnd, !0), writeFoldedLines(state, skipSeparationSpace(state, !1, nodeIndent)), captureStart = captureEnd = state.position) : state.position === state.lineStart && testDocumentSeparator(state) ? throwError(state, "unexpected end of the document within a double quoted scalar") : (state.position++, captureEnd = state.position);
|
|
24002
|
+
} else is_EOL(ch) ? (captureSegment(state, captureStart, captureEnd, !0), writeFoldedLines(state, skipSeparationSpace(state, !1, nodeIndent)), captureStart = captureEnd = state.position) : state.position === state.lineStart && testDocumentSeparator(state) ? throwError(state, "unexpected end of the document within a double quoted scalar") : (state.position++, captureEnd = state.position);
|
|
24251
24003
|
}
|
|
24252
24004
|
throwError(state, "unexpected end of the stream within a double quoted scalar");
|
|
24253
24005
|
}
|
|
@@ -24357,8 +24109,7 @@ var require_loader = __commonJS({
|
|
|
24357
24109
|
}
|
|
24358
24110
|
function readTagProperty(state) {
|
|
24359
24111
|
var _position, isVerbatim = !1, isNamed = !1, tagHandle, tagName, ch;
|
|
24360
|
-
if (ch = state.input.charCodeAt(state.position), ch !== 33)
|
|
24361
|
-
return !1;
|
|
24112
|
+
if (ch = state.input.charCodeAt(state.position), ch !== 33) return !1;
|
|
24362
24113
|
if (state.tag !== null && throwError(state, "duplication of a tag property"), ch = state.input.charCodeAt(++state.position), ch === 60 ? (isVerbatim = !0, ch = state.input.charCodeAt(++state.position)) : ch === 33 ? (isNamed = !0, tagHandle = "!!", ch = state.input.charCodeAt(++state.position)) : tagHandle = "!", _position = state.position, isVerbatim) {
|
|
24363
24114
|
do
|
|
24364
24115
|
ch = state.input.charCodeAt(++state.position);
|
|
@@ -24373,16 +24124,14 @@ var require_loader = __commonJS({
|
|
|
24373
24124
|
}
|
|
24374
24125
|
function readAnchorProperty(state) {
|
|
24375
24126
|
var _position, ch;
|
|
24376
|
-
if (ch = state.input.charCodeAt(state.position), ch !== 38)
|
|
24377
|
-
return !1;
|
|
24127
|
+
if (ch = state.input.charCodeAt(state.position), ch !== 38) return !1;
|
|
24378
24128
|
for (state.anchor !== null && throwError(state, "duplication of an anchor property"), ch = state.input.charCodeAt(++state.position), _position = state.position; ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch); )
|
|
24379
24129
|
ch = state.input.charCodeAt(++state.position);
|
|
24380
24130
|
return state.position === _position && throwError(state, "name of an anchor node must contain at least one character"), state.anchor = state.input.slice(_position, state.position), !0;
|
|
24381
24131
|
}
|
|
24382
24132
|
function readAlias(state) {
|
|
24383
24133
|
var _position, alias, ch;
|
|
24384
|
-
if (ch = state.input.charCodeAt(state.position), ch !== 42)
|
|
24385
|
-
return !1;
|
|
24134
|
+
if (ch = state.input.charCodeAt(state.position), ch !== 42) return !1;
|
|
24386
24135
|
for (ch = state.input.charCodeAt(++state.position), _position = state.position; ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch); )
|
|
24387
24136
|
ch = state.input.charCodeAt(++state.position);
|
|
24388
24137
|
return state.position === _position && throwError(state, "name of an alias node must contain at least one character"), alias = state.input.slice(_position, state.position), _hasOwnProperty.call(state.anchorMap, alias) || throwError(state, 'unidentified alias "' + alias + '"'), state.result = state.anchorMap[alias], skipSeparationSpace(state, !0, -1), !0;
|
|
@@ -24399,8 +24148,7 @@ var require_loader = __commonJS({
|
|
|
24399
24148
|
state.result = type.construct(state.result), state.tag = type.tag, state.anchor !== null && (state.anchorMap[state.anchor] = state.result);
|
|
24400
24149
|
break;
|
|
24401
24150
|
}
|
|
24402
|
-
} else
|
|
24403
|
-
_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag) ? (type = state.typeMap[state.kind || "fallback"][state.tag], state.result !== null && type.kind !== state.kind && throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"'), type.resolve(state.result) ? (state.result = type.construct(state.result), state.anchor !== null && (state.anchorMap[state.anchor] = state.result)) : throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag")) : throwError(state, "unknown tag !<" + state.tag + ">");
|
|
24151
|
+
} else _hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag) ? (type = state.typeMap[state.kind || "fallback"][state.tag], state.result !== null && type.kind !== state.kind && throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"'), type.resolve(state.result) ? (state.result = type.construct(state.result), state.anchor !== null && (state.anchorMap[state.anchor] = state.result)) : throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag")) : throwError(state, "unknown tag !<" + state.tag + ">");
|
|
24404
24152
|
return state.listener !== null && state.listener("close", state), state.tag !== null || state.anchor !== null || hasContent;
|
|
24405
24153
|
}
|
|
24406
24154
|
function readDocument(state) {
|
|
@@ -24417,8 +24165,7 @@ var require_loader = __commonJS({
|
|
|
24417
24165
|
while (ch !== 0 && !is_EOL(ch));
|
|
24418
24166
|
break;
|
|
24419
24167
|
}
|
|
24420
|
-
if (is_EOL(ch))
|
|
24421
|
-
break;
|
|
24168
|
+
if (is_EOL(ch)) break;
|
|
24422
24169
|
for (_position = state.position; ch !== 0 && !is_WS_OR_EOL(ch); )
|
|
24423
24170
|
ch = state.input.charCodeAt(++state.position);
|
|
24424
24171
|
directiveArgs.push(state.input.slice(_position, state.position));
|
|
@@ -24513,8 +24260,7 @@ var require_dumper = __commonJS({
|
|
|
24513
24260
|
];
|
|
24514
24261
|
function compileStyleMap(schema, map) {
|
|
24515
24262
|
var result, keys, index, length, tag, style, type;
|
|
24516
|
-
if (map === null)
|
|
24517
|
-
return {};
|
|
24263
|
+
if (map === null) return {};
|
|
24518
24264
|
for (result = {}, keys = Object.keys(map), index = 0, length = keys.length; index < length; index += 1)
|
|
24519
24265
|
tag = keys[index], style = String(map[tag]), tag.slice(0, 2) === "!!" && (tag = "tag:yaml.org,2002:" + tag.slice(2)), type = schema.compiledTypeMap.fallback[tag], type && _hasOwnProperty.call(type.styleAliases, style) && (style = type.styleAliases[style]), result[tag] = style;
|
|
24520
24266
|
return result;
|
|
@@ -24645,8 +24391,7 @@ var require_dumper = __commonJS({
|
|
|
24645
24391
|
return result;
|
|
24646
24392
|
}
|
|
24647
24393
|
function foldLine(line, width) {
|
|
24648
|
-
if (line === "" || line[0] === " ")
|
|
24649
|
-
return line;
|
|
24394
|
+
if (line === "" || line[0] === " ") return line;
|
|
24650
24395
|
for (var breakRe = / [^ ]/g, match2, start = 0, end, curr = 0, next = 0, result = ""; match2 = breakRe.exec(line); )
|
|
24651
24396
|
next = match2.index, next - start > width && (end = curr > start ? curr : next, result += `
|
|
24652
24397
|
` + line.slice(start, end), start = end + 1), curr = next;
|
|
@@ -24727,8 +24472,7 @@ var require_dumper = __commonJS({
|
|
|
24727
24472
|
} else if (type === "[object String]")
|
|
24728
24473
|
state.tag !== "?" && writeScalar(state, state.dump, level, iskey);
|
|
24729
24474
|
else {
|
|
24730
|
-
if (state.skipInvalid)
|
|
24731
|
-
return !1;
|
|
24475
|
+
if (state.skipInvalid) return !1;
|
|
24732
24476
|
throw new YAMLException("unacceptable kind of an object to dump " + type);
|
|
24733
24477
|
}
|
|
24734
24478
|
state.tag !== null && state.tag !== "?" && (state.dump = "!<" + state.tag + "> " + state.dump);
|
|
@@ -25215,8 +24959,7 @@ var require_build = __commonJS({
|
|
|
25215
24959
|
} : function(o, m, k, k2) {
|
|
25216
24960
|
k2 === void 0 && (k2 = k), o[k2] = m[k];
|
|
25217
24961
|
}), __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
25218
|
-
for (var p in m)
|
|
25219
|
-
p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p) && __createBinding(exports3, m, p);
|
|
24962
|
+
for (var p in m) p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p) && __createBinding(exports3, m, p);
|
|
25220
24963
|
};
|
|
25221
24964
|
Object.defineProperty(exports2, "__esModule", { value: !0 });
|
|
25222
24965
|
exports2.isYarnOfflineAsync = void 0;
|
|
@@ -26313,7 +26056,7 @@ var globby2 = Object.assign(function(patterns, options) {
|
|
|
26313
26056
|
// package.json
|
|
26314
26057
|
var package_default = {
|
|
26315
26058
|
name: "create-tamagui",
|
|
26316
|
-
version: "1.
|
|
26059
|
+
version: "1.99.1",
|
|
26317
26060
|
bin: "./run.js",
|
|
26318
26061
|
main: "dist",
|
|
26319
26062
|
files: [
|
|
@@ -26334,7 +26077,7 @@ var package_default = {
|
|
|
26334
26077
|
devDependencies: {
|
|
26335
26078
|
"@expo/package-manager": "^1.1.2",
|
|
26336
26079
|
"@playwright/test": "^1.40.1",
|
|
26337
|
-
"@tamagui/build": "1.
|
|
26080
|
+
"@tamagui/build": "1.99.1",
|
|
26338
26081
|
"@types/async-retry": "1.4.2",
|
|
26339
26082
|
"@types/cross-spawn": "^6.0.2",
|
|
26340
26083
|
"@types/node": "^16.11.9",
|
|
@@ -26508,44 +26251,43 @@ var posixClasses = {
|
|
|
26508
26251
|
if (glob2.charAt(pos) !== "[")
|
|
26509
26252
|
throw new Error("not in a brace expression");
|
|
26510
26253
|
let ranges = [], negs = [], i = pos + 1, sawStart = !1, uflag = !1, escaping = !1, negate = !1, endPos = pos, rangeStart = "";
|
|
26511
|
-
WHILE:
|
|
26512
|
-
|
|
26513
|
-
|
|
26514
|
-
|
|
26515
|
-
|
|
26516
|
-
|
|
26517
|
-
|
|
26518
|
-
|
|
26519
|
-
|
|
26520
|
-
|
|
26521
|
-
|
|
26522
|
-
|
|
26523
|
-
|
|
26524
|
-
|
|
26525
|
-
|
|
26526
|
-
|
|
26527
|
-
|
|
26528
|
-
if (
|
|
26529
|
-
|
|
26530
|
-
|
|
26531
|
-
|
|
26532
|
-
|
|
26533
|
-
}
|
|
26534
|
-
}
|
|
26535
|
-
if (escaping = !1, rangeStart) {
|
|
26536
|
-
c > rangeStart ? ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c)) : c === rangeStart && ranges.push(braceEscape(c)), rangeStart = "", i++;
|
|
26537
|
-
continue;
|
|
26538
|
-
}
|
|
26539
|
-
if (glob2.startsWith("-]", i + 1)) {
|
|
26540
|
-
ranges.push(braceEscape(c + "-")), i += 2;
|
|
26541
|
-
continue;
|
|
26542
|
-
}
|
|
26543
|
-
if (glob2.startsWith("-", i + 1)) {
|
|
26544
|
-
rangeStart = c, i += 2;
|
|
26545
|
-
continue;
|
|
26546
|
-
}
|
|
26547
|
-
ranges.push(braceEscape(c)), i++;
|
|
26254
|
+
WHILE: for (; i < glob2.length; ) {
|
|
26255
|
+
let c = glob2.charAt(i);
|
|
26256
|
+
if ((c === "!" || c === "^") && i === pos + 1) {
|
|
26257
|
+
negate = !0, i++;
|
|
26258
|
+
continue;
|
|
26259
|
+
}
|
|
26260
|
+
if (c === "]" && sawStart && !escaping) {
|
|
26261
|
+
endPos = i + 1;
|
|
26262
|
+
break;
|
|
26263
|
+
}
|
|
26264
|
+
if (sawStart = !0, c === "\\" && !escaping) {
|
|
26265
|
+
escaping = !0, i++;
|
|
26266
|
+
continue;
|
|
26267
|
+
}
|
|
26268
|
+
if (c === "[" && !escaping) {
|
|
26269
|
+
for (let [cls, [unip, u, neg]] of Object.entries(posixClasses))
|
|
26270
|
+
if (glob2.startsWith(cls, i)) {
|
|
26271
|
+
if (rangeStart)
|
|
26272
|
+
return ["$.", !1, glob2.length - pos, !0];
|
|
26273
|
+
i += cls.length, neg ? negs.push(unip) : ranges.push(unip), uflag = uflag || u;
|
|
26274
|
+
continue WHILE;
|
|
26275
|
+
}
|
|
26548
26276
|
}
|
|
26277
|
+
if (escaping = !1, rangeStart) {
|
|
26278
|
+
c > rangeStart ? ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c)) : c === rangeStart && ranges.push(braceEscape(c)), rangeStart = "", i++;
|
|
26279
|
+
continue;
|
|
26280
|
+
}
|
|
26281
|
+
if (glob2.startsWith("-]", i + 1)) {
|
|
26282
|
+
ranges.push(braceEscape(c + "-")), i += 2;
|
|
26283
|
+
continue;
|
|
26284
|
+
}
|
|
26285
|
+
if (glob2.startsWith("-", i + 1)) {
|
|
26286
|
+
rangeStart = c, i += 2;
|
|
26287
|
+
continue;
|
|
26288
|
+
}
|
|
26289
|
+
ranges.push(braceEscape(c)), i++;
|
|
26290
|
+
}
|
|
26549
26291
|
if (endPos < i)
|
|
26550
26292
|
return ["", !1, 0, !1];
|
|
26551
26293
|
if (!ranges.length && !negs.length)
|
|
@@ -27875,15 +27617,13 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
|
|
|
27875
27617
|
oldVal.__abortController.abort(new Error("replaced"));
|
|
27876
27618
|
let { __staleWhileFetching: s } = oldVal;
|
|
27877
27619
|
s !== void 0 && !noDisposeOnSet && (this.#hasDispose && this.#dispose?.(s, k, "set"), this.#hasDisposeAfter && this.#disposed?.push([s, k, "set"]));
|
|
27878
|
-
} else
|
|
27879
|
-
noDisposeOnSet || (this.#hasDispose && this.#dispose?.(oldVal, k, "set"), this.#hasDisposeAfter && this.#disposed?.push([oldVal, k, "set"]));
|
|
27620
|
+
} else noDisposeOnSet || (this.#hasDispose && this.#dispose?.(oldVal, k, "set"), this.#hasDisposeAfter && this.#disposed?.push([oldVal, k, "set"]));
|
|
27880
27621
|
if (this.#removeItemSize(index), this.#addItemSize(index, size, status), this.#valList[index] = v, status) {
|
|
27881
27622
|
status.set = "replace";
|
|
27882
27623
|
let oldValue = oldVal && this.#isBackgroundFetch(oldVal) ? oldVal.__staleWhileFetching : oldVal;
|
|
27883
27624
|
oldValue !== void 0 && (status.oldValue = oldValue);
|
|
27884
27625
|
}
|
|
27885
|
-
} else
|
|
27886
|
-
status && (status.set = "update");
|
|
27626
|
+
} else status && (status.set = "update");
|
|
27887
27627
|
}
|
|
27888
27628
|
if (ttl !== 0 && !this.#ttls && this.#initializeTTLTracking(), this.#ttls && (noUpdateTTL || this.#setItemTTL(index, ttl, start), status && this.#statusTTL(status, index)), !noDisposeOnSet && this.#hasDisposeAfter && this.#disposed) {
|
|
27889
27629
|
let dt = this.#disposed, task;
|
|
@@ -27934,10 +27674,8 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
|
|
|
27934
27674
|
return !1;
|
|
27935
27675
|
if (this.#isStale(index))
|
|
27936
27676
|
status && (status.has = "stale", this.#statusTTL(status, index));
|
|
27937
|
-
else
|
|
27938
|
-
|
|
27939
|
-
} else
|
|
27940
|
-
status && (status.has = "miss");
|
|
27677
|
+
else return updateAgeOnHas && this.#updateItemAge(index), status && (status.has = "hit", this.#statusTTL(status, index)), !0;
|
|
27678
|
+
} else status && (status.has = "miss");
|
|
27941
27679
|
return !1;
|
|
27942
27680
|
}
|
|
27943
27681
|
/**
|
|
@@ -28071,8 +27809,7 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
|
|
|
28071
27809
|
if (index !== void 0) {
|
|
28072
27810
|
let value = this.#valList[index], fetching = this.#isBackgroundFetch(value);
|
|
28073
27811
|
return status && this.#statusTTL(status, index), this.#isStale(index) ? (status && (status.get = "stale"), fetching ? (status && allowStale && value.__staleWhileFetching !== void 0 && (status.returnedStale = !0), allowStale ? value.__staleWhileFetching : void 0) : (noDeleteOnStaleGet || this.delete(k), status && allowStale && (status.returnedStale = !0), allowStale ? value : void 0)) : (status && (status.get = "hit"), fetching ? value.__staleWhileFetching : (this.#moveToTail(index), updateAgeOnGet && this.#updateItemAge(index), value));
|
|
28074
|
-
} else
|
|
28075
|
-
status && (status.get = "miss");
|
|
27812
|
+
} else status && (status.get = "miss");
|
|
28076
27813
|
}
|
|
28077
27814
|
#connect(p, n) {
|
|
28078
27815
|
this.#prev[n] = p, this.#next[p] = n;
|
|
@@ -30814,8 +30551,7 @@ var HasWalkedCache = class _HasWalkedCache {
|
|
|
30814
30551
|
let tp = t.parent || t;
|
|
30815
30552
|
rrest ? this.hasWalkedCache.hasWalked(tp, rrest) || this.subwalks.add(tp, rrest) : this.matches.add(tp, absolute, !0);
|
|
30816
30553
|
}
|
|
30817
|
-
} else
|
|
30818
|
-
p instanceof RegExp && this.subwalks.add(t, pattern);
|
|
30554
|
+
} else p instanceof RegExp && this.subwalks.add(t, pattern);
|
|
30819
30555
|
}
|
|
30820
30556
|
return this;
|
|
30821
30557
|
}
|
|
@@ -30847,8 +30583,7 @@ var HasWalkedCache = class _HasWalkedCache {
|
|
|
30847
30583
|
else if (rp === "..") {
|
|
30848
30584
|
let ep = e.parent || e;
|
|
30849
30585
|
this.subwalks.add(ep, rest);
|
|
30850
|
-
} else
|
|
30851
|
-
rp instanceof RegExp && this.testRegExp(e, rp, rest.rest(), absolute);
|
|
30586
|
+
} else rp instanceof RegExp && this.testRegExp(e, rp, rest.rest(), absolute);
|
|
30852
30587
|
}
|
|
30853
30588
|
}
|
|
30854
30589
|
testRegExp(e, p, rest, absolute) {
|