@carbon/upgrade 11.0.0-rc.0 → 11.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +1249 -1108
- package/package.json +3 -3
package/cli.js
CHANGED
|
@@ -21,7 +21,6 @@ var __spreadValues = (a, b) => {
|
|
|
21
21
|
return a;
|
|
22
22
|
};
|
|
23
23
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
25
24
|
var __commonJS = (cb, mod) => function __require() {
|
|
26
25
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
27
26
|
};
|
|
@@ -29,22 +28,16 @@ var __export = (target, all) => {
|
|
|
29
28
|
for (var name2 in all)
|
|
30
29
|
__defProp(target, name2, { get: all[name2], enumerable: true });
|
|
31
30
|
};
|
|
32
|
-
var
|
|
33
|
-
if (
|
|
34
|
-
for (let key of __getOwnPropNames(
|
|
35
|
-
if (!__hasOwnProp.call(
|
|
36
|
-
__defProp(
|
|
31
|
+
var __copyProps = (to, from, except, desc) => {
|
|
32
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
33
|
+
for (let key of __getOwnPropNames(from))
|
|
34
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
35
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
37
36
|
}
|
|
38
|
-
return
|
|
37
|
+
return to;
|
|
39
38
|
};
|
|
40
|
-
var __toESM = (
|
|
41
|
-
|
|
42
|
-
};
|
|
43
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
44
|
-
return (module2, temp) => {
|
|
45
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
46
|
-
};
|
|
47
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
39
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
40
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
48
41
|
var __publicField = (obj, key, value) => {
|
|
49
42
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
50
43
|
return value;
|
|
@@ -1159,9 +1152,9 @@ var require_has_flag = __commonJS({
|
|
|
1159
1152
|
}
|
|
1160
1153
|
});
|
|
1161
1154
|
|
|
1162
|
-
// ../../node_modules/
|
|
1155
|
+
// ../../node_modules/supports-color/index.js
|
|
1163
1156
|
var require_supports_color = __commonJS({
|
|
1164
|
-
"../../node_modules/
|
|
1157
|
+
"../../node_modules/supports-color/index.js"(exports, module2) {
|
|
1165
1158
|
"use strict";
|
|
1166
1159
|
var os = require("os");
|
|
1167
1160
|
var tty = require("tty");
|
|
@@ -1591,9 +1584,9 @@ var require_source = __commonJS({
|
|
|
1591
1584
|
}
|
|
1592
1585
|
});
|
|
1593
1586
|
|
|
1594
|
-
// ../../node_modules/is-
|
|
1587
|
+
// ../../node_modules/is-obj/index.js
|
|
1595
1588
|
var require_is_obj = __commonJS({
|
|
1596
|
-
"../../node_modules/is-
|
|
1589
|
+
"../../node_modules/is-obj/index.js"(exports, module2) {
|
|
1597
1590
|
"use strict";
|
|
1598
1591
|
module2.exports = function(x) {
|
|
1599
1592
|
var type = typeof x;
|
|
@@ -3372,11 +3365,15 @@ var require_minimatch = __commonJS({
|
|
|
3372
3365
|
"../../node_modules/minimatch/minimatch.js"(exports, module2) {
|
|
3373
3366
|
module2.exports = minimatch;
|
|
3374
3367
|
minimatch.Minimatch = Minimatch;
|
|
3375
|
-
var path3 = {
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3368
|
+
var path3 = function() {
|
|
3369
|
+
try {
|
|
3370
|
+
return require("path");
|
|
3371
|
+
} catch (e) {
|
|
3372
|
+
}
|
|
3373
|
+
}() || {
|
|
3374
|
+
sep: "/"
|
|
3375
|
+
};
|
|
3376
|
+
minimatch.sep = path3.sep;
|
|
3380
3377
|
var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
3381
3378
|
var expand = require_brace_expansion();
|
|
3382
3379
|
var plTypes = {
|
|
@@ -3406,58 +3403,68 @@ var require_minimatch = __commonJS({
|
|
|
3406
3403
|
};
|
|
3407
3404
|
}
|
|
3408
3405
|
function ext(a, b) {
|
|
3409
|
-
a = a || {};
|
|
3410
3406
|
b = b || {};
|
|
3411
3407
|
var t = {};
|
|
3412
|
-
Object.keys(b).forEach(function(k) {
|
|
3413
|
-
t[k] = b[k];
|
|
3414
|
-
});
|
|
3415
3408
|
Object.keys(a).forEach(function(k) {
|
|
3416
3409
|
t[k] = a[k];
|
|
3417
3410
|
});
|
|
3411
|
+
Object.keys(b).forEach(function(k) {
|
|
3412
|
+
t[k] = b[k];
|
|
3413
|
+
});
|
|
3418
3414
|
return t;
|
|
3419
3415
|
}
|
|
3420
3416
|
minimatch.defaults = function(def) {
|
|
3421
|
-
if (!def || !Object.keys(def).length)
|
|
3417
|
+
if (!def || typeof def !== "object" || !Object.keys(def).length) {
|
|
3422
3418
|
return minimatch;
|
|
3419
|
+
}
|
|
3423
3420
|
var orig = minimatch;
|
|
3424
3421
|
var m = function minimatch2(p, pattern, options) {
|
|
3425
|
-
return orig
|
|
3422
|
+
return orig(p, pattern, ext(def, options));
|
|
3426
3423
|
};
|
|
3427
3424
|
m.Minimatch = function Minimatch2(pattern, options) {
|
|
3428
3425
|
return new orig.Minimatch(pattern, ext(def, options));
|
|
3429
3426
|
};
|
|
3427
|
+
m.Minimatch.defaults = function defaults(options) {
|
|
3428
|
+
return orig.defaults(ext(def, options)).Minimatch;
|
|
3429
|
+
};
|
|
3430
|
+
m.filter = function filter2(pattern, options) {
|
|
3431
|
+
return orig.filter(pattern, ext(def, options));
|
|
3432
|
+
};
|
|
3433
|
+
m.defaults = function defaults(options) {
|
|
3434
|
+
return orig.defaults(ext(def, options));
|
|
3435
|
+
};
|
|
3436
|
+
m.makeRe = function makeRe2(pattern, options) {
|
|
3437
|
+
return orig.makeRe(pattern, ext(def, options));
|
|
3438
|
+
};
|
|
3439
|
+
m.braceExpand = function braceExpand2(pattern, options) {
|
|
3440
|
+
return orig.braceExpand(pattern, ext(def, options));
|
|
3441
|
+
};
|
|
3442
|
+
m.match = function(list, pattern, options) {
|
|
3443
|
+
return orig.match(list, pattern, ext(def, options));
|
|
3444
|
+
};
|
|
3430
3445
|
return m;
|
|
3431
3446
|
};
|
|
3432
3447
|
Minimatch.defaults = function(def) {
|
|
3433
|
-
if (!def || !Object.keys(def).length)
|
|
3434
|
-
return Minimatch;
|
|
3435
3448
|
return minimatch.defaults(def).Minimatch;
|
|
3436
3449
|
};
|
|
3437
3450
|
function minimatch(p, pattern, options) {
|
|
3438
|
-
|
|
3439
|
-
throw new TypeError("glob pattern string required");
|
|
3440
|
-
}
|
|
3451
|
+
assertValidPattern(pattern);
|
|
3441
3452
|
if (!options)
|
|
3442
3453
|
options = {};
|
|
3443
3454
|
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
3444
3455
|
return false;
|
|
3445
3456
|
}
|
|
3446
|
-
if (pattern.trim() === "")
|
|
3447
|
-
return p === "";
|
|
3448
3457
|
return new Minimatch(pattern, options).match(p);
|
|
3449
3458
|
}
|
|
3450
3459
|
function Minimatch(pattern, options) {
|
|
3451
3460
|
if (!(this instanceof Minimatch)) {
|
|
3452
3461
|
return new Minimatch(pattern, options);
|
|
3453
3462
|
}
|
|
3454
|
-
|
|
3455
|
-
throw new TypeError("glob pattern string required");
|
|
3456
|
-
}
|
|
3463
|
+
assertValidPattern(pattern);
|
|
3457
3464
|
if (!options)
|
|
3458
3465
|
options = {};
|
|
3459
3466
|
pattern = pattern.trim();
|
|
3460
|
-
if (path3.sep !== "/") {
|
|
3467
|
+
if (!options.allowWindowsEscape && path3.sep !== "/") {
|
|
3461
3468
|
pattern = pattern.split(path3.sep).join("/");
|
|
3462
3469
|
}
|
|
3463
3470
|
this.options = options;
|
|
@@ -3467,14 +3474,13 @@ var require_minimatch = __commonJS({
|
|
|
3467
3474
|
this.negate = false;
|
|
3468
3475
|
this.comment = false;
|
|
3469
3476
|
this.empty = false;
|
|
3477
|
+
this.partial = !!options.partial;
|
|
3470
3478
|
this.make();
|
|
3471
3479
|
}
|
|
3472
3480
|
Minimatch.prototype.debug = function() {
|
|
3473
3481
|
};
|
|
3474
3482
|
Minimatch.prototype.make = make;
|
|
3475
3483
|
function make() {
|
|
3476
|
-
if (this._made)
|
|
3477
|
-
return;
|
|
3478
3484
|
var pattern = this.pattern;
|
|
3479
3485
|
var options = this.options;
|
|
3480
3486
|
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
@@ -3488,7 +3494,9 @@ var require_minimatch = __commonJS({
|
|
|
3488
3494
|
this.parseNegate();
|
|
3489
3495
|
var set = this.globSet = this.braceExpand();
|
|
3490
3496
|
if (options.debug)
|
|
3491
|
-
this.debug =
|
|
3497
|
+
this.debug = function debug() {
|
|
3498
|
+
console.error.apply(console, arguments);
|
|
3499
|
+
};
|
|
3492
3500
|
this.debug(this.pattern, set);
|
|
3493
3501
|
set = this.globParts = set.map(function(s) {
|
|
3494
3502
|
return s.split(slashSplit);
|
|
@@ -3533,23 +3541,32 @@ var require_minimatch = __commonJS({
|
|
|
3533
3541
|
}
|
|
3534
3542
|
}
|
|
3535
3543
|
pattern = typeof pattern === "undefined" ? this.pattern : pattern;
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
}
|
|
3539
|
-
if (options.nobrace || !pattern.match(/\{.*\}/)) {
|
|
3544
|
+
assertValidPattern(pattern);
|
|
3545
|
+
if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
|
|
3540
3546
|
return [pattern];
|
|
3541
3547
|
}
|
|
3542
3548
|
return expand(pattern);
|
|
3543
3549
|
}
|
|
3550
|
+
var MAX_PATTERN_LENGTH = 1024 * 64;
|
|
3551
|
+
var assertValidPattern = function(pattern) {
|
|
3552
|
+
if (typeof pattern !== "string") {
|
|
3553
|
+
throw new TypeError("invalid pattern");
|
|
3554
|
+
}
|
|
3555
|
+
if (pattern.length > MAX_PATTERN_LENGTH) {
|
|
3556
|
+
throw new TypeError("pattern is too long");
|
|
3557
|
+
}
|
|
3558
|
+
};
|
|
3544
3559
|
Minimatch.prototype.parse = parse;
|
|
3545
3560
|
var SUBPARSE = {};
|
|
3546
3561
|
function parse(pattern, isSub) {
|
|
3547
|
-
|
|
3548
|
-
throw new TypeError("pattern is too long");
|
|
3549
|
-
}
|
|
3562
|
+
assertValidPattern(pattern);
|
|
3550
3563
|
var options = this.options;
|
|
3551
|
-
if (
|
|
3552
|
-
|
|
3564
|
+
if (pattern === "**") {
|
|
3565
|
+
if (!options.noglobstar)
|
|
3566
|
+
return GLOBSTAR;
|
|
3567
|
+
else
|
|
3568
|
+
pattern = "*";
|
|
3569
|
+
}
|
|
3553
3570
|
if (pattern === "")
|
|
3554
3571
|
return "";
|
|
3555
3572
|
var re = "";
|
|
@@ -3590,8 +3607,9 @@ var require_minimatch = __commonJS({
|
|
|
3590
3607
|
continue;
|
|
3591
3608
|
}
|
|
3592
3609
|
switch (c) {
|
|
3593
|
-
case "/":
|
|
3610
|
+
case "/": {
|
|
3594
3611
|
return false;
|
|
3612
|
+
}
|
|
3595
3613
|
case "\\":
|
|
3596
3614
|
clearStateChar();
|
|
3597
3615
|
escaping = true;
|
|
@@ -3675,17 +3693,15 @@ var require_minimatch = __commonJS({
|
|
|
3675
3693
|
escaping = false;
|
|
3676
3694
|
continue;
|
|
3677
3695
|
}
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
continue;
|
|
3688
|
-
}
|
|
3696
|
+
var cs = pattern.substring(classStart + 1, i);
|
|
3697
|
+
try {
|
|
3698
|
+
RegExp("[" + cs + "]");
|
|
3699
|
+
} catch (er) {
|
|
3700
|
+
var sp = this.parse(cs, SUBPARSE);
|
|
3701
|
+
re = re.substr(0, reClassStart) + "\\[" + sp[0] + "\\]";
|
|
3702
|
+
hasMagic = hasMagic || sp[1];
|
|
3703
|
+
inClass = false;
|
|
3704
|
+
continue;
|
|
3689
3705
|
}
|
|
3690
3706
|
hasMagic = true;
|
|
3691
3707
|
inClass = false;
|
|
@@ -3727,8 +3743,8 @@ var require_minimatch = __commonJS({
|
|
|
3727
3743
|
}
|
|
3728
3744
|
var addPatternStart = false;
|
|
3729
3745
|
switch (re.charAt(0)) {
|
|
3730
|
-
case ".":
|
|
3731
3746
|
case "[":
|
|
3747
|
+
case ".":
|
|
3732
3748
|
case "(":
|
|
3733
3749
|
addPatternStart = true;
|
|
3734
3750
|
}
|
|
@@ -3815,8 +3831,9 @@ var require_minimatch = __commonJS({
|
|
|
3815
3831
|
}
|
|
3816
3832
|
return list;
|
|
3817
3833
|
};
|
|
3818
|
-
Minimatch.prototype.match = match
|
|
3819
|
-
|
|
3834
|
+
Minimatch.prototype.match = function match(f, partial) {
|
|
3835
|
+
if (typeof partial === "undefined")
|
|
3836
|
+
partial = this.partial;
|
|
3820
3837
|
this.debug("match", f, this.pattern);
|
|
3821
3838
|
if (this.comment)
|
|
3822
3839
|
return false;
|
|
@@ -3855,7 +3872,7 @@ var require_minimatch = __commonJS({
|
|
|
3855
3872
|
if (options.flipNegate)
|
|
3856
3873
|
return false;
|
|
3857
3874
|
return this.negate;
|
|
3858
|
-
}
|
|
3875
|
+
};
|
|
3859
3876
|
Minimatch.prototype.matchOne = function(file, pattern, partial) {
|
|
3860
3877
|
var options = this.options;
|
|
3861
3878
|
this.debug("matchOne", { "this": this, file, pattern });
|
|
@@ -3903,11 +3920,7 @@ var require_minimatch = __commonJS({
|
|
|
3903
3920
|
}
|
|
3904
3921
|
var hit;
|
|
3905
3922
|
if (typeof p === "string") {
|
|
3906
|
-
|
|
3907
|
-
hit = f.toLowerCase() === p.toLowerCase();
|
|
3908
|
-
} else {
|
|
3909
|
-
hit = f === p;
|
|
3910
|
-
}
|
|
3923
|
+
hit = f === p;
|
|
3911
3924
|
this.debug("string match", p, f, hit);
|
|
3912
3925
|
} else {
|
|
3913
3926
|
hit = f.match(p);
|
|
@@ -3921,8 +3934,7 @@ var require_minimatch = __commonJS({
|
|
|
3921
3934
|
} else if (fi === fl) {
|
|
3922
3935
|
return partial;
|
|
3923
3936
|
} else if (pi === pl) {
|
|
3924
|
-
|
|
3925
|
-
return emptyFileEnd;
|
|
3937
|
+
return fi === fl - 1 && file[fi] === "";
|
|
3926
3938
|
}
|
|
3927
3939
|
throw new Error("wtf?");
|
|
3928
3940
|
};
|
|
@@ -3984,9 +3996,9 @@ var require_array_uniq = __commonJS({
|
|
|
3984
3996
|
}
|
|
3985
3997
|
});
|
|
3986
3998
|
|
|
3987
|
-
// ../../node_modules/
|
|
3999
|
+
// ../../node_modules/array-union/index.js
|
|
3988
4000
|
var require_array_union = __commonJS({
|
|
3989
|
-
"../../node_modules/
|
|
4001
|
+
"../../node_modules/array-union/index.js"(exports, module2) {
|
|
3990
4002
|
"use strict";
|
|
3991
4003
|
var arrayUniq = require_array_uniq();
|
|
3992
4004
|
module2.exports = function() {
|
|
@@ -20130,6 +20142,8 @@ var require_signal_exit = __commonJS({
|
|
|
20130
20142
|
};
|
|
20131
20143
|
if (!processOk(process2)) {
|
|
20132
20144
|
module2.exports = function() {
|
|
20145
|
+
return function() {
|
|
20146
|
+
};
|
|
20133
20147
|
};
|
|
20134
20148
|
} else {
|
|
20135
20149
|
assert = require("assert");
|
|
@@ -20152,7 +20166,8 @@ var require_signal_exit = __commonJS({
|
|
|
20152
20166
|
}
|
|
20153
20167
|
module2.exports = function(cb, opts) {
|
|
20154
20168
|
if (!processOk(global.process)) {
|
|
20155
|
-
return
|
|
20169
|
+
return function() {
|
|
20170
|
+
};
|
|
20156
20171
|
}
|
|
20157
20172
|
assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
|
|
20158
20173
|
if (loaded === false) {
|
|
@@ -22258,9 +22273,9 @@ var require_is_unicode_supported = __commonJS({
|
|
|
22258
22273
|
}
|
|
22259
22274
|
});
|
|
22260
22275
|
|
|
22261
|
-
//
|
|
22276
|
+
// node_modules/log-symbols/index.js
|
|
22262
22277
|
var require_log_symbols = __commonJS({
|
|
22263
|
-
"
|
|
22278
|
+
"node_modules/log-symbols/index.js"(exports, module2) {
|
|
22264
22279
|
"use strict";
|
|
22265
22280
|
var chalk4 = require_source();
|
|
22266
22281
|
var isUnicodeSupported = require_is_unicode_supported();
|
|
@@ -37168,7 +37183,7 @@ var require_re = __commonJS({
|
|
|
37168
37183
|
var R = 0;
|
|
37169
37184
|
var createToken = (name2, value, isGlobal) => {
|
|
37170
37185
|
const index = R++;
|
|
37171
|
-
debug(index, value);
|
|
37186
|
+
debug(name2, index, value);
|
|
37172
37187
|
t[name2] = index;
|
|
37173
37188
|
src[index] = value;
|
|
37174
37189
|
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
@@ -37214,8 +37229,8 @@ var require_re = __commonJS({
|
|
|
37214
37229
|
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
37215
37230
|
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
37216
37231
|
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
37217
|
-
createToken("GTE0", "^\\s*>=\\s*0
|
|
37218
|
-
createToken("GTE0PRE", "^\\s*>=\\s*0
|
|
37232
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
37233
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
37219
37234
|
}
|
|
37220
37235
|
});
|
|
37221
37236
|
|
|
@@ -37223,9 +37238,9 @@ var require_re = __commonJS({
|
|
|
37223
37238
|
var require_parse_options = __commonJS({
|
|
37224
37239
|
"../../node_modules/semver/internal/parse-options.js"(exports, module2) {
|
|
37225
37240
|
var opts = ["includePrerelease", "loose", "rtl"];
|
|
37226
|
-
var parseOptions = (options) => !options ? {} : typeof options !== "object" ? { loose: true } : opts.filter((k) => options[k]).reduce((
|
|
37227
|
-
|
|
37228
|
-
return
|
|
37241
|
+
var parseOptions = (options) => !options ? {} : typeof options !== "object" ? { loose: true } : opts.filter((k) => options[k]).reduce((o, k) => {
|
|
37242
|
+
o[k] = true;
|
|
37243
|
+
return o;
|
|
37229
37244
|
}, {});
|
|
37230
37245
|
module2.exports = parseOptions;
|
|
37231
37246
|
}
|
|
@@ -37455,7 +37470,7 @@ var require_semver = __commonJS({
|
|
|
37455
37470
|
}
|
|
37456
37471
|
}
|
|
37457
37472
|
if (identifier) {
|
|
37458
|
-
if (this.prerelease[0] ===
|
|
37473
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
37459
37474
|
if (isNaN(this.prerelease[1])) {
|
|
37460
37475
|
this.prerelease = [identifier, 0];
|
|
37461
37476
|
}
|
|
@@ -37542,7 +37557,7 @@ var require_inc = __commonJS({
|
|
|
37542
37557
|
options = void 0;
|
|
37543
37558
|
}
|
|
37544
37559
|
try {
|
|
37545
|
-
return new SemVer(version2, options).inc(release, identifier).version;
|
|
37560
|
+
return new SemVer(version2 instanceof SemVer ? version2.version : version2, options).inc(release, identifier).version;
|
|
37546
37561
|
} catch (er) {
|
|
37547
37562
|
return null;
|
|
37548
37563
|
}
|
|
@@ -37742,16 +37757,20 @@ var require_cmp = __commonJS({
|
|
|
37742
37757
|
var cmp = (a, op, b, loose) => {
|
|
37743
37758
|
switch (op) {
|
|
37744
37759
|
case "===":
|
|
37745
|
-
if (typeof a === "object")
|
|
37760
|
+
if (typeof a === "object") {
|
|
37746
37761
|
a = a.version;
|
|
37747
|
-
|
|
37762
|
+
}
|
|
37763
|
+
if (typeof b === "object") {
|
|
37748
37764
|
b = b.version;
|
|
37765
|
+
}
|
|
37749
37766
|
return a === b;
|
|
37750
37767
|
case "!==":
|
|
37751
|
-
if (typeof a === "object")
|
|
37768
|
+
if (typeof a === "object") {
|
|
37752
37769
|
a = a.version;
|
|
37753
|
-
|
|
37770
|
+
}
|
|
37771
|
+
if (typeof b === "object") {
|
|
37754
37772
|
b = b.version;
|
|
37773
|
+
}
|
|
37755
37774
|
return a !== b;
|
|
37756
37775
|
case "":
|
|
37757
37776
|
case "=":
|
|
@@ -37805,8 +37824,9 @@ var require_coerce = __commonJS({
|
|
|
37805
37824
|
}
|
|
37806
37825
|
re[t.COERCERTL].lastIndex = -1;
|
|
37807
37826
|
}
|
|
37808
|
-
if (match === null)
|
|
37827
|
+
if (match === null) {
|
|
37809
37828
|
return null;
|
|
37829
|
+
}
|
|
37810
37830
|
return parse(`${match[2]}.${match[3] || "0"}.${match[4] || "0"}`, options);
|
|
37811
37831
|
};
|
|
37812
37832
|
module2.exports = coerce;
|
|
@@ -38487,16 +38507,16 @@ var require_range2 = __commonJS({
|
|
|
38487
38507
|
this.loose = !!options.loose;
|
|
38488
38508
|
this.includePrerelease = !!options.includePrerelease;
|
|
38489
38509
|
this.raw = range;
|
|
38490
|
-
this.set = range.split(
|
|
38510
|
+
this.set = range.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
38491
38511
|
if (!this.set.length) {
|
|
38492
38512
|
throw new TypeError(`Invalid SemVer Range: ${range}`);
|
|
38493
38513
|
}
|
|
38494
38514
|
if (this.set.length > 1) {
|
|
38495
38515
|
const first = this.set[0];
|
|
38496
38516
|
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
38497
|
-
if (this.set.length === 0)
|
|
38517
|
+
if (this.set.length === 0) {
|
|
38498
38518
|
this.set = [first];
|
|
38499
|
-
else if (this.set.length > 1) {
|
|
38519
|
+
} else if (this.set.length > 1) {
|
|
38500
38520
|
for (const c of this.set) {
|
|
38501
38521
|
if (c.length === 1 && isAny(c[0])) {
|
|
38502
38522
|
this.set = [c];
|
|
@@ -38521,28 +38541,37 @@ var require_range2 = __commonJS({
|
|
|
38521
38541
|
const memoOpts = Object.keys(this.options).join(",");
|
|
38522
38542
|
const memoKey = `parseRange:${memoOpts}:${range}`;
|
|
38523
38543
|
const cached = cache.get(memoKey);
|
|
38524
|
-
if (cached)
|
|
38544
|
+
if (cached) {
|
|
38525
38545
|
return cached;
|
|
38546
|
+
}
|
|
38526
38547
|
const loose = this.options.loose;
|
|
38527
38548
|
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
38528
38549
|
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
38529
38550
|
debug("hyphen replace", range);
|
|
38530
38551
|
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
38531
|
-
debug("comparator trim", range
|
|
38552
|
+
debug("comparator trim", range);
|
|
38532
38553
|
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
38533
38554
|
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
38534
38555
|
range = range.split(/\s+/).join(" ");
|
|
38535
|
-
|
|
38536
|
-
|
|
38537
|
-
|
|
38556
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
38557
|
+
if (loose) {
|
|
38558
|
+
rangeList = rangeList.filter((comp) => {
|
|
38559
|
+
debug("loose invalid filter", comp, this.options);
|
|
38560
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
38561
|
+
});
|
|
38562
|
+
}
|
|
38563
|
+
debug("range list", rangeList);
|
|
38538
38564
|
const rangeMap = /* @__PURE__ */ new Map();
|
|
38539
|
-
|
|
38540
|
-
|
|
38565
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
38566
|
+
for (const comp of comparators) {
|
|
38567
|
+
if (isNullSet(comp)) {
|
|
38541
38568
|
return [comp];
|
|
38569
|
+
}
|
|
38542
38570
|
rangeMap.set(comp.value, comp);
|
|
38543
38571
|
}
|
|
38544
|
-
if (rangeMap.size > 1 && rangeMap.has(""))
|
|
38572
|
+
if (rangeMap.size > 1 && rangeMap.has("")) {
|
|
38545
38573
|
rangeMap.delete("");
|
|
38574
|
+
}
|
|
38546
38575
|
const result = [...rangeMap.values()];
|
|
38547
38576
|
cache.set(memoKey, result);
|
|
38548
38577
|
return result;
|
|
@@ -38621,8 +38650,8 @@ var require_range2 = __commonJS({
|
|
|
38621
38650
|
return comp;
|
|
38622
38651
|
};
|
|
38623
38652
|
var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
38624
|
-
var replaceTildes = (comp, options) => comp.trim().split(/\s+/).map((
|
|
38625
|
-
return replaceTilde(
|
|
38653
|
+
var replaceTildes = (comp, options) => comp.trim().split(/\s+/).map((c) => {
|
|
38654
|
+
return replaceTilde(c, options);
|
|
38626
38655
|
}).join(" ");
|
|
38627
38656
|
var replaceTilde = (comp, options) => {
|
|
38628
38657
|
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
@@ -38645,8 +38674,8 @@ var require_range2 = __commonJS({
|
|
|
38645
38674
|
return ret;
|
|
38646
38675
|
});
|
|
38647
38676
|
};
|
|
38648
|
-
var replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((
|
|
38649
|
-
return replaceCaret(
|
|
38677
|
+
var replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((c) => {
|
|
38678
|
+
return replaceCaret(c, options);
|
|
38650
38679
|
}).join(" ");
|
|
38651
38680
|
var replaceCaret = (comp, options) => {
|
|
38652
38681
|
debug("caret", comp, options);
|
|
@@ -38694,8 +38723,8 @@ var require_range2 = __commonJS({
|
|
|
38694
38723
|
};
|
|
38695
38724
|
var replaceXRanges = (comp, options) => {
|
|
38696
38725
|
debug("replaceXRanges", comp, options);
|
|
38697
|
-
return comp.split(/\s+/).map((
|
|
38698
|
-
return replaceXRange(
|
|
38726
|
+
return comp.split(/\s+/).map((c) => {
|
|
38727
|
+
return replaceXRange(c, options);
|
|
38699
38728
|
}).join(" ");
|
|
38700
38729
|
};
|
|
38701
38730
|
var replaceXRange = (comp, options) => {
|
|
@@ -38740,8 +38769,9 @@ var require_range2 = __commonJS({
|
|
|
38740
38769
|
m = +m + 1;
|
|
38741
38770
|
}
|
|
38742
38771
|
}
|
|
38743
|
-
if (gtlt === "<")
|
|
38772
|
+
if (gtlt === "<") {
|
|
38744
38773
|
pr = "-0";
|
|
38774
|
+
}
|
|
38745
38775
|
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
38746
38776
|
} else if (xm) {
|
|
38747
38777
|
ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
@@ -39038,8 +39068,9 @@ var require_min_version = __commonJS({
|
|
|
39038
39068
|
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
39039
39069
|
}
|
|
39040
39070
|
});
|
|
39041
|
-
if (setMin && (!minver || gt(minver, setMin)))
|
|
39071
|
+
if (setMin && (!minver || gt(minver, setMin))) {
|
|
39042
39072
|
minver = setMin;
|
|
39073
|
+
}
|
|
39043
39074
|
}
|
|
39044
39075
|
if (minver && range.test(minver)) {
|
|
39045
39076
|
return minver;
|
|
@@ -39171,37 +39202,40 @@ var require_simplify = __commonJS({
|
|
|
39171
39202
|
var compare = require_compare();
|
|
39172
39203
|
module2.exports = (versions, range, options) => {
|
|
39173
39204
|
const set = [];
|
|
39174
|
-
let
|
|
39205
|
+
let first = null;
|
|
39175
39206
|
let prev = null;
|
|
39176
39207
|
const v = versions.sort((a, b) => compare(a, b, options));
|
|
39177
39208
|
for (const version2 of v) {
|
|
39178
39209
|
const included = satisfies(version2, range, options);
|
|
39179
39210
|
if (included) {
|
|
39180
39211
|
prev = version2;
|
|
39181
|
-
if (!
|
|
39182
|
-
|
|
39212
|
+
if (!first) {
|
|
39213
|
+
first = version2;
|
|
39214
|
+
}
|
|
39183
39215
|
} else {
|
|
39184
39216
|
if (prev) {
|
|
39185
|
-
set.push([
|
|
39217
|
+
set.push([first, prev]);
|
|
39186
39218
|
}
|
|
39187
39219
|
prev = null;
|
|
39188
|
-
|
|
39220
|
+
first = null;
|
|
39189
39221
|
}
|
|
39190
39222
|
}
|
|
39191
|
-
if (
|
|
39192
|
-
set.push([
|
|
39223
|
+
if (first) {
|
|
39224
|
+
set.push([first, null]);
|
|
39225
|
+
}
|
|
39193
39226
|
const ranges = [];
|
|
39194
|
-
for (const [
|
|
39195
|
-
if (
|
|
39196
|
-
ranges.push(
|
|
39197
|
-
else if (!max &&
|
|
39227
|
+
for (const [min, max] of set) {
|
|
39228
|
+
if (min === max) {
|
|
39229
|
+
ranges.push(min);
|
|
39230
|
+
} else if (!max && min === v[0]) {
|
|
39198
39231
|
ranges.push("*");
|
|
39199
|
-
else if (!max)
|
|
39200
|
-
ranges.push(`>=${
|
|
39201
|
-
else if (
|
|
39232
|
+
} else if (!max) {
|
|
39233
|
+
ranges.push(`>=${min}`);
|
|
39234
|
+
} else if (min === v[0]) {
|
|
39202
39235
|
ranges.push(`<=${max}`);
|
|
39203
|
-
else
|
|
39204
|
-
ranges.push(`${
|
|
39236
|
+
} else {
|
|
39237
|
+
ranges.push(`${min} - ${max}`);
|
|
39238
|
+
}
|
|
39205
39239
|
}
|
|
39206
39240
|
const simplified = ranges.join(" || ");
|
|
39207
39241
|
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
@@ -39219,8 +39253,9 @@ var require_subset = __commonJS({
|
|
|
39219
39253
|
var satisfies = require_satisfies();
|
|
39220
39254
|
var compare = require_compare();
|
|
39221
39255
|
var subset = (sub, dom, options = {}) => {
|
|
39222
|
-
if (sub === dom)
|
|
39256
|
+
if (sub === dom) {
|
|
39223
39257
|
return true;
|
|
39258
|
+
}
|
|
39224
39259
|
sub = new Range(sub, options);
|
|
39225
39260
|
dom = new Range(dom, options);
|
|
39226
39261
|
let sawNonNull = false;
|
|
@@ -39229,59 +39264,70 @@ var require_subset = __commonJS({
|
|
|
39229
39264
|
for (const simpleDom of dom.set) {
|
|
39230
39265
|
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
39231
39266
|
sawNonNull = sawNonNull || isSub !== null;
|
|
39232
|
-
if (isSub)
|
|
39267
|
+
if (isSub) {
|
|
39233
39268
|
continue OUTER;
|
|
39269
|
+
}
|
|
39234
39270
|
}
|
|
39235
|
-
if (sawNonNull)
|
|
39271
|
+
if (sawNonNull) {
|
|
39236
39272
|
return false;
|
|
39273
|
+
}
|
|
39237
39274
|
}
|
|
39238
39275
|
return true;
|
|
39239
39276
|
};
|
|
39240
39277
|
var simpleSubset = (sub, dom, options) => {
|
|
39241
|
-
if (sub === dom)
|
|
39278
|
+
if (sub === dom) {
|
|
39242
39279
|
return true;
|
|
39280
|
+
}
|
|
39243
39281
|
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
39244
|
-
if (dom.length === 1 && dom[0].semver === ANY)
|
|
39282
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
39245
39283
|
return true;
|
|
39246
|
-
else if (options.includePrerelease)
|
|
39284
|
+
} else if (options.includePrerelease) {
|
|
39247
39285
|
sub = [new Comparator(">=0.0.0-0")];
|
|
39248
|
-
else
|
|
39286
|
+
} else {
|
|
39249
39287
|
sub = [new Comparator(">=0.0.0")];
|
|
39288
|
+
}
|
|
39250
39289
|
}
|
|
39251
39290
|
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
39252
|
-
if (options.includePrerelease)
|
|
39291
|
+
if (options.includePrerelease) {
|
|
39253
39292
|
return true;
|
|
39254
|
-
else
|
|
39293
|
+
} else {
|
|
39255
39294
|
dom = [new Comparator(">=0.0.0")];
|
|
39295
|
+
}
|
|
39256
39296
|
}
|
|
39257
39297
|
const eqSet = /* @__PURE__ */ new Set();
|
|
39258
39298
|
let gt, lt;
|
|
39259
39299
|
for (const c of sub) {
|
|
39260
|
-
if (c.operator === ">" || c.operator === ">=")
|
|
39300
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
39261
39301
|
gt = higherGT(gt, c, options);
|
|
39262
|
-
else if (c.operator === "<" || c.operator === "<=")
|
|
39302
|
+
} else if (c.operator === "<" || c.operator === "<=") {
|
|
39263
39303
|
lt = lowerLT(lt, c, options);
|
|
39264
|
-
else
|
|
39304
|
+
} else {
|
|
39265
39305
|
eqSet.add(c.semver);
|
|
39306
|
+
}
|
|
39266
39307
|
}
|
|
39267
|
-
if (eqSet.size > 1)
|
|
39308
|
+
if (eqSet.size > 1) {
|
|
39268
39309
|
return null;
|
|
39310
|
+
}
|
|
39269
39311
|
let gtltComp;
|
|
39270
39312
|
if (gt && lt) {
|
|
39271
39313
|
gtltComp = compare(gt.semver, lt.semver, options);
|
|
39272
|
-
if (gtltComp > 0)
|
|
39314
|
+
if (gtltComp > 0) {
|
|
39273
39315
|
return null;
|
|
39274
|
-
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<="))
|
|
39316
|
+
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
|
|
39275
39317
|
return null;
|
|
39318
|
+
}
|
|
39276
39319
|
}
|
|
39277
39320
|
for (const eq of eqSet) {
|
|
39278
|
-
if (gt && !satisfies(eq, String(gt), options))
|
|
39321
|
+
if (gt && !satisfies(eq, String(gt), options)) {
|
|
39279
39322
|
return null;
|
|
39280
|
-
|
|
39323
|
+
}
|
|
39324
|
+
if (lt && !satisfies(eq, String(lt), options)) {
|
|
39281
39325
|
return null;
|
|
39326
|
+
}
|
|
39282
39327
|
for (const c of dom) {
|
|
39283
|
-
if (!satisfies(eq, String(c), options))
|
|
39328
|
+
if (!satisfies(eq, String(c), options)) {
|
|
39284
39329
|
return false;
|
|
39330
|
+
}
|
|
39285
39331
|
}
|
|
39286
39332
|
return true;
|
|
39287
39333
|
}
|
|
@@ -39303,10 +39349,12 @@ var require_subset = __commonJS({
|
|
|
39303
39349
|
}
|
|
39304
39350
|
if (c.operator === ">" || c.operator === ">=") {
|
|
39305
39351
|
higher = higherGT(gt, c, options);
|
|
39306
|
-
if (higher === c && higher !== gt)
|
|
39352
|
+
if (higher === c && higher !== gt) {
|
|
39307
39353
|
return false;
|
|
39308
|
-
|
|
39354
|
+
}
|
|
39355
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) {
|
|
39309
39356
|
return false;
|
|
39357
|
+
}
|
|
39310
39358
|
}
|
|
39311
39359
|
if (lt) {
|
|
39312
39360
|
if (needDomLTPre) {
|
|
@@ -39316,31 +39364,39 @@ var require_subset = __commonJS({
|
|
|
39316
39364
|
}
|
|
39317
39365
|
if (c.operator === "<" || c.operator === "<=") {
|
|
39318
39366
|
lower = lowerLT(lt, c, options);
|
|
39319
|
-
if (lower === c && lower !== lt)
|
|
39367
|
+
if (lower === c && lower !== lt) {
|
|
39320
39368
|
return false;
|
|
39321
|
-
|
|
39369
|
+
}
|
|
39370
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) {
|
|
39322
39371
|
return false;
|
|
39372
|
+
}
|
|
39323
39373
|
}
|
|
39324
|
-
if (!c.operator && (lt || gt) && gtltComp !== 0)
|
|
39374
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) {
|
|
39325
39375
|
return false;
|
|
39376
|
+
}
|
|
39326
39377
|
}
|
|
39327
|
-
if (gt && hasDomLT && !lt && gtltComp !== 0)
|
|
39378
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) {
|
|
39328
39379
|
return false;
|
|
39329
|
-
|
|
39380
|
+
}
|
|
39381
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) {
|
|
39330
39382
|
return false;
|
|
39331
|
-
|
|
39383
|
+
}
|
|
39384
|
+
if (needDomGTPre || needDomLTPre) {
|
|
39332
39385
|
return false;
|
|
39386
|
+
}
|
|
39333
39387
|
return true;
|
|
39334
39388
|
};
|
|
39335
39389
|
var higherGT = (a, b, options) => {
|
|
39336
|
-
if (!a)
|
|
39390
|
+
if (!a) {
|
|
39337
39391
|
return b;
|
|
39392
|
+
}
|
|
39338
39393
|
const comp = compare(a.semver, b.semver, options);
|
|
39339
39394
|
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
39340
39395
|
};
|
|
39341
39396
|
var lowerLT = (a, b, options) => {
|
|
39342
|
-
if (!a)
|
|
39397
|
+
if (!a) {
|
|
39343
39398
|
return b;
|
|
39399
|
+
}
|
|
39344
39400
|
const comp = compare(a.semver, b.semver, options);
|
|
39345
39401
|
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
39346
39402
|
};
|
|
@@ -39401,9 +39457,9 @@ var require_semver2 = __commonJS({
|
|
|
39401
39457
|
}
|
|
39402
39458
|
});
|
|
39403
39459
|
|
|
39404
|
-
// ../../node_modules/
|
|
39460
|
+
// ../../node_modules/universalify/index.js
|
|
39405
39461
|
var require_universalify = __commonJS({
|
|
39406
|
-
"../../node_modules/
|
|
39462
|
+
"../../node_modules/universalify/index.js"(exports) {
|
|
39407
39463
|
"use strict";
|
|
39408
39464
|
exports.fromCallback = function(fn) {
|
|
39409
39465
|
return Object.defineProperty(function(...args) {
|
|
@@ -44024,7 +44080,8 @@ var require_parse4 = __commonJS({
|
|
|
44024
44080
|
output = token.close = `)$))${extglobStar}`;
|
|
44025
44081
|
}
|
|
44026
44082
|
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
|
|
44027
|
-
|
|
44083
|
+
const expression = parse(rest, __spreadProps(__spreadValues({}, options), { fastpaths: false })).output;
|
|
44084
|
+
output = token.close = `)${expression})${extglobStar})`;
|
|
44028
44085
|
}
|
|
44029
44086
|
if (token.prev.type === "bos") {
|
|
44030
44087
|
state.negatedExtglob = true;
|
|
@@ -44842,9 +44899,9 @@ var require_micromatch = __commonJS({
|
|
|
44842
44899
|
options.onResult(state);
|
|
44843
44900
|
items.push(state.output);
|
|
44844
44901
|
};
|
|
44845
|
-
let matches = micromatch(list, patterns, __spreadProps(__spreadValues({}, options), { onResult }));
|
|
44902
|
+
let matches = new Set(micromatch(list, patterns, __spreadProps(__spreadValues({}, options), { onResult })));
|
|
44846
44903
|
for (let item of items) {
|
|
44847
|
-
if (!matches.
|
|
44904
|
+
if (!matches.has(item)) {
|
|
44848
44905
|
result.add(item);
|
|
44849
44906
|
}
|
|
44850
44907
|
}
|
|
@@ -47703,9 +47760,9 @@ var require_lodash = __commonJS({
|
|
|
47703
47760
|
}
|
|
47704
47761
|
});
|
|
47705
47762
|
|
|
47706
|
-
// ../../node_modules/jest-get-type/build/index.js
|
|
47763
|
+
// ../../node_modules/jest-diff/node_modules/jest-get-type/build/index.js
|
|
47707
47764
|
var require_build = __commonJS({
|
|
47708
|
-
"../../node_modules/jest-get-type/build/index.js"(exports) {
|
|
47765
|
+
"../../node_modules/jest-diff/node_modules/jest-get-type/build/index.js"(exports) {
|
|
47709
47766
|
"use strict";
|
|
47710
47767
|
Object.defineProperty(exports, "__esModule", {
|
|
47711
47768
|
value: true
|
|
@@ -47752,9 +47809,9 @@ var require_build = __commonJS({
|
|
|
47752
47809
|
}
|
|
47753
47810
|
});
|
|
47754
47811
|
|
|
47755
|
-
// ../../node_modules/
|
|
47812
|
+
// ../../node_modules/jest-diff/node_modules/ansi-styles/index.js
|
|
47756
47813
|
var require_ansi_styles2 = __commonJS({
|
|
47757
|
-
"../../node_modules/
|
|
47814
|
+
"../../node_modules/jest-diff/node_modules/ansi-styles/index.js"(exports, module2) {
|
|
47758
47815
|
"use strict";
|
|
47759
47816
|
var ANSI_BACKGROUND_OFFSET = 10;
|
|
47760
47817
|
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
@@ -47887,9 +47944,9 @@ var require_ansi_styles2 = __commonJS({
|
|
|
47887
47944
|
}
|
|
47888
47945
|
});
|
|
47889
47946
|
|
|
47890
|
-
// ../../node_modules/pretty-format/build/collections.js
|
|
47947
|
+
// ../../node_modules/jest-diff/node_modules/pretty-format/build/collections.js
|
|
47891
47948
|
var require_collections = __commonJS({
|
|
47892
|
-
"../../node_modules/pretty-format/build/collections.js"(exports) {
|
|
47949
|
+
"../../node_modules/jest-diff/node_modules/pretty-format/build/collections.js"(exports) {
|
|
47893
47950
|
"use strict";
|
|
47894
47951
|
Object.defineProperty(exports, "__esModule", {
|
|
47895
47952
|
value: true
|
|
@@ -47911,17 +47968,23 @@ var require_collections = __commonJS({
|
|
|
47911
47968
|
};
|
|
47912
47969
|
function printIteratorEntries(iterator, config, indentation, depth, refs, printer, separator = ": ") {
|
|
47913
47970
|
let result = "";
|
|
47971
|
+
let width = 0;
|
|
47914
47972
|
let current = iterator.next();
|
|
47915
47973
|
if (!current.done) {
|
|
47916
47974
|
result += config.spacingOuter;
|
|
47917
47975
|
const indentationNext = indentation + config.indent;
|
|
47918
47976
|
while (!current.done) {
|
|
47977
|
+
result += indentationNext;
|
|
47978
|
+
if (width++ === config.maxWidth) {
|
|
47979
|
+
result += "\u2026";
|
|
47980
|
+
break;
|
|
47981
|
+
}
|
|
47919
47982
|
const name2 = printer(current.value[0], config, indentationNext, depth, refs);
|
|
47920
47983
|
const value = printer(current.value[1], config, indentationNext, depth, refs);
|
|
47921
|
-
result +=
|
|
47984
|
+
result += name2 + separator + value;
|
|
47922
47985
|
current = iterator.next();
|
|
47923
47986
|
if (!current.done) {
|
|
47924
|
-
result +=
|
|
47987
|
+
result += `,${config.spacingInner}`;
|
|
47925
47988
|
} else if (!config.min) {
|
|
47926
47989
|
result += ",";
|
|
47927
47990
|
}
|
|
@@ -47932,15 +47995,21 @@ var require_collections = __commonJS({
|
|
|
47932
47995
|
}
|
|
47933
47996
|
function printIteratorValues(iterator, config, indentation, depth, refs, printer) {
|
|
47934
47997
|
let result = "";
|
|
47998
|
+
let width = 0;
|
|
47935
47999
|
let current = iterator.next();
|
|
47936
48000
|
if (!current.done) {
|
|
47937
48001
|
result += config.spacingOuter;
|
|
47938
48002
|
const indentationNext = indentation + config.indent;
|
|
47939
48003
|
while (!current.done) {
|
|
47940
|
-
result += indentationNext
|
|
48004
|
+
result += indentationNext;
|
|
48005
|
+
if (width++ === config.maxWidth) {
|
|
48006
|
+
result += "\u2026";
|
|
48007
|
+
break;
|
|
48008
|
+
}
|
|
48009
|
+
result += printer(current.value, config, indentationNext, depth, refs);
|
|
47941
48010
|
current = iterator.next();
|
|
47942
48011
|
if (!current.done) {
|
|
47943
|
-
result +=
|
|
48012
|
+
result += `,${config.spacingInner}`;
|
|
47944
48013
|
} else if (!config.min) {
|
|
47945
48014
|
result += ",";
|
|
47946
48015
|
}
|
|
@@ -47956,11 +48025,15 @@ var require_collections = __commonJS({
|
|
|
47956
48025
|
const indentationNext = indentation + config.indent;
|
|
47957
48026
|
for (let i = 0; i < list.length; i++) {
|
|
47958
48027
|
result += indentationNext;
|
|
48028
|
+
if (i === config.maxWidth) {
|
|
48029
|
+
result += "\u2026";
|
|
48030
|
+
break;
|
|
48031
|
+
}
|
|
47959
48032
|
if (i in list) {
|
|
47960
48033
|
result += printer(list[i], config, indentationNext, depth, refs);
|
|
47961
48034
|
}
|
|
47962
48035
|
if (i < list.length - 1) {
|
|
47963
|
-
result +=
|
|
48036
|
+
result += `,${config.spacingInner}`;
|
|
47964
48037
|
} else if (!config.min) {
|
|
47965
48038
|
result += ",";
|
|
47966
48039
|
}
|
|
@@ -47979,9 +48052,9 @@ var require_collections = __commonJS({
|
|
|
47979
48052
|
const key = keys[i];
|
|
47980
48053
|
const name2 = printer(key, config, indentationNext, depth, refs);
|
|
47981
48054
|
const value = printer(val[key], config, indentationNext, depth, refs);
|
|
47982
|
-
result += indentationNext + name2
|
|
48055
|
+
result += `${indentationNext + name2}: ${value}`;
|
|
47983
48056
|
if (i < keys.length - 1) {
|
|
47984
|
-
result +=
|
|
48057
|
+
result += `,${config.spacingInner}`;
|
|
47985
48058
|
} else if (!config.min) {
|
|
47986
48059
|
result += ",";
|
|
47987
48060
|
}
|
|
@@ -47993,44 +48066,31 @@ var require_collections = __commonJS({
|
|
|
47993
48066
|
}
|
|
47994
48067
|
});
|
|
47995
48068
|
|
|
47996
|
-
// ../../node_modules/pretty-format/build/plugins/AsymmetricMatcher.js
|
|
48069
|
+
// ../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js
|
|
47997
48070
|
var require_AsymmetricMatcher = __commonJS({
|
|
47998
|
-
"../../node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(exports) {
|
|
48071
|
+
"../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(exports) {
|
|
47999
48072
|
"use strict";
|
|
48000
48073
|
Object.defineProperty(exports, "__esModule", {
|
|
48001
48074
|
value: true
|
|
48002
48075
|
});
|
|
48003
48076
|
exports.test = exports.serialize = exports.default = void 0;
|
|
48004
48077
|
var _collections = require_collections();
|
|
48005
|
-
var
|
|
48006
|
-
if (typeof globalThis !== "undefined") {
|
|
48007
|
-
return globalThis;
|
|
48008
|
-
} else if (typeof global2 !== "undefined") {
|
|
48009
|
-
return global2;
|
|
48010
|
-
} else if (typeof self !== "undefined") {
|
|
48011
|
-
return self;
|
|
48012
|
-
} else if (typeof window !== "undefined") {
|
|
48013
|
-
return window;
|
|
48014
|
-
} else {
|
|
48015
|
-
return Function("return this")();
|
|
48016
|
-
}
|
|
48017
|
-
}();
|
|
48018
|
-
var Symbol2 = global2["jest-symbol-do-not-touch"] || global2.Symbol;
|
|
48078
|
+
var Symbol2 = globalThis["jest-symbol-do-not-touch"] || globalThis.Symbol;
|
|
48019
48079
|
var asymmetricMatcher = typeof Symbol2 === "function" && Symbol2.for ? Symbol2.for("jest.asymmetricMatcher") : 1267621;
|
|
48020
48080
|
var SPACE = " ";
|
|
48021
48081
|
var serialize = (val, config, indentation, depth, refs, printer) => {
|
|
48022
48082
|
const stringedValue = val.toString();
|
|
48023
48083
|
if (stringedValue === "ArrayContaining" || stringedValue === "ArrayNotContaining") {
|
|
48024
48084
|
if (++depth > config.maxDepth) {
|
|
48025
|
-
return
|
|
48085
|
+
return `[${stringedValue}]`;
|
|
48026
48086
|
}
|
|
48027
|
-
return stringedValue + SPACE
|
|
48087
|
+
return `${stringedValue + SPACE}[${(0, _collections.printListItems)(val.sample, config, indentation, depth, refs, printer)}]`;
|
|
48028
48088
|
}
|
|
48029
48089
|
if (stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining") {
|
|
48030
48090
|
if (++depth > config.maxDepth) {
|
|
48031
|
-
return
|
|
48091
|
+
return `[${stringedValue}]`;
|
|
48032
48092
|
}
|
|
48033
|
-
return stringedValue + SPACE
|
|
48093
|
+
return `${stringedValue + SPACE}{${(0, _collections.printObjectProperties)(val.sample, config, indentation, depth, refs, printer)}}`;
|
|
48034
48094
|
}
|
|
48035
48095
|
if (stringedValue === "StringMatching" || stringedValue === "StringNotMatching") {
|
|
48036
48096
|
return stringedValue + SPACE + printer(val.sample, config, indentation, depth, refs);
|
|
@@ -48038,6 +48098,9 @@ var require_AsymmetricMatcher = __commonJS({
|
|
|
48038
48098
|
if (stringedValue === "StringContaining" || stringedValue === "StringNotContaining") {
|
|
48039
48099
|
return stringedValue + SPACE + printer(val.sample, config, indentation, depth, refs);
|
|
48040
48100
|
}
|
|
48101
|
+
if (typeof val.toAsymmetricMatcher !== "function") {
|
|
48102
|
+
throw new Error(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`);
|
|
48103
|
+
}
|
|
48041
48104
|
return val.toAsymmetricMatcher();
|
|
48042
48105
|
};
|
|
48043
48106
|
exports.serialize = serialize;
|
|
@@ -48052,9 +48115,9 @@ var require_AsymmetricMatcher = __commonJS({
|
|
|
48052
48115
|
}
|
|
48053
48116
|
});
|
|
48054
48117
|
|
|
48055
|
-
// ../../node_modules/pretty-format/build/plugins/ConvertAnsi.js
|
|
48118
|
+
// ../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/ConvertAnsi.js
|
|
48056
48119
|
var require_ConvertAnsi = __commonJS({
|
|
48057
|
-
"../../node_modules/pretty-format/build/plugins/ConvertAnsi.js"(exports) {
|
|
48120
|
+
"../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/ConvertAnsi.js"(exports) {
|
|
48058
48121
|
"use strict";
|
|
48059
48122
|
Object.defineProperty(exports, "__esModule", {
|
|
48060
48123
|
value: true
|
|
@@ -48123,9 +48186,9 @@ var require_ConvertAnsi = __commonJS({
|
|
|
48123
48186
|
}
|
|
48124
48187
|
});
|
|
48125
48188
|
|
|
48126
|
-
// ../../node_modules/pretty-format/build/plugins/DOMCollection.js
|
|
48189
|
+
// ../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/DOMCollection.js
|
|
48127
48190
|
var require_DOMCollection = __commonJS({
|
|
48128
|
-
"../../node_modules/pretty-format/build/plugins/DOMCollection.js"(exports) {
|
|
48191
|
+
"../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/DOMCollection.js"(exports) {
|
|
48129
48192
|
"use strict";
|
|
48130
48193
|
Object.defineProperty(exports, "__esModule", {
|
|
48131
48194
|
value: true
|
|
@@ -48142,12 +48205,12 @@ var require_DOMCollection = __commonJS({
|
|
|
48142
48205
|
var serialize = (collection, config, indentation, depth, refs, printer) => {
|
|
48143
48206
|
const name2 = collection.constructor.name;
|
|
48144
48207
|
if (++depth > config.maxDepth) {
|
|
48145
|
-
return
|
|
48208
|
+
return `[${name2}]`;
|
|
48146
48209
|
}
|
|
48147
|
-
return (config.min ? "" : name2 + SPACE) + (OBJECT_NAMES.indexOf(name2) !== -1 ?
|
|
48210
|
+
return (config.min ? "" : name2 + SPACE) + (OBJECT_NAMES.indexOf(name2) !== -1 ? `{${(0, _collections.printObjectProperties)(isNamedNodeMap(collection) ? Array.from(collection).reduce((props, attribute) => {
|
|
48148
48211
|
props[attribute.name] = attribute.value;
|
|
48149
48212
|
return props;
|
|
48150
|
-
}, {}) : __spreadValues({}, collection), config, indentation, depth, refs, printer)
|
|
48213
|
+
}, {}) : __spreadValues({}, collection), config, indentation, depth, refs, printer)}}` : `[${(0, _collections.printListItems)(Array.from(collection), config, indentation, depth, refs, printer)}]`);
|
|
48151
48214
|
};
|
|
48152
48215
|
exports.serialize = serialize;
|
|
48153
48216
|
var plugin = {
|
|
@@ -48159,9 +48222,9 @@ var require_DOMCollection = __commonJS({
|
|
|
48159
48222
|
}
|
|
48160
48223
|
});
|
|
48161
48224
|
|
|
48162
|
-
// ../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js
|
|
48225
|
+
// ../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/lib/escapeHTML.js
|
|
48163
48226
|
var require_escapeHTML = __commonJS({
|
|
48164
|
-
"../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(exports) {
|
|
48227
|
+
"../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(exports) {
|
|
48165
48228
|
"use strict";
|
|
48166
48229
|
Object.defineProperty(exports, "__esModule", {
|
|
48167
48230
|
value: true
|
|
@@ -48173,9 +48236,9 @@ var require_escapeHTML = __commonJS({
|
|
|
48173
48236
|
}
|
|
48174
48237
|
});
|
|
48175
48238
|
|
|
48176
|
-
// ../../node_modules/pretty-format/build/plugins/lib/markup.js
|
|
48239
|
+
// ../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/lib/markup.js
|
|
48177
48240
|
var require_markup = __commonJS({
|
|
48178
|
-
"../../node_modules/pretty-format/build/plugins/lib/markup.js"(exports) {
|
|
48241
|
+
"../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/lib/markup.js"(exports) {
|
|
48179
48242
|
"use strict";
|
|
48180
48243
|
Object.defineProperty(exports, "__esModule", {
|
|
48181
48244
|
value: true
|
|
@@ -48195,9 +48258,9 @@ var require_markup = __commonJS({
|
|
|
48195
48258
|
if (printed.indexOf("\n") !== -1) {
|
|
48196
48259
|
printed = config.spacingOuter + indentationNext + printed + config.spacingOuter + indentation;
|
|
48197
48260
|
}
|
|
48198
|
-
printed =
|
|
48261
|
+
printed = `{${printed}}`;
|
|
48199
48262
|
}
|
|
48200
|
-
return config.spacingInner + indentation + colors.prop.open + key + colors.prop.close
|
|
48263
|
+
return `${config.spacingInner + indentation + colors.prop.open + key + colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`;
|
|
48201
48264
|
}).join("");
|
|
48202
48265
|
};
|
|
48203
48266
|
exports.printProps = printProps;
|
|
@@ -48210,25 +48273,25 @@ var require_markup = __commonJS({
|
|
|
48210
48273
|
exports.printText = printText;
|
|
48211
48274
|
var printComment = (comment, config) => {
|
|
48212
48275
|
const commentColor = config.colors.comment;
|
|
48213
|
-
return commentColor.open
|
|
48276
|
+
return `${commentColor.open}<!--${(0, _escapeHTML.default)(comment)}-->${commentColor.close}`;
|
|
48214
48277
|
};
|
|
48215
48278
|
exports.printComment = printComment;
|
|
48216
48279
|
var printElement = (type, printedProps, printedChildren, config, indentation) => {
|
|
48217
48280
|
const tagColor = config.colors.tag;
|
|
48218
|
-
return tagColor.open
|
|
48281
|
+
return `${tagColor.open}<${type}${printedProps && tagColor.close + printedProps + config.spacingOuter + indentation + tagColor.open}${printedChildren ? `>${tagColor.close}${printedChildren}${config.spacingOuter}${indentation}${tagColor.open}</${type}` : `${printedProps && !config.min ? "" : " "}/`}>${tagColor.close}`;
|
|
48219
48282
|
};
|
|
48220
48283
|
exports.printElement = printElement;
|
|
48221
48284
|
var printElementAsLeaf = (type, config) => {
|
|
48222
48285
|
const tagColor = config.colors.tag;
|
|
48223
|
-
return tagColor.open
|
|
48286
|
+
return `${tagColor.open}<${type}${tagColor.close} \u2026${tagColor.open} />${tagColor.close}`;
|
|
48224
48287
|
};
|
|
48225
48288
|
exports.printElementAsLeaf = printElementAsLeaf;
|
|
48226
48289
|
}
|
|
48227
48290
|
});
|
|
48228
48291
|
|
|
48229
|
-
// ../../node_modules/pretty-format/build/plugins/DOMElement.js
|
|
48292
|
+
// ../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/DOMElement.js
|
|
48230
48293
|
var require_DOMElement = __commonJS({
|
|
48231
|
-
"../../node_modules/pretty-format/build/plugins/DOMElement.js"(exports) {
|
|
48294
|
+
"../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/DOMElement.js"(exports) {
|
|
48232
48295
|
"use strict";
|
|
48233
48296
|
Object.defineProperty(exports, "__esModule", {
|
|
48234
48297
|
value: true
|
|
@@ -48274,7 +48337,7 @@ var require_DOMElement = __commonJS({
|
|
|
48274
48337
|
if (nodeIsComment(node)) {
|
|
48275
48338
|
return (0, _markup.printComment)(node.data, config);
|
|
48276
48339
|
}
|
|
48277
|
-
const type = nodeIsFragment(node) ?
|
|
48340
|
+
const type = nodeIsFragment(node) ? "DocumentFragment" : node.tagName.toLowerCase();
|
|
48278
48341
|
if (++depth > config.maxDepth) {
|
|
48279
48342
|
return (0, _markup.printElementAsLeaf)(type, config);
|
|
48280
48343
|
}
|
|
@@ -48293,9 +48356,9 @@ var require_DOMElement = __commonJS({
|
|
|
48293
48356
|
}
|
|
48294
48357
|
});
|
|
48295
48358
|
|
|
48296
|
-
// ../../node_modules/pretty-format/build/plugins/Immutable.js
|
|
48359
|
+
// ../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/Immutable.js
|
|
48297
48360
|
var require_Immutable = __commonJS({
|
|
48298
|
-
"../../node_modules/pretty-format/build/plugins/Immutable.js"(exports) {
|
|
48361
|
+
"../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/Immutable.js"(exports) {
|
|
48299
48362
|
"use strict";
|
|
48300
48363
|
Object.defineProperty(exports, "__esModule", {
|
|
48301
48364
|
value: true
|
|
@@ -48311,11 +48374,11 @@ var require_Immutable = __commonJS({
|
|
|
48311
48374
|
var IS_SEQ_SENTINEL = "@@__IMMUTABLE_SEQ__@@";
|
|
48312
48375
|
var IS_SET_SENTINEL = "@@__IMMUTABLE_SET__@@";
|
|
48313
48376
|
var IS_STACK_SENTINEL = "@@__IMMUTABLE_STACK__@@";
|
|
48314
|
-
var getImmutableName = (name2) =>
|
|
48315
|
-
var printAsLeaf = (name2) =>
|
|
48377
|
+
var getImmutableName = (name2) => `Immutable.${name2}`;
|
|
48378
|
+
var printAsLeaf = (name2) => `[${name2}]`;
|
|
48316
48379
|
var SPACE = " ";
|
|
48317
48380
|
var LAZY = "\u2026";
|
|
48318
|
-
var printImmutableEntries = (val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : getImmutableName(type) + SPACE
|
|
48381
|
+
var printImmutableEntries = (val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}{${(0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer)}}`;
|
|
48319
48382
|
function getRecordEntries(val) {
|
|
48320
48383
|
let i = 0;
|
|
48321
48384
|
return {
|
|
@@ -48336,7 +48399,7 @@ var require_Immutable = __commonJS({
|
|
|
48336
48399
|
}
|
|
48337
48400
|
var printImmutableRecord = (val, config, indentation, depth, refs, printer) => {
|
|
48338
48401
|
const name2 = getImmutableName(val._name || "Record");
|
|
48339
|
-
return ++depth > config.maxDepth ? printAsLeaf(name2) : name2 + SPACE
|
|
48402
|
+
return ++depth > config.maxDepth ? printAsLeaf(name2) : `${name2 + SPACE}{${(0, _collections.printIteratorEntries)(getRecordEntries(val), config, indentation, depth, refs, printer)}}`;
|
|
48340
48403
|
};
|
|
48341
48404
|
var printImmutableSeq = (val, config, indentation, depth, refs, printer) => {
|
|
48342
48405
|
const name2 = getImmutableName("Seq");
|
|
@@ -48344,11 +48407,11 @@ var require_Immutable = __commonJS({
|
|
|
48344
48407
|
return printAsLeaf(name2);
|
|
48345
48408
|
}
|
|
48346
48409
|
if (val[IS_KEYED_SENTINEL]) {
|
|
48347
|
-
return name2 + SPACE
|
|
48410
|
+
return `${name2 + SPACE}{${val._iter || val._object ? (0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer) : LAZY}}`;
|
|
48348
48411
|
}
|
|
48349
|
-
return name2 + SPACE
|
|
48412
|
+
return `${name2 + SPACE}[${val._iter || val._array || val._collection || val._iterable ? (0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer) : LAZY}]`;
|
|
48350
48413
|
};
|
|
48351
|
-
var printImmutableValues = (val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : getImmutableName(type) + SPACE
|
|
48414
|
+
var printImmutableValues = (val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}[${(0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer)}]`;
|
|
48352
48415
|
var serialize = (val, config, indentation, depth, refs, printer) => {
|
|
48353
48416
|
if (val[IS_MAP_SENTINEL]) {
|
|
48354
48417
|
return printImmutableEntries(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? "OrderedMap" : "Map");
|
|
@@ -48721,9 +48784,9 @@ var require_react_is = __commonJS({
|
|
|
48721
48784
|
}
|
|
48722
48785
|
});
|
|
48723
48786
|
|
|
48724
|
-
// ../../node_modules/pretty-format/build/plugins/ReactElement.js
|
|
48787
|
+
// ../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/ReactElement.js
|
|
48725
48788
|
var require_ReactElement = __commonJS({
|
|
48726
|
-
"../../node_modules/pretty-format/build/plugins/ReactElement.js"(exports) {
|
|
48789
|
+
"../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/ReactElement.js"(exports) {
|
|
48727
48790
|
"use strict";
|
|
48728
48791
|
Object.defineProperty(exports, "__esModule", {
|
|
48729
48792
|
value: true
|
|
@@ -48805,11 +48868,11 @@ var require_ReactElement = __commonJS({
|
|
|
48805
48868
|
return type.displayName;
|
|
48806
48869
|
}
|
|
48807
48870
|
const functionName = type.render.displayName || type.render.name || "";
|
|
48808
|
-
return functionName !== "" ?
|
|
48871
|
+
return functionName !== "" ? `ForwardRef(${functionName})` : "ForwardRef";
|
|
48809
48872
|
}
|
|
48810
48873
|
if (ReactIs.isMemo(element)) {
|
|
48811
48874
|
const functionName = type.displayName || type.type.displayName || type.type.name || "";
|
|
48812
|
-
return functionName !== "" ?
|
|
48875
|
+
return functionName !== "" ? `Memo(${functionName})` : "Memo";
|
|
48813
48876
|
}
|
|
48814
48877
|
}
|
|
48815
48878
|
return "UNDEFINED";
|
|
@@ -48831,29 +48894,16 @@ var require_ReactElement = __commonJS({
|
|
|
48831
48894
|
}
|
|
48832
48895
|
});
|
|
48833
48896
|
|
|
48834
|
-
// ../../node_modules/pretty-format/build/plugins/ReactTestComponent.js
|
|
48897
|
+
// ../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/ReactTestComponent.js
|
|
48835
48898
|
var require_ReactTestComponent = __commonJS({
|
|
48836
|
-
"../../node_modules/pretty-format/build/plugins/ReactTestComponent.js"(exports) {
|
|
48899
|
+
"../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/ReactTestComponent.js"(exports) {
|
|
48837
48900
|
"use strict";
|
|
48838
48901
|
Object.defineProperty(exports, "__esModule", {
|
|
48839
48902
|
value: true
|
|
48840
48903
|
});
|
|
48841
48904
|
exports.test = exports.serialize = exports.default = void 0;
|
|
48842
48905
|
var _markup = require_markup();
|
|
48843
|
-
var
|
|
48844
|
-
if (typeof globalThis !== "undefined") {
|
|
48845
|
-
return globalThis;
|
|
48846
|
-
} else if (typeof global2 !== "undefined") {
|
|
48847
|
-
return global2;
|
|
48848
|
-
} else if (typeof self !== "undefined") {
|
|
48849
|
-
return self;
|
|
48850
|
-
} else if (typeof window !== "undefined") {
|
|
48851
|
-
return window;
|
|
48852
|
-
} else {
|
|
48853
|
-
return Function("return this")();
|
|
48854
|
-
}
|
|
48855
|
-
}();
|
|
48856
|
-
var Symbol2 = global2["jest-symbol-do-not-touch"] || global2.Symbol;
|
|
48906
|
+
var Symbol2 = globalThis["jest-symbol-do-not-touch"] || globalThis.Symbol;
|
|
48857
48907
|
var testSymbol = typeof Symbol2 === "function" && Symbol2.for ? Symbol2.for("react.test.json") : 245830487;
|
|
48858
48908
|
var getPropKeys = (object) => {
|
|
48859
48909
|
const { props } = object;
|
|
@@ -48872,9 +48922,9 @@ var require_ReactTestComponent = __commonJS({
|
|
|
48872
48922
|
}
|
|
48873
48923
|
});
|
|
48874
48924
|
|
|
48875
|
-
// ../../node_modules/pretty-format/build/index.js
|
|
48925
|
+
// ../../node_modules/jest-diff/node_modules/pretty-format/build/index.js
|
|
48876
48926
|
var require_build2 = __commonJS({
|
|
48877
|
-
"../../node_modules/pretty-format/build/index.js"(exports) {
|
|
48927
|
+
"../../node_modules/jest-diff/node_modules/pretty-format/build/index.js"(exports) {
|
|
48878
48928
|
"use strict";
|
|
48879
48929
|
Object.defineProperty(exports, "__esModule", {
|
|
48880
48930
|
value: true
|
|
@@ -48922,17 +48972,17 @@ var require_build2 = __commonJS({
|
|
|
48922
48972
|
if (!printFunctionName) {
|
|
48923
48973
|
return "[Function]";
|
|
48924
48974
|
}
|
|
48925
|
-
return
|
|
48975
|
+
return `[Function ${val.name || "anonymous"}]`;
|
|
48926
48976
|
}
|
|
48927
48977
|
function printSymbol(val) {
|
|
48928
48978
|
return String(val).replace(SYMBOL_REGEXP, "Symbol($1)");
|
|
48929
48979
|
}
|
|
48930
48980
|
function printError(val) {
|
|
48931
|
-
return
|
|
48981
|
+
return `[${errorToString.call(val)}]`;
|
|
48932
48982
|
}
|
|
48933
48983
|
function printBasicValue(val, printFunctionName, escapeRegex, escapeString) {
|
|
48934
48984
|
if (val === true || val === false) {
|
|
48935
|
-
return
|
|
48985
|
+
return `${val}`;
|
|
48936
48986
|
}
|
|
48937
48987
|
if (val === void 0) {
|
|
48938
48988
|
return "undefined";
|
|
@@ -48949,9 +48999,9 @@ var require_build2 = __commonJS({
|
|
|
48949
48999
|
}
|
|
48950
49000
|
if (typeOf === "string") {
|
|
48951
49001
|
if (escapeString) {
|
|
48952
|
-
return
|
|
49002
|
+
return `"${val.replace(/"|\\/g, "\\$&")}"`;
|
|
48953
49003
|
}
|
|
48954
|
-
return
|
|
49004
|
+
return `"${val}"`;
|
|
48955
49005
|
}
|
|
48956
49006
|
if (typeOf === "function") {
|
|
48957
49007
|
return printFunction(val, printFunctionName);
|
|
@@ -49002,18 +49052,18 @@ var require_build2 = __commonJS({
|
|
|
49002
49052
|
}
|
|
49003
49053
|
const toStringed = toString.call(val);
|
|
49004
49054
|
if (toStringed === "[object Arguments]") {
|
|
49005
|
-
return hitMaxDepth ? "[Arguments]" :
|
|
49055
|
+
return hitMaxDepth ? "[Arguments]" : `${min ? "" : "Arguments "}[${(0, _collections.printListItems)(val, config, indentation, depth, refs, printer)}]`;
|
|
49006
49056
|
}
|
|
49007
49057
|
if (isToStringedArrayType(toStringed)) {
|
|
49008
|
-
return hitMaxDepth ?
|
|
49058
|
+
return hitMaxDepth ? `[${val.constructor.name}]` : `${min ? "" : !config.printBasicPrototype && val.constructor.name === "Array" ? "" : `${val.constructor.name} `}[${(0, _collections.printListItems)(val, config, indentation, depth, refs, printer)}]`;
|
|
49009
49059
|
}
|
|
49010
49060
|
if (toStringed === "[object Map]") {
|
|
49011
|
-
return hitMaxDepth ? "[Map]" :
|
|
49061
|
+
return hitMaxDepth ? "[Map]" : `Map {${(0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer, " => ")}}`;
|
|
49012
49062
|
}
|
|
49013
49063
|
if (toStringed === "[object Set]") {
|
|
49014
|
-
return hitMaxDepth ? "[Set]" :
|
|
49064
|
+
return hitMaxDepth ? "[Set]" : `Set {${(0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer)}}`;
|
|
49015
49065
|
}
|
|
49016
|
-
return hitMaxDepth || isWindow(val) ?
|
|
49066
|
+
return hitMaxDepth || isWindow(val) ? `[${getConstructorName(val)}]` : `${min ? "" : !config.printBasicPrototype && getConstructorName(val) === "Object" ? "" : `${getConstructorName(val)} `}{${(0, _collections.printObjectProperties)(val, config, indentation, depth, refs, printer)}}`;
|
|
49017
49067
|
}
|
|
49018
49068
|
function isNewPlugin(plugin) {
|
|
49019
49069
|
return plugin.serialize != null;
|
|
@@ -49023,7 +49073,8 @@ var require_build2 = __commonJS({
|
|
|
49023
49073
|
try {
|
|
49024
49074
|
printed = isNewPlugin(plugin) ? plugin.serialize(val, config, indentation, depth, refs, printer) : plugin.print(val, (valChild) => printer(valChild, config, indentation, depth, refs), (str) => {
|
|
49025
49075
|
const indentationNext = indentation + config.indent;
|
|
49026
|
-
return indentationNext + str.replace(NEWLINE_REGEXP,
|
|
49076
|
+
return indentationNext + str.replace(NEWLINE_REGEXP, `
|
|
49077
|
+
${indentationNext}`);
|
|
49027
49078
|
}, {
|
|
49028
49079
|
edgeSpacing: config.spacingOuter,
|
|
49029
49080
|
min: config.min,
|
|
@@ -49076,6 +49127,7 @@ var require_build2 = __commonJS({
|
|
|
49076
49127
|
highlight: false,
|
|
49077
49128
|
indent: 2,
|
|
49078
49129
|
maxDepth: Infinity,
|
|
49130
|
+
maxWidth: Infinity,
|
|
49079
49131
|
min: false,
|
|
49080
49132
|
plugins: [],
|
|
49081
49133
|
printBasicPrototype: true,
|
|
@@ -49085,7 +49137,7 @@ var require_build2 = __commonJS({
|
|
|
49085
49137
|
exports.DEFAULT_OPTIONS = DEFAULT_OPTIONS;
|
|
49086
49138
|
function validateOptions(options) {
|
|
49087
49139
|
Object.keys(options).forEach((key) => {
|
|
49088
|
-
if (!
|
|
49140
|
+
if (!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS, key)) {
|
|
49089
49141
|
throw new Error(`pretty-format: Unknown option "${key}".`);
|
|
49090
49142
|
}
|
|
49091
49143
|
});
|
|
@@ -49094,7 +49146,7 @@ var require_build2 = __commonJS({
|
|
|
49094
49146
|
}
|
|
49095
49147
|
if (options.theme !== void 0) {
|
|
49096
49148
|
if (options.theme === null) {
|
|
49097
|
-
throw new Error(
|
|
49149
|
+
throw new Error('pretty-format: Option "theme" must not be null.');
|
|
49098
49150
|
}
|
|
49099
49151
|
if (typeof options.theme !== "object") {
|
|
49100
49152
|
throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof options.theme}".`);
|
|
@@ -49118,25 +49170,35 @@ var require_build2 = __commonJS({
|
|
|
49118
49170
|
};
|
|
49119
49171
|
return colors;
|
|
49120
49172
|
}, /* @__PURE__ */ Object.create(null));
|
|
49121
|
-
var getPrintFunctionName = (options) =>
|
|
49122
|
-
|
|
49123
|
-
|
|
49173
|
+
var getPrintFunctionName = (options) => {
|
|
49174
|
+
var _options$printFunctio;
|
|
49175
|
+
return (_options$printFunctio = options === null || options === void 0 ? void 0 : options.printFunctionName) !== null && _options$printFunctio !== void 0 ? _options$printFunctio : DEFAULT_OPTIONS.printFunctionName;
|
|
49176
|
+
};
|
|
49177
|
+
var getEscapeRegex = (options) => {
|
|
49178
|
+
var _options$escapeRegex;
|
|
49179
|
+
return (_options$escapeRegex = options === null || options === void 0 ? void 0 : options.escapeRegex) !== null && _options$escapeRegex !== void 0 ? _options$escapeRegex : DEFAULT_OPTIONS.escapeRegex;
|
|
49180
|
+
};
|
|
49181
|
+
var getEscapeString = (options) => {
|
|
49182
|
+
var _options$escapeString;
|
|
49183
|
+
return (_options$escapeString = options === null || options === void 0 ? void 0 : options.escapeString) !== null && _options$escapeString !== void 0 ? _options$escapeString : DEFAULT_OPTIONS.escapeString;
|
|
49184
|
+
};
|
|
49124
49185
|
var getConfig = (options) => {
|
|
49125
|
-
var _options$printBasicPr;
|
|
49186
|
+
var _options$callToJSON, _options$indent, _options$maxDepth, _options$maxWidth, _options$min, _options$plugins, _options$printBasicPr;
|
|
49126
49187
|
return {
|
|
49127
|
-
callToJSON: options
|
|
49128
|
-
colors: options && options.highlight ? getColorsHighlight(options) : getColorsEmpty(),
|
|
49129
|
-
compareKeys: options
|
|
49188
|
+
callToJSON: (_options$callToJSON = options === null || options === void 0 ? void 0 : options.callToJSON) !== null && _options$callToJSON !== void 0 ? _options$callToJSON : DEFAULT_OPTIONS.callToJSON,
|
|
49189
|
+
colors: options !== null && options !== void 0 && options.highlight ? getColorsHighlight(options) : getColorsEmpty(),
|
|
49190
|
+
compareKeys: typeof (options === null || options === void 0 ? void 0 : options.compareKeys) === "function" ? options.compareKeys : DEFAULT_OPTIONS.compareKeys,
|
|
49130
49191
|
escapeRegex: getEscapeRegex(options),
|
|
49131
49192
|
escapeString: getEscapeString(options),
|
|
49132
|
-
indent: options && options.min ? "" : createIndent(options
|
|
49133
|
-
maxDepth: options
|
|
49134
|
-
|
|
49135
|
-
|
|
49193
|
+
indent: options !== null && options !== void 0 && options.min ? "" : createIndent((_options$indent = options === null || options === void 0 ? void 0 : options.indent) !== null && _options$indent !== void 0 ? _options$indent : DEFAULT_OPTIONS.indent),
|
|
49194
|
+
maxDepth: (_options$maxDepth = options === null || options === void 0 ? void 0 : options.maxDepth) !== null && _options$maxDepth !== void 0 ? _options$maxDepth : DEFAULT_OPTIONS.maxDepth,
|
|
49195
|
+
maxWidth: (_options$maxWidth = options === null || options === void 0 ? void 0 : options.maxWidth) !== null && _options$maxWidth !== void 0 ? _options$maxWidth : DEFAULT_OPTIONS.maxWidth,
|
|
49196
|
+
min: (_options$min = options === null || options === void 0 ? void 0 : options.min) !== null && _options$min !== void 0 ? _options$min : DEFAULT_OPTIONS.min,
|
|
49197
|
+
plugins: (_options$plugins = options === null || options === void 0 ? void 0 : options.plugins) !== null && _options$plugins !== void 0 ? _options$plugins : DEFAULT_OPTIONS.plugins,
|
|
49136
49198
|
printBasicPrototype: (_options$printBasicPr = options === null || options === void 0 ? void 0 : options.printBasicPrototype) !== null && _options$printBasicPr !== void 0 ? _options$printBasicPr : true,
|
|
49137
49199
|
printFunctionName: getPrintFunctionName(options),
|
|
49138
|
-
spacingInner: options && options.min ? " " : "\n",
|
|
49139
|
-
spacingOuter: options && options.min ? "" : "\n"
|
|
49200
|
+
spacingInner: options !== null && options !== void 0 && options.min ? " " : "\n",
|
|
49201
|
+
spacingOuter: options !== null && options !== void 0 && options.min ? "" : "\n"
|
|
49140
49202
|
};
|
|
49141
49203
|
};
|
|
49142
49204
|
function createIndent(indent) {
|
|
@@ -49181,19 +49243,6 @@ var require_cleanupSemantic = __commonJS({
|
|
|
49181
49243
|
value: true
|
|
49182
49244
|
});
|
|
49183
49245
|
exports.cleanupSemantic = exports.Diff = exports.DIFF_INSERT = exports.DIFF_EQUAL = exports.DIFF_DELETE = void 0;
|
|
49184
|
-
function _defineProperty(obj, key, value) {
|
|
49185
|
-
if (key in obj) {
|
|
49186
|
-
Object.defineProperty(obj, key, {
|
|
49187
|
-
value,
|
|
49188
|
-
enumerable: true,
|
|
49189
|
-
configurable: true,
|
|
49190
|
-
writable: true
|
|
49191
|
-
});
|
|
49192
|
-
} else {
|
|
49193
|
-
obj[key] = value;
|
|
49194
|
-
}
|
|
49195
|
-
return obj;
|
|
49196
|
-
}
|
|
49197
49246
|
var DIFF_DELETE = -1;
|
|
49198
49247
|
exports.DIFF_DELETE = DIFF_DELETE;
|
|
49199
49248
|
var DIFF_INSERT = 1;
|
|
@@ -49201,9 +49250,9 @@ var require_cleanupSemantic = __commonJS({
|
|
|
49201
49250
|
var DIFF_EQUAL = 0;
|
|
49202
49251
|
exports.DIFF_EQUAL = DIFF_EQUAL;
|
|
49203
49252
|
var Diff = class {
|
|
49253
|
+
0;
|
|
49254
|
+
1;
|
|
49204
49255
|
constructor(op, text) {
|
|
49205
|
-
_defineProperty(this, 0, void 0);
|
|
49206
|
-
_defineProperty(this, 1, void 0);
|
|
49207
49256
|
this[0] = op;
|
|
49208
49257
|
this[1] = text;
|
|
49209
49258
|
}
|
|
@@ -49547,7 +49596,7 @@ var require_build3 = __commonJS({
|
|
|
49547
49596
|
Object.defineProperty(exports, "__esModule", {
|
|
49548
49597
|
value: true
|
|
49549
49598
|
});
|
|
49550
|
-
exports.default =
|
|
49599
|
+
exports.default = diffSequence;
|
|
49551
49600
|
var pkg = "diff-sequences";
|
|
49552
49601
|
var NOT_YET_SET = 0;
|
|
49553
49602
|
var countCommonItemsF = (aIndex, aEnd, bIndex, bEnd, isCommon) => {
|
|
@@ -49837,7 +49886,7 @@ var require_build3 = __commonJS({
|
|
|
49837
49886
|
throw new TypeError(`${pkg}: ${name2} typeof ${type} is not a function`);
|
|
49838
49887
|
}
|
|
49839
49888
|
};
|
|
49840
|
-
|
|
49889
|
+
function diffSequence(aLength, bLength, isCommon, foundSubsequence) {
|
|
49841
49890
|
validateLength("aLength", aLength);
|
|
49842
49891
|
validateLength("bLength", bLength);
|
|
49843
49892
|
validateCallback("isCommon", isCommon);
|
|
@@ -49884,8 +49933,7 @@ var require_build3 = __commonJS({
|
|
|
49884
49933
|
foundSubsequence(nCommonR, aEnd, bEnd);
|
|
49885
49934
|
}
|
|
49886
49935
|
}
|
|
49887
|
-
}
|
|
49888
|
-
exports.default = _default;
|
|
49936
|
+
}
|
|
49889
49937
|
}
|
|
49890
49938
|
});
|
|
49891
49939
|
|
|
@@ -49899,7 +49947,7 @@ var require_joinAlignedDiffs = __commonJS({
|
|
|
49899
49947
|
exports.joinAlignedDiffsNoExpand = exports.joinAlignedDiffsExpand = void 0;
|
|
49900
49948
|
var _cleanupSemantic = require_cleanupSemantic();
|
|
49901
49949
|
var formatTrailingSpaces = (line, trailingSpaceFormatter) => line.replace(/\s+$/, (match) => trailingSpaceFormatter(match));
|
|
49902
|
-
var printDiffLine = (line, isFirstOrLast, color, indicator, trailingSpaceFormatter, emptyFirstOrLastLinePlaceholder) => line.length !== 0 ? color(indicator
|
|
49950
|
+
var printDiffLine = (line, isFirstOrLast, color, indicator, trailingSpaceFormatter, emptyFirstOrLastLinePlaceholder) => line.length !== 0 ? color(`${indicator} ${formatTrailingSpaces(line, trailingSpaceFormatter)}`) : indicator !== " " ? color(indicator) : isFirstOrLast && emptyFirstOrLastLinePlaceholder.length !== 0 ? color(`${indicator} ${emptyFirstOrLastLinePlaceholder}`) : "";
|
|
49903
49951
|
var printDeleteLine = (line, isFirstOrLast, {
|
|
49904
49952
|
aColor,
|
|
49905
49953
|
aIndicator,
|
|
@@ -50170,10 +50218,15 @@ var require_diffLines = __commonJS({
|
|
|
50170
50218
|
const baCountLengthDiff = bCount.length - aCount.length;
|
|
50171
50219
|
const aCountPadding = " ".repeat(Math.max(0, baCountLengthDiff));
|
|
50172
50220
|
const bCountPadding = " ".repeat(Math.max(0, -baCountLengthDiff));
|
|
50173
|
-
aRest = aAnnotationPadding
|
|
50174
|
-
bRest = bAnnotationPadding
|
|
50221
|
+
aRest = `${aAnnotationPadding} ${aIndicator} ${aCountPadding}${aCount}`;
|
|
50222
|
+
bRest = `${bAnnotationPadding} ${bIndicator} ${bCountPadding}${bCount}`;
|
|
50175
50223
|
}
|
|
50176
|
-
|
|
50224
|
+
const a = `${aIndicator} ${aAnnotation}${aRest}`;
|
|
50225
|
+
const b = `${bIndicator} ${bAnnotation}${bRest}`;
|
|
50226
|
+
return `${aColor(a)}
|
|
50227
|
+
${bColor(b)}
|
|
50228
|
+
|
|
50229
|
+
`;
|
|
50177
50230
|
};
|
|
50178
50231
|
var printDiffLines = (diffs, options) => printAnnotation(options, countChanges(diffs)) + (options.expand ? (0, _joinAlignedDiffs.joinAlignedDiffsExpand)(diffs, options) : (0, _joinAlignedDiffs.joinAlignedDiffsNoExpand)(diffs, options));
|
|
50179
50232
|
exports.printDiffLines = printDiffLines;
|
|
@@ -50296,26 +50349,13 @@ var require_getAlignedDiffs = __commonJS({
|
|
|
50296
50349
|
});
|
|
50297
50350
|
exports.default = void 0;
|
|
50298
50351
|
var _cleanupSemantic = require_cleanupSemantic();
|
|
50299
|
-
function _defineProperty(obj, key, value) {
|
|
50300
|
-
if (key in obj) {
|
|
50301
|
-
Object.defineProperty(obj, key, {
|
|
50302
|
-
value,
|
|
50303
|
-
enumerable: true,
|
|
50304
|
-
configurable: true,
|
|
50305
|
-
writable: true
|
|
50306
|
-
});
|
|
50307
|
-
} else {
|
|
50308
|
-
obj[key] = value;
|
|
50309
|
-
}
|
|
50310
|
-
return obj;
|
|
50311
|
-
}
|
|
50312
50352
|
var concatenateRelevantDiffs = (op, diffs, changeColor) => diffs.reduce((reduced, diff2) => reduced + (diff2[0] === _cleanupSemantic.DIFF_EQUAL ? diff2[1] : diff2[0] === op && diff2[1].length !== 0 ? changeColor(diff2[1]) : ""), "");
|
|
50313
50353
|
var ChangeBuffer = class {
|
|
50354
|
+
op;
|
|
50355
|
+
line;
|
|
50356
|
+
lines;
|
|
50357
|
+
changeColor;
|
|
50314
50358
|
constructor(op, changeColor) {
|
|
50315
|
-
_defineProperty(this, "op", void 0);
|
|
50316
|
-
_defineProperty(this, "line", void 0);
|
|
50317
|
-
_defineProperty(this, "lines", void 0);
|
|
50318
|
-
_defineProperty(this, "changeColor", void 0);
|
|
50319
50359
|
this.op = op;
|
|
50320
50360
|
this.line = [];
|
|
50321
50361
|
this.lines = [];
|
|
@@ -50360,10 +50400,10 @@ var require_getAlignedDiffs = __commonJS({
|
|
|
50360
50400
|
}
|
|
50361
50401
|
};
|
|
50362
50402
|
var CommonBuffer = class {
|
|
50403
|
+
deleteBuffer;
|
|
50404
|
+
insertBuffer;
|
|
50405
|
+
lines;
|
|
50363
50406
|
constructor(deleteBuffer, insertBuffer) {
|
|
50364
|
-
_defineProperty(this, "deleteBuffer", void 0);
|
|
50365
|
-
_defineProperty(this, "insertBuffer", void 0);
|
|
50366
|
-
_defineProperty(this, "lines", void 0);
|
|
50367
50407
|
this.deleteBuffer = deleteBuffer;
|
|
50368
50408
|
this.insertBuffer = insertBuffer;
|
|
50369
50409
|
this.lines = [];
|
|
@@ -50464,7 +50504,9 @@ var require_printDiffs = __commonJS({
|
|
|
50464
50504
|
var diffStringsUnified = (a, b, options) => {
|
|
50465
50505
|
if (a !== b && a.length !== 0 && b.length !== 0) {
|
|
50466
50506
|
const isMultiline = a.includes("\n") || b.includes("\n");
|
|
50467
|
-
const diffs = diffStringsRaw(isMultiline ? a
|
|
50507
|
+
const diffs = diffStringsRaw(isMultiline ? `${a}
|
|
50508
|
+
` : a, isMultiline ? `${b}
|
|
50509
|
+
` : b, true);
|
|
50468
50510
|
if (hasCommonDiff(diffs, isMultiline)) {
|
|
50469
50511
|
const optionsNormalized = (0, _normalizeDiffOptions.normalizeDiffOptions)(options);
|
|
50470
50512
|
const lines = (0, _getAlignedDiffs.default)(diffs, optionsNormalized.changeColor);
|
|
@@ -50558,20 +50600,7 @@ var require_build4 = __commonJS({
|
|
|
50558
50600
|
function _interopRequireDefault(obj) {
|
|
50559
50601
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
50560
50602
|
}
|
|
50561
|
-
var
|
|
50562
|
-
if (typeof globalThis !== "undefined") {
|
|
50563
|
-
return globalThis;
|
|
50564
|
-
} else if (typeof global2 !== "undefined") {
|
|
50565
|
-
return global2;
|
|
50566
|
-
} else if (typeof self !== "undefined") {
|
|
50567
|
-
return self;
|
|
50568
|
-
} else if (typeof window !== "undefined") {
|
|
50569
|
-
return window;
|
|
50570
|
-
} else {
|
|
50571
|
-
return Function("return this")();
|
|
50572
|
-
}
|
|
50573
|
-
}();
|
|
50574
|
-
var Symbol2 = global2["jest-symbol-do-not-touch"] || global2.Symbol;
|
|
50603
|
+
var Symbol2 = globalThis["jest-symbol-do-not-touch"] || globalThis.Symbol;
|
|
50575
50604
|
var getCommonMessage = (message, options) => {
|
|
50576
50605
|
const { commonColor } = (0, _normalizeDiffOptions.normalizeDiffOptions)(options);
|
|
50577
50606
|
return commonColor(message);
|
|
@@ -50662,7 +50691,9 @@ var require_build4 = __commonJS({
|
|
|
50662
50691
|
const formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);
|
|
50663
50692
|
difference = getObjectsDifference(a, b, formatOptions, options);
|
|
50664
50693
|
if (difference !== noDiffMessage && !hasThrown) {
|
|
50665
|
-
difference = getCommonMessage(_constants.SIMILAR_MESSAGE, options)
|
|
50694
|
+
difference = `${getCommonMessage(_constants.SIMILAR_MESSAGE, options)}
|
|
50695
|
+
|
|
50696
|
+
${difference}`;
|
|
50666
50697
|
}
|
|
50667
50698
|
}
|
|
50668
50699
|
return difference;
|
|
@@ -50872,17 +50903,17 @@ var require_build5 = __commonJS({
|
|
|
50872
50903
|
}
|
|
50873
50904
|
});
|
|
50874
50905
|
|
|
50875
|
-
// ../../node_modules/yargs-parser/build/index.cjs
|
|
50906
|
+
// ../../node_modules/yargs/node_modules/yargs-parser/build/index.cjs
|
|
50876
50907
|
var require_build6 = __commonJS({
|
|
50877
|
-
"../../node_modules/yargs-parser/build/index.cjs"(exports, module2) {
|
|
50908
|
+
"../../node_modules/yargs/node_modules/yargs-parser/build/index.cjs"(exports, module2) {
|
|
50878
50909
|
"use strict";
|
|
50879
50910
|
var util = require("util");
|
|
50880
|
-
var fs2 = require("fs");
|
|
50881
50911
|
var path3 = require("path");
|
|
50912
|
+
var fs2 = require("fs");
|
|
50882
50913
|
function camelCase(str) {
|
|
50883
50914
|
const isCamelCase = str !== str.toLowerCase() && str !== str.toUpperCase();
|
|
50884
50915
|
if (!isCamelCase) {
|
|
50885
|
-
str = str.
|
|
50916
|
+
str = str.toLowerCase();
|
|
50886
50917
|
}
|
|
50887
50918
|
if (str.indexOf("-") === -1 && str.indexOf("_") === -1) {
|
|
50888
50919
|
return str;
|
|
@@ -50894,7 +50925,7 @@ var require_build6 = __commonJS({
|
|
|
50894
50925
|
let chr = str.charAt(i);
|
|
50895
50926
|
if (nextChrUpper) {
|
|
50896
50927
|
nextChrUpper = false;
|
|
50897
|
-
chr = chr.
|
|
50928
|
+
chr = chr.toUpperCase();
|
|
50898
50929
|
}
|
|
50899
50930
|
if (i !== 0 && (chr === "-" || chr === "_")) {
|
|
50900
50931
|
nextChrUpper = true;
|
|
@@ -50906,7 +50937,7 @@ var require_build6 = __commonJS({
|
|
|
50906
50937
|
}
|
|
50907
50938
|
}
|
|
50908
50939
|
function decamelize(str, joinString) {
|
|
50909
|
-
const lowercase = str.
|
|
50940
|
+
const lowercase = str.toLowerCase();
|
|
50910
50941
|
joinString = joinString || "-";
|
|
50911
50942
|
let notCamelcase = "";
|
|
50912
50943
|
for (let i = 0; i < str.length; i++) {
|
|
@@ -50927,7 +50958,7 @@ var require_build6 = __commonJS({
|
|
|
50927
50958
|
return true;
|
|
50928
50959
|
if (/^0x[0-9a-f]+$/i.test(x))
|
|
50929
50960
|
return true;
|
|
50930
|
-
if (
|
|
50961
|
+
if (/^0[^.]/.test(x))
|
|
50931
50962
|
return false;
|
|
50932
50963
|
return /^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
|
|
50933
50964
|
}
|
|
@@ -50961,6 +50992,13 @@ var require_build6 = __commonJS({
|
|
|
50961
50992
|
}
|
|
50962
50993
|
return args;
|
|
50963
50994
|
}
|
|
50995
|
+
var DefaultValuesForTypeKey;
|
|
50996
|
+
(function(DefaultValuesForTypeKey2) {
|
|
50997
|
+
DefaultValuesForTypeKey2["BOOLEAN"] = "boolean";
|
|
50998
|
+
DefaultValuesForTypeKey2["STRING"] = "string";
|
|
50999
|
+
DefaultValuesForTypeKey2["NUMBER"] = "number";
|
|
51000
|
+
DefaultValuesForTypeKey2["ARRAY"] = "array";
|
|
51001
|
+
})(DefaultValuesForTypeKey || (DefaultValuesForTypeKey = {}));
|
|
50964
51002
|
var mixin;
|
|
50965
51003
|
var YargsParser = class {
|
|
50966
51004
|
constructor(_mixin) {
|
|
@@ -50986,6 +51024,7 @@ var require_build6 = __commonJS({
|
|
|
50986
51024
|
key: void 0
|
|
50987
51025
|
}, options);
|
|
50988
51026
|
const args = tokenizeArgString(argsInput);
|
|
51027
|
+
const inputIsString = typeof argsInput === "string";
|
|
50989
51028
|
const aliases = combineAliases(Object.assign(/* @__PURE__ */ Object.create(null), opts.alias));
|
|
50990
51029
|
const configuration = Object.assign({
|
|
50991
51030
|
"boolean-negation": true,
|
|
@@ -51108,6 +51147,7 @@ var require_build6 = __commonJS({
|
|
|
51108
51147
|
const argvReturn = {};
|
|
51109
51148
|
for (let i = 0; i < args.length; i++) {
|
|
51110
51149
|
const arg = args[i];
|
|
51150
|
+
const truncatedArg = arg.replace(/^-{3,}/, "---");
|
|
51111
51151
|
let broken;
|
|
51112
51152
|
let key;
|
|
51113
51153
|
let letters;
|
|
@@ -51116,7 +51156,7 @@ var require_build6 = __commonJS({
|
|
|
51116
51156
|
let value;
|
|
51117
51157
|
if (arg !== "--" && isUnknownOptionAsArg(arg)) {
|
|
51118
51158
|
pushPositional(arg);
|
|
51119
|
-
} else if (
|
|
51159
|
+
} else if (truncatedArg.match(/---+(=|$)/)) {
|
|
51120
51160
|
pushPositional(arg);
|
|
51121
51161
|
continue;
|
|
51122
51162
|
} else if (arg.match(/^--.+=/) || !configuration["short-option-groups"] && arg.match(/^-.+=/)) {
|
|
@@ -51127,7 +51167,7 @@ var require_build6 = __commonJS({
|
|
|
51127
51167
|
} else if (checkAllAliases(m[1], flags.nargs) !== false) {
|
|
51128
51168
|
i = eatNargs(i, m[1], args, m[2]);
|
|
51129
51169
|
} else {
|
|
51130
|
-
setArg(m[1], m[2]);
|
|
51170
|
+
setArg(m[1], m[2], true);
|
|
51131
51171
|
}
|
|
51132
51172
|
}
|
|
51133
51173
|
} else if (arg.match(negatedBoolean) && configuration["boolean-negation"]) {
|
|
@@ -51327,7 +51367,7 @@ var require_build6 = __commonJS({
|
|
|
51327
51367
|
}
|
|
51328
51368
|
} else {
|
|
51329
51369
|
if (!isUndefined(argAfterEqualSign)) {
|
|
51330
|
-
argsToSet.push(processValue(key, argAfterEqualSign));
|
|
51370
|
+
argsToSet.push(processValue(key, argAfterEqualSign, true));
|
|
51331
51371
|
}
|
|
51332
51372
|
for (let ii = i + 1; ii < args2.length; ii++) {
|
|
51333
51373
|
if (!configuration["greedy-arrays"] && argsToSet.length > 0 || nargsCount && typeof nargsCount === "number" && argsToSet.length >= nargsCount)
|
|
@@ -51336,7 +51376,7 @@ var require_build6 = __commonJS({
|
|
|
51336
51376
|
if (/^-/.test(next) && !negative.test(next) && !isUnknownOptionAsArg(next))
|
|
51337
51377
|
break;
|
|
51338
51378
|
i = ii;
|
|
51339
|
-
argsToSet.push(processValue(key, next));
|
|
51379
|
+
argsToSet.push(processValue(key, next, inputIsString));
|
|
51340
51380
|
}
|
|
51341
51381
|
}
|
|
51342
51382
|
if (typeof nargsCount === "number" && (nargsCount && argsToSet.length < nargsCount || isNaN(nargsCount) && argsToSet.length === 0)) {
|
|
@@ -51345,14 +51385,14 @@ var require_build6 = __commonJS({
|
|
|
51345
51385
|
setArg(key, argsToSet);
|
|
51346
51386
|
return i;
|
|
51347
51387
|
}
|
|
51348
|
-
function setArg(key, val) {
|
|
51388
|
+
function setArg(key, val, shouldStripQuotes = inputIsString) {
|
|
51349
51389
|
if (/-/.test(key) && configuration["camel-case-expansion"]) {
|
|
51350
51390
|
const alias = key.split(".").map(function(prop) {
|
|
51351
51391
|
return camelCase(prop);
|
|
51352
51392
|
}).join(".");
|
|
51353
51393
|
addNewAlias(key, alias);
|
|
51354
51394
|
}
|
|
51355
|
-
const value = processValue(key, val);
|
|
51395
|
+
const value = processValue(key, val, shouldStripQuotes);
|
|
51356
51396
|
const splitKey = key.split(".");
|
|
51357
51397
|
setKey(argv, splitKey, value);
|
|
51358
51398
|
if (flags.aliases[key]) {
|
|
@@ -51396,9 +51436,9 @@ var require_build6 = __commonJS({
|
|
|
51396
51436
|
addNewAlias(alias, key);
|
|
51397
51437
|
}
|
|
51398
51438
|
}
|
|
51399
|
-
function processValue(key, val) {
|
|
51400
|
-
if (
|
|
51401
|
-
val =
|
|
51439
|
+
function processValue(key, val, shouldStripQuotes) {
|
|
51440
|
+
if (shouldStripQuotes) {
|
|
51441
|
+
val = stripQuotes(val);
|
|
51402
51442
|
}
|
|
51403
51443
|
if (checkAllAliases(key, flags.bools) || checkAllAliases(key, flags.counts)) {
|
|
51404
51444
|
if (typeof val === "string")
|
|
@@ -51682,6 +51722,7 @@ var require_build6 = __commonJS({
|
|
|
51682
51722
|
return configuration["unknown-options-as-args"] && isUnknownOption(arg);
|
|
51683
51723
|
}
|
|
51684
51724
|
function isUnknownOption(arg) {
|
|
51725
|
+
arg = arg.replace(/^-{3,}/, "--");
|
|
51685
51726
|
if (arg.match(negative)) {
|
|
51686
51727
|
return false;
|
|
51687
51728
|
}
|
|
@@ -51704,23 +51745,23 @@ var require_build6 = __commonJS({
|
|
|
51704
51745
|
}
|
|
51705
51746
|
function defaultForType(type) {
|
|
51706
51747
|
const def = {
|
|
51707
|
-
|
|
51708
|
-
|
|
51709
|
-
|
|
51710
|
-
|
|
51748
|
+
[DefaultValuesForTypeKey.BOOLEAN]: true,
|
|
51749
|
+
[DefaultValuesForTypeKey.STRING]: "",
|
|
51750
|
+
[DefaultValuesForTypeKey.NUMBER]: void 0,
|
|
51751
|
+
[DefaultValuesForTypeKey.ARRAY]: []
|
|
51711
51752
|
};
|
|
51712
51753
|
return def[type];
|
|
51713
51754
|
}
|
|
51714
51755
|
function guessType(key) {
|
|
51715
|
-
let type =
|
|
51756
|
+
let type = DefaultValuesForTypeKey.BOOLEAN;
|
|
51716
51757
|
if (checkAllAliases(key, flags.strings))
|
|
51717
|
-
type =
|
|
51758
|
+
type = DefaultValuesForTypeKey.STRING;
|
|
51718
51759
|
else if (checkAllAliases(key, flags.numbers))
|
|
51719
|
-
type =
|
|
51760
|
+
type = DefaultValuesForTypeKey.NUMBER;
|
|
51720
51761
|
else if (checkAllAliases(key, flags.bools))
|
|
51721
|
-
type =
|
|
51762
|
+
type = DefaultValuesForTypeKey.BOOLEAN;
|
|
51722
51763
|
else if (checkAllAliases(key, flags.arrays))
|
|
51723
|
-
type =
|
|
51764
|
+
type = DefaultValuesForTypeKey.ARRAY;
|
|
51724
51765
|
return type;
|
|
51725
51766
|
}
|
|
51726
51767
|
function isUndefined(num) {
|
|
@@ -51790,7 +51831,10 @@ var require_build6 = __commonJS({
|
|
|
51790
51831
|
return "___proto___";
|
|
51791
51832
|
return key;
|
|
51792
51833
|
}
|
|
51793
|
-
|
|
51834
|
+
function stripQuotes(val) {
|
|
51835
|
+
return typeof val === "string" && (val[0] === "'" || val[0] === '"') && val[val.length - 1] === val[0] ? val.substring(1, val.length - 1) : val;
|
|
51836
|
+
}
|
|
51837
|
+
var minNodeVersion = process && process.env && process.env.YARGS_MIN_NODE_VERSION ? Number(process.env.YARGS_MIN_NODE_VERSION) : 12;
|
|
51794
51838
|
if (process && process.version) {
|
|
51795
51839
|
const major = Number(process.version.match(/v([^.]+)/)[1]);
|
|
51796
51840
|
if (major < minNodeVersion) {
|
|
@@ -51810,7 +51854,7 @@ var require_build6 = __commonJS({
|
|
|
51810
51854
|
if (typeof require !== "undefined") {
|
|
51811
51855
|
return require(path4);
|
|
51812
51856
|
} else if (path4.match(/\.json$/)) {
|
|
51813
|
-
return fs2.readFileSync(path4, "utf8");
|
|
51857
|
+
return JSON.parse(fs2.readFileSync(path4, "utf8"));
|
|
51814
51858
|
} else {
|
|
51815
51859
|
throw Error("only .json config files are supported in ESM");
|
|
51816
51860
|
}
|
|
@@ -52369,12 +52413,12 @@ var require_build8 = __commonJS({
|
|
|
52369
52413
|
var t = require("assert");
|
|
52370
52414
|
var e = class extends Error {
|
|
52371
52415
|
constructor(t2) {
|
|
52372
|
-
super(t2 || "yargs error"), this.name = "YError", Error.captureStackTrace(this, e);
|
|
52416
|
+
super(t2 || "yargs error"), this.name = "YError", Error.captureStackTrace && Error.captureStackTrace(this, e);
|
|
52373
52417
|
}
|
|
52374
52418
|
};
|
|
52375
52419
|
var s;
|
|
52376
|
-
var
|
|
52377
|
-
function
|
|
52420
|
+
var i = [];
|
|
52421
|
+
function n(t2, o2, a2, h2) {
|
|
52378
52422
|
s = h2;
|
|
52379
52423
|
let l2 = {};
|
|
52380
52424
|
if (Object.prototype.hasOwnProperty.call(t2, "extends")) {
|
|
@@ -52393,53 +52437,53 @@ var require_build8 = __commonJS({
|
|
|
52393
52437
|
return t2;
|
|
52394
52438
|
}
|
|
52395
52439
|
!function(t3) {
|
|
52396
|
-
if (
|
|
52440
|
+
if (i.indexOf(t3) > -1)
|
|
52397
52441
|
throw new e(`Circular extended configurations: '${t3}'.`);
|
|
52398
|
-
}(h3),
|
|
52442
|
+
}(h3), i.push(h3), l2 = r2 ? JSON.parse(s.readFileSync(h3, "utf8")) : require(t2.extends), delete t2.extends, l2 = n(l2, s.path.dirname(h3), a2, s);
|
|
52399
52443
|
}
|
|
52400
|
-
return
|
|
52444
|
+
return i = [], a2 ? r(l2, t2) : Object.assign({}, l2, t2);
|
|
52401
52445
|
}
|
|
52402
52446
|
function r(t2, e2) {
|
|
52403
52447
|
const s2 = {};
|
|
52404
|
-
function
|
|
52448
|
+
function i2(t3) {
|
|
52405
52449
|
return t3 && typeof t3 == "object" && !Array.isArray(t3);
|
|
52406
52450
|
}
|
|
52407
52451
|
Object.assign(s2, t2);
|
|
52408
|
-
for (const
|
|
52409
|
-
|
|
52452
|
+
for (const n2 of Object.keys(e2))
|
|
52453
|
+
i2(e2[n2]) && i2(s2[n2]) ? s2[n2] = r(t2[n2], e2[n2]) : s2[n2] = e2[n2];
|
|
52410
52454
|
return s2;
|
|
52411
52455
|
}
|
|
52412
52456
|
function o(t2) {
|
|
52413
|
-
const e2 = t2.replace(/\s{2,}/g, " ").split(/\s+(?![^[]*]|[^<]*>)/), s2 = /\.*[\][<>]/g,
|
|
52414
|
-
if (!
|
|
52457
|
+
const e2 = t2.replace(/\s{2,}/g, " ").split(/\s+(?![^[]*]|[^<]*>)/), s2 = /\.*[\][<>]/g, i2 = e2.shift();
|
|
52458
|
+
if (!i2)
|
|
52415
52459
|
throw new Error(`No command found in: ${t2}`);
|
|
52416
|
-
const
|
|
52417
|
-
return e2.forEach((t3,
|
|
52460
|
+
const n2 = { cmd: i2.replace(s2, ""), demanded: [], optional: [] };
|
|
52461
|
+
return e2.forEach((t3, i3) => {
|
|
52418
52462
|
let r2 = false;
|
|
52419
|
-
t3 = t3.replace(/\s/g, ""), /\.+[\]>]/.test(t3) &&
|
|
52420
|
-
}),
|
|
52463
|
+
t3 = t3.replace(/\s/g, ""), /\.+[\]>]/.test(t3) && i3 === e2.length - 1 && (r2 = true), /^\[/.test(t3) ? n2.optional.push({ cmd: t3.replace(s2, "").split("|"), variadic: r2 }) : n2.demanded.push({ cmd: t3.replace(s2, "").split("|"), variadic: r2 });
|
|
52464
|
+
}), n2;
|
|
52421
52465
|
}
|
|
52422
52466
|
var a = ["first", "second", "third", "fourth", "fifth", "sixth"];
|
|
52423
|
-
function h(t2, s2,
|
|
52467
|
+
function h(t2, s2, i2) {
|
|
52424
52468
|
try {
|
|
52425
|
-
let
|
|
52426
|
-
const [r2, a2, h2] = typeof t2 == "object" ? [{ demanded: [], optional: [] }, t2, s2] : [o(`cmd ${t2}`), s2,
|
|
52427
|
-
for (;
|
|
52428
|
-
|
|
52429
|
-
const
|
|
52430
|
-
if (
|
|
52431
|
-
throw new e(`Not enough arguments provided. Expected ${r2.demanded.length} but received ${
|
|
52432
|
-
const
|
|
52433
|
-
if (
|
|
52434
|
-
throw new e(`Too many arguments provided. Expected max ${
|
|
52469
|
+
let n2 = 0;
|
|
52470
|
+
const [r2, a2, h2] = typeof t2 == "object" ? [{ demanded: [], optional: [] }, t2, s2] : [o(`cmd ${t2}`), s2, i2], f2 = [].slice.call(a2);
|
|
52471
|
+
for (; f2.length && f2[f2.length - 1] === void 0; )
|
|
52472
|
+
f2.pop();
|
|
52473
|
+
const d2 = h2 || f2.length;
|
|
52474
|
+
if (d2 < r2.demanded.length)
|
|
52475
|
+
throw new e(`Not enough arguments provided. Expected ${r2.demanded.length} but received ${f2.length}.`);
|
|
52476
|
+
const u2 = r2.demanded.length + r2.optional.length;
|
|
52477
|
+
if (d2 > u2)
|
|
52478
|
+
throw new e(`Too many arguments provided. Expected max ${u2} but received ${d2}.`);
|
|
52435
52479
|
r2.demanded.forEach((t3) => {
|
|
52436
|
-
const e2 = l(
|
|
52437
|
-
t3.cmd.filter((t4) => t4 === e2 || t4 === "*").length === 0 && c(e2, t3.cmd,
|
|
52480
|
+
const e2 = l(f2.shift());
|
|
52481
|
+
t3.cmd.filter((t4) => t4 === e2 || t4 === "*").length === 0 && c(e2, t3.cmd, n2), n2 += 1;
|
|
52438
52482
|
}), r2.optional.forEach((t3) => {
|
|
52439
|
-
if (
|
|
52483
|
+
if (f2.length === 0)
|
|
52440
52484
|
return;
|
|
52441
|
-
const e2 = l(
|
|
52442
|
-
t3.cmd.filter((t4) => t4 === e2 || t4 === "*").length === 0 && c(e2, t3.cmd,
|
|
52485
|
+
const e2 = l(f2.shift());
|
|
52486
|
+
t3.cmd.filter((t4) => t4 === e2 || t4 === "*").length === 0 && c(e2, t3.cmd, n2), n2 += 1;
|
|
52443
52487
|
});
|
|
52444
52488
|
} catch (t3) {
|
|
52445
52489
|
console.warn(t3.stack);
|
|
@@ -52448,77 +52492,77 @@ var require_build8 = __commonJS({
|
|
|
52448
52492
|
function l(t2) {
|
|
52449
52493
|
return Array.isArray(t2) ? "array" : t2 === null ? "null" : typeof t2;
|
|
52450
52494
|
}
|
|
52451
|
-
function c(t2, s2,
|
|
52452
|
-
throw new e(`Invalid ${a[
|
|
52495
|
+
function c(t2, s2, i2) {
|
|
52496
|
+
throw new e(`Invalid ${a[i2] || "manyith"} argument. Expected ${s2.join(" or ")} but received ${t2}.`);
|
|
52453
52497
|
}
|
|
52454
|
-
function
|
|
52498
|
+
function f(t2) {
|
|
52455
52499
|
return !!t2 && !!t2.then && typeof t2.then == "function";
|
|
52456
52500
|
}
|
|
52457
|
-
function
|
|
52458
|
-
s2.assert.notStrictEqual(t2, e2,
|
|
52501
|
+
function d(t2, e2, s2, i2) {
|
|
52502
|
+
s2.assert.notStrictEqual(t2, e2, i2);
|
|
52459
52503
|
}
|
|
52460
|
-
function
|
|
52504
|
+
function u(t2, e2) {
|
|
52461
52505
|
e2.assert.strictEqual(typeof t2, "string");
|
|
52462
52506
|
}
|
|
52463
|
-
function
|
|
52507
|
+
function p(t2) {
|
|
52464
52508
|
return Object.keys(t2);
|
|
52465
52509
|
}
|
|
52466
|
-
function
|
|
52510
|
+
function g(t2 = {}, e2 = () => true) {
|
|
52467
52511
|
const s2 = {};
|
|
52468
|
-
return
|
|
52469
|
-
e2(
|
|
52512
|
+
return p(t2).forEach((i2) => {
|
|
52513
|
+
e2(i2, t2[i2]) && (s2[i2] = t2[i2]);
|
|
52470
52514
|
}), s2;
|
|
52471
52515
|
}
|
|
52472
|
-
function
|
|
52516
|
+
function m() {
|
|
52473
52517
|
return process.versions.electron && !process.defaultApp ? 0 : 1;
|
|
52474
52518
|
}
|
|
52475
52519
|
function y() {
|
|
52476
|
-
return process.argv[
|
|
52520
|
+
return process.argv[m()];
|
|
52477
52521
|
}
|
|
52478
52522
|
var b = Object.freeze({ __proto__: null, hideBin: function(t2) {
|
|
52479
|
-
return t2.slice(
|
|
52523
|
+
return t2.slice(m() + 1);
|
|
52480
52524
|
}, getProcessArgvBin: y });
|
|
52481
|
-
function
|
|
52482
|
-
if (s2 === "a" && !
|
|
52525
|
+
function v(t2, e2, s2, i2) {
|
|
52526
|
+
if (s2 === "a" && !i2)
|
|
52483
52527
|
throw new TypeError("Private accessor was defined without a getter");
|
|
52484
|
-
if (typeof e2 == "function" ? t2 !== e2 || !
|
|
52528
|
+
if (typeof e2 == "function" ? t2 !== e2 || !i2 : !e2.has(t2))
|
|
52485
52529
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
52486
|
-
return s2 === "m" ?
|
|
52530
|
+
return s2 === "m" ? i2 : s2 === "a" ? i2.call(t2) : i2 ? i2.value : e2.get(t2);
|
|
52487
52531
|
}
|
|
52488
|
-
function
|
|
52489
|
-
if (
|
|
52532
|
+
function O(t2, e2, s2, i2, n2) {
|
|
52533
|
+
if (i2 === "m")
|
|
52490
52534
|
throw new TypeError("Private method is not writable");
|
|
52491
|
-
if (
|
|
52535
|
+
if (i2 === "a" && !n2)
|
|
52492
52536
|
throw new TypeError("Private accessor was defined without a setter");
|
|
52493
|
-
if (typeof e2 == "function" ? t2 !== e2 || !
|
|
52537
|
+
if (typeof e2 == "function" ? t2 !== e2 || !n2 : !e2.has(t2))
|
|
52494
52538
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
52495
|
-
return
|
|
52539
|
+
return i2 === "a" ? n2.call(t2, s2) : n2 ? n2.value = s2 : e2.set(t2, s2), s2;
|
|
52496
52540
|
}
|
|
52497
52541
|
var w = class {
|
|
52498
52542
|
constructor(t2) {
|
|
52499
52543
|
this.globalMiddleware = [], this.frozens = [], this.yargs = t2;
|
|
52500
52544
|
}
|
|
52501
|
-
addMiddleware(t2, e2, s2 = true) {
|
|
52502
|
-
if (h("<array|function> [boolean] [boolean]", [t2, e2, s2], arguments.length), Array.isArray(t2)) {
|
|
52503
|
-
for (let
|
|
52504
|
-
if (typeof t2[
|
|
52545
|
+
addMiddleware(t2, e2, s2 = true, i2 = false) {
|
|
52546
|
+
if (h("<array|function> [boolean] [boolean] [boolean]", [t2, e2, s2], arguments.length), Array.isArray(t2)) {
|
|
52547
|
+
for (let i3 = 0; i3 < t2.length; i3++) {
|
|
52548
|
+
if (typeof t2[i3] != "function")
|
|
52505
52549
|
throw Error("middleware must be a function");
|
|
52506
|
-
const
|
|
52507
|
-
|
|
52550
|
+
const n2 = t2[i3];
|
|
52551
|
+
n2.applyBeforeValidation = e2, n2.global = s2;
|
|
52508
52552
|
}
|
|
52509
52553
|
Array.prototype.push.apply(this.globalMiddleware, t2);
|
|
52510
52554
|
} else if (typeof t2 == "function") {
|
|
52511
52555
|
const n2 = t2;
|
|
52512
|
-
n2.applyBeforeValidation = e2, n2.global = s2, this.globalMiddleware.push(t2);
|
|
52556
|
+
n2.applyBeforeValidation = e2, n2.global = s2, n2.mutates = i2, this.globalMiddleware.push(t2);
|
|
52513
52557
|
}
|
|
52514
52558
|
return this.yargs;
|
|
52515
52559
|
}
|
|
52516
52560
|
addCoerceMiddleware(t2, e2) {
|
|
52517
52561
|
const s2 = this.yargs.getAliases();
|
|
52518
52562
|
return this.globalMiddleware = this.globalMiddleware.filter((t3) => {
|
|
52519
|
-
const
|
|
52520
|
-
return !t3.option || !
|
|
52521
|
-
}), t2.option = e2, this.addMiddleware(t2, true, true);
|
|
52563
|
+
const i2 = [...s2[e2] || [], e2];
|
|
52564
|
+
return !t3.option || !i2.includes(t3.option);
|
|
52565
|
+
}), t2.option = e2, this.addMiddleware(t2, true, true, true);
|
|
52522
52566
|
}
|
|
52523
52567
|
getMiddleware() {
|
|
52524
52568
|
return this.globalMiddleware;
|
|
@@ -52534,15 +52578,20 @@ var require_build8 = __commonJS({
|
|
|
52534
52578
|
this.globalMiddleware = this.globalMiddleware.filter((t2) => t2.global);
|
|
52535
52579
|
}
|
|
52536
52580
|
};
|
|
52537
|
-
function C(t2, e2, s2,
|
|
52581
|
+
function C(t2, e2, s2, i2) {
|
|
52538
52582
|
return s2.reduce((t3, s3) => {
|
|
52539
|
-
if (s3.applyBeforeValidation !==
|
|
52583
|
+
if (s3.applyBeforeValidation !== i2)
|
|
52540
52584
|
return t3;
|
|
52541
|
-
if (
|
|
52585
|
+
if (s3.mutates) {
|
|
52586
|
+
if (s3.applied)
|
|
52587
|
+
return t3;
|
|
52588
|
+
s3.applied = true;
|
|
52589
|
+
}
|
|
52590
|
+
if (f(t3))
|
|
52542
52591
|
return t3.then((t4) => Promise.all([t4, s3(t4, e2)])).then(([t4, e3]) => Object.assign(t4, e3));
|
|
52543
52592
|
{
|
|
52544
|
-
const
|
|
52545
|
-
return
|
|
52593
|
+
const i3 = s3(t3, e2);
|
|
52594
|
+
return f(i3) ? i3.then((e3) => Object.assign(t3, e3)) : Object.assign(t3, i3);
|
|
52546
52595
|
}
|
|
52547
52596
|
}, t2);
|
|
52548
52597
|
}
|
|
@@ -52551,35 +52600,35 @@ var require_build8 = __commonJS({
|
|
|
52551
52600
|
}) {
|
|
52552
52601
|
try {
|
|
52553
52602
|
const s3 = typeof t2 == "function" ? t2() : t2;
|
|
52554
|
-
return
|
|
52603
|
+
return f(s3) ? s3.then((t3) => e2(t3)) : e2(s3);
|
|
52555
52604
|
} catch (t3) {
|
|
52556
52605
|
return s2(t3);
|
|
52557
52606
|
}
|
|
52558
52607
|
}
|
|
52559
|
-
var
|
|
52560
|
-
var
|
|
52561
|
-
constructor(t2, e2, s2,
|
|
52562
|
-
this.requireCache = /* @__PURE__ */ new Set(), this.handlers = {}, this.aliasMap = {}, this.frozens = [], this.shim =
|
|
52608
|
+
var _ = /(^\*)|(^\$0)/;
|
|
52609
|
+
var M = class {
|
|
52610
|
+
constructor(t2, e2, s2, i2) {
|
|
52611
|
+
this.requireCache = /* @__PURE__ */ new Set(), this.handlers = {}, this.aliasMap = {}, this.frozens = [], this.shim = i2, this.usage = t2, this.globalMiddleware = s2, this.validation = e2;
|
|
52563
52612
|
}
|
|
52564
|
-
addDirectory(t2, e2, s2,
|
|
52565
|
-
typeof (
|
|
52566
|
-
const
|
|
52567
|
-
|
|
52568
|
-
const
|
|
52569
|
-
if (
|
|
52613
|
+
addDirectory(t2, e2, s2, i2) {
|
|
52614
|
+
typeof (i2 = i2 || {}).recurse != "boolean" && (i2.recurse = false), Array.isArray(i2.extensions) || (i2.extensions = ["js"]);
|
|
52615
|
+
const n2 = typeof i2.visit == "function" ? i2.visit : (t3) => t3;
|
|
52616
|
+
i2.visit = (t3, e3, s3) => {
|
|
52617
|
+
const i3 = n2(t3, e3, s3);
|
|
52618
|
+
if (i3) {
|
|
52570
52619
|
if (this.requireCache.has(e3))
|
|
52571
|
-
return
|
|
52572
|
-
this.requireCache.add(e3), this.addHandler(
|
|
52620
|
+
return i3;
|
|
52621
|
+
this.requireCache.add(e3), this.addHandler(i3);
|
|
52573
52622
|
}
|
|
52574
|
-
return
|
|
52575
|
-
}, this.shim.requireDirectory({ require: e2, filename: s2 }, t2,
|
|
52623
|
+
return i3;
|
|
52624
|
+
}, this.shim.requireDirectory({ require: e2, filename: s2 }, t2, i2);
|
|
52576
52625
|
}
|
|
52577
|
-
addHandler(t2, e2, s2,
|
|
52626
|
+
addHandler(t2, e2, s2, i2, n2, r2) {
|
|
52578
52627
|
let a2 = [];
|
|
52579
52628
|
const h2 = function(t3) {
|
|
52580
52629
|
return t3 ? t3.map((t4) => (t4.applyBeforeValidation = false, t4)) : [];
|
|
52581
|
-
}(
|
|
52582
|
-
if (
|
|
52630
|
+
}(n2);
|
|
52631
|
+
if (i2 = i2 || (() => {
|
|
52583
52632
|
}), Array.isArray(t2))
|
|
52584
52633
|
if (function(t3) {
|
|
52585
52634
|
return t3.every((t4) => typeof t4 == "string");
|
|
@@ -52595,17 +52644,17 @@ var require_build8 = __commonJS({
|
|
|
52595
52644
|
let e3 = Array.isArray(t2.command) || typeof t2.command == "string" ? t2.command : this.moduleName(t2);
|
|
52596
52645
|
return t2.aliases && (e3 = [].concat(e3).concat(t2.aliases)), void this.addHandler(e3, this.extractDesc(t2), t2.builder, t2.handler, t2.middlewares, t2.deprecated);
|
|
52597
52646
|
}
|
|
52598
|
-
if (
|
|
52647
|
+
if (k(s2))
|
|
52599
52648
|
return void this.addHandler([t2].concat(a2), e2, s2.builder, s2.handler, s2.middlewares, s2.deprecated);
|
|
52600
52649
|
}
|
|
52601
52650
|
if (typeof t2 == "string") {
|
|
52602
|
-
const
|
|
52651
|
+
const n3 = o(t2);
|
|
52603
52652
|
a2 = a2.map((t3) => o(t3).cmd);
|
|
52604
52653
|
let l2 = false;
|
|
52605
|
-
const c2 = [
|
|
52606
|
-
c2.length === 0 && l2 && c2.push("$0"), l2 && (
|
|
52607
|
-
this.aliasMap[t3] =
|
|
52608
|
-
}), e2 !== false && this.usage.command(t2, e2, l2, a2, r2), this.handlers[
|
|
52654
|
+
const c2 = [n3.cmd].concat(a2).filter((t3) => !_.test(t3) || (l2 = true, false));
|
|
52655
|
+
c2.length === 0 && l2 && c2.push("$0"), l2 && (n3.cmd = c2[0], a2 = c2.slice(1), t2 = t2.replace(_, n3.cmd)), a2.forEach((t3) => {
|
|
52656
|
+
this.aliasMap[t3] = n3.cmd;
|
|
52657
|
+
}), e2 !== false && this.usage.command(t2, e2, l2, a2, r2), this.handlers[n3.cmd] = { original: t2, description: e2, handler: i2, builder: s2 || {}, middlewares: h2, deprecated: r2, demanded: n3.demanded, optional: n3.optional }, l2 && (this.defaultCommand = this.handlers[n3.cmd]);
|
|
52609
52658
|
}
|
|
52610
52659
|
}
|
|
52611
52660
|
getCommandHandlers() {
|
|
@@ -52617,130 +52666,141 @@ var require_build8 = __commonJS({
|
|
|
52617
52666
|
hasDefaultCommand() {
|
|
52618
52667
|
return !!this.defaultCommand;
|
|
52619
52668
|
}
|
|
52620
|
-
runCommand(t2, e2, s2,
|
|
52669
|
+
runCommand(t2, e2, s2, i2, n2, r2) {
|
|
52621
52670
|
const o2 = this.handlers[t2] || this.handlers[this.aliasMap[t2]] || this.defaultCommand, a2 = e2.getInternalMethods().getContext(), h2 = a2.commands.slice(), l2 = !t2;
|
|
52622
52671
|
t2 && (a2.commands.push(t2), a2.fullCommands.push(o2.original));
|
|
52623
|
-
const c2 = this.applyBuilderUpdateUsageAndParse(l2, o2, e2, s2.aliases, h2,
|
|
52624
|
-
return
|
|
52672
|
+
const c2 = this.applyBuilderUpdateUsageAndParse(l2, o2, e2, s2.aliases, h2, i2, n2, r2);
|
|
52673
|
+
return f(c2) ? c2.then((t3) => this.applyMiddlewareAndGetResult(l2, o2, t3.innerArgv, a2, n2, t3.aliases, e2)) : this.applyMiddlewareAndGetResult(l2, o2, c2.innerArgv, a2, n2, c2.aliases, e2);
|
|
52625
52674
|
}
|
|
52626
|
-
applyBuilderUpdateUsageAndParse(t2, e2, s2,
|
|
52675
|
+
applyBuilderUpdateUsageAndParse(t2, e2, s2, i2, n2, r2, o2, a2) {
|
|
52627
52676
|
const h2 = e2.builder;
|
|
52628
52677
|
let l2 = s2;
|
|
52629
|
-
if (
|
|
52630
|
-
const c2 = h2(s2.getInternalMethods().reset(
|
|
52631
|
-
if (
|
|
52632
|
-
return c2.then((
|
|
52678
|
+
if (x(h2)) {
|
|
52679
|
+
const c2 = h2(s2.getInternalMethods().reset(i2), a2);
|
|
52680
|
+
if (f(c2))
|
|
52681
|
+
return c2.then((i3) => {
|
|
52633
52682
|
var a3;
|
|
52634
|
-
return l2 = (a3 =
|
|
52683
|
+
return l2 = (a3 = i3) && typeof a3.getInternalMethods == "function" ? i3 : s2, this.parseAndUpdateUsage(t2, e2, l2, n2, r2, o2);
|
|
52635
52684
|
});
|
|
52636
52685
|
} else
|
|
52637
52686
|
(function(t3) {
|
|
52638
52687
|
return typeof t3 == "object";
|
|
52639
|
-
})(h2) && (l2 = s2.getInternalMethods().reset(
|
|
52688
|
+
})(h2) && (l2 = s2.getInternalMethods().reset(i2), Object.keys(e2.builder).forEach((t3) => {
|
|
52640
52689
|
l2.option(t3, h2[t3]);
|
|
52641
52690
|
}));
|
|
52642
|
-
return this.parseAndUpdateUsage(t2, e2, l2,
|
|
52691
|
+
return this.parseAndUpdateUsage(t2, e2, l2, n2, r2, o2);
|
|
52643
52692
|
}
|
|
52644
|
-
parseAndUpdateUsage(t2, e2, s2,
|
|
52645
|
-
t2 && s2.getInternalMethods().getUsageInstance().unfreeze(), this.shouldUpdateUsage(s2) && s2.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(
|
|
52646
|
-
const o2 = s2.getInternalMethods().runYargsParserAndExecuteCommands(null, void 0, true,
|
|
52647
|
-
return
|
|
52693
|
+
parseAndUpdateUsage(t2, e2, s2, i2, n2, r2) {
|
|
52694
|
+
t2 && s2.getInternalMethods().getUsageInstance().unfreeze(true), this.shouldUpdateUsage(s2) && s2.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i2, e2), e2.description);
|
|
52695
|
+
const o2 = s2.getInternalMethods().runYargsParserAndExecuteCommands(null, void 0, true, n2, r2);
|
|
52696
|
+
return f(o2) ? o2.then((t3) => ({ aliases: s2.parsed.aliases, innerArgv: t3 })) : { aliases: s2.parsed.aliases, innerArgv: o2 };
|
|
52648
52697
|
}
|
|
52649
52698
|
shouldUpdateUsage(t2) {
|
|
52650
52699
|
return !t2.getInternalMethods().getUsageInstance().getUsageDisabled() && t2.getInternalMethods().getUsageInstance().getUsage().length === 0;
|
|
52651
52700
|
}
|
|
52652
52701
|
usageFromParentCommandsCommandHandler(t2, e2) {
|
|
52653
|
-
const s2 =
|
|
52654
|
-
return
|
|
52702
|
+
const s2 = _.test(e2.original) ? e2.original.replace(_, "").trim() : e2.original, i2 = t2.filter((t3) => !_.test(t3));
|
|
52703
|
+
return i2.push(s2), `$0 ${i2.join(" ")}`;
|
|
52655
52704
|
}
|
|
52656
|
-
|
|
52657
|
-
|
|
52658
|
-
|
|
52659
|
-
return s2;
|
|
52660
|
-
o2.getInternalMethods().getHasOutput() || (a2 = this.populatePositionals(e2, s2, n2, o2));
|
|
52661
|
-
const h2 = this.globalMiddleware.getMiddleware().slice(0).concat(e2.middlewares);
|
|
52662
|
-
if (s2 = C(s2, o2, h2, true), !o2.getInternalMethods().getHasOutput()) {
|
|
52663
|
-
const e3 = o2.getInternalMethods().runValidation(r2, a2, o2.parsed.error, t2);
|
|
52705
|
+
handleValidationAndGetResult(t2, e2, s2, i2, n2, r2, o2, a2) {
|
|
52706
|
+
if (!r2.getInternalMethods().getHasOutput()) {
|
|
52707
|
+
const e3 = r2.getInternalMethods().runValidation(n2, a2, r2.parsed.error, t2);
|
|
52664
52708
|
s2 = j(s2, (t3) => (e3(t3), t3));
|
|
52665
52709
|
}
|
|
52666
|
-
if (e2.handler && !
|
|
52667
|
-
|
|
52668
|
-
const
|
|
52669
|
-
|
|
52710
|
+
if (e2.handler && !r2.getInternalMethods().getHasOutput()) {
|
|
52711
|
+
r2.getInternalMethods().setHasOutput();
|
|
52712
|
+
const i3 = !!r2.getOptions().configuration["populate--"];
|
|
52713
|
+
r2.getInternalMethods().postProcess(s2, i3, false, false), s2 = j(s2 = C(s2, r2, o2, false), (t3) => {
|
|
52670
52714
|
const s3 = e2.handler(t3);
|
|
52671
|
-
return
|
|
52672
|
-
}), t2 ||
|
|
52715
|
+
return f(s3) ? s3.then(() => t3) : t3;
|
|
52716
|
+
}), t2 || r2.getInternalMethods().getUsageInstance().cacheHelpMessage(), f(s2) && !r2.getInternalMethods().hasParseCallback() && s2.catch((t3) => {
|
|
52673
52717
|
try {
|
|
52674
|
-
|
|
52718
|
+
r2.getInternalMethods().getUsageInstance().fail(null, t3);
|
|
52675
52719
|
} catch (t4) {
|
|
52676
52720
|
}
|
|
52677
52721
|
});
|
|
52678
52722
|
}
|
|
52679
|
-
return t2 || (
|
|
52723
|
+
return t2 || (i2.commands.pop(), i2.fullCommands.pop()), s2;
|
|
52680
52724
|
}
|
|
52681
|
-
|
|
52725
|
+
applyMiddlewareAndGetResult(t2, e2, s2, i2, n2, r2, o2) {
|
|
52726
|
+
let a2 = {};
|
|
52727
|
+
if (n2)
|
|
52728
|
+
return s2;
|
|
52729
|
+
o2.getInternalMethods().getHasOutput() || (a2 = this.populatePositionals(e2, s2, i2, o2));
|
|
52730
|
+
const h2 = this.globalMiddleware.getMiddleware().slice(0).concat(e2.middlewares), l2 = C(s2, o2, h2, true);
|
|
52731
|
+
return f(l2) ? l2.then((s3) => this.handleValidationAndGetResult(t2, e2, s3, i2, r2, o2, h2, a2)) : this.handleValidationAndGetResult(t2, e2, l2, i2, r2, o2, h2, a2);
|
|
52732
|
+
}
|
|
52733
|
+
populatePositionals(t2, e2, s2, i2) {
|
|
52682
52734
|
e2._ = e2._.slice(s2.commands.length);
|
|
52683
|
-
const
|
|
52684
|
-
for (this.validation.positionalCount(
|
|
52685
|
-
const t3 =
|
|
52735
|
+
const n2 = t2.demanded.slice(0), r2 = t2.optional.slice(0), o2 = {};
|
|
52736
|
+
for (this.validation.positionalCount(n2.length, e2._.length); n2.length; ) {
|
|
52737
|
+
const t3 = n2.shift();
|
|
52686
52738
|
this.populatePositional(t3, e2, o2);
|
|
52687
52739
|
}
|
|
52688
52740
|
for (; r2.length; ) {
|
|
52689
52741
|
const t3 = r2.shift();
|
|
52690
52742
|
this.populatePositional(t3, e2, o2);
|
|
52691
52743
|
}
|
|
52692
|
-
return e2._ = s2.commands.concat(e2._.map((t3) => "" + t3)), this.postProcessPositionals(e2, o2, this.cmdToParseOptions(t2.original),
|
|
52744
|
+
return e2._ = s2.commands.concat(e2._.map((t3) => "" + t3)), this.postProcessPositionals(e2, o2, this.cmdToParseOptions(t2.original), i2), o2;
|
|
52693
52745
|
}
|
|
52694
52746
|
populatePositional(t2, e2, s2) {
|
|
52695
|
-
const
|
|
52696
|
-
t2.variadic ? s2[
|
|
52747
|
+
const i2 = t2.cmd[0];
|
|
52748
|
+
t2.variadic ? s2[i2] = e2._.splice(0).map(String) : e2._.length && (s2[i2] = [String(e2._.shift())]);
|
|
52697
52749
|
}
|
|
52698
52750
|
cmdToParseOptions(t2) {
|
|
52699
52751
|
const e2 = { array: [], default: {}, alias: {}, demand: {} }, s2 = o(t2);
|
|
52700
52752
|
return s2.demanded.forEach((t3) => {
|
|
52701
|
-
const [s3, ...
|
|
52702
|
-
t3.variadic && (e2.array.push(s3), e2.default[s3] = []), e2.alias[s3] =
|
|
52753
|
+
const [s3, ...i2] = t3.cmd;
|
|
52754
|
+
t3.variadic && (e2.array.push(s3), e2.default[s3] = []), e2.alias[s3] = i2, e2.demand[s3] = true;
|
|
52703
52755
|
}), s2.optional.forEach((t3) => {
|
|
52704
|
-
const [s3, ...
|
|
52705
|
-
t3.variadic && (e2.array.push(s3), e2.default[s3] = []), e2.alias[s3] =
|
|
52756
|
+
const [s3, ...i2] = t3.cmd;
|
|
52757
|
+
t3.variadic && (e2.array.push(s3), e2.default[s3] = []), e2.alias[s3] = i2;
|
|
52706
52758
|
}), e2;
|
|
52707
52759
|
}
|
|
52708
|
-
postProcessPositionals(t2, e2, s2,
|
|
52709
|
-
const
|
|
52710
|
-
|
|
52760
|
+
postProcessPositionals(t2, e2, s2, i2) {
|
|
52761
|
+
const n2 = Object.assign({}, i2.getOptions());
|
|
52762
|
+
n2.default = Object.assign(s2.default, n2.default);
|
|
52711
52763
|
for (const t3 of Object.keys(s2.alias))
|
|
52712
|
-
|
|
52713
|
-
|
|
52764
|
+
n2.alias[t3] = (n2.alias[t3] || []).concat(s2.alias[t3]);
|
|
52765
|
+
n2.array = n2.array.concat(s2.array), n2.config = {};
|
|
52714
52766
|
const r2 = [];
|
|
52715
52767
|
if (Object.keys(e2).forEach((t3) => {
|
|
52716
52768
|
e2[t3].map((e3) => {
|
|
52717
|
-
|
|
52769
|
+
n2.configuration["unknown-options-as-args"] && (n2.key[t3] = true), r2.push(`--${t3}`), r2.push(e3);
|
|
52718
52770
|
});
|
|
52719
52771
|
}), !r2.length)
|
|
52720
52772
|
return;
|
|
52721
|
-
const o2 = Object.assign({},
|
|
52773
|
+
const o2 = Object.assign({}, n2.configuration, { "populate--": false }), a2 = this.shim.Parser.detailed(r2, Object.assign({}, n2, { configuration: o2 }));
|
|
52722
52774
|
if (a2.error)
|
|
52723
|
-
|
|
52775
|
+
i2.getInternalMethods().getUsageInstance().fail(a2.error.message, a2.error);
|
|
52724
52776
|
else {
|
|
52725
52777
|
const s3 = Object.keys(e2);
|
|
52726
52778
|
Object.keys(e2).forEach((t3) => {
|
|
52727
52779
|
s3.push(...a2.aliases[t3]);
|
|
52728
52780
|
}), Object.keys(a2.argv).forEach((n3) => {
|
|
52729
|
-
s3.
|
|
52781
|
+
s3.includes(n3) && (e2[n3] || (e2[n3] = a2.argv[n3]), !this.isInConfigs(i2, n3) && !this.isDefaulted(i2, n3) && Object.prototype.hasOwnProperty.call(t2, n3) && Object.prototype.hasOwnProperty.call(a2.argv, n3) && (Array.isArray(t2[n3]) || Array.isArray(a2.argv[n3])) ? t2[n3] = [].concat(t2[n3], a2.argv[n3]) : t2[n3] = a2.argv[n3]);
|
|
52730
52782
|
});
|
|
52731
52783
|
}
|
|
52732
52784
|
}
|
|
52785
|
+
isDefaulted(t2, e2) {
|
|
52786
|
+
const { default: s2 } = t2.getOptions();
|
|
52787
|
+
return Object.prototype.hasOwnProperty.call(s2, e2) || Object.prototype.hasOwnProperty.call(s2, this.shim.Parser.camelCase(e2));
|
|
52788
|
+
}
|
|
52789
|
+
isInConfigs(t2, e2) {
|
|
52790
|
+
const { configObjects: s2 } = t2.getOptions();
|
|
52791
|
+
return s2.some((t3) => Object.prototype.hasOwnProperty.call(t3, e2)) || s2.some((t3) => Object.prototype.hasOwnProperty.call(t3, this.shim.Parser.camelCase(e2)));
|
|
52792
|
+
}
|
|
52733
52793
|
runDefaultBuilderOn(t2) {
|
|
52734
52794
|
if (!this.defaultCommand)
|
|
52735
52795
|
return;
|
|
52736
52796
|
if (this.shouldUpdateUsage(t2)) {
|
|
52737
|
-
const e3 =
|
|
52797
|
+
const e3 = _.test(this.defaultCommand.original) ? this.defaultCommand.original : this.defaultCommand.original.replace(/^[^[\]<>]*/, "$0 ");
|
|
52738
52798
|
t2.getInternalMethods().getUsageInstance().usage(e3, this.defaultCommand.description);
|
|
52739
52799
|
}
|
|
52740
52800
|
const e2 = this.defaultCommand.builder;
|
|
52741
|
-
if (
|
|
52801
|
+
if (x(e2))
|
|
52742
52802
|
return e2(t2, true);
|
|
52743
|
-
|
|
52803
|
+
k(e2) || Object.keys(e2).forEach((s2) => {
|
|
52744
52804
|
t2.option(s2, e2[s2]);
|
|
52745
52805
|
});
|
|
52746
52806
|
}
|
|
@@ -52748,8 +52808,8 @@ var require_build8 = __commonJS({
|
|
|
52748
52808
|
const e2 = function(t3) {
|
|
52749
52809
|
if (typeof require == "undefined")
|
|
52750
52810
|
return null;
|
|
52751
|
-
for (let e3, s2 = 0,
|
|
52752
|
-
if (e3 = require.cache[
|
|
52811
|
+
for (let e3, s2 = 0, i2 = Object.keys(require.cache); s2 < i2.length; s2++)
|
|
52812
|
+
if (e3 = require.cache[i2[s2]], e3.exports === t3)
|
|
52753
52813
|
return e3;
|
|
52754
52814
|
return null;
|
|
52755
52815
|
}(t2);
|
|
@@ -52761,10 +52821,10 @@ var require_build8 = __commonJS({
|
|
|
52761
52821
|
return this.shim.path.basename(t2, this.shim.path.extname(t2));
|
|
52762
52822
|
}
|
|
52763
52823
|
extractDesc({ describe: t2, description: e2, desc: s2 }) {
|
|
52764
|
-
for (const
|
|
52765
|
-
if (typeof
|
|
52766
|
-
return
|
|
52767
|
-
|
|
52824
|
+
for (const i2 of [t2, e2, s2]) {
|
|
52825
|
+
if (typeof i2 == "string" || i2 === false)
|
|
52826
|
+
return i2;
|
|
52827
|
+
d(i2, true, this.shim);
|
|
52768
52828
|
}
|
|
52769
52829
|
return false;
|
|
52770
52830
|
}
|
|
@@ -52773,16 +52833,16 @@ var require_build8 = __commonJS({
|
|
|
52773
52833
|
}
|
|
52774
52834
|
unfreeze() {
|
|
52775
52835
|
const t2 = this.frozens.pop();
|
|
52776
|
-
|
|
52836
|
+
d(t2, void 0, this.shim), { handlers: this.handlers, aliasMap: this.aliasMap, defaultCommand: this.defaultCommand } = t2;
|
|
52777
52837
|
}
|
|
52778
52838
|
reset() {
|
|
52779
52839
|
return this.handlers = {}, this.aliasMap = {}, this.defaultCommand = void 0, this.requireCache = /* @__PURE__ */ new Set(), this;
|
|
52780
52840
|
}
|
|
52781
52841
|
};
|
|
52782
|
-
function
|
|
52842
|
+
function k(t2) {
|
|
52783
52843
|
return typeof t2 == "object" && !!t2.builder && typeof t2.handler == "function";
|
|
52784
52844
|
}
|
|
52785
|
-
function
|
|
52845
|
+
function x(t2) {
|
|
52786
52846
|
return typeof t2 == "function";
|
|
52787
52847
|
}
|
|
52788
52848
|
function E(t2) {
|
|
@@ -52791,85 +52851,90 @@ var require_build8 = __commonJS({
|
|
|
52791
52851
|
s2._handle && s2.isTTY && typeof s2._handle.setBlocking == "function" && s2._handle.setBlocking(t2);
|
|
52792
52852
|
});
|
|
52793
52853
|
}
|
|
52794
|
-
function
|
|
52854
|
+
function A(t2) {
|
|
52795
52855
|
return typeof t2 == "boolean";
|
|
52796
52856
|
}
|
|
52797
|
-
function
|
|
52798
|
-
const
|
|
52799
|
-
|
|
52857
|
+
function P(t2, s2) {
|
|
52858
|
+
const i2 = s2.y18n.__, n2 = {}, r2 = [];
|
|
52859
|
+
n2.failFn = function(t3) {
|
|
52800
52860
|
r2.push(t3);
|
|
52801
52861
|
};
|
|
52802
|
-
let o2 = null, a2 = true;
|
|
52803
|
-
|
|
52804
|
-
const [
|
|
52805
|
-
return o2 =
|
|
52862
|
+
let o2 = null, a2 = null, h2 = true;
|
|
52863
|
+
n2.showHelpOnFail = function(e2 = true, s3) {
|
|
52864
|
+
const [i3, r3] = typeof e2 == "string" ? [true, e2] : [e2, s3];
|
|
52865
|
+
return t2.getInternalMethods().isGlobalContext() && (a2 = r3), o2 = r3, h2 = i3, n2;
|
|
52806
52866
|
};
|
|
52807
|
-
let
|
|
52808
|
-
|
|
52809
|
-
const
|
|
52867
|
+
let l2 = false;
|
|
52868
|
+
n2.fail = function(s3, i3) {
|
|
52869
|
+
const c3 = t2.getInternalMethods().getLoggerInstance();
|
|
52810
52870
|
if (!r2.length) {
|
|
52811
|
-
if (t2.getExitProcess() && E(true),
|
|
52871
|
+
if (t2.getExitProcess() && E(true), !l2) {
|
|
52872
|
+
l2 = true, h2 && (t2.showHelp("error"), c3.error()), (s3 || i3) && c3.error(s3 || i3);
|
|
52873
|
+
const e2 = o2 || a2;
|
|
52874
|
+
e2 && ((s3 || i3) && c3.error(""), c3.error(e2));
|
|
52875
|
+
}
|
|
52876
|
+
if (i3 = i3 || new e(s3), t2.getExitProcess())
|
|
52812
52877
|
return t2.exit(1);
|
|
52813
52878
|
if (t2.getInternalMethods().hasParseCallback())
|
|
52814
|
-
return t2.exit(1,
|
|
52815
|
-
throw
|
|
52879
|
+
return t2.exit(1, i3);
|
|
52880
|
+
throw i3;
|
|
52816
52881
|
}
|
|
52817
52882
|
for (let t3 = r2.length - 1; t3 >= 0; --t3) {
|
|
52818
52883
|
const e2 = r2[t3];
|
|
52819
|
-
if (
|
|
52820
|
-
if (
|
|
52821
|
-
throw
|
|
52884
|
+
if (A(e2)) {
|
|
52885
|
+
if (i3)
|
|
52886
|
+
throw i3;
|
|
52822
52887
|
if (s3)
|
|
52823
52888
|
throw Error(s3);
|
|
52824
52889
|
} else
|
|
52825
|
-
e2(s3,
|
|
52890
|
+
e2(s3, i3, n2);
|
|
52826
52891
|
}
|
|
52827
52892
|
};
|
|
52828
|
-
let
|
|
52829
|
-
|
|
52893
|
+
let c2 = [], f2 = false;
|
|
52894
|
+
n2.usage = (t3, e2) => t3 === null ? (f2 = true, c2 = [], n2) : (f2 = false, c2.push([t3, e2 || ""]), n2), n2.getUsage = () => c2, n2.getUsageDisabled = () => f2, n2.getPositionalGroupName = () => i2("Positionals:");
|
|
52830
52895
|
let d2 = [];
|
|
52831
|
-
|
|
52896
|
+
n2.example = (t3, e2) => {
|
|
52832
52897
|
d2.push([t3, e2 || ""]);
|
|
52833
52898
|
};
|
|
52834
52899
|
let u2 = [];
|
|
52835
|
-
|
|
52836
|
-
s3 && (u2 = u2.map((t4) => (t4[2] = false, t4))), u2.push([t3, e2 || "", s3,
|
|
52837
|
-
},
|
|
52900
|
+
n2.command = function(t3, e2, s3, i3, n3 = false) {
|
|
52901
|
+
s3 && (u2 = u2.map((t4) => (t4[2] = false, t4))), u2.push([t3, e2 || "", s3, i3, n3]);
|
|
52902
|
+
}, n2.getCommands = () => u2;
|
|
52838
52903
|
let p2 = {};
|
|
52839
|
-
|
|
52904
|
+
n2.describe = function(t3, e2) {
|
|
52840
52905
|
Array.isArray(t3) ? t3.forEach((t4) => {
|
|
52841
|
-
|
|
52906
|
+
n2.describe(t4, e2);
|
|
52842
52907
|
}) : typeof t3 == "object" ? Object.keys(t3).forEach((e3) => {
|
|
52843
|
-
|
|
52908
|
+
n2.describe(e3, t3[e3]);
|
|
52844
52909
|
}) : p2[t3] = e2;
|
|
52845
|
-
},
|
|
52846
|
-
let
|
|
52847
|
-
|
|
52848
|
-
|
|
52849
|
-
};
|
|
52850
|
-
let
|
|
52851
|
-
function
|
|
52852
|
-
return
|
|
52910
|
+
}, n2.getDescriptions = () => p2;
|
|
52911
|
+
let m2 = [];
|
|
52912
|
+
n2.epilog = (t3) => {
|
|
52913
|
+
m2.push(t3);
|
|
52914
|
+
};
|
|
52915
|
+
let y2, b2 = false;
|
|
52916
|
+
function v2() {
|
|
52917
|
+
return b2 || (y2 = function() {
|
|
52853
52918
|
const t3 = 80;
|
|
52854
52919
|
return s2.process.stdColumns ? Math.min(t3, s2.process.stdColumns) : t3;
|
|
52855
|
-
}(),
|
|
52920
|
+
}(), b2 = true), y2;
|
|
52856
52921
|
}
|
|
52857
|
-
|
|
52858
|
-
|
|
52922
|
+
n2.wrap = (t3) => {
|
|
52923
|
+
b2 = true, y2 = t3;
|
|
52859
52924
|
};
|
|
52860
52925
|
const O2 = "__yargsString__:";
|
|
52861
|
-
function
|
|
52862
|
-
let
|
|
52926
|
+
function w2(t3, e2, i3) {
|
|
52927
|
+
let n3 = 0;
|
|
52863
52928
|
return Array.isArray(t3) || (t3 = Object.values(t3).map((t4) => [t4])), t3.forEach((t4) => {
|
|
52864
|
-
|
|
52865
|
-
}), e2 && (
|
|
52929
|
+
n3 = Math.max(s2.stringWidth(i3 ? `${i3} ${I(t4[0])}` : I(t4[0])) + $(t4[0]), n3);
|
|
52930
|
+
}), e2 && (n3 = Math.min(n3, parseInt((0.5 * e2).toString(), 10))), n3;
|
|
52866
52931
|
}
|
|
52867
|
-
let
|
|
52868
|
-
function
|
|
52932
|
+
let C2;
|
|
52933
|
+
function j2(e2) {
|
|
52869
52934
|
return t2.getOptions().hiddenOptions.indexOf(e2) < 0 || t2.parsed.argv[t2.getOptions().showHiddenOpt];
|
|
52870
52935
|
}
|
|
52871
|
-
function
|
|
52872
|
-
let s3 = `[${
|
|
52936
|
+
function _2(t3, e2) {
|
|
52937
|
+
let s3 = `[${i2("default:")} `;
|
|
52873
52938
|
if (t3 === void 0 && !e2)
|
|
52874
52939
|
return null;
|
|
52875
52940
|
if (e2)
|
|
@@ -52887,216 +52952,255 @@ var require_build8 = __commonJS({
|
|
|
52887
52952
|
}
|
|
52888
52953
|
return `${s3}]`;
|
|
52889
52954
|
}
|
|
52890
|
-
|
|
52891
|
-
if (
|
|
52892
|
-
return
|
|
52955
|
+
n2.deferY18nLookup = (t3) => O2 + t3, n2.help = function() {
|
|
52956
|
+
if (C2)
|
|
52957
|
+
return C2;
|
|
52893
52958
|
!function() {
|
|
52894
52959
|
const e3 = t2.getDemandedOptions(), s3 = t2.getOptions();
|
|
52895
|
-
(Object.keys(s3.alias) || []).forEach((
|
|
52896
|
-
s3.alias[
|
|
52897
|
-
p2[r4] &&
|
|
52960
|
+
(Object.keys(s3.alias) || []).forEach((i3) => {
|
|
52961
|
+
s3.alias[i3].forEach((r4) => {
|
|
52962
|
+
p2[r4] && n2.describe(i3, p2[r4]), r4 in e3 && t2.demandOption(i3, e3[r4]), s3.boolean.includes(r4) && t2.boolean(i3), s3.count.includes(r4) && t2.count(i3), s3.string.includes(r4) && t2.string(i3), s3.normalize.includes(r4) && t2.normalize(i3), s3.array.includes(r4) && t2.array(i3), s3.number.includes(r4) && t2.number(i3);
|
|
52898
52963
|
});
|
|
52899
52964
|
});
|
|
52900
52965
|
}();
|
|
52901
|
-
const e2 = t2.customScriptName ? t2.$0 : s2.path.basename(t2.$0), r3 = t2.getDemandedOptions(), o3 = t2.getDemandedCommands(), a3 = t2.getDeprecatedOptions(), h3 = t2.getGroups(),
|
|
52902
|
-
let
|
|
52903
|
-
|
|
52904
|
-
const y3 =
|
|
52905
|
-
if (!
|
|
52906
|
-
if (
|
|
52907
|
-
|
|
52908
|
-
|
|
52909
|
-
}),
|
|
52966
|
+
const e2 = t2.customScriptName ? t2.$0 : s2.path.basename(t2.$0), r3 = t2.getDemandedOptions(), o3 = t2.getDemandedCommands(), a3 = t2.getDeprecatedOptions(), h3 = t2.getGroups(), l3 = t2.getOptions();
|
|
52967
|
+
let g2 = [];
|
|
52968
|
+
g2 = g2.concat(Object.keys(p2)), g2 = g2.concat(Object.keys(r3)), g2 = g2.concat(Object.keys(o3)), g2 = g2.concat(Object.keys(l3.default)), g2 = g2.filter(j2), g2 = Object.keys(g2.reduce((t3, e3) => (e3 !== "_" && (t3[e3] = true), t3), {}));
|
|
52969
|
+
const y3 = v2(), b3 = s2.cliui({ width: y3, wrap: !!y3 });
|
|
52970
|
+
if (!f2) {
|
|
52971
|
+
if (c2.length)
|
|
52972
|
+
c2.forEach((t3) => {
|
|
52973
|
+
b3.div({ text: `${t3[0].replace(/\$0/g, e2)}` }), t3[1] && b3.div({ text: `${t3[1]}`, padding: [1, 0, 0, 0] });
|
|
52974
|
+
}), b3.div();
|
|
52910
52975
|
else if (u2.length) {
|
|
52911
52976
|
let t3 = null;
|
|
52912
|
-
t3 = o3._ ? `${e2} <${
|
|
52913
|
-
` : `${e2} [${
|
|
52914
|
-
`,
|
|
52977
|
+
t3 = o3._ ? `${e2} <${i2("command")}>
|
|
52978
|
+
` : `${e2} [${i2("command")}]
|
|
52979
|
+
`, b3.div(`${t3}`);
|
|
52915
52980
|
}
|
|
52916
52981
|
}
|
|
52917
52982
|
if (u2.length > 1 || u2.length === 1 && !u2[0][2]) {
|
|
52918
|
-
|
|
52919
|
-
const s3 = t2.getInternalMethods().getContext(),
|
|
52920
|
-
t2.getInternalMethods().getParserConfiguration()["sort-commands"] === true && (u2 = u2.sort((t3, e3) => t3[0].localeCompare(e3[0])))
|
|
52921
|
-
|
|
52922
|
-
|
|
52923
|
-
const
|
|
52924
|
-
|
|
52925
|
-
|
|
52926
|
-
|
|
52927
|
-
|
|
52928
|
-
|
|
52929
|
-
const
|
|
52930
|
-
|
|
52931
|
-
|
|
52983
|
+
b3.div(i2("Commands:"));
|
|
52984
|
+
const s3 = t2.getInternalMethods().getContext(), n3 = s3.commands.length ? `${s3.commands.join(" ")} ` : "";
|
|
52985
|
+
t2.getInternalMethods().getParserConfiguration()["sort-commands"] === true && (u2 = u2.sort((t3, e3) => t3[0].localeCompare(e3[0])));
|
|
52986
|
+
const r4 = e2 ? `${e2} ` : "";
|
|
52987
|
+
u2.forEach((t3) => {
|
|
52988
|
+
const s4 = `${r4}${n3}${t3[0].replace(/^\$0 ?/, "")}`;
|
|
52989
|
+
b3.span({ text: s4, padding: [0, 2, 0, 2], width: w2(u2, y3, `${e2}${n3}`) + 4 }, { text: t3[1] });
|
|
52990
|
+
const o4 = [];
|
|
52991
|
+
t3[2] && o4.push(`[${i2("default")}]`), t3[3] && t3[3].length && o4.push(`[${i2("aliases:")} ${t3[3].join(", ")}]`), t3[4] && (typeof t3[4] == "string" ? o4.push(`[${i2("deprecated: %s", t3[4])}]`) : o4.push(`[${i2("deprecated")}]`)), o4.length ? b3.div({ text: o4.join(" "), padding: [0, 0, 0, 2], align: "right" }) : b3.div();
|
|
52992
|
+
}), b3.div();
|
|
52993
|
+
}
|
|
52994
|
+
const M3 = (Object.keys(l3.alias) || []).concat(Object.keys(t2.parsed.newAliases) || []);
|
|
52995
|
+
g2 = g2.filter((e3) => !t2.parsed.newAliases[e3] && M3.every((t3) => (l3.alias[t3] || []).indexOf(e3) === -1));
|
|
52996
|
+
const k3 = i2("Options:");
|
|
52997
|
+
h3[k3] || (h3[k3] = []), function(t3, e3, s3, i3) {
|
|
52998
|
+
let n3 = [], r4 = null;
|
|
52932
52999
|
Object.keys(s3).forEach((t4) => {
|
|
52933
|
-
|
|
53000
|
+
n3 = n3.concat(s3[t4]);
|
|
52934
53001
|
}), t3.forEach((t4) => {
|
|
52935
|
-
r4 = [t4].concat(e3[t4]), r4.some((t5) =>
|
|
53002
|
+
r4 = [t4].concat(e3[t4]), r4.some((t5) => n3.indexOf(t5) !== -1) || s3[i3].push(t4);
|
|
52936
53003
|
});
|
|
52937
|
-
}(
|
|
52938
|
-
const
|
|
52939
|
-
if (
|
|
53004
|
+
}(g2, l3.alias, h3, k3);
|
|
53005
|
+
const x2 = (t3) => /^--/.test(I(t3)), E2 = Object.keys(h3).filter((t3) => h3[t3].length > 0).map((t3) => ({ groupName: t3, normalizedKeys: h3[t3].filter(j2).map((t4) => {
|
|
53006
|
+
if (M3.includes(t4))
|
|
52940
53007
|
return t4;
|
|
52941
|
-
for (let e3, s3 = 0; (e3 =
|
|
52942
|
-
if (
|
|
53008
|
+
for (let e3, s3 = 0; (e3 = M3[s3]) !== void 0; s3++)
|
|
53009
|
+
if ((l3.alias[e3] || []).includes(t4))
|
|
52943
53010
|
return e3;
|
|
52944
53011
|
return t4;
|
|
52945
53012
|
}) })).filter(({ normalizedKeys: t3 }) => t3.length > 0).map(({ groupName: t3, normalizedKeys: e3 }) => {
|
|
52946
|
-
const s3 = e3.reduce((e4, s4) => (e4[s4] = [s4].concat(
|
|
53013
|
+
const s3 = e3.reduce((e4, s4) => (e4[s4] = [s4].concat(l3.alias[s4] || []).map((e5) => t3 === n2.getPositionalGroupName() ? e5 : (/^[0-9]$/.test(e5) ? l3.boolean.includes(s4) ? "-" : "--" : e5.length > 1 ? "--" : "-") + e5).sort((t4, e5) => x2(t4) === x2(e5) ? 0 : x2(t4) ? 1 : -1).join(", "), e4), {});
|
|
52947
53014
|
return { groupName: t3, normalizedKeys: e3, switches: s3 };
|
|
52948
53015
|
});
|
|
52949
|
-
if (E2.filter(({ groupName: t3 }) => t3 !==
|
|
53016
|
+
if (E2.filter(({ groupName: t3 }) => t3 !== n2.getPositionalGroupName()).some(({ normalizedKeys: t3, switches: e3 }) => !t3.every((t4) => x2(e3[t4]))) && E2.filter(({ groupName: t3 }) => t3 !== n2.getPositionalGroupName()).forEach(({ normalizedKeys: t3, switches: e3 }) => {
|
|
52950
53017
|
t3.forEach((t4) => {
|
|
52951
|
-
var s3,
|
|
52952
|
-
|
|
53018
|
+
var s3, i3;
|
|
53019
|
+
x2(e3[t4]) && (e3[t4] = (s3 = e3[t4], i3 = "-x, ".length, S(s3) ? { text: s3.text, indentation: s3.indentation + i3 } : { text: s3, indentation: i3 }));
|
|
52953
53020
|
});
|
|
52954
53021
|
}), E2.forEach(({ groupName: t3, normalizedKeys: e3, switches: s3 }) => {
|
|
52955
|
-
|
|
53022
|
+
b3.div(t3), e3.forEach((t4) => {
|
|
52956
53023
|
const e4 = s3[t4];
|
|
52957
53024
|
let o4 = p2[t4] || "", h4 = null;
|
|
52958
|
-
|
|
52959
|
-
const
|
|
52960
|
-
var
|
|
52961
|
-
|
|
52962
|
-
}),
|
|
52963
|
-
}), d2.length && (
|
|
53025
|
+
o4.includes(O2) && (o4 = i2(o4.substring(O2.length))), l3.boolean.includes(t4) && (h4 = `[${i2("boolean")}]`), l3.count.includes(t4) && (h4 = `[${i2("count")}]`), l3.string.includes(t4) && (h4 = `[${i2("string")}]`), l3.normalize.includes(t4) && (h4 = `[${i2("string")}]`), l3.array.includes(t4) && (h4 = `[${i2("array")}]`), l3.number.includes(t4) && (h4 = `[${i2("number")}]`);
|
|
53026
|
+
const c3 = [t4 in a3 ? (f3 = a3[t4], typeof f3 == "string" ? `[${i2("deprecated: %s", f3)}]` : `[${i2("deprecated")}]`) : null, h4, t4 in r3 ? `[${i2("required")}]` : null, l3.choices && l3.choices[t4] ? `[${i2("choices:")} ${n2.stringifiedValues(l3.choices[t4])}]` : null, _2(l3.default[t4], l3.defaultDescription[t4])].filter(Boolean).join(" ");
|
|
53027
|
+
var f3;
|
|
53028
|
+
b3.span({ text: I(e4), padding: [0, 2, 0, 2 + $(e4)], width: w2(s3, y3) + 4 }, o4), c3 ? b3.div({ text: c3, padding: [0, 0, 0, 2], align: "right" }) : b3.div();
|
|
53029
|
+
}), b3.div();
|
|
53030
|
+
}), d2.length && (b3.div(i2("Examples:")), d2.forEach((t3) => {
|
|
52964
53031
|
t3[0] = t3[0].replace(/\$0/g, e2);
|
|
52965
53032
|
}), d2.forEach((t3) => {
|
|
52966
|
-
t3[1] === "" ?
|
|
52967
|
-
}),
|
|
52968
|
-
const t3 =
|
|
52969
|
-
|
|
53033
|
+
t3[1] === "" ? b3.div({ text: t3[0], padding: [0, 2, 0, 2] }) : b3.div({ text: t3[0], padding: [0, 2, 0, 2], width: w2(d2, y3) + 4 }, { text: t3[1] });
|
|
53034
|
+
}), b3.div()), m2.length > 0) {
|
|
53035
|
+
const t3 = m2.map((t4) => t4.replace(/\$0/g, e2)).join("\n");
|
|
53036
|
+
b3.div(`${t3}
|
|
52970
53037
|
`);
|
|
52971
53038
|
}
|
|
52972
|
-
return
|
|
52973
|
-
},
|
|
52974
|
-
|
|
52975
|
-
},
|
|
52976
|
-
|
|
52977
|
-
},
|
|
52978
|
-
return !!
|
|
52979
|
-
},
|
|
53039
|
+
return b3.toString().replace(/\s*$/, "");
|
|
53040
|
+
}, n2.cacheHelpMessage = function() {
|
|
53041
|
+
C2 = this.help();
|
|
53042
|
+
}, n2.clearCachedHelpMessage = function() {
|
|
53043
|
+
C2 = void 0;
|
|
53044
|
+
}, n2.hasCachedHelpMessage = function() {
|
|
53045
|
+
return !!C2;
|
|
53046
|
+
}, n2.showHelp = (e2) => {
|
|
52980
53047
|
const s3 = t2.getInternalMethods().getLoggerInstance();
|
|
52981
53048
|
e2 || (e2 = "error");
|
|
52982
|
-
(typeof e2 == "function" ? e2 : s3[e2])(
|
|
52983
|
-
},
|
|
53049
|
+
(typeof e2 == "function" ? e2 : s3[e2])(n2.help());
|
|
53050
|
+
}, n2.functionDescription = (t3) => ["(", t3.name ? s2.Parser.decamelize(t3.name, "-") : i2("generated-value"), ")"].join(""), n2.stringifiedValues = function(t3, e2) {
|
|
52984
53051
|
let s3 = "";
|
|
52985
|
-
const
|
|
52986
|
-
return t3 &&
|
|
52987
|
-
s3.length && (s3 +=
|
|
53052
|
+
const i3 = e2 || ", ", n3 = [].concat(t3);
|
|
53053
|
+
return t3 && n3.length ? (n3.forEach((t4) => {
|
|
53054
|
+
s3.length && (s3 += i3), s3 += JSON.stringify(t4);
|
|
52988
53055
|
}), s3) : s3;
|
|
52989
53056
|
};
|
|
52990
|
-
let
|
|
52991
|
-
|
|
52992
|
-
|
|
52993
|
-
},
|
|
53057
|
+
let M2 = null;
|
|
53058
|
+
n2.version = (t3) => {
|
|
53059
|
+
M2 = t3;
|
|
53060
|
+
}, n2.showVersion = (e2) => {
|
|
52994
53061
|
const s3 = t2.getInternalMethods().getLoggerInstance();
|
|
52995
53062
|
e2 || (e2 = "error");
|
|
52996
|
-
(typeof e2 == "function" ? e2 : s3[e2])(
|
|
52997
|
-
},
|
|
52998
|
-
return o2 = null,
|
|
52999
|
-
};
|
|
53000
|
-
const
|
|
53001
|
-
return
|
|
53002
|
-
|
|
53003
|
-
},
|
|
53004
|
-
const
|
|
53005
|
-
|
|
53006
|
-
},
|
|
53007
|
-
}
|
|
53008
|
-
function
|
|
53063
|
+
(typeof e2 == "function" ? e2 : s3[e2])(M2);
|
|
53064
|
+
}, n2.reset = function(t3) {
|
|
53065
|
+
return o2 = null, l2 = false, c2 = [], f2 = false, m2 = [], d2 = [], u2 = [], p2 = g(p2, (e2) => !t3[e2]), n2;
|
|
53066
|
+
};
|
|
53067
|
+
const k2 = [];
|
|
53068
|
+
return n2.freeze = function() {
|
|
53069
|
+
k2.push({ failMessage: o2, failureOutput: l2, usages: c2, usageDisabled: f2, epilogs: m2, examples: d2, commands: u2, descriptions: p2 });
|
|
53070
|
+
}, n2.unfreeze = function(t3 = false) {
|
|
53071
|
+
const e2 = k2.pop();
|
|
53072
|
+
e2 && (t3 ? (p2 = __spreadValues(__spreadValues({}, e2.descriptions), p2), u2 = [...e2.commands, ...u2], c2 = [...e2.usages, ...c2], d2 = [...e2.examples, ...d2], m2 = [...e2.epilogs, ...m2]) : { failMessage: o2, failureOutput: l2, usages: c2, usageDisabled: f2, epilogs: m2, examples: d2, commands: u2, descriptions: p2 } = e2);
|
|
53073
|
+
}, n2;
|
|
53074
|
+
}
|
|
53075
|
+
function S(t2) {
|
|
53009
53076
|
return typeof t2 == "object";
|
|
53010
53077
|
}
|
|
53011
|
-
function
|
|
53012
|
-
return
|
|
53078
|
+
function $(t2) {
|
|
53079
|
+
return S(t2) ? t2.indentation : 0;
|
|
53013
53080
|
}
|
|
53014
53081
|
function I(t2) {
|
|
53015
|
-
return
|
|
53082
|
+
return S(t2) ? t2.text : t2;
|
|
53016
53083
|
}
|
|
53017
|
-
var
|
|
53018
|
-
constructor(t2, e2, s2,
|
|
53019
|
-
var
|
|
53020
|
-
this.yargs = t2, this.usage = e2, this.command = s2, this.shim =
|
|
53084
|
+
var D = class {
|
|
53085
|
+
constructor(t2, e2, s2, i2) {
|
|
53086
|
+
var n2, r2, o2;
|
|
53087
|
+
this.yargs = t2, this.usage = e2, this.command = s2, this.shim = i2, this.completionKey = "get-yargs-completions", this.aliases = null, this.customCompletionFunction = null, this.indexAfterLastReset = 0, this.zshShell = (o2 = ((n2 = this.shim.getEnv("SHELL")) === null || n2 === void 0 ? void 0 : n2.includes("zsh")) || ((r2 = this.shim.getEnv("ZSH_NAME")) === null || r2 === void 0 ? void 0 : r2.includes("zsh"))) !== null && o2 !== void 0 && o2;
|
|
53021
53088
|
}
|
|
53022
|
-
defaultCompletion(t2, e2, s2,
|
|
53023
|
-
const
|
|
53089
|
+
defaultCompletion(t2, e2, s2, i2) {
|
|
53090
|
+
const n2 = this.command.getCommandHandlers();
|
|
53024
53091
|
for (let e3 = 0, s3 = t2.length; e3 < s3; ++e3)
|
|
53025
|
-
if (
|
|
53026
|
-
const s4 =
|
|
53027
|
-
if (
|
|
53092
|
+
if (n2[t2[e3]] && n2[t2[e3]].builder) {
|
|
53093
|
+
const s4 = n2[t2[e3]].builder;
|
|
53094
|
+
if (x(s4)) {
|
|
53095
|
+
this.indexAfterLastReset = e3 + 1;
|
|
53028
53096
|
const t3 = this.yargs.getInternalMethods().reset();
|
|
53029
53097
|
return s4(t3, true), t3.argv;
|
|
53030
53098
|
}
|
|
53031
53099
|
}
|
|
53032
53100
|
const r2 = [];
|
|
53033
|
-
this.commandCompletions(r2, t2, s2), this.optionCompletions(r2, t2, e2, s2),
|
|
53101
|
+
this.commandCompletions(r2, t2, s2), this.optionCompletions(r2, t2, e2, s2), this.choicesFromOptionsCompletions(r2, t2, e2, s2), this.choicesFromPositionalsCompletions(r2, t2, e2, s2), i2(null, r2);
|
|
53034
53102
|
}
|
|
53035
53103
|
commandCompletions(t2, e2, s2) {
|
|
53036
|
-
const
|
|
53037
|
-
s2.match(/^-/) ||
|
|
53038
|
-
const
|
|
53039
|
-
if (e2.indexOf(
|
|
53104
|
+
const i2 = this.yargs.getInternalMethods().getContext().commands;
|
|
53105
|
+
s2.match(/^-/) || i2[i2.length - 1] === s2 || this.previousArgHasChoices(e2) || this.usage.getCommands().forEach((s3) => {
|
|
53106
|
+
const i3 = o(s3[0]).cmd;
|
|
53107
|
+
if (e2.indexOf(i3) === -1)
|
|
53040
53108
|
if (this.zshShell) {
|
|
53041
53109
|
const e3 = s3[1] || "";
|
|
53042
|
-
t2.push(
|
|
53110
|
+
t2.push(i3.replace(/:/g, "\\:") + ":" + e3);
|
|
53043
53111
|
} else
|
|
53044
|
-
t2.push(
|
|
53112
|
+
t2.push(i3);
|
|
53045
53113
|
});
|
|
53046
53114
|
}
|
|
53047
|
-
optionCompletions(t2, e2, s2,
|
|
53048
|
-
if (
|
|
53049
|
-
const
|
|
53050
|
-
Object.keys(
|
|
53051
|
-
const
|
|
53052
|
-
r2.includes(
|
|
53115
|
+
optionCompletions(t2, e2, s2, i2) {
|
|
53116
|
+
if ((i2.match(/^-/) || i2 === "" && t2.length === 0) && !this.previousArgHasChoices(e2)) {
|
|
53117
|
+
const s3 = this.yargs.getOptions(), n2 = this.yargs.getGroups()[this.usage.getPositionalGroupName()] || [];
|
|
53118
|
+
Object.keys(s3.key).forEach((r2) => {
|
|
53119
|
+
const o2 = !!s3.configuration["boolean-negation"] && s3.boolean.includes(r2);
|
|
53120
|
+
n2.includes(r2) || s3.hiddenOptions.includes(r2) || this.argsContainKey(e2, r2, o2) || (this.completeOptionKey(r2, t2, i2), o2 && s3.default[r2] && this.completeOptionKey(`no-${r2}`, t2, i2));
|
|
53053
53121
|
});
|
|
53054
53122
|
}
|
|
53055
53123
|
}
|
|
53056
|
-
|
|
53057
|
-
if (
|
|
53124
|
+
choicesFromOptionsCompletions(t2, e2, s2, i2) {
|
|
53125
|
+
if (this.previousArgHasChoices(e2)) {
|
|
53126
|
+
const s3 = this.getPreviousArgChoices(e2);
|
|
53127
|
+
s3 && s3.length > 0 && t2.push(...s3.map((t3) => t3.replace(/:/g, "\\:")));
|
|
53128
|
+
}
|
|
53129
|
+
}
|
|
53130
|
+
choicesFromPositionalsCompletions(t2, e2, s2, i2) {
|
|
53131
|
+
if (i2 === "" && t2.length > 0 && this.previousArgHasChoices(e2))
|
|
53132
|
+
return;
|
|
53133
|
+
const n2 = this.yargs.getGroups()[this.usage.getPositionalGroupName()] || [], r2 = Math.max(this.indexAfterLastReset, this.yargs.getInternalMethods().getContext().commands.length + 1), o2 = n2[s2._.length - r2 - 1];
|
|
53134
|
+
if (!o2)
|
|
53135
|
+
return;
|
|
53136
|
+
const a2 = this.yargs.getOptions().choices[o2] || [];
|
|
53137
|
+
for (const e3 of a2)
|
|
53138
|
+
e3.startsWith(i2) && t2.push(e3.replace(/:/g, "\\:"));
|
|
53139
|
+
}
|
|
53140
|
+
getPreviousArgChoices(t2) {
|
|
53141
|
+
if (t2.length < 1)
|
|
53142
|
+
return;
|
|
53143
|
+
let e2 = t2[t2.length - 1], s2 = "";
|
|
53144
|
+
if (!e2.startsWith("-") && t2.length > 1 && (s2 = e2, e2 = t2[t2.length - 2]), !e2.startsWith("-"))
|
|
53145
|
+
return;
|
|
53146
|
+
const i2 = e2.replace(/^-+/, ""), n2 = this.yargs.getOptions(), r2 = [i2, ...this.yargs.getAliases()[i2] || []];
|
|
53147
|
+
let o2;
|
|
53148
|
+
for (const t3 of r2)
|
|
53149
|
+
if (Object.prototype.hasOwnProperty.call(n2.key, t3) && Array.isArray(n2.choices[t3])) {
|
|
53150
|
+
o2 = n2.choices[t3];
|
|
53151
|
+
break;
|
|
53152
|
+
}
|
|
53153
|
+
return o2 ? o2.filter((t3) => !s2 || t3.startsWith(s2)) : void 0;
|
|
53154
|
+
}
|
|
53155
|
+
previousArgHasChoices(t2) {
|
|
53156
|
+
const e2 = this.getPreviousArgChoices(t2);
|
|
53157
|
+
return e2 !== void 0 && e2.length > 0;
|
|
53158
|
+
}
|
|
53159
|
+
argsContainKey(t2, e2, s2) {
|
|
53160
|
+
const i2 = (e3) => t2.indexOf((/^[^0-9]$/.test(e3) ? "-" : "--") + e3) !== -1;
|
|
53161
|
+
if (i2(e2))
|
|
53058
53162
|
return true;
|
|
53059
|
-
if (
|
|
53163
|
+
if (s2 && i2(`no-${e2}`))
|
|
53060
53164
|
return true;
|
|
53061
53165
|
if (this.aliases) {
|
|
53062
|
-
for (const t3 of this.aliases[
|
|
53063
|
-
if (
|
|
53166
|
+
for (const t3 of this.aliases[e2])
|
|
53167
|
+
if (i2(t3))
|
|
53064
53168
|
return true;
|
|
53065
53169
|
}
|
|
53066
53170
|
return false;
|
|
53067
53171
|
}
|
|
53068
53172
|
completeOptionKey(t2, e2, s2) {
|
|
53069
|
-
const
|
|
53173
|
+
const i2 = this.usage.getDescriptions(), n2 = !/^--/.test(s2) && ((t3) => /^[^0-9]$/.test(t3))(t2) ? "-" : "--";
|
|
53070
53174
|
if (this.zshShell) {
|
|
53071
|
-
const s3 =
|
|
53072
|
-
e2.push(
|
|
53175
|
+
const s3 = i2[t2] || "";
|
|
53176
|
+
e2.push(n2 + `${t2.replace(/:/g, "\\:")}:${s3.replace("__yargsString__:", "")}`);
|
|
53073
53177
|
} else
|
|
53074
|
-
e2.push(
|
|
53178
|
+
e2.push(n2 + t2);
|
|
53075
53179
|
}
|
|
53076
|
-
customCompletion(t2, e2, s2,
|
|
53077
|
-
if (
|
|
53180
|
+
customCompletion(t2, e2, s2, i2) {
|
|
53181
|
+
if (d(this.customCompletionFunction, null, this.shim), this.customCompletionFunction.length < 3) {
|
|
53078
53182
|
const t3 = this.customCompletionFunction(s2, e2);
|
|
53079
|
-
return
|
|
53183
|
+
return f(t3) ? t3.then((t4) => {
|
|
53080
53184
|
this.shim.process.nextTick(() => {
|
|
53081
|
-
|
|
53185
|
+
i2(null, t4);
|
|
53082
53186
|
});
|
|
53083
53187
|
}).catch((t4) => {
|
|
53084
53188
|
this.shim.process.nextTick(() => {
|
|
53085
|
-
|
|
53189
|
+
i2(t4, void 0);
|
|
53086
53190
|
});
|
|
53087
|
-
}) :
|
|
53191
|
+
}) : i2(null, t3);
|
|
53088
53192
|
}
|
|
53089
53193
|
return function(t3) {
|
|
53090
53194
|
return t3.length > 3;
|
|
53091
|
-
}(this.customCompletionFunction) ? this.customCompletionFunction(s2, e2, (
|
|
53092
|
-
|
|
53195
|
+
}(this.customCompletionFunction) ? this.customCompletionFunction(s2, e2, (n2 = i2) => this.defaultCompletion(t2, e2, s2, n2), (t3) => {
|
|
53196
|
+
i2(null, t3);
|
|
53093
53197
|
}) : this.customCompletionFunction(s2, e2, (t3) => {
|
|
53094
|
-
|
|
53198
|
+
i2(null, t3);
|
|
53095
53199
|
});
|
|
53096
53200
|
}
|
|
53097
53201
|
getCompletion(t2, e2) {
|
|
53098
|
-
const s2 = t2.length ? t2[t2.length - 1] : "",
|
|
53099
|
-
return
|
|
53202
|
+
const s2 = t2.length ? t2[t2.length - 1] : "", i2 = this.yargs.parse(t2, true), n2 = this.customCompletionFunction ? (i3) => this.customCompletion(t2, i3, s2, e2) : (i3) => this.defaultCompletion(t2, i3, s2, e2);
|
|
53203
|
+
return f(i2) ? i2.then(n2) : n2(i2);
|
|
53100
53204
|
}
|
|
53101
53205
|
generateCompletionScript(t2, e2) {
|
|
53102
53206
|
let s2 = this.zshShell ? `#compdef {{app_name}}
|
|
@@ -53105,7 +53209,7 @@ var require_build8 = __commonJS({
|
|
|
53105
53209
|
# yargs command completion script
|
|
53106
53210
|
#
|
|
53107
53211
|
# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc
|
|
53108
|
-
# or {{app_path}} {{completion_command}} >> ~/.
|
|
53212
|
+
# or {{app_path}} {{completion_command}} >> ~/.zprofile on OSX.
|
|
53109
53213
|
#
|
|
53110
53214
|
_{{app_name}}_yargs_completions()
|
|
53111
53215
|
{
|
|
@@ -53118,9 +53222,9 @@ _{{app_name}}_yargs_completions()
|
|
|
53118
53222
|
}
|
|
53119
53223
|
compdef _{{app_name}}_yargs_completions {{app_name}}
|
|
53120
53224
|
###-end-{{app_name}}-completions-###
|
|
53121
|
-
` : '###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o default -F _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n';
|
|
53122
|
-
const
|
|
53123
|
-
return t2.match(/\.js$/) && (t2 = `./${t2}`), s2 = s2.replace(/{{app_name}}/g,
|
|
53225
|
+
` : '###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n';
|
|
53226
|
+
const i2 = this.shim.path.basename(t2);
|
|
53227
|
+
return t2.match(/\.js$/) && (t2 = `./${t2}`), s2 = s2.replace(/{{app_name}}/g, i2), s2 = s2.replace(/{{completion_command}}/g, e2), s2.replace(/{{app_path}}/g, t2);
|
|
53124
53228
|
}
|
|
53125
53229
|
registerFunction(t2) {
|
|
53126
53230
|
this.customCompletionFunction = t2;
|
|
@@ -53129,35 +53233,35 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
|
|
|
53129
53233
|
this.aliases = t2.aliases;
|
|
53130
53234
|
}
|
|
53131
53235
|
};
|
|
53132
|
-
function
|
|
53236
|
+
function N(t2, e2) {
|
|
53133
53237
|
if (t2.length === 0)
|
|
53134
53238
|
return e2.length;
|
|
53135
53239
|
if (e2.length === 0)
|
|
53136
53240
|
return t2.length;
|
|
53137
53241
|
const s2 = [];
|
|
53138
|
-
let
|
|
53139
|
-
for (
|
|
53140
|
-
s2[
|
|
53141
|
-
for (
|
|
53142
|
-
s2[0][
|
|
53143
|
-
for (
|
|
53144
|
-
for (
|
|
53145
|
-
e2.charAt(
|
|
53242
|
+
let i2, n2;
|
|
53243
|
+
for (i2 = 0; i2 <= e2.length; i2++)
|
|
53244
|
+
s2[i2] = [i2];
|
|
53245
|
+
for (n2 = 0; n2 <= t2.length; n2++)
|
|
53246
|
+
s2[0][n2] = n2;
|
|
53247
|
+
for (i2 = 1; i2 <= e2.length; i2++)
|
|
53248
|
+
for (n2 = 1; n2 <= t2.length; n2++)
|
|
53249
|
+
e2.charAt(i2 - 1) === t2.charAt(n2 - 1) ? s2[i2][n2] = s2[i2 - 1][n2 - 1] : i2 > 1 && n2 > 1 && e2.charAt(i2 - 2) === t2.charAt(n2 - 1) && e2.charAt(i2 - 1) === t2.charAt(n2 - 2) ? s2[i2][n2] = s2[i2 - 2][n2 - 2] + 1 : s2[i2][n2] = Math.min(s2[i2 - 1][n2 - 1] + 1, Math.min(s2[i2][n2 - 1] + 1, s2[i2 - 1][n2] + 1));
|
|
53146
53250
|
return s2[e2.length][t2.length];
|
|
53147
53251
|
}
|
|
53148
|
-
var
|
|
53252
|
+
var H = ["$0", "--", "_"];
|
|
53253
|
+
var z;
|
|
53149
53254
|
var q;
|
|
53150
|
-
var
|
|
53255
|
+
var W;
|
|
53151
53256
|
var F;
|
|
53152
53257
|
var U;
|
|
53153
|
-
var W;
|
|
53154
53258
|
var L;
|
|
53155
53259
|
var V;
|
|
53260
|
+
var G;
|
|
53156
53261
|
var R;
|
|
53157
53262
|
var T;
|
|
53158
|
-
var G;
|
|
53159
|
-
var B;
|
|
53160
53263
|
var K;
|
|
53264
|
+
var B;
|
|
53161
53265
|
var Y;
|
|
53162
53266
|
var J;
|
|
53163
53267
|
var Z;
|
|
@@ -53166,56 +53270,61 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
|
|
|
53166
53270
|
var tt;
|
|
53167
53271
|
var et;
|
|
53168
53272
|
var st;
|
|
53169
|
-
var nt;
|
|
53170
53273
|
var it;
|
|
53274
|
+
var nt;
|
|
53171
53275
|
var rt;
|
|
53172
53276
|
var ot;
|
|
53173
53277
|
var at;
|
|
53174
53278
|
var ht;
|
|
53175
53279
|
var lt;
|
|
53176
53280
|
var ct;
|
|
53281
|
+
var ft;
|
|
53177
53282
|
var dt;
|
|
53178
53283
|
var ut;
|
|
53179
53284
|
var pt;
|
|
53180
53285
|
var gt;
|
|
53181
|
-
var mt
|
|
53182
|
-
var
|
|
53183
|
-
var
|
|
53184
|
-
var
|
|
53185
|
-
var Ot = Symbol("
|
|
53186
|
-
var
|
|
53187
|
-
var
|
|
53188
|
-
var
|
|
53189
|
-
var
|
|
53286
|
+
var mt;
|
|
53287
|
+
var yt = Symbol("copyDoubleDash");
|
|
53288
|
+
var bt = Symbol("copyDoubleDash");
|
|
53289
|
+
var vt = Symbol("deleteFromParserHintObject");
|
|
53290
|
+
var Ot = Symbol("emitWarning");
|
|
53291
|
+
var wt = Symbol("freeze");
|
|
53292
|
+
var Ct = Symbol("getDollarZero");
|
|
53293
|
+
var jt = Symbol("getParserConfiguration");
|
|
53294
|
+
var _t = Symbol("guessLocale");
|
|
53295
|
+
var Mt = Symbol("guessVersion");
|
|
53296
|
+
var kt = Symbol("parsePositionalNumbers");
|
|
53190
53297
|
var xt = Symbol("pkgUp");
|
|
53191
|
-
var
|
|
53192
|
-
var
|
|
53193
|
-
var
|
|
53194
|
-
var
|
|
53195
|
-
var
|
|
53196
|
-
var
|
|
53197
|
-
var
|
|
53198
|
-
var
|
|
53199
|
-
var
|
|
53200
|
-
var
|
|
53201
|
-
var
|
|
53202
|
-
var
|
|
53203
|
-
var
|
|
53204
|
-
var
|
|
53205
|
-
var
|
|
53206
|
-
var
|
|
53207
|
-
var
|
|
53208
|
-
var
|
|
53209
|
-
var
|
|
53210
|
-
var
|
|
53211
|
-
var
|
|
53212
|
-
var
|
|
53213
|
-
var
|
|
53214
|
-
|
|
53215
|
-
|
|
53298
|
+
var Et = Symbol("populateParserHintArray");
|
|
53299
|
+
var At = Symbol("populateParserHintSingleValueDictionary");
|
|
53300
|
+
var Pt = Symbol("populateParserHintArrayDictionary");
|
|
53301
|
+
var St = Symbol("populateParserHintDictionary");
|
|
53302
|
+
var $t = Symbol("sanitizeKey");
|
|
53303
|
+
var It = Symbol("setKey");
|
|
53304
|
+
var Dt = Symbol("unfreeze");
|
|
53305
|
+
var Nt = Symbol("validateAsync");
|
|
53306
|
+
var Ht = Symbol("getCommandInstance");
|
|
53307
|
+
var zt = Symbol("getContext");
|
|
53308
|
+
var qt = Symbol("getHasOutput");
|
|
53309
|
+
var Wt = Symbol("getLoggerInstance");
|
|
53310
|
+
var Ft = Symbol("getParseContext");
|
|
53311
|
+
var Ut = Symbol("getUsageInstance");
|
|
53312
|
+
var Lt = Symbol("getValidationInstance");
|
|
53313
|
+
var Vt = Symbol("hasParseCallback");
|
|
53314
|
+
var Gt = Symbol("isGlobalContext");
|
|
53315
|
+
var Rt = Symbol("postProcess");
|
|
53316
|
+
var Tt = Symbol("rebase");
|
|
53317
|
+
var Kt = Symbol("reset");
|
|
53318
|
+
var Bt = Symbol("runYargsParserAndExecuteCommands");
|
|
53319
|
+
var Yt = Symbol("runValidation");
|
|
53320
|
+
var Jt = Symbol("setHasOutput");
|
|
53321
|
+
var Zt = Symbol("kTrackManuallySetKeys");
|
|
53322
|
+
var Xt = class {
|
|
53323
|
+
constructor(t2 = [], e2, s2, i2) {
|
|
53324
|
+
this.customScriptName = false, this.parsed = false, z.set(this, void 0), q.set(this, void 0), W.set(this, { commands: [], fullCommands: [] }), F.set(this, null), U.set(this, null), L.set(this, "show-hidden"), V.set(this, null), G.set(this, true), R.set(this, {}), T.set(this, true), K.set(this, []), B.set(this, void 0), Y.set(this, {}), J.set(this, false), Z.set(this, null), X.set(this, true), Q.set(this, void 0), tt.set(this, ""), et.set(this, void 0), st.set(this, void 0), it.set(this, {}), nt.set(this, null), rt.set(this, null), ot.set(this, {}), at.set(this, {}), ht.set(this, void 0), lt.set(this, false), ct.set(this, void 0), ft.set(this, false), dt.set(this, false), ut.set(this, false), pt.set(this, void 0), gt.set(this, null), mt.set(this, void 0), O(this, ct, i2, "f"), O(this, ht, t2, "f"), O(this, q, e2, "f"), O(this, st, s2, "f"), O(this, B, new w(this), "f"), this.$0 = this[Ct](), this[Kt](), O(this, z, v(this, z, "f"), "f"), O(this, pt, v(this, pt, "f"), "f"), O(this, mt, v(this, mt, "f"), "f"), O(this, et, v(this, et, "f"), "f"), v(this, et, "f").showHiddenOpt = v(this, L, "f"), O(this, Q, this[bt](), "f");
|
|
53216
53325
|
}
|
|
53217
53326
|
addHelpOpt(t2, e2) {
|
|
53218
|
-
return h("[string|boolean] [string]", [t2, e2], arguments.length),
|
|
53327
|
+
return h("[string|boolean] [string]", [t2, e2], arguments.length), v(this, Z, "f") && (this[vt](v(this, Z, "f")), O(this, Z, null, "f")), t2 === false && e2 === void 0 || (O(this, Z, typeof t2 == "string" ? t2 : "help", "f"), this.boolean(v(this, Z, "f")), this.describe(v(this, Z, "f"), e2 || v(this, pt, "f").deferY18nLookup("Show help"))), this;
|
|
53219
53328
|
}
|
|
53220
53329
|
help(t2, e2) {
|
|
53221
53330
|
return this.addHelpOpt(t2, e2);
|
|
@@ -53223,26 +53332,26 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
|
|
|
53223
53332
|
addShowHiddenOpt(t2, e2) {
|
|
53224
53333
|
if (h("[string|boolean] [string]", [t2, e2], arguments.length), t2 === false && e2 === void 0)
|
|
53225
53334
|
return this;
|
|
53226
|
-
const s2 = typeof t2 == "string" ? t2 :
|
|
53227
|
-
return this.boolean(s2), this.describe(s2, e2 ||
|
|
53335
|
+
const s2 = typeof t2 == "string" ? t2 : v(this, L, "f");
|
|
53336
|
+
return this.boolean(s2), this.describe(s2, e2 || v(this, pt, "f").deferY18nLookup("Show hidden options")), v(this, et, "f").showHiddenOpt = s2, this;
|
|
53228
53337
|
}
|
|
53229
53338
|
showHidden(t2, e2) {
|
|
53230
53339
|
return this.addShowHiddenOpt(t2, e2);
|
|
53231
53340
|
}
|
|
53232
53341
|
alias(t2, e2) {
|
|
53233
|
-
return h("<object|string|array> [string|array]", [t2, e2], arguments.length), this[
|
|
53342
|
+
return h("<object|string|array> [string|array]", [t2, e2], arguments.length), this[Pt](this.alias.bind(this), "alias", t2, e2), this;
|
|
53234
53343
|
}
|
|
53235
53344
|
array(t2) {
|
|
53236
|
-
return h("<array|string>", [t2], arguments.length), this[
|
|
53345
|
+
return h("<array|string>", [t2], arguments.length), this[Et]("array", t2), this[Zt](t2), this;
|
|
53237
53346
|
}
|
|
53238
53347
|
boolean(t2) {
|
|
53239
|
-
return h("<array|string>", [t2], arguments.length), this[
|
|
53348
|
+
return h("<array|string>", [t2], arguments.length), this[Et]("boolean", t2), this[Zt](t2), this;
|
|
53240
53349
|
}
|
|
53241
53350
|
check(t2, e2) {
|
|
53242
|
-
return h("<function> [boolean]", [t2, e2], arguments.length), this.middleware((e3, s2) => j(() => t2(e3), (s3) => (s3 ? (typeof s3 == "string" || s3 instanceof Error) &&
|
|
53351
|
+
return h("<function> [boolean]", [t2, e2], arguments.length), this.middleware((e3, s2) => j(() => t2(e3, s2.getOptions()), (s3) => (s3 ? (typeof s3 == "string" || s3 instanceof Error) && v(this, pt, "f").fail(s3.toString(), s3) : v(this, pt, "f").fail(v(this, ct, "f").y18n.__("Argument check failed: %s", t2.toString())), e3), (t3) => (v(this, pt, "f").fail(t3.message ? t3.message : t3.toString(), t3), e3)), false, e2), this;
|
|
53243
53352
|
}
|
|
53244
53353
|
choices(t2, e2) {
|
|
53245
|
-
return h("<object|string|array> [string|array]", [t2, e2], arguments.length), this[
|
|
53354
|
+
return h("<object|string|array> [string|array]", [t2, e2], arguments.length), this[Pt](this.choices.bind(this), "choices", t2, e2), this;
|
|
53246
53355
|
}
|
|
53247
53356
|
coerce(t2, s2) {
|
|
53248
53357
|
if (h("<object|string|array> [function]", [t2, s2], arguments.length), Array.isArray(t2)) {
|
|
@@ -53259,179 +53368,181 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
|
|
|
53259
53368
|
}
|
|
53260
53369
|
if (!s2)
|
|
53261
53370
|
throw new e("coerce callback must be provided");
|
|
53262
|
-
return
|
|
53371
|
+
return v(this, et, "f").key[t2] = true, v(this, B, "f").addCoerceMiddleware((i2, n2) => {
|
|
53263
53372
|
let r2;
|
|
53264
|
-
return j(() => (r2 =
|
|
53265
|
-
|
|
53266
|
-
|
|
53267
|
-
|
|
53268
|
-
|
|
53373
|
+
return Object.prototype.hasOwnProperty.call(i2, t2) ? j(() => (r2 = n2.getAliases(), s2(i2[t2])), (e2) => {
|
|
53374
|
+
i2[t2] = e2;
|
|
53375
|
+
const s3 = n2.getInternalMethods().getParserConfiguration()["strip-aliased"];
|
|
53376
|
+
if (r2[t2] && s3 !== true)
|
|
53377
|
+
for (const s4 of r2[t2])
|
|
53378
|
+
i2[s4] = e2;
|
|
53379
|
+
return i2;
|
|
53269
53380
|
}, (t3) => {
|
|
53270
53381
|
throw new e(t3.message);
|
|
53271
|
-
});
|
|
53382
|
+
}) : i2;
|
|
53272
53383
|
}, t2), this;
|
|
53273
53384
|
}
|
|
53274
53385
|
conflicts(t2, e2) {
|
|
53275
|
-
return h("<string|object> [string|array]", [t2, e2], arguments.length),
|
|
53386
|
+
return h("<string|object> [string|array]", [t2, e2], arguments.length), v(this, mt, "f").conflicts(t2, e2), this;
|
|
53276
53387
|
}
|
|
53277
53388
|
config(t2 = "config", e2, s2) {
|
|
53278
|
-
return h("[object|string] [string|function] [function]", [t2, e2, s2], arguments.length), typeof t2 != "object" || Array.isArray(t2) ? (typeof e2 == "function" && (s2 = e2, e2 = void 0), this.describe(t2, e2 ||
|
|
53279
|
-
|
|
53280
|
-
}), this) : (t2 =
|
|
53389
|
+
return h("[object|string] [string|function] [function]", [t2, e2, s2], arguments.length), typeof t2 != "object" || Array.isArray(t2) ? (typeof e2 == "function" && (s2 = e2, e2 = void 0), this.describe(t2, e2 || v(this, pt, "f").deferY18nLookup("Path to JSON config file")), (Array.isArray(t2) ? t2 : [t2]).forEach((t3) => {
|
|
53390
|
+
v(this, et, "f").config[t3] = s2 || true;
|
|
53391
|
+
}), this) : (t2 = n(t2, v(this, q, "f"), this[jt]()["deep-merge-config"] || false, v(this, ct, "f")), v(this, et, "f").configObjects = (v(this, et, "f").configObjects || []).concat(t2), this);
|
|
53281
53392
|
}
|
|
53282
53393
|
completion(t2, e2, s2) {
|
|
53283
|
-
return h("[string] [string|boolean|function] [function]", [t2, e2, s2], arguments.length), typeof e2 == "function" && (s2 = e2, e2 = void 0),
|
|
53394
|
+
return h("[string] [string|boolean|function] [function]", [t2, e2, s2], arguments.length), typeof e2 == "function" && (s2 = e2, e2 = void 0), O(this, U, t2 || v(this, U, "f") || "completion", "f"), e2 || e2 === false || (e2 = "generate completion script"), this.command(v(this, U, "f"), e2), s2 && v(this, F, "f").registerFunction(s2), this;
|
|
53284
53395
|
}
|
|
53285
|
-
command(t2, e2, s2,
|
|
53286
|
-
return h("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]", [t2, e2, s2,
|
|
53396
|
+
command(t2, e2, s2, i2, n2, r2) {
|
|
53397
|
+
return h("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]", [t2, e2, s2, i2, n2, r2], arguments.length), v(this, z, "f").addHandler(t2, e2, s2, i2, n2, r2), this;
|
|
53287
53398
|
}
|
|
53288
|
-
commands(t2, e2, s2,
|
|
53289
|
-
return this.command(t2, e2, s2,
|
|
53399
|
+
commands(t2, e2, s2, i2, n2, r2) {
|
|
53400
|
+
return this.command(t2, e2, s2, i2, n2, r2);
|
|
53290
53401
|
}
|
|
53291
53402
|
commandDir(t2, e2) {
|
|
53292
53403
|
h("<string> [object]", [t2, e2], arguments.length);
|
|
53293
|
-
const s2 =
|
|
53294
|
-
return
|
|
53404
|
+
const s2 = v(this, st, "f") || v(this, ct, "f").require;
|
|
53405
|
+
return v(this, z, "f").addDirectory(t2, s2, v(this, ct, "f").getCallerFile(), e2), this;
|
|
53295
53406
|
}
|
|
53296
53407
|
count(t2) {
|
|
53297
|
-
return h("<array|string>", [t2], arguments.length), this[
|
|
53408
|
+
return h("<array|string>", [t2], arguments.length), this[Et]("count", t2), this[Zt](t2), this;
|
|
53298
53409
|
}
|
|
53299
53410
|
default(t2, e2, s2) {
|
|
53300
|
-
return h("<object|string|array> [*] [string]", [t2, e2, s2], arguments.length), s2 && (
|
|
53411
|
+
return h("<object|string|array> [*] [string]", [t2, e2, s2], arguments.length), s2 && (u(t2, v(this, ct, "f")), v(this, et, "f").defaultDescription[t2] = s2), typeof e2 == "function" && (u(t2, v(this, ct, "f")), v(this, et, "f").defaultDescription[t2] || (v(this, et, "f").defaultDescription[t2] = v(this, pt, "f").functionDescription(e2)), e2 = e2.call()), this[At](this.default.bind(this), "default", t2, e2), this;
|
|
53301
53412
|
}
|
|
53302
53413
|
defaults(t2, e2, s2) {
|
|
53303
53414
|
return this.default(t2, e2, s2);
|
|
53304
53415
|
}
|
|
53305
|
-
demandCommand(t2 = 1, e2, s2,
|
|
53306
|
-
return h("[number] [number|string] [string|null|undefined] [string|null|undefined]", [t2, e2, s2,
|
|
53416
|
+
demandCommand(t2 = 1, e2, s2, i2) {
|
|
53417
|
+
return h("[number] [number|string] [string|null|undefined] [string|null|undefined]", [t2, e2, s2, i2], arguments.length), typeof e2 != "number" && (s2 = e2, e2 = 1 / 0), this.global("_", false), v(this, et, "f").demandedCommands._ = { min: t2, max: e2, minMsg: s2, maxMsg: i2 }, this;
|
|
53307
53418
|
}
|
|
53308
53419
|
demand(t2, e2, s2) {
|
|
53309
53420
|
return Array.isArray(e2) ? (e2.forEach((t3) => {
|
|
53310
|
-
|
|
53311
|
-
}), e2 = 1 / 0) : typeof e2 != "number" && (s2 = e2, e2 = 1 / 0), typeof t2 == "number" ? (
|
|
53312
|
-
|
|
53421
|
+
d(s2, true, v(this, ct, "f")), this.demandOption(t3, s2);
|
|
53422
|
+
}), e2 = 1 / 0) : typeof e2 != "number" && (s2 = e2, e2 = 1 / 0), typeof t2 == "number" ? (d(s2, true, v(this, ct, "f")), this.demandCommand(t2, e2, s2, s2)) : Array.isArray(t2) ? t2.forEach((t3) => {
|
|
53423
|
+
d(s2, true, v(this, ct, "f")), this.demandOption(t3, s2);
|
|
53313
53424
|
}) : typeof s2 == "string" ? this.demandOption(t2, s2) : s2 !== true && s2 !== void 0 || this.demandOption(t2), this;
|
|
53314
53425
|
}
|
|
53315
53426
|
demandOption(t2, e2) {
|
|
53316
|
-
return h("<object|string|array> [string]", [t2, e2], arguments.length), this[
|
|
53427
|
+
return h("<object|string|array> [string]", [t2, e2], arguments.length), this[At](this.demandOption.bind(this), "demandedOptions", t2, e2), this;
|
|
53317
53428
|
}
|
|
53318
53429
|
deprecateOption(t2, e2) {
|
|
53319
|
-
return h("<string> [string|boolean]", [t2, e2], arguments.length),
|
|
53430
|
+
return h("<string> [string|boolean]", [t2, e2], arguments.length), v(this, et, "f").deprecatedOptions[t2] = e2, this;
|
|
53320
53431
|
}
|
|
53321
53432
|
describe(t2, e2) {
|
|
53322
|
-
return h("<object|string|array> [string]", [t2, e2], arguments.length), this[
|
|
53433
|
+
return h("<object|string|array> [string]", [t2, e2], arguments.length), this[It](t2, true), v(this, pt, "f").describe(t2, e2), this;
|
|
53323
53434
|
}
|
|
53324
53435
|
detectLocale(t2) {
|
|
53325
|
-
return h("<boolean>", [t2], arguments.length),
|
|
53436
|
+
return h("<boolean>", [t2], arguments.length), O(this, G, t2, "f"), this;
|
|
53326
53437
|
}
|
|
53327
53438
|
env(t2) {
|
|
53328
|
-
return h("[string|boolean]", [t2], arguments.length), t2 === false ? delete
|
|
53439
|
+
return h("[string|boolean]", [t2], arguments.length), t2 === false ? delete v(this, et, "f").envPrefix : v(this, et, "f").envPrefix = t2 || "", this;
|
|
53329
53440
|
}
|
|
53330
53441
|
epilogue(t2) {
|
|
53331
|
-
return h("<string>", [t2], arguments.length),
|
|
53442
|
+
return h("<string>", [t2], arguments.length), v(this, pt, "f").epilog(t2), this;
|
|
53332
53443
|
}
|
|
53333
53444
|
epilog(t2) {
|
|
53334
53445
|
return this.epilogue(t2);
|
|
53335
53446
|
}
|
|
53336
53447
|
example(t2, e2) {
|
|
53337
|
-
return h("<string|array> [string]", [t2, e2], arguments.length), Array.isArray(t2) ? t2.forEach((t3) => this.example(...t3)) :
|
|
53448
|
+
return h("<string|array> [string]", [t2, e2], arguments.length), Array.isArray(t2) ? t2.forEach((t3) => this.example(...t3)) : v(this, pt, "f").example(t2, e2), this;
|
|
53338
53449
|
}
|
|
53339
53450
|
exit(t2, e2) {
|
|
53340
|
-
|
|
53451
|
+
O(this, J, true, "f"), O(this, V, e2, "f"), v(this, T, "f") && v(this, ct, "f").process.exit(t2);
|
|
53341
53452
|
}
|
|
53342
53453
|
exitProcess(t2 = true) {
|
|
53343
|
-
return h("[boolean]", [t2], arguments.length),
|
|
53454
|
+
return h("[boolean]", [t2], arguments.length), O(this, T, t2, "f"), this;
|
|
53344
53455
|
}
|
|
53345
53456
|
fail(t2) {
|
|
53346
53457
|
if (h("<function|boolean>", [t2], arguments.length), typeof t2 == "boolean" && t2 !== false)
|
|
53347
53458
|
throw new e("Invalid first argument. Expected function or boolean 'false'");
|
|
53348
|
-
return
|
|
53459
|
+
return v(this, pt, "f").failFn(t2), this;
|
|
53349
53460
|
}
|
|
53350
53461
|
getAliases() {
|
|
53351
53462
|
return this.parsed ? this.parsed.aliases : {};
|
|
53352
53463
|
}
|
|
53353
53464
|
async getCompletion(t2, e2) {
|
|
53354
|
-
return h("<array> [function]", [t2, e2], arguments.length), e2 ?
|
|
53355
|
-
|
|
53356
|
-
t3 ? s2(t3) : e3(
|
|
53465
|
+
return h("<array> [function]", [t2, e2], arguments.length), e2 ? v(this, F, "f").getCompletion(t2, e2) : new Promise((e3, s2) => {
|
|
53466
|
+
v(this, F, "f").getCompletion(t2, (t3, i2) => {
|
|
53467
|
+
t3 ? s2(t3) : e3(i2);
|
|
53357
53468
|
});
|
|
53358
53469
|
});
|
|
53359
53470
|
}
|
|
53360
53471
|
getDemandedOptions() {
|
|
53361
|
-
return h([], 0),
|
|
53472
|
+
return h([], 0), v(this, et, "f").demandedOptions;
|
|
53362
53473
|
}
|
|
53363
53474
|
getDemandedCommands() {
|
|
53364
|
-
return h([], 0),
|
|
53475
|
+
return h([], 0), v(this, et, "f").demandedCommands;
|
|
53365
53476
|
}
|
|
53366
53477
|
getDeprecatedOptions() {
|
|
53367
|
-
return h([], 0),
|
|
53478
|
+
return h([], 0), v(this, et, "f").deprecatedOptions;
|
|
53368
53479
|
}
|
|
53369
53480
|
getDetectLocale() {
|
|
53370
|
-
return
|
|
53481
|
+
return v(this, G, "f");
|
|
53371
53482
|
}
|
|
53372
53483
|
getExitProcess() {
|
|
53373
|
-
return
|
|
53484
|
+
return v(this, T, "f");
|
|
53374
53485
|
}
|
|
53375
53486
|
getGroups() {
|
|
53376
|
-
return Object.assign({},
|
|
53487
|
+
return Object.assign({}, v(this, Y, "f"), v(this, at, "f"));
|
|
53377
53488
|
}
|
|
53378
53489
|
getHelp() {
|
|
53379
|
-
if (
|
|
53490
|
+
if (O(this, J, true, "f"), !v(this, pt, "f").hasCachedHelpMessage()) {
|
|
53380
53491
|
if (!this.parsed) {
|
|
53381
|
-
const t3 = this[
|
|
53382
|
-
if (
|
|
53383
|
-
return t3.then(() =>
|
|
53492
|
+
const t3 = this[Bt](v(this, ht, "f"), void 0, void 0, 0, true);
|
|
53493
|
+
if (f(t3))
|
|
53494
|
+
return t3.then(() => v(this, pt, "f").help());
|
|
53384
53495
|
}
|
|
53385
|
-
const t2 =
|
|
53386
|
-
if (
|
|
53387
|
-
return t2.then(() =>
|
|
53496
|
+
const t2 = v(this, z, "f").runDefaultBuilderOn(this);
|
|
53497
|
+
if (f(t2))
|
|
53498
|
+
return t2.then(() => v(this, pt, "f").help());
|
|
53388
53499
|
}
|
|
53389
|
-
return Promise.resolve(
|
|
53500
|
+
return Promise.resolve(v(this, pt, "f").help());
|
|
53390
53501
|
}
|
|
53391
53502
|
getOptions() {
|
|
53392
|
-
return
|
|
53503
|
+
return v(this, et, "f");
|
|
53393
53504
|
}
|
|
53394
53505
|
getStrict() {
|
|
53395
|
-
return
|
|
53506
|
+
return v(this, ft, "f");
|
|
53396
53507
|
}
|
|
53397
53508
|
getStrictCommands() {
|
|
53398
|
-
return
|
|
53509
|
+
return v(this, dt, "f");
|
|
53399
53510
|
}
|
|
53400
53511
|
getStrictOptions() {
|
|
53401
|
-
return
|
|
53512
|
+
return v(this, ut, "f");
|
|
53402
53513
|
}
|
|
53403
53514
|
global(t2, e2) {
|
|
53404
|
-
return h("<string|array> [boolean]", [t2, e2], arguments.length), t2 = [].concat(t2), e2 !== false ?
|
|
53405
|
-
|
|
53515
|
+
return h("<string|array> [boolean]", [t2, e2], arguments.length), t2 = [].concat(t2), e2 !== false ? v(this, et, "f").local = v(this, et, "f").local.filter((e3) => t2.indexOf(e3) === -1) : t2.forEach((t3) => {
|
|
53516
|
+
v(this, et, "f").local.includes(t3) || v(this, et, "f").local.push(t3);
|
|
53406
53517
|
}), this;
|
|
53407
53518
|
}
|
|
53408
53519
|
group(t2, e2) {
|
|
53409
53520
|
h("<string|array> <string>", [t2, e2], arguments.length);
|
|
53410
|
-
const s2 =
|
|
53411
|
-
|
|
53412
|
-
const
|
|
53413
|
-
return
|
|
53521
|
+
const s2 = v(this, at, "f")[e2] || v(this, Y, "f")[e2];
|
|
53522
|
+
v(this, at, "f")[e2] && delete v(this, at, "f")[e2];
|
|
53523
|
+
const i2 = {};
|
|
53524
|
+
return v(this, Y, "f")[e2] = (s2 || []).concat(t2).filter((t3) => !i2[t3] && (i2[t3] = true)), this;
|
|
53414
53525
|
}
|
|
53415
53526
|
hide(t2) {
|
|
53416
|
-
return h("<string>", [t2], arguments.length),
|
|
53527
|
+
return h("<string>", [t2], arguments.length), v(this, et, "f").hiddenOptions.push(t2), this;
|
|
53417
53528
|
}
|
|
53418
53529
|
implies(t2, e2) {
|
|
53419
|
-
return h("<string|object> [number|string|array]", [t2, e2], arguments.length),
|
|
53530
|
+
return h("<string|object> [number|string|array]", [t2, e2], arguments.length), v(this, mt, "f").implies(t2, e2), this;
|
|
53420
53531
|
}
|
|
53421
53532
|
locale(t2) {
|
|
53422
|
-
return h("[string]", [t2], arguments.length), t2 ? (
|
|
53533
|
+
return h("[string]", [t2], arguments.length), t2 === void 0 ? (this[_t](), v(this, ct, "f").y18n.getLocale()) : (O(this, G, false, "f"), v(this, ct, "f").y18n.setLocale(t2), this);
|
|
53423
53534
|
}
|
|
53424
53535
|
middleware(t2, e2, s2) {
|
|
53425
|
-
return
|
|
53536
|
+
return v(this, B, "f").addMiddleware(t2, !!e2, s2);
|
|
53426
53537
|
}
|
|
53427
53538
|
nargs(t2, e2) {
|
|
53428
|
-
return h("<string|object|array> [number]", [t2, e2], arguments.length), this[
|
|
53539
|
+
return h("<string|object|array> [number]", [t2, e2], arguments.length), this[At](this.nargs.bind(this), "narg", t2, e2), this;
|
|
53429
53540
|
}
|
|
53430
53541
|
normalize(t2) {
|
|
53431
|
-
return h("<array|string>", [t2], arguments.length), this[
|
|
53542
|
+
return h("<array|string>", [t2], arguments.length), this[Et]("normalize", t2), this;
|
|
53432
53543
|
}
|
|
53433
53544
|
number(t2) {
|
|
53434
|
-
return h("<array|string>", [t2], arguments.length), this[
|
|
53545
|
+
return h("<array|string>", [t2], arguments.length), this[Et]("number", t2), this[Zt](t2), this;
|
|
53435
53546
|
}
|
|
53436
53547
|
option(t2, e2) {
|
|
53437
53548
|
if (h("<string|object> [object]", [t2, e2], arguments.length), typeof t2 == "object")
|
|
@@ -53439,13 +53550,13 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
|
|
|
53439
53550
|
this.options(e3, t2[e3]);
|
|
53440
53551
|
});
|
|
53441
53552
|
else {
|
|
53442
|
-
typeof e2 != "object" && (e2 = {}),
|
|
53553
|
+
typeof e2 != "object" && (e2 = {}), this[Zt](t2), !v(this, gt, "f") || t2 !== "version" && (e2 == null ? void 0 : e2.alias) !== "version" || this[Ot](['"version" is a reserved word.', "Please do one of the following:", '- Disable version with `yargs.version(false)` if using "version" as an option', "- Use the built-in `yargs.version` method instead (if applicable)", "- Use a different option key", "https://yargs.js.org/docs/#api-reference-version"].join("\n"), void 0, "versionWarning"), v(this, et, "f").key[t2] = true, e2.alias && this.alias(t2, e2.alias);
|
|
53443
53554
|
const s2 = e2.deprecate || e2.deprecated;
|
|
53444
53555
|
s2 && this.deprecateOption(t2, s2);
|
|
53445
|
-
const
|
|
53446
|
-
|
|
53447
|
-
const
|
|
53448
|
-
this.describe(t2,
|
|
53556
|
+
const i2 = e2.demand || e2.required || e2.require;
|
|
53557
|
+
i2 && this.demand(t2, i2), e2.demandOption && this.demandOption(t2, typeof e2.demandOption == "string" ? e2.demandOption : void 0), e2.conflicts && this.conflicts(t2, e2.conflicts), "default" in e2 && this.default(t2, e2.default), e2.implies !== void 0 && this.implies(t2, e2.implies), e2.nargs !== void 0 && this.nargs(t2, e2.nargs), e2.config && this.config(t2, e2.configParser), e2.normalize && this.normalize(t2), e2.choices && this.choices(t2, e2.choices), e2.coerce && this.coerce(t2, e2.coerce), e2.group && this.group(t2, e2.group), (e2.boolean || e2.type === "boolean") && (this.boolean(t2), e2.alias && this.boolean(e2.alias)), (e2.array || e2.type === "array") && (this.array(t2), e2.alias && this.array(e2.alias)), (e2.number || e2.type === "number") && (this.number(t2), e2.alias && this.number(e2.alias)), (e2.string || e2.type === "string") && (this.string(t2), e2.alias && this.string(e2.alias)), (e2.count || e2.type === "count") && this.count(t2), typeof e2.global == "boolean" && this.global(t2, e2.global), e2.defaultDescription && (v(this, et, "f").defaultDescription[t2] = e2.defaultDescription), e2.skipValidation && this.skipValidation(t2);
|
|
53558
|
+
const n2 = e2.describe || e2.description || e2.desc;
|
|
53559
|
+
this.describe(t2, n2), e2.hidden && this.hide(t2), e2.requiresArg && this.requiresArg(t2);
|
|
53449
53560
|
}
|
|
53450
53561
|
return this;
|
|
53451
53562
|
}
|
|
@@ -53453,48 +53564,45 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
|
|
|
53453
53564
|
return this.option(t2, e2);
|
|
53454
53565
|
}
|
|
53455
53566
|
parse(t2, e2, s2) {
|
|
53456
|
-
h("[string|array] [function|boolean|object] [function]", [t2, e2, s2], arguments.length), this[
|
|
53457
|
-
const
|
|
53458
|
-
return
|
|
53459
|
-
throw
|
|
53567
|
+
h("[string|array] [function|boolean|object] [function]", [t2, e2, s2], arguments.length), this[wt](), t2 === void 0 && (t2 = v(this, ht, "f")), typeof e2 == "object" && (O(this, rt, e2, "f"), e2 = s2), typeof e2 == "function" && (O(this, nt, e2, "f"), e2 = false), e2 || O(this, ht, t2, "f"), v(this, nt, "f") && O(this, T, false, "f");
|
|
53568
|
+
const i2 = this[Bt](t2, !!e2), n2 = this.parsed;
|
|
53569
|
+
return v(this, F, "f").setParsed(this.parsed), f(i2) ? i2.then((t3) => (v(this, nt, "f") && v(this, nt, "f").call(this, v(this, V, "f"), t3, v(this, tt, "f")), t3)).catch((t3) => {
|
|
53570
|
+
throw v(this, nt, "f") && v(this, nt, "f")(t3, this.parsed.argv, v(this, tt, "f")), t3;
|
|
53460
53571
|
}).finally(() => {
|
|
53461
|
-
this[
|
|
53462
|
-
}) : (
|
|
53572
|
+
this[Dt](), this.parsed = n2;
|
|
53573
|
+
}) : (v(this, nt, "f") && v(this, nt, "f").call(this, v(this, V, "f"), i2, v(this, tt, "f")), this[Dt](), this.parsed = n2, i2);
|
|
53463
53574
|
}
|
|
53464
53575
|
parseAsync(t2, e2, s2) {
|
|
53465
|
-
const
|
|
53466
|
-
return
|
|
53576
|
+
const i2 = this.parse(t2, e2, s2);
|
|
53577
|
+
return f(i2) ? i2 : Promise.resolve(i2);
|
|
53467
53578
|
}
|
|
53468
|
-
parseSync(t2, s2,
|
|
53469
|
-
const
|
|
53470
|
-
if (
|
|
53579
|
+
parseSync(t2, s2, i2) {
|
|
53580
|
+
const n2 = this.parse(t2, s2, i2);
|
|
53581
|
+
if (f(n2))
|
|
53471
53582
|
throw new e(".parseSync() must not be used with asynchronous builders, handlers, or middleware");
|
|
53472
|
-
return
|
|
53583
|
+
return n2;
|
|
53473
53584
|
}
|
|
53474
53585
|
parserConfiguration(t2) {
|
|
53475
|
-
return h("<object>", [t2], arguments.length),
|
|
53586
|
+
return h("<object>", [t2], arguments.length), O(this, it, t2, "f"), this;
|
|
53476
53587
|
}
|
|
53477
53588
|
pkgConf(t2, e2) {
|
|
53478
53589
|
h("<string> [string]", [t2, e2], arguments.length);
|
|
53479
53590
|
let s2 = null;
|
|
53480
|
-
const
|
|
53481
|
-
return
|
|
53591
|
+
const i2 = this[xt](e2 || v(this, q, "f"));
|
|
53592
|
+
return i2[t2] && typeof i2[t2] == "object" && (s2 = n(i2[t2], e2 || v(this, q, "f"), this[jt]()["deep-merge-config"] || false, v(this, ct, "f")), v(this, et, "f").configObjects = (v(this, et, "f").configObjects || []).concat(s2)), this;
|
|
53482
53593
|
}
|
|
53483
53594
|
positional(t2, e2) {
|
|
53484
53595
|
h("<string> <object>", [t2, e2], arguments.length);
|
|
53485
53596
|
const s2 = ["default", "defaultDescription", "implies", "normalize", "choices", "conflicts", "coerce", "type", "describe", "desc", "description", "alias"];
|
|
53486
|
-
e2 =
|
|
53487
|
-
|
|
53488
|
-
|
|
53489
|
-
|
|
53490
|
-
|
|
53491
|
-
|
|
53492
|
-
const n3 = i2[s3];
|
|
53493
|
-
Array.isArray(n3) ? n3.indexOf(t2) !== -1 && (e2[s3] = true) : n3[t2] && !(s3 in e2) && (e2[s3] = n3[t2]);
|
|
53494
|
-
}), this.group(t2, O(this, ut).getPositionalGroupName()), this.option(t2, e2);
|
|
53597
|
+
e2 = g(e2, (t3, e3) => !(t3 === "type" && !["string", "number", "boolean"].includes(e3)) && s2.includes(t3));
|
|
53598
|
+
const i2 = v(this, W, "f").fullCommands[v(this, W, "f").fullCommands.length - 1], n2 = i2 ? v(this, z, "f").cmdToParseOptions(i2) : { array: [], alias: {}, default: {}, demand: {} };
|
|
53599
|
+
return p(n2).forEach((s3) => {
|
|
53600
|
+
const i3 = n2[s3];
|
|
53601
|
+
Array.isArray(i3) ? i3.indexOf(t2) !== -1 && (e2[s3] = true) : i3[t2] && !(s3 in e2) && (e2[s3] = i3[t2]);
|
|
53602
|
+
}), this.group(t2, v(this, pt, "f").getPositionalGroupName()), this.option(t2, e2);
|
|
53495
53603
|
}
|
|
53496
53604
|
recommendCommands(t2 = true) {
|
|
53497
|
-
return h("[boolean]", [t2], arguments.length),
|
|
53605
|
+
return h("[boolean]", [t2], arguments.length), O(this, lt, t2, "f"), this;
|
|
53498
53606
|
}
|
|
53499
53607
|
required(t2, e2, s2) {
|
|
53500
53608
|
return this.demand(t2, e2, s2);
|
|
@@ -53503,85 +53611,85 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
|
|
|
53503
53611
|
return this.demand(t2, e2, s2);
|
|
53504
53612
|
}
|
|
53505
53613
|
requiresArg(t2) {
|
|
53506
|
-
return h("<array|string|object> [number]", [t2], arguments.length), typeof t2 == "string" &&
|
|
53614
|
+
return h("<array|string|object> [number]", [t2], arguments.length), typeof t2 == "string" && v(this, et, "f").narg[t2] || this[At](this.requiresArg.bind(this), "narg", t2, NaN), this;
|
|
53507
53615
|
}
|
|
53508
53616
|
showCompletionScript(t2, e2) {
|
|
53509
|
-
return h("[string] [string]", [t2, e2], arguments.length), t2 = t2 || this.$0,
|
|
53617
|
+
return h("[string] [string]", [t2, e2], arguments.length), t2 = t2 || this.$0, v(this, Q, "f").log(v(this, F, "f").generateCompletionScript(t2, e2 || v(this, U, "f") || "completion")), this;
|
|
53510
53618
|
}
|
|
53511
53619
|
showHelp(t2) {
|
|
53512
|
-
if (h("[string|function]", [t2], arguments.length),
|
|
53620
|
+
if (h("[string|function]", [t2], arguments.length), O(this, J, true, "f"), !v(this, pt, "f").hasCachedHelpMessage()) {
|
|
53513
53621
|
if (!this.parsed) {
|
|
53514
|
-
const e3 = this[
|
|
53515
|
-
if (
|
|
53622
|
+
const e3 = this[Bt](v(this, ht, "f"), void 0, void 0, 0, true);
|
|
53623
|
+
if (f(e3))
|
|
53516
53624
|
return e3.then(() => {
|
|
53517
|
-
|
|
53625
|
+
v(this, pt, "f").showHelp(t2);
|
|
53518
53626
|
}), this;
|
|
53519
53627
|
}
|
|
53520
|
-
const e2 =
|
|
53521
|
-
if (
|
|
53628
|
+
const e2 = v(this, z, "f").runDefaultBuilderOn(this);
|
|
53629
|
+
if (f(e2))
|
|
53522
53630
|
return e2.then(() => {
|
|
53523
|
-
|
|
53631
|
+
v(this, pt, "f").showHelp(t2);
|
|
53524
53632
|
}), this;
|
|
53525
53633
|
}
|
|
53526
|
-
return
|
|
53634
|
+
return v(this, pt, "f").showHelp(t2), this;
|
|
53527
53635
|
}
|
|
53528
53636
|
scriptName(t2) {
|
|
53529
53637
|
return this.customScriptName = true, this.$0 = t2, this;
|
|
53530
53638
|
}
|
|
53531
53639
|
showHelpOnFail(t2, e2) {
|
|
53532
|
-
return h("[boolean|string] [string]", [t2, e2], arguments.length),
|
|
53640
|
+
return h("[boolean|string] [string]", [t2, e2], arguments.length), v(this, pt, "f").showHelpOnFail(t2, e2), this;
|
|
53533
53641
|
}
|
|
53534
53642
|
showVersion(t2) {
|
|
53535
|
-
return h("[string|function]", [t2], arguments.length),
|
|
53643
|
+
return h("[string|function]", [t2], arguments.length), v(this, pt, "f").showVersion(t2), this;
|
|
53536
53644
|
}
|
|
53537
53645
|
skipValidation(t2) {
|
|
53538
|
-
return h("<array|string>", [t2], arguments.length), this[
|
|
53646
|
+
return h("<array|string>", [t2], arguments.length), this[Et]("skipValidation", t2), this;
|
|
53539
53647
|
}
|
|
53540
53648
|
strict(t2) {
|
|
53541
|
-
return h("[boolean]", [t2], arguments.length),
|
|
53649
|
+
return h("[boolean]", [t2], arguments.length), O(this, ft, t2 !== false, "f"), this;
|
|
53542
53650
|
}
|
|
53543
53651
|
strictCommands(t2) {
|
|
53544
|
-
return h("[boolean]", [t2], arguments.length),
|
|
53652
|
+
return h("[boolean]", [t2], arguments.length), O(this, dt, t2 !== false, "f"), this;
|
|
53545
53653
|
}
|
|
53546
53654
|
strictOptions(t2) {
|
|
53547
|
-
return h("[boolean]", [t2], arguments.length),
|
|
53655
|
+
return h("[boolean]", [t2], arguments.length), O(this, ut, t2 !== false, "f"), this;
|
|
53548
53656
|
}
|
|
53549
53657
|
string(t2) {
|
|
53550
|
-
return h("<array|string>", [t2], arguments.length), this[
|
|
53658
|
+
return h("<array|string>", [t2], arguments.length), this[Et]("string", t2), this[Zt](t2), this;
|
|
53551
53659
|
}
|
|
53552
53660
|
terminalWidth() {
|
|
53553
|
-
return h([], 0),
|
|
53661
|
+
return h([], 0), v(this, ct, "f").process.stdColumns;
|
|
53554
53662
|
}
|
|
53555
53663
|
updateLocale(t2) {
|
|
53556
53664
|
return this.updateStrings(t2);
|
|
53557
53665
|
}
|
|
53558
53666
|
updateStrings(t2) {
|
|
53559
|
-
return h("<object>", [t2], arguments.length),
|
|
53667
|
+
return h("<object>", [t2], arguments.length), O(this, G, false, "f"), v(this, ct, "f").y18n.updateLocale(t2), this;
|
|
53560
53668
|
}
|
|
53561
|
-
usage(t2, s2,
|
|
53562
|
-
if (h("<string|null|undefined> [string|boolean] [function|object] [function]", [t2, s2,
|
|
53563
|
-
if (
|
|
53564
|
-
return this.command(t2, s2,
|
|
53669
|
+
usage(t2, s2, i2, n2) {
|
|
53670
|
+
if (h("<string|null|undefined> [string|boolean] [function|object] [function]", [t2, s2, i2, n2], arguments.length), s2 !== void 0) {
|
|
53671
|
+
if (d(t2, null, v(this, ct, "f")), (t2 || "").match(/^\$0( |$)/))
|
|
53672
|
+
return this.command(t2, s2, i2, n2);
|
|
53565
53673
|
throw new e(".usage() description must start with $0 if being used as alias for .command()");
|
|
53566
53674
|
}
|
|
53567
|
-
return
|
|
53675
|
+
return v(this, pt, "f").usage(t2), this;
|
|
53568
53676
|
}
|
|
53569
53677
|
version(t2, e2, s2) {
|
|
53570
|
-
const
|
|
53571
|
-
if (h("[boolean|string] [string] [string]", [t2, e2, s2], arguments.length),
|
|
53572
|
-
s2 = this[
|
|
53678
|
+
const i2 = "version";
|
|
53679
|
+
if (h("[boolean|string] [string] [string]", [t2, e2, s2], arguments.length), v(this, gt, "f") && (this[vt](v(this, gt, "f")), v(this, pt, "f").version(void 0), O(this, gt, null, "f")), arguments.length === 0)
|
|
53680
|
+
s2 = this[Mt](), t2 = i2;
|
|
53573
53681
|
else if (arguments.length === 1) {
|
|
53574
53682
|
if (t2 === false)
|
|
53575
53683
|
return this;
|
|
53576
|
-
s2 = t2, t2 =
|
|
53684
|
+
s2 = t2, t2 = i2;
|
|
53577
53685
|
} else
|
|
53578
53686
|
arguments.length === 2 && (s2 = e2, e2 = void 0);
|
|
53579
|
-
return
|
|
53687
|
+
return O(this, gt, typeof t2 == "string" ? t2 : i2, "f"), e2 = e2 || v(this, pt, "f").deferY18nLookup("Show version number"), v(this, pt, "f").version(s2 || void 0), this.boolean(v(this, gt, "f")), this.describe(v(this, gt, "f"), e2), this;
|
|
53580
53688
|
}
|
|
53581
53689
|
wrap(t2) {
|
|
53582
|
-
return h("<number|null|undefined>", [t2], arguments.length),
|
|
53690
|
+
return h("<number|null|undefined>", [t2], arguments.length), v(this, pt, "f").wrap(t2), this;
|
|
53583
53691
|
}
|
|
53584
|
-
[(
|
|
53692
|
+
[(z = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), pt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), yt)](t2) {
|
|
53585
53693
|
if (!t2._ || !t2["--"])
|
|
53586
53694
|
return t2;
|
|
53587
53695
|
t2._.push.apply(t2._, t2["--"]);
|
|
@@ -53591,257 +53699,270 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
|
|
|
53591
53699
|
}
|
|
53592
53700
|
return t2;
|
|
53593
53701
|
}
|
|
53594
|
-
[
|
|
53702
|
+
[bt]() {
|
|
53595
53703
|
return { log: (...t2) => {
|
|
53596
|
-
this[
|
|
53704
|
+
this[Vt]() || console.log(...t2), O(this, J, true, "f"), v(this, tt, "f").length && O(this, tt, v(this, tt, "f") + "\n", "f"), O(this, tt, v(this, tt, "f") + t2.join(" "), "f");
|
|
53597
53705
|
}, error: (...t2) => {
|
|
53598
|
-
this[
|
|
53706
|
+
this[Vt]() || console.error(...t2), O(this, J, true, "f"), v(this, tt, "f").length && O(this, tt, v(this, tt, "f") + "\n", "f"), O(this, tt, v(this, tt, "f") + t2.join(" "), "f");
|
|
53599
53707
|
} };
|
|
53600
53708
|
}
|
|
53601
|
-
[
|
|
53602
|
-
|
|
53709
|
+
[vt](t2) {
|
|
53710
|
+
p(v(this, et, "f")).forEach((e2) => {
|
|
53603
53711
|
if (e2 === "configObjects")
|
|
53604
53712
|
return;
|
|
53605
|
-
const s2 =
|
|
53606
|
-
Array.isArray(s2) ?
|
|
53607
|
-
}), delete
|
|
53713
|
+
const s2 = v(this, et, "f")[e2];
|
|
53714
|
+
Array.isArray(s2) ? s2.includes(t2) && s2.splice(s2.indexOf(t2), 1) : typeof s2 == "object" && delete s2[t2];
|
|
53715
|
+
}), delete v(this, pt, "f").getDescriptions()[t2];
|
|
53608
53716
|
}
|
|
53609
|
-
[
|
|
53610
|
-
|
|
53717
|
+
[Ot](t2, e2, s2) {
|
|
53718
|
+
v(this, R, "f")[s2] || (v(this, ct, "f").process.emitWarning(t2, e2), v(this, R, "f")[s2] = true);
|
|
53719
|
+
}
|
|
53720
|
+
[wt]() {
|
|
53721
|
+
v(this, K, "f").push({ options: v(this, et, "f"), configObjects: v(this, et, "f").configObjects.slice(0), exitProcess: v(this, T, "f"), groups: v(this, Y, "f"), strict: v(this, ft, "f"), strictCommands: v(this, dt, "f"), strictOptions: v(this, ut, "f"), completionCommand: v(this, U, "f"), output: v(this, tt, "f"), exitError: v(this, V, "f"), hasOutput: v(this, J, "f"), parsed: this.parsed, parseFn: v(this, nt, "f"), parseContext: v(this, rt, "f") }), v(this, pt, "f").freeze(), v(this, mt, "f").freeze(), v(this, z, "f").freeze(), v(this, B, "f").freeze();
|
|
53611
53722
|
}
|
|
53612
|
-
[
|
|
53723
|
+
[Ct]() {
|
|
53613
53724
|
let t2, e2 = "";
|
|
53614
|
-
return t2 = /\b(node|iojs|electron)(\.exe)?$/.test(
|
|
53615
|
-
const e3 = this[
|
|
53725
|
+
return t2 = /\b(node|iojs|electron)(\.exe)?$/.test(v(this, ct, "f").process.argv()[0]) ? v(this, ct, "f").process.argv().slice(1, 2) : v(this, ct, "f").process.argv().slice(0, 1), e2 = t2.map((t3) => {
|
|
53726
|
+
const e3 = this[Tt](v(this, q, "f"), t3);
|
|
53616
53727
|
return t3.match(/^(\/|([a-zA-Z]:)?\\)/) && e3.length < t3.length ? e3 : t3;
|
|
53617
|
-
}).join(" ").trim(),
|
|
53728
|
+
}).join(" ").trim(), v(this, ct, "f").getEnv("_") && v(this, ct, "f").getProcessArgvBin() === v(this, ct, "f").getEnv("_") && (e2 = v(this, ct, "f").getEnv("_").replace(`${v(this, ct, "f").path.dirname(v(this, ct, "f").process.execPath())}/`, "")), e2;
|
|
53618
53729
|
}
|
|
53619
|
-
[
|
|
53620
|
-
return
|
|
53730
|
+
[jt]() {
|
|
53731
|
+
return v(this, it, "f");
|
|
53621
53732
|
}
|
|
53622
|
-
[
|
|
53623
|
-
if (!
|
|
53733
|
+
[_t]() {
|
|
53734
|
+
if (!v(this, G, "f"))
|
|
53624
53735
|
return;
|
|
53625
|
-
const t2 =
|
|
53736
|
+
const t2 = v(this, ct, "f").getEnv("LC_ALL") || v(this, ct, "f").getEnv("LC_MESSAGES") || v(this, ct, "f").getEnv("LANG") || v(this, ct, "f").getEnv("LANGUAGE") || "en_US";
|
|
53626
53737
|
this.locale(t2.replace(/[.:].*/, ""));
|
|
53627
53738
|
}
|
|
53628
|
-
[
|
|
53739
|
+
[Mt]() {
|
|
53629
53740
|
return this[xt]().version || "unknown";
|
|
53630
53741
|
}
|
|
53631
|
-
[
|
|
53742
|
+
[kt](t2) {
|
|
53632
53743
|
const e2 = t2["--"] ? t2["--"] : t2._;
|
|
53633
53744
|
for (let t3, s2 = 0; (t3 = e2[s2]) !== void 0; s2++)
|
|
53634
|
-
|
|
53745
|
+
v(this, ct, "f").Parser.looksLikeNumber(t3) && Number.isSafeInteger(Math.floor(parseFloat(`${t3}`))) && (e2[s2] = Number(t3));
|
|
53635
53746
|
return t2;
|
|
53636
53747
|
}
|
|
53637
53748
|
[xt](t2) {
|
|
53638
53749
|
const e2 = t2 || "*";
|
|
53639
|
-
if (
|
|
53640
|
-
return
|
|
53750
|
+
if (v(this, ot, "f")[e2])
|
|
53751
|
+
return v(this, ot, "f")[e2];
|
|
53641
53752
|
let s2 = {};
|
|
53642
53753
|
try {
|
|
53643
|
-
let e3 = t2 ||
|
|
53644
|
-
!t2 &&
|
|
53645
|
-
const
|
|
53646
|
-
|
|
53754
|
+
let e3 = t2 || v(this, ct, "f").mainFilename;
|
|
53755
|
+
!t2 && v(this, ct, "f").path.extname(e3) && (e3 = v(this, ct, "f").path.dirname(e3));
|
|
53756
|
+
const i2 = v(this, ct, "f").findUp(e3, (t3, e4) => e4.includes("package.json") ? "package.json" : void 0);
|
|
53757
|
+
d(i2, void 0, v(this, ct, "f")), s2 = JSON.parse(v(this, ct, "f").readFileSync(i2, "utf8"));
|
|
53647
53758
|
} catch (t3) {
|
|
53648
53759
|
}
|
|
53649
|
-
return
|
|
53760
|
+
return v(this, ot, "f")[e2] = s2 || {}, v(this, ot, "f")[e2];
|
|
53650
53761
|
}
|
|
53651
|
-
[
|
|
53762
|
+
[Et](t2, e2) {
|
|
53652
53763
|
(e2 = [].concat(e2)).forEach((e3) => {
|
|
53653
|
-
e3 = this[
|
|
53764
|
+
e3 = this[$t](e3), v(this, et, "f")[t2].push(e3);
|
|
53654
53765
|
});
|
|
53655
53766
|
}
|
|
53656
|
-
[
|
|
53657
|
-
this[
|
|
53658
|
-
|
|
53767
|
+
[At](t2, e2, s2, i2) {
|
|
53768
|
+
this[St](t2, e2, s2, i2, (t3, e3, s3) => {
|
|
53769
|
+
v(this, et, "f")[t3][e3] = s3;
|
|
53659
53770
|
});
|
|
53660
53771
|
}
|
|
53661
|
-
[
|
|
53662
|
-
this[
|
|
53663
|
-
|
|
53772
|
+
[Pt](t2, e2, s2, i2) {
|
|
53773
|
+
this[St](t2, e2, s2, i2, (t3, e3, s3) => {
|
|
53774
|
+
v(this, et, "f")[t3][e3] = (v(this, et, "f")[t3][e3] || []).concat(s3);
|
|
53664
53775
|
});
|
|
53665
53776
|
}
|
|
53666
|
-
[
|
|
53777
|
+
[St](t2, e2, s2, i2, n2) {
|
|
53667
53778
|
if (Array.isArray(s2))
|
|
53668
53779
|
s2.forEach((e3) => {
|
|
53669
|
-
t2(e3,
|
|
53780
|
+
t2(e3, i2);
|
|
53670
53781
|
});
|
|
53671
53782
|
else if (((t3) => typeof t3 == "object")(s2))
|
|
53672
|
-
for (const e3 of
|
|
53783
|
+
for (const e3 of p(s2))
|
|
53673
53784
|
t2(e3, s2[e3]);
|
|
53674
53785
|
else
|
|
53675
|
-
|
|
53786
|
+
n2(e2, this[$t](s2), i2);
|
|
53676
53787
|
}
|
|
53677
|
-
[
|
|
53788
|
+
[$t](t2) {
|
|
53678
53789
|
return t2 === "__proto__" ? "___proto___" : t2;
|
|
53679
53790
|
}
|
|
53680
|
-
[
|
|
53681
|
-
return this[
|
|
53682
|
-
}
|
|
53683
|
-
[
|
|
53684
|
-
var t2, e2, s2,
|
|
53685
|
-
const
|
|
53686
|
-
let
|
|
53687
|
-
|
|
53688
|
-
|
|
53689
|
-
} }.value, configObjects:
|
|
53690
|
-
|
|
53791
|
+
[It](t2, e2) {
|
|
53792
|
+
return this[At](this[It].bind(this), "key", t2, e2), this;
|
|
53793
|
+
}
|
|
53794
|
+
[Dt]() {
|
|
53795
|
+
var t2, e2, s2, i2, n2, r2, o2, a2, h2, l2, c2, f2;
|
|
53796
|
+
const u2 = v(this, K, "f").pop();
|
|
53797
|
+
let p2;
|
|
53798
|
+
d(u2, void 0, v(this, ct, "f")), t2 = this, e2 = this, s2 = this, i2 = this, n2 = this, r2 = this, o2 = this, a2 = this, h2 = this, l2 = this, c2 = this, f2 = this, { options: { set value(e3) {
|
|
53799
|
+
O(t2, et, e3, "f");
|
|
53800
|
+
} }.value, configObjects: p2, exitProcess: { set value(t3) {
|
|
53801
|
+
O(e2, T, t3, "f");
|
|
53691
53802
|
} }.value, groups: { set value(t3) {
|
|
53692
|
-
|
|
53803
|
+
O(s2, Y, t3, "f");
|
|
53693
53804
|
} }.value, output: { set value(t3) {
|
|
53694
|
-
|
|
53805
|
+
O(i2, tt, t3, "f");
|
|
53695
53806
|
} }.value, exitError: { set value(t3) {
|
|
53696
|
-
|
|
53807
|
+
O(n2, V, t3, "f");
|
|
53697
53808
|
} }.value, hasOutput: { set value(t3) {
|
|
53698
|
-
|
|
53809
|
+
O(r2, J, t3, "f");
|
|
53699
53810
|
} }.value, parsed: this.parsed, strict: { set value(t3) {
|
|
53700
|
-
|
|
53811
|
+
O(o2, ft, t3, "f");
|
|
53701
53812
|
} }.value, strictCommands: { set value(t3) {
|
|
53702
|
-
|
|
53813
|
+
O(a2, dt, t3, "f");
|
|
53703
53814
|
} }.value, strictOptions: { set value(t3) {
|
|
53704
|
-
|
|
53815
|
+
O(h2, ut, t3, "f");
|
|
53705
53816
|
} }.value, completionCommand: { set value(t3) {
|
|
53706
|
-
|
|
53817
|
+
O(l2, U, t3, "f");
|
|
53707
53818
|
} }.value, parseFn: { set value(t3) {
|
|
53708
|
-
|
|
53819
|
+
O(c2, nt, t3, "f");
|
|
53709
53820
|
} }.value, parseContext: { set value(t3) {
|
|
53710
|
-
|
|
53711
|
-
} }.value } =
|
|
53821
|
+
O(f2, rt, t3, "f");
|
|
53822
|
+
} }.value } = u2, v(this, et, "f").configObjects = p2, v(this, pt, "f").unfreeze(), v(this, mt, "f").unfreeze(), v(this, z, "f").unfreeze(), v(this, B, "f").unfreeze();
|
|
53712
53823
|
}
|
|
53713
|
-
[
|
|
53824
|
+
[Nt](t2, e2) {
|
|
53714
53825
|
return j(e2, (e3) => (t2(e3), e3));
|
|
53715
53826
|
}
|
|
53716
53827
|
getInternalMethods() {
|
|
53717
|
-
return { getCommandInstance: this[
|
|
53718
|
-
}
|
|
53719
|
-
[It]() {
|
|
53720
|
-
return O(this, q);
|
|
53721
|
-
}
|
|
53722
|
-
[Nt]() {
|
|
53723
|
-
return O(this, F);
|
|
53828
|
+
return { getCommandInstance: this[Ht].bind(this), getContext: this[zt].bind(this), getHasOutput: this[qt].bind(this), getLoggerInstance: this[Wt].bind(this), getParseContext: this[Ft].bind(this), getParserConfiguration: this[jt].bind(this), getUsageInstance: this[Ut].bind(this), getValidationInstance: this[Lt].bind(this), hasParseCallback: this[Vt].bind(this), isGlobalContext: this[Gt].bind(this), postProcess: this[Rt].bind(this), reset: this[Kt].bind(this), runValidation: this[Yt].bind(this), runYargsParserAndExecuteCommands: this[Bt].bind(this), setHasOutput: this[Jt].bind(this) };
|
|
53724
53829
|
}
|
|
53725
|
-
[
|
|
53726
|
-
return
|
|
53830
|
+
[Ht]() {
|
|
53831
|
+
return v(this, z, "f");
|
|
53727
53832
|
}
|
|
53728
53833
|
[zt]() {
|
|
53729
|
-
return
|
|
53834
|
+
return v(this, W, "f");
|
|
53730
53835
|
}
|
|
53731
53836
|
[qt]() {
|
|
53732
|
-
return
|
|
53837
|
+
return v(this, J, "f");
|
|
53733
53838
|
}
|
|
53734
|
-
[
|
|
53735
|
-
return
|
|
53839
|
+
[Wt]() {
|
|
53840
|
+
return v(this, Q, "f");
|
|
53736
53841
|
}
|
|
53737
53842
|
[Ft]() {
|
|
53738
|
-
return
|
|
53843
|
+
return v(this, rt, "f") || {};
|
|
53739
53844
|
}
|
|
53740
53845
|
[Ut]() {
|
|
53741
|
-
return
|
|
53846
|
+
return v(this, pt, "f");
|
|
53742
53847
|
}
|
|
53743
|
-
[
|
|
53848
|
+
[Lt]() {
|
|
53849
|
+
return v(this, mt, "f");
|
|
53850
|
+
}
|
|
53851
|
+
[Vt]() {
|
|
53852
|
+
return !!v(this, nt, "f");
|
|
53853
|
+
}
|
|
53854
|
+
[Gt]() {
|
|
53855
|
+
return v(this, X, "f");
|
|
53856
|
+
}
|
|
53857
|
+
[Rt](t2, e2, s2, i2) {
|
|
53744
53858
|
if (s2)
|
|
53745
53859
|
return t2;
|
|
53746
|
-
if (
|
|
53860
|
+
if (f(t2))
|
|
53747
53861
|
return t2;
|
|
53748
|
-
e2 || (t2 = this[
|
|
53749
|
-
return (this[
|
|
53862
|
+
e2 || (t2 = this[yt](t2));
|
|
53863
|
+
return (this[jt]()["parse-positional-numbers"] || this[jt]()["parse-positional-numbers"] === void 0) && (t2 = this[kt](t2)), i2 && (t2 = C(t2, this, v(this, B, "f").getMiddleware(), false)), t2;
|
|
53750
53864
|
}
|
|
53751
|
-
[
|
|
53752
|
-
|
|
53865
|
+
[Kt](t2 = {}) {
|
|
53866
|
+
O(this, et, v(this, et, "f") || {}, "f");
|
|
53753
53867
|
const e2 = {};
|
|
53754
|
-
e2.local =
|
|
53868
|
+
e2.local = v(this, et, "f").local || [], e2.configObjects = v(this, et, "f").configObjects || [];
|
|
53755
53869
|
const s2 = {};
|
|
53756
53870
|
e2.local.forEach((e3) => {
|
|
53757
53871
|
s2[e3] = true, (t2[e3] || []).forEach((t3) => {
|
|
53758
53872
|
s2[t3] = true;
|
|
53759
53873
|
});
|
|
53760
|
-
}), Object.assign(
|
|
53761
|
-
const
|
|
53762
|
-
return
|
|
53763
|
-
}, {})),
|
|
53874
|
+
}), Object.assign(v(this, at, "f"), Object.keys(v(this, Y, "f")).reduce((t3, e3) => {
|
|
53875
|
+
const i2 = v(this, Y, "f")[e3].filter((t4) => !(t4 in s2));
|
|
53876
|
+
return i2.length > 0 && (t3[e3] = i2), t3;
|
|
53877
|
+
}, {})), O(this, Y, {}, "f");
|
|
53764
53878
|
return ["array", "boolean", "string", "skipValidation", "count", "normalize", "number", "hiddenOptions"].forEach((t3) => {
|
|
53765
|
-
e2[t3] = (
|
|
53879
|
+
e2[t3] = (v(this, et, "f")[t3] || []).filter((t4) => !s2[t4]);
|
|
53766
53880
|
}), ["narg", "key", "alias", "default", "defaultDescription", "config", "choices", "demandedOptions", "demandedCommands", "deprecatedOptions"].forEach((t3) => {
|
|
53767
|
-
e2[t3] =
|
|
53768
|
-
}), e2.envPrefix =
|
|
53769
|
-
const
|
|
53770
|
-
const
|
|
53771
|
-
|
|
53881
|
+
e2[t3] = g(v(this, et, "f")[t3], (t4) => !s2[t4]);
|
|
53882
|
+
}), e2.envPrefix = v(this, et, "f").envPrefix, O(this, et, e2, "f"), O(this, pt, v(this, pt, "f") ? v(this, pt, "f").reset(s2) : P(this, v(this, ct, "f")), "f"), O(this, mt, v(this, mt, "f") ? v(this, mt, "f").reset(s2) : function(t3, e3, s3) {
|
|
53883
|
+
const i2 = s3.y18n.__, n2 = s3.y18n.__n, r2 = { nonOptionCount: function(s4) {
|
|
53884
|
+
const i3 = t3.getDemandedCommands(), r3 = s4._.length + (s4["--"] ? s4["--"].length : 0) - t3.getInternalMethods().getContext().commands.length;
|
|
53885
|
+
i3._ && (r3 < i3._.min || r3 > i3._.max) && (r3 < i3._.min ? i3._.minMsg !== void 0 ? e3.fail(i3._.minMsg ? i3._.minMsg.replace(/\$0/g, r3.toString()).replace(/\$1/, i3._.min.toString()) : null) : e3.fail(n2("Not enough non-option arguments: got %s, need at least %s", "Not enough non-option arguments: got %s, need at least %s", r3, r3.toString(), i3._.min.toString())) : r3 > i3._.max && (i3._.maxMsg !== void 0 ? e3.fail(i3._.maxMsg ? i3._.maxMsg.replace(/\$0/g, r3.toString()).replace(/\$1/, i3._.max.toString()) : null) : e3.fail(n2("Too many non-option arguments: got %s, maximum of %s", "Too many non-option arguments: got %s, maximum of %s", r3, r3.toString(), i3._.max.toString()))));
|
|
53772
53886
|
}, positionalCount: function(t4, s4) {
|
|
53773
|
-
s4 < t4 && e3.fail(
|
|
53887
|
+
s4 < t4 && e3.fail(n2("Not enough non-option arguments: got %s, need at least %s", "Not enough non-option arguments: got %s, need at least %s", s4, s4 + "", t4 + ""));
|
|
53774
53888
|
}, requiredArguments: function(t4, s4) {
|
|
53775
|
-
let
|
|
53889
|
+
let i3 = null;
|
|
53776
53890
|
for (const e4 of Object.keys(s4))
|
|
53777
|
-
Object.prototype.hasOwnProperty.call(t4, e4) && t4[e4] !== void 0 || (
|
|
53778
|
-
if (
|
|
53891
|
+
Object.prototype.hasOwnProperty.call(t4, e4) && t4[e4] !== void 0 || (i3 = i3 || {}, i3[e4] = s4[e4]);
|
|
53892
|
+
if (i3) {
|
|
53779
53893
|
const t5 = [];
|
|
53780
|
-
for (const e4 of Object.keys(
|
|
53781
|
-
const s6 =
|
|
53894
|
+
for (const e4 of Object.keys(i3)) {
|
|
53895
|
+
const s6 = i3[e4];
|
|
53782
53896
|
s6 && t5.indexOf(s6) < 0 && t5.push(s6);
|
|
53783
53897
|
}
|
|
53784
53898
|
const s5 = t5.length ? `
|
|
53785
53899
|
${t5.join("\n")}` : "";
|
|
53786
|
-
e3.fail(
|
|
53787
|
-
}
|
|
53788
|
-
}, unknownArguments: function(s4,
|
|
53789
|
-
|
|
53790
|
-
|
|
53791
|
-
|
|
53792
|
-
|
|
53793
|
-
|
|
53794
|
-
|
|
53900
|
+
e3.fail(n2("Missing required argument: %s", "Missing required arguments: %s", Object.keys(i3).length, Object.keys(i3).join(", ") + s5));
|
|
53901
|
+
}
|
|
53902
|
+
}, unknownArguments: function(s4, i3, o3, a3, h2 = true) {
|
|
53903
|
+
var l3;
|
|
53904
|
+
const c3 = t3.getInternalMethods().getCommandInstance().getCommands(), f2 = [], d2 = t3.getInternalMethods().getContext();
|
|
53905
|
+
if (Object.keys(s4).forEach((e4) => {
|
|
53906
|
+
H.includes(e4) || Object.prototype.hasOwnProperty.call(o3, e4) || Object.prototype.hasOwnProperty.call(t3.getInternalMethods().getParseContext(), e4) || r2.isValidAndSomeAliasIsNotNew(e4, i3) || f2.push(e4);
|
|
53907
|
+
}), h2 && (d2.commands.length > 0 || c3.length > 0 || a3) && s4._.slice(d2.commands.length).forEach((t4) => {
|
|
53908
|
+
c3.includes("" + t4) || f2.push("" + t4);
|
|
53909
|
+
}), h2) {
|
|
53910
|
+
const e4 = ((l3 = t3.getDemandedCommands()._) === null || l3 === void 0 ? void 0 : l3.max) || 0, i4 = d2.commands.length + e4;
|
|
53911
|
+
i4 < s4._.length && s4._.slice(i4).forEach((t4) => {
|
|
53912
|
+
t4 = String(t4), d2.commands.includes(t4) || f2.includes(t4) || f2.push(t4);
|
|
53913
|
+
});
|
|
53914
|
+
}
|
|
53915
|
+
f2.length && e3.fail(n2("Unknown argument: %s", "Unknown arguments: %s", f2.length, f2.map((t4) => t4.trim() ? t4 : `"${t4}"`).join(", ")));
|
|
53795
53916
|
}, unknownCommands: function(s4) {
|
|
53796
|
-
const
|
|
53797
|
-
return (o3.commands.length > 0 ||
|
|
53798
|
-
|
|
53799
|
-
}), r3.length > 0 && (e3.fail(
|
|
53917
|
+
const i3 = t3.getInternalMethods().getCommandInstance().getCommands(), r3 = [], o3 = t3.getInternalMethods().getContext();
|
|
53918
|
+
return (o3.commands.length > 0 || i3.length > 0) && s4._.slice(o3.commands.length).forEach((t4) => {
|
|
53919
|
+
i3.includes("" + t4) || r3.push("" + t4);
|
|
53920
|
+
}), r3.length > 0 && (e3.fail(n2("Unknown command: %s", "Unknown commands: %s", r3.length, r3.join(", "))), true);
|
|
53800
53921
|
}, isValidAndSomeAliasIsNotNew: function(e4, s4) {
|
|
53801
53922
|
if (!Object.prototype.hasOwnProperty.call(s4, e4))
|
|
53802
53923
|
return false;
|
|
53803
|
-
const
|
|
53804
|
-
return [e4, ...s4[e4]].some((t4) => !Object.prototype.hasOwnProperty.call(
|
|
53924
|
+
const i3 = t3.parsed.newAliases;
|
|
53925
|
+
return [e4, ...s4[e4]].some((t4) => !Object.prototype.hasOwnProperty.call(i3, t4) || !i3[e4]);
|
|
53805
53926
|
}, limitedChoices: function(s4) {
|
|
53806
|
-
const
|
|
53807
|
-
if (!Object.keys(
|
|
53927
|
+
const n3 = t3.getOptions(), r3 = {};
|
|
53928
|
+
if (!Object.keys(n3.choices).length)
|
|
53808
53929
|
return;
|
|
53809
53930
|
Object.keys(s4).forEach((t4) => {
|
|
53810
|
-
|
|
53811
|
-
|
|
53931
|
+
H.indexOf(t4) === -1 && Object.prototype.hasOwnProperty.call(n3.choices, t4) && [].concat(s4[t4]).forEach((e4) => {
|
|
53932
|
+
n3.choices[t4].indexOf(e4) === -1 && e4 !== void 0 && (r3[t4] = (r3[t4] || []).concat(e4));
|
|
53812
53933
|
});
|
|
53813
53934
|
});
|
|
53814
53935
|
const o3 = Object.keys(r3);
|
|
53815
53936
|
if (!o3.length)
|
|
53816
53937
|
return;
|
|
53817
|
-
let a3 =
|
|
53938
|
+
let a3 = i2("Invalid values:");
|
|
53818
53939
|
o3.forEach((t4) => {
|
|
53819
53940
|
a3 += `
|
|
53820
|
-
${
|
|
53941
|
+
${i2("Argument: %s, Given: %s, Choices: %s", t4, e3.stringifiedValues(r3[t4]), e3.stringifiedValues(n3.choices[t4]))}`;
|
|
53821
53942
|
}), e3.fail(a3);
|
|
53822
53943
|
} };
|
|
53823
53944
|
let o2 = {};
|
|
53824
53945
|
function a2(t4, e4) {
|
|
53825
53946
|
const s4 = Number(e4);
|
|
53826
|
-
return typeof (e4 = isNaN(s4) ? e4 : s4) == "number" ? t4._.length >= e4 : e4.match(/^--no-.+/) ?
|
|
53947
|
+
return typeof (e4 = isNaN(s4) ? e4 : s4) == "number" ? e4 = t4._.length >= e4 : e4.match(/^--no-.+/) ? (e4 = e4.match(/^--no-(.+)/)[1], e4 = !Object.prototype.hasOwnProperty.call(t4, e4)) : e4 = Object.prototype.hasOwnProperty.call(t4, e4), e4;
|
|
53827
53948
|
}
|
|
53828
|
-
r2.implies = function(e4,
|
|
53829
|
-
h("<string|object> [array|number|string]", [e4,
|
|
53949
|
+
r2.implies = function(e4, i3) {
|
|
53950
|
+
h("<string|object> [array|number|string]", [e4, i3], arguments.length), typeof e4 == "object" ? Object.keys(e4).forEach((t4) => {
|
|
53830
53951
|
r2.implies(t4, e4[t4]);
|
|
53831
|
-
}) : (t3.global(e4), o2[e4] || (o2[e4] = []), Array.isArray(
|
|
53952
|
+
}) : (t3.global(e4), o2[e4] || (o2[e4] = []), Array.isArray(i3) ? i3.forEach((t4) => r2.implies(e4, t4)) : (d(i3, void 0, s3), o2[e4].push(i3)));
|
|
53832
53953
|
}, r2.getImplied = function() {
|
|
53833
53954
|
return o2;
|
|
53834
53955
|
}, r2.implications = function(t4) {
|
|
53835
53956
|
const s4 = [];
|
|
53836
53957
|
if (Object.keys(o2).forEach((e4) => {
|
|
53837
|
-
const
|
|
53958
|
+
const i3 = e4;
|
|
53838
53959
|
(o2[e4] || []).forEach((e5) => {
|
|
53839
|
-
let
|
|
53960
|
+
let n3 = i3;
|
|
53840
53961
|
const r3 = e5;
|
|
53841
|
-
|
|
53962
|
+
n3 = a2(t4, n3), e5 = a2(t4, e5), n3 && !e5 && s4.push(` ${i3} -> ${r3}`);
|
|
53842
53963
|
});
|
|
53843
53964
|
}), s4.length) {
|
|
53844
|
-
let t5 = `${
|
|
53965
|
+
let t5 = `${i2("Implications failed:")}
|
|
53845
53966
|
`;
|
|
53846
53967
|
s4.forEach((e4) => {
|
|
53847
53968
|
t5 += e4;
|
|
@@ -53853,141 +53974,152 @@ ${t5.join("\n")}` : "";
|
|
|
53853
53974
|
h("<string|object> [array|string]", [e4, s4], arguments.length), typeof e4 == "object" ? Object.keys(e4).forEach((t4) => {
|
|
53854
53975
|
r2.conflicts(t4, e4[t4]);
|
|
53855
53976
|
}) : (t3.global(e4), l2[e4] || (l2[e4] = []), Array.isArray(s4) ? s4.forEach((t4) => r2.conflicts(e4, t4)) : l2[e4].push(s4));
|
|
53856
|
-
}, r2.getConflicting = () => l2, r2.conflicting = function(
|
|
53857
|
-
Object.keys(
|
|
53858
|
-
l2[
|
|
53859
|
-
|
|
53977
|
+
}, r2.getConflicting = () => l2, r2.conflicting = function(n3) {
|
|
53978
|
+
Object.keys(n3).forEach((t4) => {
|
|
53979
|
+
l2[t4] && l2[t4].forEach((s4) => {
|
|
53980
|
+
s4 && n3[t4] !== void 0 && n3[s4] !== void 0 && e3.fail(i2("Arguments %s and %s are mutually exclusive", t4, s4));
|
|
53981
|
+
});
|
|
53982
|
+
}), t3.getInternalMethods().getParserConfiguration()["strip-dashed"] && Object.keys(l2).forEach((t4) => {
|
|
53983
|
+
l2[t4].forEach((r3) => {
|
|
53984
|
+
r3 && n3[s3.Parser.camelCase(t4)] !== void 0 && n3[s3.Parser.camelCase(r3)] !== void 0 && e3.fail(i2("Arguments %s and %s are mutually exclusive", t4, r3));
|
|
53860
53985
|
});
|
|
53861
53986
|
});
|
|
53862
53987
|
}, r2.recommendCommands = function(t4, s4) {
|
|
53863
53988
|
s4 = s4.sort((t5, e4) => e4.length - t5.length);
|
|
53864
|
-
let
|
|
53865
|
-
for (let e4,
|
|
53866
|
-
const s5 =
|
|
53867
|
-
s5 <= 3 && s5 < r3 && (r3 = s5,
|
|
53989
|
+
let n3 = null, r3 = 1 / 0;
|
|
53990
|
+
for (let e4, i3 = 0; (e4 = s4[i3]) !== void 0; i3++) {
|
|
53991
|
+
const s5 = N(t4, e4);
|
|
53992
|
+
s5 <= 3 && s5 < r3 && (r3 = s5, n3 = e4);
|
|
53868
53993
|
}
|
|
53869
|
-
|
|
53994
|
+
n3 && e3.fail(i2("Did you mean %s?", n3));
|
|
53870
53995
|
}, r2.reset = function(t4) {
|
|
53871
|
-
return o2 =
|
|
53996
|
+
return o2 = g(o2, (e4) => !t4[e4]), l2 = g(l2, (e4) => !t4[e4]), r2;
|
|
53872
53997
|
};
|
|
53873
53998
|
const c2 = [];
|
|
53874
53999
|
return r2.freeze = function() {
|
|
53875
54000
|
c2.push({ implied: o2, conflicting: l2 });
|
|
53876
54001
|
}, r2.unfreeze = function() {
|
|
53877
54002
|
const t4 = c2.pop();
|
|
53878
|
-
|
|
54003
|
+
d(t4, void 0, s3), { implied: o2, conflicting: l2 } = t4;
|
|
53879
54004
|
}, r2;
|
|
53880
|
-
}(this,
|
|
53881
|
-
return new
|
|
53882
|
-
}(
|
|
53883
|
-
return new
|
|
53884
|
-
}(this,
|
|
53885
|
-
}
|
|
53886
|
-
[
|
|
53887
|
-
return
|
|
53888
|
-
}
|
|
53889
|
-
[
|
|
53890
|
-
let o2 = !!
|
|
53891
|
-
t2 = t2 ||
|
|
53892
|
-
const a2 = !!
|
|
53893
|
-
let
|
|
53894
|
-
const
|
|
53895
|
-
let
|
|
54005
|
+
}(this, v(this, pt, "f"), v(this, ct, "f")), "f"), O(this, z, v(this, z, "f") ? v(this, z, "f").reset() : function(t3, e3, s3, i2) {
|
|
54006
|
+
return new M(t3, e3, s3, i2);
|
|
54007
|
+
}(v(this, pt, "f"), v(this, mt, "f"), v(this, B, "f"), v(this, ct, "f")), "f"), v(this, F, "f") || O(this, F, function(t3, e3, s3, i2) {
|
|
54008
|
+
return new D(t3, e3, s3, i2);
|
|
54009
|
+
}(this, v(this, pt, "f"), v(this, z, "f"), v(this, ct, "f")), "f"), v(this, B, "f").reset(), O(this, U, null, "f"), O(this, tt, "", "f"), O(this, V, null, "f"), O(this, J, false, "f"), this.parsed = false, this;
|
|
54010
|
+
}
|
|
54011
|
+
[Tt](t2, e2) {
|
|
54012
|
+
return v(this, ct, "f").path.relative(t2, e2);
|
|
54013
|
+
}
|
|
54014
|
+
[Bt](t2, s2, i2, n2 = 0, r2 = false) {
|
|
54015
|
+
let o2 = !!i2 || r2;
|
|
54016
|
+
t2 = t2 || v(this, ht, "f"), v(this, et, "f").__ = v(this, ct, "f").y18n.__, v(this, et, "f").configuration = this[jt]();
|
|
54017
|
+
const a2 = !!v(this, et, "f").configuration["populate--"], h2 = Object.assign({}, v(this, et, "f").configuration, { "populate--": true }), l2 = v(this, ct, "f").Parser.detailed(t2, Object.assign({}, v(this, et, "f"), { configuration: __spreadValues({ "parse-positional-numbers": false }, h2) })), c2 = Object.assign(l2.argv, v(this, rt, "f"));
|
|
54018
|
+
let d2;
|
|
54019
|
+
const u2 = l2.aliases;
|
|
54020
|
+
let p2 = false, g2 = false;
|
|
53896
54021
|
Object.keys(c2).forEach((t3) => {
|
|
53897
|
-
t3 ===
|
|
53898
|
-
}), c2.$0 = this.$0, this.parsed = l2,
|
|
54022
|
+
t3 === v(this, Z, "f") && c2[t3] ? p2 = true : t3 === v(this, gt, "f") && c2[t3] && (g2 = true);
|
|
54023
|
+
}), c2.$0 = this.$0, this.parsed = l2, n2 === 0 && v(this, pt, "f").clearCachedHelpMessage();
|
|
53899
54024
|
try {
|
|
53900
|
-
if (this[
|
|
53901
|
-
return this[
|
|
53902
|
-
if (
|
|
53903
|
-
|
|
54025
|
+
if (this[_t](), s2)
|
|
54026
|
+
return this[Rt](c2, a2, !!i2, false);
|
|
54027
|
+
if (v(this, Z, "f")) {
|
|
54028
|
+
[v(this, Z, "f")].concat(u2[v(this, Z, "f")] || []).filter((t3) => t3.length > 1).includes("" + c2._[c2._.length - 1]) && (c2._.pop(), p2 = true);
|
|
53904
54029
|
}
|
|
53905
|
-
|
|
54030
|
+
O(this, X, false, "f");
|
|
54031
|
+
const h3 = v(this, z, "f").getCommands(), m2 = v(this, F, "f").completionKey in c2, y2 = p2 || m2 || r2;
|
|
53906
54032
|
if (c2._.length) {
|
|
53907
54033
|
if (h3.length) {
|
|
53908
54034
|
let t3;
|
|
53909
|
-
for (let e2, s3 =
|
|
53910
|
-
if (e2 = String(c2._[s3]),
|
|
53911
|
-
const t4 =
|
|
53912
|
-
return this[
|
|
54035
|
+
for (let e2, s3 = n2 || 0; c2._[s3] !== void 0; s3++) {
|
|
54036
|
+
if (e2 = String(c2._[s3]), h3.includes(e2) && e2 !== v(this, U, "f")) {
|
|
54037
|
+
const t4 = v(this, z, "f").runCommand(e2, this, l2, s3 + 1, r2, p2 || g2 || r2);
|
|
54038
|
+
return this[Rt](t4, a2, !!i2, false);
|
|
53913
54039
|
}
|
|
53914
|
-
if (!t3 && e2 !==
|
|
54040
|
+
if (!t3 && e2 !== v(this, U, "f")) {
|
|
53915
54041
|
t3 = e2;
|
|
53916
54042
|
break;
|
|
53917
54043
|
}
|
|
53918
54044
|
}
|
|
53919
|
-
!
|
|
54045
|
+
!v(this, z, "f").hasDefaultCommand() && v(this, lt, "f") && t3 && !y2 && v(this, mt, "f").recommendCommands(t3, h3);
|
|
53920
54046
|
}
|
|
53921
|
-
|
|
54047
|
+
v(this, U, "f") && c2._.includes(v(this, U, "f")) && !m2 && (v(this, T, "f") && E(true), this.showCompletionScript(), this.exit(0));
|
|
53922
54048
|
}
|
|
53923
|
-
if (
|
|
53924
|
-
const t3 =
|
|
53925
|
-
return this[
|
|
54049
|
+
if (v(this, z, "f").hasDefaultCommand() && !y2) {
|
|
54050
|
+
const t3 = v(this, z, "f").runCommand(null, this, l2, 0, r2, p2 || g2 || r2);
|
|
54051
|
+
return this[Rt](t3, a2, !!i2, false);
|
|
53926
54052
|
}
|
|
53927
|
-
if (
|
|
53928
|
-
|
|
53929
|
-
const s3 = (t2 = [].concat(t2)).slice(t2.indexOf(`--${
|
|
53930
|
-
return
|
|
54053
|
+
if (m2) {
|
|
54054
|
+
v(this, T, "f") && E(true);
|
|
54055
|
+
const s3 = (t2 = [].concat(t2)).slice(t2.indexOf(`--${v(this, F, "f").completionKey}`) + 1);
|
|
54056
|
+
return v(this, F, "f").getCompletion(s3, (t3, s4) => {
|
|
53931
54057
|
if (t3)
|
|
53932
54058
|
throw new e(t3.message);
|
|
53933
54059
|
(s4 || []).forEach((t4) => {
|
|
53934
|
-
|
|
54060
|
+
v(this, Q, "f").log(t4);
|
|
53935
54061
|
}), this.exit(0);
|
|
53936
|
-
}), this[
|
|
54062
|
+
}), this[Rt](c2, !a2, !!i2, false);
|
|
53937
54063
|
}
|
|
53938
|
-
if (
|
|
54064
|
+
if (v(this, J, "f") || (p2 ? (v(this, T, "f") && E(true), o2 = true, this.showHelp("log"), this.exit(0)) : g2 && (v(this, T, "f") && E(true), o2 = true, v(this, pt, "f").showVersion("log"), this.exit(0))), !o2 && v(this, et, "f").skipValidation.length > 0 && (o2 = Object.keys(c2).some((t3) => v(this, et, "f").skipValidation.indexOf(t3) >= 0 && c2[t3] === true)), !o2) {
|
|
53939
54065
|
if (l2.error)
|
|
53940
54066
|
throw new e(l2.error.message);
|
|
53941
|
-
if (!
|
|
53942
|
-
const t3 = this[
|
|
53943
|
-
|
|
54067
|
+
if (!m2) {
|
|
54068
|
+
const t3 = this[Yt](u2, {}, l2.error);
|
|
54069
|
+
i2 || (d2 = C(c2, this, v(this, B, "f").getMiddleware(), true)), d2 = this[Nt](t3, d2 != null ? d2 : c2), f(d2) && !i2 && (d2 = d2.then(() => C(c2, this, v(this, B, "f").getMiddleware(), false)));
|
|
53944
54070
|
}
|
|
53945
54071
|
}
|
|
53946
54072
|
} catch (t3) {
|
|
53947
54073
|
if (!(t3 instanceof e))
|
|
53948
54074
|
throw t3;
|
|
53949
|
-
|
|
54075
|
+
v(this, pt, "f").fail(t3.message, t3);
|
|
53950
54076
|
}
|
|
53951
|
-
return this[
|
|
54077
|
+
return this[Rt](d2 != null ? d2 : c2, a2, !!i2, true);
|
|
53952
54078
|
}
|
|
53953
|
-
[
|
|
53954
|
-
t2 = __spreadValues({}, t2), s2 = __spreadValues({}, s2);
|
|
54079
|
+
[Yt](t2, s2, i2, n2) {
|
|
53955
54080
|
const r2 = __spreadValues({}, this.getDemandedOptions());
|
|
53956
54081
|
return (o2) => {
|
|
53957
|
-
if (
|
|
53958
|
-
throw new e(
|
|
53959
|
-
|
|
54082
|
+
if (i2)
|
|
54083
|
+
throw new e(i2.message);
|
|
54084
|
+
v(this, mt, "f").nonOptionCount(o2), v(this, mt, "f").requiredArguments(o2, r2);
|
|
53960
54085
|
let a2 = false;
|
|
53961
|
-
|
|
54086
|
+
v(this, dt, "f") && (a2 = v(this, mt, "f").unknownCommands(o2)), v(this, ft, "f") && !a2 ? v(this, mt, "f").unknownArguments(o2, t2, s2, !!n2) : v(this, ut, "f") && v(this, mt, "f").unknownArguments(o2, t2, {}, false, false), v(this, mt, "f").limitedChoices(o2), v(this, mt, "f").implications(o2), v(this, mt, "f").conflicting(o2);
|
|
53962
54087
|
};
|
|
53963
54088
|
}
|
|
53964
|
-
[
|
|
53965
|
-
|
|
53966
|
-
}
|
|
53967
|
-
|
|
53968
|
-
|
|
53969
|
-
|
|
53970
|
-
|
|
53971
|
-
|
|
53972
|
-
|
|
53973
|
-
|
|
53974
|
-
|
|
53975
|
-
var
|
|
53976
|
-
var
|
|
54089
|
+
[Jt]() {
|
|
54090
|
+
O(this, J, true, "f");
|
|
54091
|
+
}
|
|
54092
|
+
[Zt](t2) {
|
|
54093
|
+
if (typeof t2 == "string")
|
|
54094
|
+
v(this, et, "f").key[t2] = true;
|
|
54095
|
+
else
|
|
54096
|
+
for (const e2 of t2)
|
|
54097
|
+
v(this, et, "f").key[e2] = true;
|
|
54098
|
+
}
|
|
54099
|
+
};
|
|
54100
|
+
var Qt;
|
|
54101
|
+
var te;
|
|
54102
|
+
var { readFileSync: ee } = require("fs");
|
|
54103
|
+
var { inspect: se } = require("util");
|
|
54104
|
+
var { resolve: ie } = require("path");
|
|
54105
|
+
var ne = require_build5();
|
|
54106
|
+
var re = require_build6();
|
|
54107
|
+
var oe;
|
|
54108
|
+
var ae = { assert: { notStrictEqual: t.notStrictEqual, strictEqual: t.strictEqual }, cliui: require_build7(), findUp: require_sync7(), getEnv: (t2) => process.env[t2], getCallerFile: require_get_caller_file(), getProcessArgvBin: y, inspect: se, mainFilename: (te = (Qt = require === null || require === void 0 ? void 0 : require.main) === null || Qt === void 0 ? void 0 : Qt.filename) !== null && te !== void 0 ? te : process.cwd(), Parser: re, path: require("path"), process: { argv: () => process.argv, cwd: process.cwd, emitWarning: (t2, e2) => process.emitWarning(t2, e2), execPath: () => process.execPath, exit: (t2) => {
|
|
53977
54109
|
process.exit(t2);
|
|
53978
|
-
}, nextTick: process.nextTick, stdColumns: process.stdout.columns !== void 0 ? process.stdout.columns : null }, readFileSync:
|
|
53979
|
-
var
|
|
54110
|
+
}, nextTick: process.nextTick, stdColumns: process.stdout.columns !== void 0 ? process.stdout.columns : null }, readFileSync: ee, require, requireDirectory: require_require_directory(), stringWidth: require_string_width(), y18n: ne({ directory: ie(__dirname, "../locales"), updateFiles: false }) };
|
|
54111
|
+
var he = ((oe = process === null || process === void 0 ? void 0 : process.env) === null || oe === void 0 ? void 0 : oe.YARGS_MIN_NODE_VERSION) ? Number(process.env.YARGS_MIN_NODE_VERSION) : 12;
|
|
53980
54112
|
if (process && process.version) {
|
|
53981
|
-
if (Number(process.version.match(/v([^.]+)/)[1]) <
|
|
53982
|
-
throw Error(`yargs supports a minimum Node.js version of ${
|
|
54113
|
+
if (Number(process.version.match(/v([^.]+)/)[1]) < he)
|
|
54114
|
+
throw Error(`yargs supports a minimum Node.js version of ${he}. Read our version support policy: https://github.com/yargs/yargs#supported-nodejs-versions`);
|
|
53983
54115
|
}
|
|
53984
|
-
var
|
|
53985
|
-
var
|
|
53986
|
-
var
|
|
53987
|
-
const
|
|
53988
|
-
return Object.defineProperty(
|
|
53989
|
-
}), argsert: h, isPromise:
|
|
53990
|
-
module2.exports =
|
|
54116
|
+
var le = require_build6();
|
|
54117
|
+
var ce;
|
|
54118
|
+
var fe = { applyExtends: n, cjsPlatformShim: ae, Yargs: (ce = ae, (t2 = [], e2 = ce.process.cwd(), s2) => {
|
|
54119
|
+
const i2 = new Xt(t2, e2, s2, ce);
|
|
54120
|
+
return Object.defineProperty(i2, "argv", { get: () => i2.parse(), enumerable: true }), i2.help(), i2.version(), i2;
|
|
54121
|
+
}), argsert: h, isPromise: f, objFilter: g, parseCommand: o, Parser: le, processArgv: b, YError: e };
|
|
54122
|
+
module2.exports = fe;
|
|
53991
54123
|
}
|
|
53992
54124
|
});
|
|
53993
54125
|
|
|
@@ -54003,22 +54135,31 @@ var require_yargs = __commonJS({
|
|
|
54003
54135
|
singletonify(argv);
|
|
54004
54136
|
return argv;
|
|
54005
54137
|
}
|
|
54138
|
+
function defineGetter(obj, key, getter) {
|
|
54139
|
+
Object.defineProperty(obj, key, {
|
|
54140
|
+
configurable: true,
|
|
54141
|
+
enumerable: true,
|
|
54142
|
+
get: getter
|
|
54143
|
+
});
|
|
54144
|
+
}
|
|
54145
|
+
function lookupGetter(obj, key) {
|
|
54146
|
+
const desc = Object.getOwnPropertyDescriptor(obj, key);
|
|
54147
|
+
if (typeof desc !== "undefined") {
|
|
54148
|
+
return desc.get;
|
|
54149
|
+
}
|
|
54150
|
+
}
|
|
54006
54151
|
function singletonify(inst) {
|
|
54007
54152
|
[
|
|
54008
54153
|
...Object.keys(inst),
|
|
54009
54154
|
...Object.getOwnPropertyNames(inst.constructor.prototype)
|
|
54010
54155
|
].forEach((key) => {
|
|
54011
54156
|
if (key === "argv") {
|
|
54012
|
-
Argv
|
|
54157
|
+
defineGetter(Argv, key, lookupGetter(inst, key));
|
|
54013
54158
|
} else if (typeof inst[key] === "function") {
|
|
54014
54159
|
Argv[key] = inst[key].bind(inst);
|
|
54015
54160
|
} else {
|
|
54016
|
-
Argv
|
|
54017
|
-
|
|
54018
|
-
});
|
|
54019
|
-
Argv.__defineGetter__("parsed", () => {
|
|
54020
|
-
return inst.parsed;
|
|
54021
|
-
});
|
|
54161
|
+
defineGetter(Argv, "$0", () => inst.$0);
|
|
54162
|
+
defineGetter(Argv, "parsed", () => inst.parsed);
|
|
54022
54163
|
}
|
|
54023
54164
|
});
|
|
54024
54165
|
}
|
|
@@ -54030,6 +54171,7 @@ var cli_exports = {};
|
|
|
54030
54171
|
__export(cli_exports, {
|
|
54031
54172
|
main: () => main
|
|
54032
54173
|
});
|
|
54174
|
+
module.exports = __toCommonJS(cli_exports);
|
|
54033
54175
|
var import_chalk3 = __toESM(require_source());
|
|
54034
54176
|
var import_is_git_clean = __toESM(require_is_git_clean());
|
|
54035
54177
|
|
|
@@ -54797,7 +54939,7 @@ var upgrades = [
|
|
|
54797
54939
|
// package.json
|
|
54798
54940
|
var name = "@carbon/upgrade";
|
|
54799
54941
|
var description = "A tool for upgrading Carbon versions";
|
|
54800
|
-
var version = "11.
|
|
54942
|
+
var version = "11.1.0";
|
|
54801
54943
|
var license = "Apache-2.0";
|
|
54802
54944
|
var bin = {
|
|
54803
54945
|
"carbon-upgrade": "./bin/carbon-upgrade.js"
|
|
@@ -54840,7 +54982,7 @@ var devDependencies = {
|
|
|
54840
54982
|
"fs-extra": "^10.0.0",
|
|
54841
54983
|
inquirer: "^8.1.0",
|
|
54842
54984
|
"is-git-clean": "^1.1.0",
|
|
54843
|
-
"jest-diff": "^
|
|
54985
|
+
"jest-diff": "^28.1.0",
|
|
54844
54986
|
jscodeshift: "^0.13.1",
|
|
54845
54987
|
"lodash.clonedeep": "^4.5.0",
|
|
54846
54988
|
"lodash.merge": "^4.6.2",
|
|
@@ -54947,7 +55089,6 @@ function run3(command, ignoreSafetyChecks = false) {
|
|
|
54947
55089
|
}
|
|
54948
55090
|
};
|
|
54949
55091
|
}
|
|
54950
|
-
module.exports = __toCommonJS(cli_exports);
|
|
54951
55092
|
// Annotate the CommonJS export names for ESM import in node:
|
|
54952
55093
|
0 && (module.exports = {
|
|
54953
55094
|
main
|