@terai/dev 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.default.js +2019 -39
- package/dist/cli.default.js.map +1 -1
- package/dist/cli.default.mjs +2045 -65
- package/dist/cli.default.mjs.map +1 -1
- package/dist/cli.js +2019 -39
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +2045 -65
- package/dist/cli.mjs.map +1 -1
- package/dist/commands/extract.js +8 -9
- package/dist/commands/extract.js.map +1 -1
- package/dist/commands/extract.mjs +7 -8
- package/dist/commands/extract.mjs.map +1 -1
- package/dist/commands/index.js +8 -9
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/index.mjs +7 -8
- package/dist/commands/index.mjs.map +1 -1
- package/dist/commands/init.js +7 -8
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/init.mjs +6 -7
- package/dist/commands/init.mjs.map +1 -1
- package/dist/commands/translate.js +8 -9
- package/dist/commands/translate.js.map +1 -1
- package/dist/commands/translate.mjs +7 -8
- package/dist/commands/translate.mjs.map +1 -1
- package/package.json +8 -8
package/dist/cli.js
CHANGED
|
@@ -971,11 +971,11 @@ var require_signal_exit = __commonJS({
|
|
|
971
971
|
"../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports2, module2) {
|
|
972
972
|
"use strict";
|
|
973
973
|
init_cjs_shims();
|
|
974
|
-
var
|
|
975
|
-
var processOk = function(
|
|
976
|
-
return
|
|
974
|
+
var process10 = global.process;
|
|
975
|
+
var processOk = function(process11) {
|
|
976
|
+
return process11 && typeof process11 === "object" && typeof process11.removeListener === "function" && typeof process11.emit === "function" && typeof process11.reallyExit === "function" && typeof process11.listeners === "function" && typeof process11.kill === "function" && typeof process11.pid === "number" && typeof process11.on === "function";
|
|
977
977
|
};
|
|
978
|
-
if (!processOk(
|
|
978
|
+
if (!processOk(process10)) {
|
|
979
979
|
module2.exports = function() {
|
|
980
980
|
return function() {
|
|
981
981
|
};
|
|
@@ -983,15 +983,15 @@ var require_signal_exit = __commonJS({
|
|
|
983
983
|
} else {
|
|
984
984
|
assert2 = require("assert");
|
|
985
985
|
signals = require_signals();
|
|
986
|
-
isWin = /^win/i.test(
|
|
986
|
+
isWin = /^win/i.test(process10.platform);
|
|
987
987
|
EE = require("events");
|
|
988
988
|
if (typeof EE !== "function") {
|
|
989
989
|
EE = EE.EventEmitter;
|
|
990
990
|
}
|
|
991
|
-
if (
|
|
992
|
-
emitter =
|
|
991
|
+
if (process10.__signal_exit_emitter__) {
|
|
992
|
+
emitter = process10.__signal_exit_emitter__;
|
|
993
993
|
} else {
|
|
994
|
-
emitter =
|
|
994
|
+
emitter = process10.__signal_exit_emitter__ = new EE();
|
|
995
995
|
emitter.count = 0;
|
|
996
996
|
emitter.emitted = {};
|
|
997
997
|
}
|
|
@@ -1028,12 +1028,12 @@ var require_signal_exit = __commonJS({
|
|
|
1028
1028
|
loaded = false;
|
|
1029
1029
|
signals.forEach(function(sig) {
|
|
1030
1030
|
try {
|
|
1031
|
-
|
|
1031
|
+
process10.removeListener(sig, sigListeners[sig]);
|
|
1032
1032
|
} catch (er) {
|
|
1033
1033
|
}
|
|
1034
1034
|
});
|
|
1035
|
-
|
|
1036
|
-
|
|
1035
|
+
process10.emit = originalProcessEmit;
|
|
1036
|
+
process10.reallyExit = originalProcessReallyExit;
|
|
1037
1037
|
emitter.count -= 1;
|
|
1038
1038
|
};
|
|
1039
1039
|
module2.exports.unload = unload;
|
|
@@ -1050,7 +1050,7 @@ var require_signal_exit = __commonJS({
|
|
|
1050
1050
|
if (!processOk(global.process)) {
|
|
1051
1051
|
return;
|
|
1052
1052
|
}
|
|
1053
|
-
var listeners =
|
|
1053
|
+
var listeners = process10.listeners(sig);
|
|
1054
1054
|
if (listeners.length === emitter.count) {
|
|
1055
1055
|
unload();
|
|
1056
1056
|
emit("exit", null, sig);
|
|
@@ -1058,7 +1058,7 @@ var require_signal_exit = __commonJS({
|
|
|
1058
1058
|
if (isWin && sig === "SIGHUP") {
|
|
1059
1059
|
sig = "SIGINT";
|
|
1060
1060
|
}
|
|
1061
|
-
|
|
1061
|
+
process10.kill(process10.pid, sig);
|
|
1062
1062
|
}
|
|
1063
1063
|
};
|
|
1064
1064
|
});
|
|
@@ -1074,36 +1074,36 @@ var require_signal_exit = __commonJS({
|
|
|
1074
1074
|
emitter.count += 1;
|
|
1075
1075
|
signals = signals.filter(function(sig) {
|
|
1076
1076
|
try {
|
|
1077
|
-
|
|
1077
|
+
process10.on(sig, sigListeners[sig]);
|
|
1078
1078
|
return true;
|
|
1079
1079
|
} catch (er) {
|
|
1080
1080
|
return false;
|
|
1081
1081
|
}
|
|
1082
1082
|
});
|
|
1083
|
-
|
|
1084
|
-
|
|
1083
|
+
process10.emit = processEmit;
|
|
1084
|
+
process10.reallyExit = processReallyExit;
|
|
1085
1085
|
};
|
|
1086
1086
|
module2.exports.load = load;
|
|
1087
|
-
originalProcessReallyExit =
|
|
1087
|
+
originalProcessReallyExit = process10.reallyExit;
|
|
1088
1088
|
processReallyExit = function processReallyExit2(code) {
|
|
1089
1089
|
if (!processOk(global.process)) {
|
|
1090
1090
|
return;
|
|
1091
1091
|
}
|
|
1092
|
-
|
|
1092
|
+
process10.exitCode = code || /* istanbul ignore next */
|
|
1093
1093
|
0;
|
|
1094
|
-
emit("exit",
|
|
1095
|
-
emit("afterexit",
|
|
1096
|
-
originalProcessReallyExit.call(
|
|
1094
|
+
emit("exit", process10.exitCode, null);
|
|
1095
|
+
emit("afterexit", process10.exitCode, null);
|
|
1096
|
+
originalProcessReallyExit.call(process10, process10.exitCode);
|
|
1097
1097
|
};
|
|
1098
|
-
originalProcessEmit =
|
|
1098
|
+
originalProcessEmit = process10.emit;
|
|
1099
1099
|
processEmit = function processEmit2(ev, arg) {
|
|
1100
1100
|
if (ev === "exit" && processOk(global.process)) {
|
|
1101
1101
|
if (arg !== void 0) {
|
|
1102
|
-
|
|
1102
|
+
process10.exitCode = arg;
|
|
1103
1103
|
}
|
|
1104
1104
|
var ret = originalProcessEmit.apply(this, arguments);
|
|
1105
|
-
emit("exit",
|
|
1106
|
-
emit("afterexit",
|
|
1105
|
+
emit("exit", process10.exitCode, null);
|
|
1106
|
+
emit("afterexit", process10.exitCode, null);
|
|
1107
1107
|
return ret;
|
|
1108
1108
|
} else {
|
|
1109
1109
|
return originalProcessEmit.apply(this, arguments);
|
|
@@ -9647,6 +9647,1981 @@ var require_registry_auth_token = __commonJS({
|
|
|
9647
9647
|
}
|
|
9648
9648
|
});
|
|
9649
9649
|
|
|
9650
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.js
|
|
9651
|
+
var require_constants2 = __commonJS({
|
|
9652
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.js"(exports2, module2) {
|
|
9653
|
+
"use strict";
|
|
9654
|
+
init_cjs_shims();
|
|
9655
|
+
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
9656
|
+
var MAX_LENGTH = 256;
|
|
9657
|
+
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
9658
|
+
9007199254740991;
|
|
9659
|
+
var MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
9660
|
+
var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
9661
|
+
var RELEASE_TYPES = [
|
|
9662
|
+
"major",
|
|
9663
|
+
"premajor",
|
|
9664
|
+
"minor",
|
|
9665
|
+
"preminor",
|
|
9666
|
+
"patch",
|
|
9667
|
+
"prepatch",
|
|
9668
|
+
"prerelease"
|
|
9669
|
+
];
|
|
9670
|
+
module2.exports = {
|
|
9671
|
+
MAX_LENGTH,
|
|
9672
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
9673
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
9674
|
+
MAX_SAFE_INTEGER,
|
|
9675
|
+
RELEASE_TYPES,
|
|
9676
|
+
SEMVER_SPEC_VERSION,
|
|
9677
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
9678
|
+
FLAG_LOOSE: 2
|
|
9679
|
+
};
|
|
9680
|
+
}
|
|
9681
|
+
});
|
|
9682
|
+
|
|
9683
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.js
|
|
9684
|
+
var require_debug2 = __commonJS({
|
|
9685
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.js"(exports2, module2) {
|
|
9686
|
+
"use strict";
|
|
9687
|
+
init_cjs_shims();
|
|
9688
|
+
var debug2 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
9689
|
+
};
|
|
9690
|
+
module2.exports = debug2;
|
|
9691
|
+
}
|
|
9692
|
+
});
|
|
9693
|
+
|
|
9694
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.js
|
|
9695
|
+
var require_re2 = __commonJS({
|
|
9696
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.js"(exports2, module2) {
|
|
9697
|
+
"use strict";
|
|
9698
|
+
init_cjs_shims();
|
|
9699
|
+
var {
|
|
9700
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
9701
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
9702
|
+
MAX_LENGTH
|
|
9703
|
+
} = require_constants2();
|
|
9704
|
+
var debug2 = require_debug2();
|
|
9705
|
+
exports2 = module2.exports = {};
|
|
9706
|
+
var re = exports2.re = [];
|
|
9707
|
+
var safeRe = exports2.safeRe = [];
|
|
9708
|
+
var src = exports2.src = [];
|
|
9709
|
+
var safeSrc = exports2.safeSrc = [];
|
|
9710
|
+
var t = exports2.t = {};
|
|
9711
|
+
var R = 0;
|
|
9712
|
+
var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
9713
|
+
var safeRegexReplacements = [
|
|
9714
|
+
["\\s", 1],
|
|
9715
|
+
["\\d", MAX_LENGTH],
|
|
9716
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
9717
|
+
];
|
|
9718
|
+
var makeSafeRegex = (value) => {
|
|
9719
|
+
for (const [token, max] of safeRegexReplacements) {
|
|
9720
|
+
value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
9721
|
+
}
|
|
9722
|
+
return value;
|
|
9723
|
+
};
|
|
9724
|
+
var createToken = (name, value, isGlobal) => {
|
|
9725
|
+
const safe = makeSafeRegex(value);
|
|
9726
|
+
const index = R++;
|
|
9727
|
+
debug2(name, index, value);
|
|
9728
|
+
t[name] = index;
|
|
9729
|
+
src[index] = value;
|
|
9730
|
+
safeSrc[index] = safe;
|
|
9731
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
9732
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
9733
|
+
};
|
|
9734
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
9735
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
9736
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
9737
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
9738
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
9739
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
9740
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
9741
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
9742
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
9743
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
9744
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
9745
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
9746
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
9747
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
9748
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
9749
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
9750
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
9751
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
9752
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
9753
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
9754
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
9755
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
9756
|
+
createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
9757
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
9758
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
9759
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
9760
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
9761
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
9762
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
9763
|
+
exports2.tildeTrimReplace = "$1~";
|
|
9764
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
9765
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
9766
|
+
createToken("LONECARET", "(?:\\^)");
|
|
9767
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
9768
|
+
exports2.caretTrimReplace = "$1^";
|
|
9769
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
9770
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
9771
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
9772
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
9773
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
9774
|
+
exports2.comparatorTrimReplace = "$1$2$3";
|
|
9775
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
9776
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
9777
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
9778
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
9779
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
9780
|
+
}
|
|
9781
|
+
});
|
|
9782
|
+
|
|
9783
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.js
|
|
9784
|
+
var require_parse_options2 = __commonJS({
|
|
9785
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.js"(exports2, module2) {
|
|
9786
|
+
"use strict";
|
|
9787
|
+
init_cjs_shims();
|
|
9788
|
+
var looseOption = Object.freeze({ loose: true });
|
|
9789
|
+
var emptyOpts = Object.freeze({});
|
|
9790
|
+
var parseOptions = (options) => {
|
|
9791
|
+
if (!options) {
|
|
9792
|
+
return emptyOpts;
|
|
9793
|
+
}
|
|
9794
|
+
if (typeof options !== "object") {
|
|
9795
|
+
return looseOption;
|
|
9796
|
+
}
|
|
9797
|
+
return options;
|
|
9798
|
+
};
|
|
9799
|
+
module2.exports = parseOptions;
|
|
9800
|
+
}
|
|
9801
|
+
});
|
|
9802
|
+
|
|
9803
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.js
|
|
9804
|
+
var require_identifiers2 = __commonJS({
|
|
9805
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.js"(exports2, module2) {
|
|
9806
|
+
"use strict";
|
|
9807
|
+
init_cjs_shims();
|
|
9808
|
+
var numeric = /^[0-9]+$/;
|
|
9809
|
+
var compareIdentifiers = (a, b) => {
|
|
9810
|
+
if (typeof a === "number" && typeof b === "number") {
|
|
9811
|
+
return a === b ? 0 : a < b ? -1 : 1;
|
|
9812
|
+
}
|
|
9813
|
+
const anum = numeric.test(a);
|
|
9814
|
+
const bnum = numeric.test(b);
|
|
9815
|
+
if (anum && bnum) {
|
|
9816
|
+
a = +a;
|
|
9817
|
+
b = +b;
|
|
9818
|
+
}
|
|
9819
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
9820
|
+
};
|
|
9821
|
+
var rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
9822
|
+
module2.exports = {
|
|
9823
|
+
compareIdentifiers,
|
|
9824
|
+
rcompareIdentifiers
|
|
9825
|
+
};
|
|
9826
|
+
}
|
|
9827
|
+
});
|
|
9828
|
+
|
|
9829
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.js
|
|
9830
|
+
var require_semver3 = __commonJS({
|
|
9831
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.js"(exports2, module2) {
|
|
9832
|
+
"use strict";
|
|
9833
|
+
init_cjs_shims();
|
|
9834
|
+
var debug2 = require_debug2();
|
|
9835
|
+
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants2();
|
|
9836
|
+
var { safeRe: re, t } = require_re2();
|
|
9837
|
+
var parseOptions = require_parse_options2();
|
|
9838
|
+
var { compareIdentifiers } = require_identifiers2();
|
|
9839
|
+
var SemVer = class _SemVer {
|
|
9840
|
+
constructor(version, options) {
|
|
9841
|
+
options = parseOptions(options);
|
|
9842
|
+
if (version instanceof _SemVer) {
|
|
9843
|
+
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
9844
|
+
return version;
|
|
9845
|
+
} else {
|
|
9846
|
+
version = version.version;
|
|
9847
|
+
}
|
|
9848
|
+
} else if (typeof version !== "string") {
|
|
9849
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
9850
|
+
}
|
|
9851
|
+
if (version.length > MAX_LENGTH) {
|
|
9852
|
+
throw new TypeError(
|
|
9853
|
+
`version is longer than ${MAX_LENGTH} characters`
|
|
9854
|
+
);
|
|
9855
|
+
}
|
|
9856
|
+
debug2("SemVer", version, options);
|
|
9857
|
+
this.options = options;
|
|
9858
|
+
this.loose = !!options.loose;
|
|
9859
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
9860
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
9861
|
+
if (!m) {
|
|
9862
|
+
throw new TypeError(`Invalid Version: ${version}`);
|
|
9863
|
+
}
|
|
9864
|
+
this.raw = version;
|
|
9865
|
+
this.major = +m[1];
|
|
9866
|
+
this.minor = +m[2];
|
|
9867
|
+
this.patch = +m[3];
|
|
9868
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
|
9869
|
+
throw new TypeError("Invalid major version");
|
|
9870
|
+
}
|
|
9871
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
|
9872
|
+
throw new TypeError("Invalid minor version");
|
|
9873
|
+
}
|
|
9874
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
|
9875
|
+
throw new TypeError("Invalid patch version");
|
|
9876
|
+
}
|
|
9877
|
+
if (!m[4]) {
|
|
9878
|
+
this.prerelease = [];
|
|
9879
|
+
} else {
|
|
9880
|
+
this.prerelease = m[4].split(".").map((id) => {
|
|
9881
|
+
if (/^[0-9]+$/.test(id)) {
|
|
9882
|
+
const num = +id;
|
|
9883
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) {
|
|
9884
|
+
return num;
|
|
9885
|
+
}
|
|
9886
|
+
}
|
|
9887
|
+
return id;
|
|
9888
|
+
});
|
|
9889
|
+
}
|
|
9890
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
9891
|
+
this.format();
|
|
9892
|
+
}
|
|
9893
|
+
format() {
|
|
9894
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
9895
|
+
if (this.prerelease.length) {
|
|
9896
|
+
this.version += `-${this.prerelease.join(".")}`;
|
|
9897
|
+
}
|
|
9898
|
+
return this.version;
|
|
9899
|
+
}
|
|
9900
|
+
toString() {
|
|
9901
|
+
return this.version;
|
|
9902
|
+
}
|
|
9903
|
+
compare(other) {
|
|
9904
|
+
debug2("SemVer.compare", this.version, this.options, other);
|
|
9905
|
+
if (!(other instanceof _SemVer)) {
|
|
9906
|
+
if (typeof other === "string" && other === this.version) {
|
|
9907
|
+
return 0;
|
|
9908
|
+
}
|
|
9909
|
+
other = new _SemVer(other, this.options);
|
|
9910
|
+
}
|
|
9911
|
+
if (other.version === this.version) {
|
|
9912
|
+
return 0;
|
|
9913
|
+
}
|
|
9914
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
9915
|
+
}
|
|
9916
|
+
compareMain(other) {
|
|
9917
|
+
if (!(other instanceof _SemVer)) {
|
|
9918
|
+
other = new _SemVer(other, this.options);
|
|
9919
|
+
}
|
|
9920
|
+
if (this.major < other.major) {
|
|
9921
|
+
return -1;
|
|
9922
|
+
}
|
|
9923
|
+
if (this.major > other.major) {
|
|
9924
|
+
return 1;
|
|
9925
|
+
}
|
|
9926
|
+
if (this.minor < other.minor) {
|
|
9927
|
+
return -1;
|
|
9928
|
+
}
|
|
9929
|
+
if (this.minor > other.minor) {
|
|
9930
|
+
return 1;
|
|
9931
|
+
}
|
|
9932
|
+
if (this.patch < other.patch) {
|
|
9933
|
+
return -1;
|
|
9934
|
+
}
|
|
9935
|
+
if (this.patch > other.patch) {
|
|
9936
|
+
return 1;
|
|
9937
|
+
}
|
|
9938
|
+
return 0;
|
|
9939
|
+
}
|
|
9940
|
+
comparePre(other) {
|
|
9941
|
+
if (!(other instanceof _SemVer)) {
|
|
9942
|
+
other = new _SemVer(other, this.options);
|
|
9943
|
+
}
|
|
9944
|
+
if (this.prerelease.length && !other.prerelease.length) {
|
|
9945
|
+
return -1;
|
|
9946
|
+
} else if (!this.prerelease.length && other.prerelease.length) {
|
|
9947
|
+
return 1;
|
|
9948
|
+
} else if (!this.prerelease.length && !other.prerelease.length) {
|
|
9949
|
+
return 0;
|
|
9950
|
+
}
|
|
9951
|
+
let i = 0;
|
|
9952
|
+
do {
|
|
9953
|
+
const a = this.prerelease[i];
|
|
9954
|
+
const b = other.prerelease[i];
|
|
9955
|
+
debug2("prerelease compare", i, a, b);
|
|
9956
|
+
if (a === void 0 && b === void 0) {
|
|
9957
|
+
return 0;
|
|
9958
|
+
} else if (b === void 0) {
|
|
9959
|
+
return 1;
|
|
9960
|
+
} else if (a === void 0) {
|
|
9961
|
+
return -1;
|
|
9962
|
+
} else if (a === b) {
|
|
9963
|
+
continue;
|
|
9964
|
+
} else {
|
|
9965
|
+
return compareIdentifiers(a, b);
|
|
9966
|
+
}
|
|
9967
|
+
} while (++i);
|
|
9968
|
+
}
|
|
9969
|
+
compareBuild(other) {
|
|
9970
|
+
if (!(other instanceof _SemVer)) {
|
|
9971
|
+
other = new _SemVer(other, this.options);
|
|
9972
|
+
}
|
|
9973
|
+
let i = 0;
|
|
9974
|
+
do {
|
|
9975
|
+
const a = this.build[i];
|
|
9976
|
+
const b = other.build[i];
|
|
9977
|
+
debug2("build compare", i, a, b);
|
|
9978
|
+
if (a === void 0 && b === void 0) {
|
|
9979
|
+
return 0;
|
|
9980
|
+
} else if (b === void 0) {
|
|
9981
|
+
return 1;
|
|
9982
|
+
} else if (a === void 0) {
|
|
9983
|
+
return -1;
|
|
9984
|
+
} else if (a === b) {
|
|
9985
|
+
continue;
|
|
9986
|
+
} else {
|
|
9987
|
+
return compareIdentifiers(a, b);
|
|
9988
|
+
}
|
|
9989
|
+
} while (++i);
|
|
9990
|
+
}
|
|
9991
|
+
// preminor will bump the version up to the next minor release, and immediately
|
|
9992
|
+
// down to pre-release. premajor and prepatch work the same way.
|
|
9993
|
+
inc(release, identifier, identifierBase) {
|
|
9994
|
+
if (release.startsWith("pre")) {
|
|
9995
|
+
if (!identifier && identifierBase === false) {
|
|
9996
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
9997
|
+
}
|
|
9998
|
+
if (identifier) {
|
|
9999
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
10000
|
+
if (!match || match[1] !== identifier) {
|
|
10001
|
+
throw new Error(`invalid identifier: ${identifier}`);
|
|
10002
|
+
}
|
|
10003
|
+
}
|
|
10004
|
+
}
|
|
10005
|
+
switch (release) {
|
|
10006
|
+
case "premajor":
|
|
10007
|
+
this.prerelease.length = 0;
|
|
10008
|
+
this.patch = 0;
|
|
10009
|
+
this.minor = 0;
|
|
10010
|
+
this.major++;
|
|
10011
|
+
this.inc("pre", identifier, identifierBase);
|
|
10012
|
+
break;
|
|
10013
|
+
case "preminor":
|
|
10014
|
+
this.prerelease.length = 0;
|
|
10015
|
+
this.patch = 0;
|
|
10016
|
+
this.minor++;
|
|
10017
|
+
this.inc("pre", identifier, identifierBase);
|
|
10018
|
+
break;
|
|
10019
|
+
case "prepatch":
|
|
10020
|
+
this.prerelease.length = 0;
|
|
10021
|
+
this.inc("patch", identifier, identifierBase);
|
|
10022
|
+
this.inc("pre", identifier, identifierBase);
|
|
10023
|
+
break;
|
|
10024
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
10025
|
+
// prepatch.
|
|
10026
|
+
case "prerelease":
|
|
10027
|
+
if (this.prerelease.length === 0) {
|
|
10028
|
+
this.inc("patch", identifier, identifierBase);
|
|
10029
|
+
}
|
|
10030
|
+
this.inc("pre", identifier, identifierBase);
|
|
10031
|
+
break;
|
|
10032
|
+
case "release":
|
|
10033
|
+
if (this.prerelease.length === 0) {
|
|
10034
|
+
throw new Error(`version ${this.raw} is not a prerelease`);
|
|
10035
|
+
}
|
|
10036
|
+
this.prerelease.length = 0;
|
|
10037
|
+
break;
|
|
10038
|
+
case "major":
|
|
10039
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
10040
|
+
this.major++;
|
|
10041
|
+
}
|
|
10042
|
+
this.minor = 0;
|
|
10043
|
+
this.patch = 0;
|
|
10044
|
+
this.prerelease = [];
|
|
10045
|
+
break;
|
|
10046
|
+
case "minor":
|
|
10047
|
+
if (this.patch !== 0 || this.prerelease.length === 0) {
|
|
10048
|
+
this.minor++;
|
|
10049
|
+
}
|
|
10050
|
+
this.patch = 0;
|
|
10051
|
+
this.prerelease = [];
|
|
10052
|
+
break;
|
|
10053
|
+
case "patch":
|
|
10054
|
+
if (this.prerelease.length === 0) {
|
|
10055
|
+
this.patch++;
|
|
10056
|
+
}
|
|
10057
|
+
this.prerelease = [];
|
|
10058
|
+
break;
|
|
10059
|
+
// This probably shouldn't be used publicly.
|
|
10060
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
10061
|
+
case "pre": {
|
|
10062
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
10063
|
+
if (this.prerelease.length === 0) {
|
|
10064
|
+
this.prerelease = [base];
|
|
10065
|
+
} else {
|
|
10066
|
+
let i = this.prerelease.length;
|
|
10067
|
+
while (--i >= 0) {
|
|
10068
|
+
if (typeof this.prerelease[i] === "number") {
|
|
10069
|
+
this.prerelease[i]++;
|
|
10070
|
+
i = -2;
|
|
10071
|
+
}
|
|
10072
|
+
}
|
|
10073
|
+
if (i === -1) {
|
|
10074
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) {
|
|
10075
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
10076
|
+
}
|
|
10077
|
+
this.prerelease.push(base);
|
|
10078
|
+
}
|
|
10079
|
+
}
|
|
10080
|
+
if (identifier) {
|
|
10081
|
+
let prerelease = [identifier, base];
|
|
10082
|
+
if (identifierBase === false) {
|
|
10083
|
+
prerelease = [identifier];
|
|
10084
|
+
}
|
|
10085
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
10086
|
+
if (isNaN(this.prerelease[1])) {
|
|
10087
|
+
this.prerelease = prerelease;
|
|
10088
|
+
}
|
|
10089
|
+
} else {
|
|
10090
|
+
this.prerelease = prerelease;
|
|
10091
|
+
}
|
|
10092
|
+
}
|
|
10093
|
+
break;
|
|
10094
|
+
}
|
|
10095
|
+
default:
|
|
10096
|
+
throw new Error(`invalid increment argument: ${release}`);
|
|
10097
|
+
}
|
|
10098
|
+
this.raw = this.format();
|
|
10099
|
+
if (this.build.length) {
|
|
10100
|
+
this.raw += `+${this.build.join(".")}`;
|
|
10101
|
+
}
|
|
10102
|
+
return this;
|
|
10103
|
+
}
|
|
10104
|
+
};
|
|
10105
|
+
module2.exports = SemVer;
|
|
10106
|
+
}
|
|
10107
|
+
});
|
|
10108
|
+
|
|
10109
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.js
|
|
10110
|
+
var require_parse2 = __commonJS({
|
|
10111
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.js"(exports2, module2) {
|
|
10112
|
+
"use strict";
|
|
10113
|
+
init_cjs_shims();
|
|
10114
|
+
var SemVer = require_semver3();
|
|
10115
|
+
var parse = (version, options, throwErrors = false) => {
|
|
10116
|
+
if (version instanceof SemVer) {
|
|
10117
|
+
return version;
|
|
10118
|
+
}
|
|
10119
|
+
try {
|
|
10120
|
+
return new SemVer(version, options);
|
|
10121
|
+
} catch (er) {
|
|
10122
|
+
if (!throwErrors) {
|
|
10123
|
+
return null;
|
|
10124
|
+
}
|
|
10125
|
+
throw er;
|
|
10126
|
+
}
|
|
10127
|
+
};
|
|
10128
|
+
module2.exports = parse;
|
|
10129
|
+
}
|
|
10130
|
+
});
|
|
10131
|
+
|
|
10132
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.js
|
|
10133
|
+
var require_valid3 = __commonJS({
|
|
10134
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.js"(exports2, module2) {
|
|
10135
|
+
"use strict";
|
|
10136
|
+
init_cjs_shims();
|
|
10137
|
+
var parse = require_parse2();
|
|
10138
|
+
var valid = (version, options) => {
|
|
10139
|
+
const v = parse(version, options);
|
|
10140
|
+
return v ? v.version : null;
|
|
10141
|
+
};
|
|
10142
|
+
module2.exports = valid;
|
|
10143
|
+
}
|
|
10144
|
+
});
|
|
10145
|
+
|
|
10146
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.js
|
|
10147
|
+
var require_clean2 = __commonJS({
|
|
10148
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.js"(exports2, module2) {
|
|
10149
|
+
"use strict";
|
|
10150
|
+
init_cjs_shims();
|
|
10151
|
+
var parse = require_parse2();
|
|
10152
|
+
var clean = (version, options) => {
|
|
10153
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
10154
|
+
return s ? s.version : null;
|
|
10155
|
+
};
|
|
10156
|
+
module2.exports = clean;
|
|
10157
|
+
}
|
|
10158
|
+
});
|
|
10159
|
+
|
|
10160
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.js
|
|
10161
|
+
var require_inc2 = __commonJS({
|
|
10162
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.js"(exports2, module2) {
|
|
10163
|
+
"use strict";
|
|
10164
|
+
init_cjs_shims();
|
|
10165
|
+
var SemVer = require_semver3();
|
|
10166
|
+
var inc = (version, release, options, identifier, identifierBase) => {
|
|
10167
|
+
if (typeof options === "string") {
|
|
10168
|
+
identifierBase = identifier;
|
|
10169
|
+
identifier = options;
|
|
10170
|
+
options = void 0;
|
|
10171
|
+
}
|
|
10172
|
+
try {
|
|
10173
|
+
return new SemVer(
|
|
10174
|
+
version instanceof SemVer ? version.version : version,
|
|
10175
|
+
options
|
|
10176
|
+
).inc(release, identifier, identifierBase).version;
|
|
10177
|
+
} catch (er) {
|
|
10178
|
+
return null;
|
|
10179
|
+
}
|
|
10180
|
+
};
|
|
10181
|
+
module2.exports = inc;
|
|
10182
|
+
}
|
|
10183
|
+
});
|
|
10184
|
+
|
|
10185
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.js
|
|
10186
|
+
var require_diff2 = __commonJS({
|
|
10187
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.js"(exports2, module2) {
|
|
10188
|
+
"use strict";
|
|
10189
|
+
init_cjs_shims();
|
|
10190
|
+
var parse = require_parse2();
|
|
10191
|
+
var diff = (version1, version2) => {
|
|
10192
|
+
const v1 = parse(version1, null, true);
|
|
10193
|
+
const v2 = parse(version2, null, true);
|
|
10194
|
+
const comparison = v1.compare(v2);
|
|
10195
|
+
if (comparison === 0) {
|
|
10196
|
+
return null;
|
|
10197
|
+
}
|
|
10198
|
+
const v1Higher = comparison > 0;
|
|
10199
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
10200
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
10201
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
10202
|
+
const lowHasPre = !!lowVersion.prerelease.length;
|
|
10203
|
+
if (lowHasPre && !highHasPre) {
|
|
10204
|
+
if (!lowVersion.patch && !lowVersion.minor) {
|
|
10205
|
+
return "major";
|
|
10206
|
+
}
|
|
10207
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
10208
|
+
if (lowVersion.minor && !lowVersion.patch) {
|
|
10209
|
+
return "minor";
|
|
10210
|
+
}
|
|
10211
|
+
return "patch";
|
|
10212
|
+
}
|
|
10213
|
+
}
|
|
10214
|
+
const prefix = highHasPre ? "pre" : "";
|
|
10215
|
+
if (v1.major !== v2.major) {
|
|
10216
|
+
return prefix + "major";
|
|
10217
|
+
}
|
|
10218
|
+
if (v1.minor !== v2.minor) {
|
|
10219
|
+
return prefix + "minor";
|
|
10220
|
+
}
|
|
10221
|
+
if (v1.patch !== v2.patch) {
|
|
10222
|
+
return prefix + "patch";
|
|
10223
|
+
}
|
|
10224
|
+
return "prerelease";
|
|
10225
|
+
};
|
|
10226
|
+
module2.exports = diff;
|
|
10227
|
+
}
|
|
10228
|
+
});
|
|
10229
|
+
|
|
10230
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.js
|
|
10231
|
+
var require_major2 = __commonJS({
|
|
10232
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.js"(exports2, module2) {
|
|
10233
|
+
"use strict";
|
|
10234
|
+
init_cjs_shims();
|
|
10235
|
+
var SemVer = require_semver3();
|
|
10236
|
+
var major2 = (a, loose) => new SemVer(a, loose).major;
|
|
10237
|
+
module2.exports = major2;
|
|
10238
|
+
}
|
|
10239
|
+
});
|
|
10240
|
+
|
|
10241
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.js
|
|
10242
|
+
var require_minor2 = __commonJS({
|
|
10243
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.js"(exports2, module2) {
|
|
10244
|
+
"use strict";
|
|
10245
|
+
init_cjs_shims();
|
|
10246
|
+
var SemVer = require_semver3();
|
|
10247
|
+
var minor2 = (a, loose) => new SemVer(a, loose).minor;
|
|
10248
|
+
module2.exports = minor2;
|
|
10249
|
+
}
|
|
10250
|
+
});
|
|
10251
|
+
|
|
10252
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.js
|
|
10253
|
+
var require_patch2 = __commonJS({
|
|
10254
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.js"(exports2, module2) {
|
|
10255
|
+
"use strict";
|
|
10256
|
+
init_cjs_shims();
|
|
10257
|
+
var SemVer = require_semver3();
|
|
10258
|
+
var patch = (a, loose) => new SemVer(a, loose).patch;
|
|
10259
|
+
module2.exports = patch;
|
|
10260
|
+
}
|
|
10261
|
+
});
|
|
10262
|
+
|
|
10263
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.js
|
|
10264
|
+
var require_prerelease2 = __commonJS({
|
|
10265
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.js"(exports2, module2) {
|
|
10266
|
+
"use strict";
|
|
10267
|
+
init_cjs_shims();
|
|
10268
|
+
var parse = require_parse2();
|
|
10269
|
+
var prerelease = (version, options) => {
|
|
10270
|
+
const parsed = parse(version, options);
|
|
10271
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
10272
|
+
};
|
|
10273
|
+
module2.exports = prerelease;
|
|
10274
|
+
}
|
|
10275
|
+
});
|
|
10276
|
+
|
|
10277
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.js
|
|
10278
|
+
var require_compare2 = __commonJS({
|
|
10279
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.js"(exports2, module2) {
|
|
10280
|
+
"use strict";
|
|
10281
|
+
init_cjs_shims();
|
|
10282
|
+
var SemVer = require_semver3();
|
|
10283
|
+
var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
10284
|
+
module2.exports = compare;
|
|
10285
|
+
}
|
|
10286
|
+
});
|
|
10287
|
+
|
|
10288
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.js
|
|
10289
|
+
var require_rcompare2 = __commonJS({
|
|
10290
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.js"(exports2, module2) {
|
|
10291
|
+
"use strict";
|
|
10292
|
+
init_cjs_shims();
|
|
10293
|
+
var compare = require_compare2();
|
|
10294
|
+
var rcompare = (a, b, loose) => compare(b, a, loose);
|
|
10295
|
+
module2.exports = rcompare;
|
|
10296
|
+
}
|
|
10297
|
+
});
|
|
10298
|
+
|
|
10299
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.js
|
|
10300
|
+
var require_compare_loose2 = __commonJS({
|
|
10301
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.js"(exports2, module2) {
|
|
10302
|
+
"use strict";
|
|
10303
|
+
init_cjs_shims();
|
|
10304
|
+
var compare = require_compare2();
|
|
10305
|
+
var compareLoose = (a, b) => compare(a, b, true);
|
|
10306
|
+
module2.exports = compareLoose;
|
|
10307
|
+
}
|
|
10308
|
+
});
|
|
10309
|
+
|
|
10310
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.js
|
|
10311
|
+
var require_compare_build2 = __commonJS({
|
|
10312
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.js"(exports2, module2) {
|
|
10313
|
+
"use strict";
|
|
10314
|
+
init_cjs_shims();
|
|
10315
|
+
var SemVer = require_semver3();
|
|
10316
|
+
var compareBuild = (a, b, loose) => {
|
|
10317
|
+
const versionA = new SemVer(a, loose);
|
|
10318
|
+
const versionB = new SemVer(b, loose);
|
|
10319
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
10320
|
+
};
|
|
10321
|
+
module2.exports = compareBuild;
|
|
10322
|
+
}
|
|
10323
|
+
});
|
|
10324
|
+
|
|
10325
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.js
|
|
10326
|
+
var require_sort2 = __commonJS({
|
|
10327
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.js"(exports2, module2) {
|
|
10328
|
+
"use strict";
|
|
10329
|
+
init_cjs_shims();
|
|
10330
|
+
var compareBuild = require_compare_build2();
|
|
10331
|
+
var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
10332
|
+
module2.exports = sort;
|
|
10333
|
+
}
|
|
10334
|
+
});
|
|
10335
|
+
|
|
10336
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.js
|
|
10337
|
+
var require_rsort2 = __commonJS({
|
|
10338
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.js"(exports2, module2) {
|
|
10339
|
+
"use strict";
|
|
10340
|
+
init_cjs_shims();
|
|
10341
|
+
var compareBuild = require_compare_build2();
|
|
10342
|
+
var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
10343
|
+
module2.exports = rsort;
|
|
10344
|
+
}
|
|
10345
|
+
});
|
|
10346
|
+
|
|
10347
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.js
|
|
10348
|
+
var require_gt2 = __commonJS({
|
|
10349
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.js"(exports2, module2) {
|
|
10350
|
+
"use strict";
|
|
10351
|
+
init_cjs_shims();
|
|
10352
|
+
var compare = require_compare2();
|
|
10353
|
+
var gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
10354
|
+
module2.exports = gt;
|
|
10355
|
+
}
|
|
10356
|
+
});
|
|
10357
|
+
|
|
10358
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.js
|
|
10359
|
+
var require_lt2 = __commonJS({
|
|
10360
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.js"(exports2, module2) {
|
|
10361
|
+
"use strict";
|
|
10362
|
+
init_cjs_shims();
|
|
10363
|
+
var compare = require_compare2();
|
|
10364
|
+
var lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
10365
|
+
module2.exports = lt;
|
|
10366
|
+
}
|
|
10367
|
+
});
|
|
10368
|
+
|
|
10369
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.js
|
|
10370
|
+
var require_eq2 = __commonJS({
|
|
10371
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.js"(exports2, module2) {
|
|
10372
|
+
"use strict";
|
|
10373
|
+
init_cjs_shims();
|
|
10374
|
+
var compare = require_compare2();
|
|
10375
|
+
var eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
10376
|
+
module2.exports = eq;
|
|
10377
|
+
}
|
|
10378
|
+
});
|
|
10379
|
+
|
|
10380
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.js
|
|
10381
|
+
var require_neq2 = __commonJS({
|
|
10382
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.js"(exports2, module2) {
|
|
10383
|
+
"use strict";
|
|
10384
|
+
init_cjs_shims();
|
|
10385
|
+
var compare = require_compare2();
|
|
10386
|
+
var neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
10387
|
+
module2.exports = neq;
|
|
10388
|
+
}
|
|
10389
|
+
});
|
|
10390
|
+
|
|
10391
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.js
|
|
10392
|
+
var require_gte2 = __commonJS({
|
|
10393
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.js"(exports2, module2) {
|
|
10394
|
+
"use strict";
|
|
10395
|
+
init_cjs_shims();
|
|
10396
|
+
var compare = require_compare2();
|
|
10397
|
+
var gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
10398
|
+
module2.exports = gte;
|
|
10399
|
+
}
|
|
10400
|
+
});
|
|
10401
|
+
|
|
10402
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.js
|
|
10403
|
+
var require_lte2 = __commonJS({
|
|
10404
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.js"(exports2, module2) {
|
|
10405
|
+
"use strict";
|
|
10406
|
+
init_cjs_shims();
|
|
10407
|
+
var compare = require_compare2();
|
|
10408
|
+
var lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
10409
|
+
module2.exports = lte;
|
|
10410
|
+
}
|
|
10411
|
+
});
|
|
10412
|
+
|
|
10413
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.js
|
|
10414
|
+
var require_cmp2 = __commonJS({
|
|
10415
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.js"(exports2, module2) {
|
|
10416
|
+
"use strict";
|
|
10417
|
+
init_cjs_shims();
|
|
10418
|
+
var eq = require_eq2();
|
|
10419
|
+
var neq = require_neq2();
|
|
10420
|
+
var gt = require_gt2();
|
|
10421
|
+
var gte = require_gte2();
|
|
10422
|
+
var lt = require_lt2();
|
|
10423
|
+
var lte = require_lte2();
|
|
10424
|
+
var cmp = (a, op, b, loose) => {
|
|
10425
|
+
switch (op) {
|
|
10426
|
+
case "===":
|
|
10427
|
+
if (typeof a === "object") {
|
|
10428
|
+
a = a.version;
|
|
10429
|
+
}
|
|
10430
|
+
if (typeof b === "object") {
|
|
10431
|
+
b = b.version;
|
|
10432
|
+
}
|
|
10433
|
+
return a === b;
|
|
10434
|
+
case "!==":
|
|
10435
|
+
if (typeof a === "object") {
|
|
10436
|
+
a = a.version;
|
|
10437
|
+
}
|
|
10438
|
+
if (typeof b === "object") {
|
|
10439
|
+
b = b.version;
|
|
10440
|
+
}
|
|
10441
|
+
return a !== b;
|
|
10442
|
+
case "":
|
|
10443
|
+
case "=":
|
|
10444
|
+
case "==":
|
|
10445
|
+
return eq(a, b, loose);
|
|
10446
|
+
case "!=":
|
|
10447
|
+
return neq(a, b, loose);
|
|
10448
|
+
case ">":
|
|
10449
|
+
return gt(a, b, loose);
|
|
10450
|
+
case ">=":
|
|
10451
|
+
return gte(a, b, loose);
|
|
10452
|
+
case "<":
|
|
10453
|
+
return lt(a, b, loose);
|
|
10454
|
+
case "<=":
|
|
10455
|
+
return lte(a, b, loose);
|
|
10456
|
+
default:
|
|
10457
|
+
throw new TypeError(`Invalid operator: ${op}`);
|
|
10458
|
+
}
|
|
10459
|
+
};
|
|
10460
|
+
module2.exports = cmp;
|
|
10461
|
+
}
|
|
10462
|
+
});
|
|
10463
|
+
|
|
10464
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.js
|
|
10465
|
+
var require_coerce2 = __commonJS({
|
|
10466
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.js"(exports2, module2) {
|
|
10467
|
+
"use strict";
|
|
10468
|
+
init_cjs_shims();
|
|
10469
|
+
var SemVer = require_semver3();
|
|
10470
|
+
var parse = require_parse2();
|
|
10471
|
+
var { safeRe: re, t } = require_re2();
|
|
10472
|
+
var coerce = (version, options) => {
|
|
10473
|
+
if (version instanceof SemVer) {
|
|
10474
|
+
return version;
|
|
10475
|
+
}
|
|
10476
|
+
if (typeof version === "number") {
|
|
10477
|
+
version = String(version);
|
|
10478
|
+
}
|
|
10479
|
+
if (typeof version !== "string") {
|
|
10480
|
+
return null;
|
|
10481
|
+
}
|
|
10482
|
+
options = options || {};
|
|
10483
|
+
let match = null;
|
|
10484
|
+
if (!options.rtl) {
|
|
10485
|
+
match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
10486
|
+
} else {
|
|
10487
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
10488
|
+
let next;
|
|
10489
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
10490
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) {
|
|
10491
|
+
match = next;
|
|
10492
|
+
}
|
|
10493
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
10494
|
+
}
|
|
10495
|
+
coerceRtlRegex.lastIndex = -1;
|
|
10496
|
+
}
|
|
10497
|
+
if (match === null) {
|
|
10498
|
+
return null;
|
|
10499
|
+
}
|
|
10500
|
+
const major2 = match[2];
|
|
10501
|
+
const minor2 = match[3] || "0";
|
|
10502
|
+
const patch = match[4] || "0";
|
|
10503
|
+
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
10504
|
+
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
10505
|
+
return parse(`${major2}.${minor2}.${patch}${prerelease}${build}`, options);
|
|
10506
|
+
};
|
|
10507
|
+
module2.exports = coerce;
|
|
10508
|
+
}
|
|
10509
|
+
});
|
|
10510
|
+
|
|
10511
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.js
|
|
10512
|
+
var require_lrucache = __commonJS({
|
|
10513
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.js"(exports2, module2) {
|
|
10514
|
+
"use strict";
|
|
10515
|
+
init_cjs_shims();
|
|
10516
|
+
var LRUCache = class {
|
|
10517
|
+
constructor() {
|
|
10518
|
+
this.max = 1e3;
|
|
10519
|
+
this.map = /* @__PURE__ */ new Map();
|
|
10520
|
+
}
|
|
10521
|
+
get(key) {
|
|
10522
|
+
const value = this.map.get(key);
|
|
10523
|
+
if (value === void 0) {
|
|
10524
|
+
return void 0;
|
|
10525
|
+
} else {
|
|
10526
|
+
this.map.delete(key);
|
|
10527
|
+
this.map.set(key, value);
|
|
10528
|
+
return value;
|
|
10529
|
+
}
|
|
10530
|
+
}
|
|
10531
|
+
delete(key) {
|
|
10532
|
+
return this.map.delete(key);
|
|
10533
|
+
}
|
|
10534
|
+
set(key, value) {
|
|
10535
|
+
const deleted = this.delete(key);
|
|
10536
|
+
if (!deleted && value !== void 0) {
|
|
10537
|
+
if (this.map.size >= this.max) {
|
|
10538
|
+
const firstKey = this.map.keys().next().value;
|
|
10539
|
+
this.delete(firstKey);
|
|
10540
|
+
}
|
|
10541
|
+
this.map.set(key, value);
|
|
10542
|
+
}
|
|
10543
|
+
return this;
|
|
10544
|
+
}
|
|
10545
|
+
};
|
|
10546
|
+
module2.exports = LRUCache;
|
|
10547
|
+
}
|
|
10548
|
+
});
|
|
10549
|
+
|
|
10550
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.js
|
|
10551
|
+
var require_range2 = __commonJS({
|
|
10552
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.js"(exports2, module2) {
|
|
10553
|
+
"use strict";
|
|
10554
|
+
init_cjs_shims();
|
|
10555
|
+
var SPACE_CHARACTERS = /\s+/g;
|
|
10556
|
+
var Range = class _Range {
|
|
10557
|
+
constructor(range, options) {
|
|
10558
|
+
options = parseOptions(options);
|
|
10559
|
+
if (range instanceof _Range) {
|
|
10560
|
+
if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) {
|
|
10561
|
+
return range;
|
|
10562
|
+
} else {
|
|
10563
|
+
return new _Range(range.raw, options);
|
|
10564
|
+
}
|
|
10565
|
+
}
|
|
10566
|
+
if (range instanceof Comparator) {
|
|
10567
|
+
this.raw = range.value;
|
|
10568
|
+
this.set = [[range]];
|
|
10569
|
+
this.formatted = void 0;
|
|
10570
|
+
return this;
|
|
10571
|
+
}
|
|
10572
|
+
this.options = options;
|
|
10573
|
+
this.loose = !!options.loose;
|
|
10574
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
10575
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
10576
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
10577
|
+
if (!this.set.length) {
|
|
10578
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
10579
|
+
}
|
|
10580
|
+
if (this.set.length > 1) {
|
|
10581
|
+
const first = this.set[0];
|
|
10582
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
10583
|
+
if (this.set.length === 0) {
|
|
10584
|
+
this.set = [first];
|
|
10585
|
+
} else if (this.set.length > 1) {
|
|
10586
|
+
for (const c of this.set) {
|
|
10587
|
+
if (c.length === 1 && isAny(c[0])) {
|
|
10588
|
+
this.set = [c];
|
|
10589
|
+
break;
|
|
10590
|
+
}
|
|
10591
|
+
}
|
|
10592
|
+
}
|
|
10593
|
+
}
|
|
10594
|
+
this.formatted = void 0;
|
|
10595
|
+
}
|
|
10596
|
+
get range() {
|
|
10597
|
+
if (this.formatted === void 0) {
|
|
10598
|
+
this.formatted = "";
|
|
10599
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
10600
|
+
if (i > 0) {
|
|
10601
|
+
this.formatted += "||";
|
|
10602
|
+
}
|
|
10603
|
+
const comps = this.set[i];
|
|
10604
|
+
for (let k = 0; k < comps.length; k++) {
|
|
10605
|
+
if (k > 0) {
|
|
10606
|
+
this.formatted += " ";
|
|
10607
|
+
}
|
|
10608
|
+
this.formatted += comps[k].toString().trim();
|
|
10609
|
+
}
|
|
10610
|
+
}
|
|
10611
|
+
}
|
|
10612
|
+
return this.formatted;
|
|
10613
|
+
}
|
|
10614
|
+
format() {
|
|
10615
|
+
return this.range;
|
|
10616
|
+
}
|
|
10617
|
+
toString() {
|
|
10618
|
+
return this.range;
|
|
10619
|
+
}
|
|
10620
|
+
parseRange(range) {
|
|
10621
|
+
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
10622
|
+
const memoKey = memoOpts + ":" + range;
|
|
10623
|
+
const cached = cache.get(memoKey);
|
|
10624
|
+
if (cached) {
|
|
10625
|
+
return cached;
|
|
10626
|
+
}
|
|
10627
|
+
const loose = this.options.loose;
|
|
10628
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
10629
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
10630
|
+
debug2("hyphen replace", range);
|
|
10631
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
10632
|
+
debug2("comparator trim", range);
|
|
10633
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
10634
|
+
debug2("tilde trim", range);
|
|
10635
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
10636
|
+
debug2("caret trim", range);
|
|
10637
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
10638
|
+
if (loose) {
|
|
10639
|
+
rangeList = rangeList.filter((comp) => {
|
|
10640
|
+
debug2("loose invalid filter", comp, this.options);
|
|
10641
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
10642
|
+
});
|
|
10643
|
+
}
|
|
10644
|
+
debug2("range list", rangeList);
|
|
10645
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
10646
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
10647
|
+
for (const comp of comparators) {
|
|
10648
|
+
if (isNullSet(comp)) {
|
|
10649
|
+
return [comp];
|
|
10650
|
+
}
|
|
10651
|
+
rangeMap.set(comp.value, comp);
|
|
10652
|
+
}
|
|
10653
|
+
if (rangeMap.size > 1 && rangeMap.has("")) {
|
|
10654
|
+
rangeMap.delete("");
|
|
10655
|
+
}
|
|
10656
|
+
const result = [...rangeMap.values()];
|
|
10657
|
+
cache.set(memoKey, result);
|
|
10658
|
+
return result;
|
|
10659
|
+
}
|
|
10660
|
+
intersects(range, options) {
|
|
10661
|
+
if (!(range instanceof _Range)) {
|
|
10662
|
+
throw new TypeError("a Range is required");
|
|
10663
|
+
}
|
|
10664
|
+
return this.set.some((thisComparators) => {
|
|
10665
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
10666
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
10667
|
+
return rangeComparators.every((rangeComparator) => {
|
|
10668
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
10669
|
+
});
|
|
10670
|
+
});
|
|
10671
|
+
});
|
|
10672
|
+
});
|
|
10673
|
+
}
|
|
10674
|
+
// if ANY of the sets match ALL of its comparators, then pass
|
|
10675
|
+
test(version) {
|
|
10676
|
+
if (!version) {
|
|
10677
|
+
return false;
|
|
10678
|
+
}
|
|
10679
|
+
if (typeof version === "string") {
|
|
10680
|
+
try {
|
|
10681
|
+
version = new SemVer(version, this.options);
|
|
10682
|
+
} catch (er) {
|
|
10683
|
+
return false;
|
|
10684
|
+
}
|
|
10685
|
+
}
|
|
10686
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
10687
|
+
if (testSet(this.set[i], version, this.options)) {
|
|
10688
|
+
return true;
|
|
10689
|
+
}
|
|
10690
|
+
}
|
|
10691
|
+
return false;
|
|
10692
|
+
}
|
|
10693
|
+
};
|
|
10694
|
+
module2.exports = Range;
|
|
10695
|
+
var LRU = require_lrucache();
|
|
10696
|
+
var cache = new LRU();
|
|
10697
|
+
var parseOptions = require_parse_options2();
|
|
10698
|
+
var Comparator = require_comparator2();
|
|
10699
|
+
var debug2 = require_debug2();
|
|
10700
|
+
var SemVer = require_semver3();
|
|
10701
|
+
var {
|
|
10702
|
+
safeRe: re,
|
|
10703
|
+
t,
|
|
10704
|
+
comparatorTrimReplace,
|
|
10705
|
+
tildeTrimReplace,
|
|
10706
|
+
caretTrimReplace
|
|
10707
|
+
} = require_re2();
|
|
10708
|
+
var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants2();
|
|
10709
|
+
var isNullSet = (c) => c.value === "<0.0.0-0";
|
|
10710
|
+
var isAny = (c) => c.value === "";
|
|
10711
|
+
var isSatisfiable = (comparators, options) => {
|
|
10712
|
+
let result = true;
|
|
10713
|
+
const remainingComparators = comparators.slice();
|
|
10714
|
+
let testComparator = remainingComparators.pop();
|
|
10715
|
+
while (result && remainingComparators.length) {
|
|
10716
|
+
result = remainingComparators.every((otherComparator) => {
|
|
10717
|
+
return testComparator.intersects(otherComparator, options);
|
|
10718
|
+
});
|
|
10719
|
+
testComparator = remainingComparators.pop();
|
|
10720
|
+
}
|
|
10721
|
+
return result;
|
|
10722
|
+
};
|
|
10723
|
+
var parseComparator = (comp, options) => {
|
|
10724
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
10725
|
+
debug2("comp", comp, options);
|
|
10726
|
+
comp = replaceCarets(comp, options);
|
|
10727
|
+
debug2("caret", comp);
|
|
10728
|
+
comp = replaceTildes(comp, options);
|
|
10729
|
+
debug2("tildes", comp);
|
|
10730
|
+
comp = replaceXRanges(comp, options);
|
|
10731
|
+
debug2("xrange", comp);
|
|
10732
|
+
comp = replaceStars(comp, options);
|
|
10733
|
+
debug2("stars", comp);
|
|
10734
|
+
return comp;
|
|
10735
|
+
};
|
|
10736
|
+
var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
10737
|
+
var replaceTildes = (comp, options) => {
|
|
10738
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
10739
|
+
};
|
|
10740
|
+
var replaceTilde = (comp, options) => {
|
|
10741
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
10742
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
10743
|
+
debug2("tilde", comp, _, M, m, p, pr);
|
|
10744
|
+
let ret;
|
|
10745
|
+
if (isX(M)) {
|
|
10746
|
+
ret = "";
|
|
10747
|
+
} else if (isX(m)) {
|
|
10748
|
+
ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
10749
|
+
} else if (isX(p)) {
|
|
10750
|
+
ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
10751
|
+
} else if (pr) {
|
|
10752
|
+
debug2("replaceTilde pr", pr);
|
|
10753
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
10754
|
+
} else {
|
|
10755
|
+
ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
10756
|
+
}
|
|
10757
|
+
debug2("tilde return", ret);
|
|
10758
|
+
return ret;
|
|
10759
|
+
});
|
|
10760
|
+
};
|
|
10761
|
+
var replaceCarets = (comp, options) => {
|
|
10762
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
10763
|
+
};
|
|
10764
|
+
var replaceCaret = (comp, options) => {
|
|
10765
|
+
debug2("caret", comp, options);
|
|
10766
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
10767
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
10768
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
10769
|
+
debug2("caret", comp, _, M, m, p, pr);
|
|
10770
|
+
let ret;
|
|
10771
|
+
if (isX(M)) {
|
|
10772
|
+
ret = "";
|
|
10773
|
+
} else if (isX(m)) {
|
|
10774
|
+
ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
10775
|
+
} else if (isX(p)) {
|
|
10776
|
+
if (M === "0") {
|
|
10777
|
+
ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
10778
|
+
} else {
|
|
10779
|
+
ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
10780
|
+
}
|
|
10781
|
+
} else if (pr) {
|
|
10782
|
+
debug2("replaceCaret pr", pr);
|
|
10783
|
+
if (M === "0") {
|
|
10784
|
+
if (m === "0") {
|
|
10785
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
10786
|
+
} else {
|
|
10787
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
10788
|
+
}
|
|
10789
|
+
} else {
|
|
10790
|
+
ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
10791
|
+
}
|
|
10792
|
+
} else {
|
|
10793
|
+
debug2("no pr");
|
|
10794
|
+
if (M === "0") {
|
|
10795
|
+
if (m === "0") {
|
|
10796
|
+
ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
10797
|
+
} else {
|
|
10798
|
+
ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
10799
|
+
}
|
|
10800
|
+
} else {
|
|
10801
|
+
ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
10802
|
+
}
|
|
10803
|
+
}
|
|
10804
|
+
debug2("caret return", ret);
|
|
10805
|
+
return ret;
|
|
10806
|
+
});
|
|
10807
|
+
};
|
|
10808
|
+
var replaceXRanges = (comp, options) => {
|
|
10809
|
+
debug2("replaceXRanges", comp, options);
|
|
10810
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
10811
|
+
};
|
|
10812
|
+
var replaceXRange = (comp, options) => {
|
|
10813
|
+
comp = comp.trim();
|
|
10814
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
10815
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
10816
|
+
debug2("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
10817
|
+
const xM = isX(M);
|
|
10818
|
+
const xm = xM || isX(m);
|
|
10819
|
+
const xp = xm || isX(p);
|
|
10820
|
+
const anyX = xp;
|
|
10821
|
+
if (gtlt === "=" && anyX) {
|
|
10822
|
+
gtlt = "";
|
|
10823
|
+
}
|
|
10824
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
10825
|
+
if (xM) {
|
|
10826
|
+
if (gtlt === ">" || gtlt === "<") {
|
|
10827
|
+
ret = "<0.0.0-0";
|
|
10828
|
+
} else {
|
|
10829
|
+
ret = "*";
|
|
10830
|
+
}
|
|
10831
|
+
} else if (gtlt && anyX) {
|
|
10832
|
+
if (xm) {
|
|
10833
|
+
m = 0;
|
|
10834
|
+
}
|
|
10835
|
+
p = 0;
|
|
10836
|
+
if (gtlt === ">") {
|
|
10837
|
+
gtlt = ">=";
|
|
10838
|
+
if (xm) {
|
|
10839
|
+
M = +M + 1;
|
|
10840
|
+
m = 0;
|
|
10841
|
+
p = 0;
|
|
10842
|
+
} else {
|
|
10843
|
+
m = +m + 1;
|
|
10844
|
+
p = 0;
|
|
10845
|
+
}
|
|
10846
|
+
} else if (gtlt === "<=") {
|
|
10847
|
+
gtlt = "<";
|
|
10848
|
+
if (xm) {
|
|
10849
|
+
M = +M + 1;
|
|
10850
|
+
} else {
|
|
10851
|
+
m = +m + 1;
|
|
10852
|
+
}
|
|
10853
|
+
}
|
|
10854
|
+
if (gtlt === "<") {
|
|
10855
|
+
pr = "-0";
|
|
10856
|
+
}
|
|
10857
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
10858
|
+
} else if (xm) {
|
|
10859
|
+
ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
10860
|
+
} else if (xp) {
|
|
10861
|
+
ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
10862
|
+
}
|
|
10863
|
+
debug2("xRange return", ret);
|
|
10864
|
+
return ret;
|
|
10865
|
+
});
|
|
10866
|
+
};
|
|
10867
|
+
var replaceStars = (comp, options) => {
|
|
10868
|
+
debug2("replaceStars", comp, options);
|
|
10869
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
10870
|
+
};
|
|
10871
|
+
var replaceGTE0 = (comp, options) => {
|
|
10872
|
+
debug2("replaceGTE0", comp, options);
|
|
10873
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
10874
|
+
};
|
|
10875
|
+
var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
10876
|
+
if (isX(fM)) {
|
|
10877
|
+
from = "";
|
|
10878
|
+
} else if (isX(fm)) {
|
|
10879
|
+
from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
10880
|
+
} else if (isX(fp)) {
|
|
10881
|
+
from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
10882
|
+
} else if (fpr) {
|
|
10883
|
+
from = `>=${from}`;
|
|
10884
|
+
} else {
|
|
10885
|
+
from = `>=${from}${incPr ? "-0" : ""}`;
|
|
10886
|
+
}
|
|
10887
|
+
if (isX(tM)) {
|
|
10888
|
+
to = "";
|
|
10889
|
+
} else if (isX(tm)) {
|
|
10890
|
+
to = `<${+tM + 1}.0.0-0`;
|
|
10891
|
+
} else if (isX(tp)) {
|
|
10892
|
+
to = `<${tM}.${+tm + 1}.0-0`;
|
|
10893
|
+
} else if (tpr) {
|
|
10894
|
+
to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
10895
|
+
} else if (incPr) {
|
|
10896
|
+
to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
10897
|
+
} else {
|
|
10898
|
+
to = `<=${to}`;
|
|
10899
|
+
}
|
|
10900
|
+
return `${from} ${to}`.trim();
|
|
10901
|
+
};
|
|
10902
|
+
var testSet = (set, version, options) => {
|
|
10903
|
+
for (let i = 0; i < set.length; i++) {
|
|
10904
|
+
if (!set[i].test(version)) {
|
|
10905
|
+
return false;
|
|
10906
|
+
}
|
|
10907
|
+
}
|
|
10908
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
10909
|
+
for (let i = 0; i < set.length; i++) {
|
|
10910
|
+
debug2(set[i].semver);
|
|
10911
|
+
if (set[i].semver === Comparator.ANY) {
|
|
10912
|
+
continue;
|
|
10913
|
+
}
|
|
10914
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
10915
|
+
const allowed = set[i].semver;
|
|
10916
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) {
|
|
10917
|
+
return true;
|
|
10918
|
+
}
|
|
10919
|
+
}
|
|
10920
|
+
}
|
|
10921
|
+
return false;
|
|
10922
|
+
}
|
|
10923
|
+
return true;
|
|
10924
|
+
};
|
|
10925
|
+
}
|
|
10926
|
+
});
|
|
10927
|
+
|
|
10928
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.js
|
|
10929
|
+
var require_comparator2 = __commonJS({
|
|
10930
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.js"(exports2, module2) {
|
|
10931
|
+
"use strict";
|
|
10932
|
+
init_cjs_shims();
|
|
10933
|
+
var ANY = Symbol("SemVer ANY");
|
|
10934
|
+
var Comparator = class _Comparator {
|
|
10935
|
+
static get ANY() {
|
|
10936
|
+
return ANY;
|
|
10937
|
+
}
|
|
10938
|
+
constructor(comp, options) {
|
|
10939
|
+
options = parseOptions(options);
|
|
10940
|
+
if (comp instanceof _Comparator) {
|
|
10941
|
+
if (comp.loose === !!options.loose) {
|
|
10942
|
+
return comp;
|
|
10943
|
+
} else {
|
|
10944
|
+
comp = comp.value;
|
|
10945
|
+
}
|
|
10946
|
+
}
|
|
10947
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
10948
|
+
debug2("comparator", comp, options);
|
|
10949
|
+
this.options = options;
|
|
10950
|
+
this.loose = !!options.loose;
|
|
10951
|
+
this.parse(comp);
|
|
10952
|
+
if (this.semver === ANY) {
|
|
10953
|
+
this.value = "";
|
|
10954
|
+
} else {
|
|
10955
|
+
this.value = this.operator + this.semver.version;
|
|
10956
|
+
}
|
|
10957
|
+
debug2("comp", this);
|
|
10958
|
+
}
|
|
10959
|
+
parse(comp) {
|
|
10960
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
10961
|
+
const m = comp.match(r);
|
|
10962
|
+
if (!m) {
|
|
10963
|
+
throw new TypeError(`Invalid comparator: ${comp}`);
|
|
10964
|
+
}
|
|
10965
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
10966
|
+
if (this.operator === "=") {
|
|
10967
|
+
this.operator = "";
|
|
10968
|
+
}
|
|
10969
|
+
if (!m[2]) {
|
|
10970
|
+
this.semver = ANY;
|
|
10971
|
+
} else {
|
|
10972
|
+
this.semver = new SemVer(m[2], this.options.loose);
|
|
10973
|
+
}
|
|
10974
|
+
}
|
|
10975
|
+
toString() {
|
|
10976
|
+
return this.value;
|
|
10977
|
+
}
|
|
10978
|
+
test(version) {
|
|
10979
|
+
debug2("Comparator.test", version, this.options.loose);
|
|
10980
|
+
if (this.semver === ANY || version === ANY) {
|
|
10981
|
+
return true;
|
|
10982
|
+
}
|
|
10983
|
+
if (typeof version === "string") {
|
|
10984
|
+
try {
|
|
10985
|
+
version = new SemVer(version, this.options);
|
|
10986
|
+
} catch (er) {
|
|
10987
|
+
return false;
|
|
10988
|
+
}
|
|
10989
|
+
}
|
|
10990
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
10991
|
+
}
|
|
10992
|
+
intersects(comp, options) {
|
|
10993
|
+
if (!(comp instanceof _Comparator)) {
|
|
10994
|
+
throw new TypeError("a Comparator is required");
|
|
10995
|
+
}
|
|
10996
|
+
if (this.operator === "") {
|
|
10997
|
+
if (this.value === "") {
|
|
10998
|
+
return true;
|
|
10999
|
+
}
|
|
11000
|
+
return new Range(comp.value, options).test(this.value);
|
|
11001
|
+
} else if (comp.operator === "") {
|
|
11002
|
+
if (comp.value === "") {
|
|
11003
|
+
return true;
|
|
11004
|
+
}
|
|
11005
|
+
return new Range(this.value, options).test(comp.semver);
|
|
11006
|
+
}
|
|
11007
|
+
options = parseOptions(options);
|
|
11008
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
|
|
11009
|
+
return false;
|
|
11010
|
+
}
|
|
11011
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
|
|
11012
|
+
return false;
|
|
11013
|
+
}
|
|
11014
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
|
|
11015
|
+
return true;
|
|
11016
|
+
}
|
|
11017
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
|
|
11018
|
+
return true;
|
|
11019
|
+
}
|
|
11020
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
|
|
11021
|
+
return true;
|
|
11022
|
+
}
|
|
11023
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
|
|
11024
|
+
return true;
|
|
11025
|
+
}
|
|
11026
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
|
|
11027
|
+
return true;
|
|
11028
|
+
}
|
|
11029
|
+
return false;
|
|
11030
|
+
}
|
|
11031
|
+
};
|
|
11032
|
+
module2.exports = Comparator;
|
|
11033
|
+
var parseOptions = require_parse_options2();
|
|
11034
|
+
var { safeRe: re, t } = require_re2();
|
|
11035
|
+
var cmp = require_cmp2();
|
|
11036
|
+
var debug2 = require_debug2();
|
|
11037
|
+
var SemVer = require_semver3();
|
|
11038
|
+
var Range = require_range2();
|
|
11039
|
+
}
|
|
11040
|
+
});
|
|
11041
|
+
|
|
11042
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.js
|
|
11043
|
+
var require_satisfies2 = __commonJS({
|
|
11044
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.js"(exports2, module2) {
|
|
11045
|
+
"use strict";
|
|
11046
|
+
init_cjs_shims();
|
|
11047
|
+
var Range = require_range2();
|
|
11048
|
+
var satisfies = (version, range, options) => {
|
|
11049
|
+
try {
|
|
11050
|
+
range = new Range(range, options);
|
|
11051
|
+
} catch (er) {
|
|
11052
|
+
return false;
|
|
11053
|
+
}
|
|
11054
|
+
return range.test(version);
|
|
11055
|
+
};
|
|
11056
|
+
module2.exports = satisfies;
|
|
11057
|
+
}
|
|
11058
|
+
});
|
|
11059
|
+
|
|
11060
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.js
|
|
11061
|
+
var require_to_comparators2 = __commonJS({
|
|
11062
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.js"(exports2, module2) {
|
|
11063
|
+
"use strict";
|
|
11064
|
+
init_cjs_shims();
|
|
11065
|
+
var Range = require_range2();
|
|
11066
|
+
var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
11067
|
+
module2.exports = toComparators;
|
|
11068
|
+
}
|
|
11069
|
+
});
|
|
11070
|
+
|
|
11071
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.js
|
|
11072
|
+
var require_max_satisfying2 = __commonJS({
|
|
11073
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.js"(exports2, module2) {
|
|
11074
|
+
"use strict";
|
|
11075
|
+
init_cjs_shims();
|
|
11076
|
+
var SemVer = require_semver3();
|
|
11077
|
+
var Range = require_range2();
|
|
11078
|
+
var maxSatisfying = (versions, range, options) => {
|
|
11079
|
+
let max = null;
|
|
11080
|
+
let maxSV = null;
|
|
11081
|
+
let rangeObj = null;
|
|
11082
|
+
try {
|
|
11083
|
+
rangeObj = new Range(range, options);
|
|
11084
|
+
} catch (er) {
|
|
11085
|
+
return null;
|
|
11086
|
+
}
|
|
11087
|
+
versions.forEach((v) => {
|
|
11088
|
+
if (rangeObj.test(v)) {
|
|
11089
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
11090
|
+
max = v;
|
|
11091
|
+
maxSV = new SemVer(max, options);
|
|
11092
|
+
}
|
|
11093
|
+
}
|
|
11094
|
+
});
|
|
11095
|
+
return max;
|
|
11096
|
+
};
|
|
11097
|
+
module2.exports = maxSatisfying;
|
|
11098
|
+
}
|
|
11099
|
+
});
|
|
11100
|
+
|
|
11101
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.js
|
|
11102
|
+
var require_min_satisfying2 = __commonJS({
|
|
11103
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.js"(exports2, module2) {
|
|
11104
|
+
"use strict";
|
|
11105
|
+
init_cjs_shims();
|
|
11106
|
+
var SemVer = require_semver3();
|
|
11107
|
+
var Range = require_range2();
|
|
11108
|
+
var minSatisfying = (versions, range, options) => {
|
|
11109
|
+
let min = null;
|
|
11110
|
+
let minSV = null;
|
|
11111
|
+
let rangeObj = null;
|
|
11112
|
+
try {
|
|
11113
|
+
rangeObj = new Range(range, options);
|
|
11114
|
+
} catch (er) {
|
|
11115
|
+
return null;
|
|
11116
|
+
}
|
|
11117
|
+
versions.forEach((v) => {
|
|
11118
|
+
if (rangeObj.test(v)) {
|
|
11119
|
+
if (!min || minSV.compare(v) === 1) {
|
|
11120
|
+
min = v;
|
|
11121
|
+
minSV = new SemVer(min, options);
|
|
11122
|
+
}
|
|
11123
|
+
}
|
|
11124
|
+
});
|
|
11125
|
+
return min;
|
|
11126
|
+
};
|
|
11127
|
+
module2.exports = minSatisfying;
|
|
11128
|
+
}
|
|
11129
|
+
});
|
|
11130
|
+
|
|
11131
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.js
|
|
11132
|
+
var require_min_version2 = __commonJS({
|
|
11133
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.js"(exports2, module2) {
|
|
11134
|
+
"use strict";
|
|
11135
|
+
init_cjs_shims();
|
|
11136
|
+
var SemVer = require_semver3();
|
|
11137
|
+
var Range = require_range2();
|
|
11138
|
+
var gt = require_gt2();
|
|
11139
|
+
var minVersion = (range, loose) => {
|
|
11140
|
+
range = new Range(range, loose);
|
|
11141
|
+
let minver = new SemVer("0.0.0");
|
|
11142
|
+
if (range.test(minver)) {
|
|
11143
|
+
return minver;
|
|
11144
|
+
}
|
|
11145
|
+
minver = new SemVer("0.0.0-0");
|
|
11146
|
+
if (range.test(minver)) {
|
|
11147
|
+
return minver;
|
|
11148
|
+
}
|
|
11149
|
+
minver = null;
|
|
11150
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
11151
|
+
const comparators = range.set[i];
|
|
11152
|
+
let setMin = null;
|
|
11153
|
+
comparators.forEach((comparator) => {
|
|
11154
|
+
const compver = new SemVer(comparator.semver.version);
|
|
11155
|
+
switch (comparator.operator) {
|
|
11156
|
+
case ">":
|
|
11157
|
+
if (compver.prerelease.length === 0) {
|
|
11158
|
+
compver.patch++;
|
|
11159
|
+
} else {
|
|
11160
|
+
compver.prerelease.push(0);
|
|
11161
|
+
}
|
|
11162
|
+
compver.raw = compver.format();
|
|
11163
|
+
/* fallthrough */
|
|
11164
|
+
case "":
|
|
11165
|
+
case ">=":
|
|
11166
|
+
if (!setMin || gt(compver, setMin)) {
|
|
11167
|
+
setMin = compver;
|
|
11168
|
+
}
|
|
11169
|
+
break;
|
|
11170
|
+
case "<":
|
|
11171
|
+
case "<=":
|
|
11172
|
+
break;
|
|
11173
|
+
/* istanbul ignore next */
|
|
11174
|
+
default:
|
|
11175
|
+
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
11176
|
+
}
|
|
11177
|
+
});
|
|
11178
|
+
if (setMin && (!minver || gt(minver, setMin))) {
|
|
11179
|
+
minver = setMin;
|
|
11180
|
+
}
|
|
11181
|
+
}
|
|
11182
|
+
if (minver && range.test(minver)) {
|
|
11183
|
+
return minver;
|
|
11184
|
+
}
|
|
11185
|
+
return null;
|
|
11186
|
+
};
|
|
11187
|
+
module2.exports = minVersion;
|
|
11188
|
+
}
|
|
11189
|
+
});
|
|
11190
|
+
|
|
11191
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.js
|
|
11192
|
+
var require_valid4 = __commonJS({
|
|
11193
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.js"(exports2, module2) {
|
|
11194
|
+
"use strict";
|
|
11195
|
+
init_cjs_shims();
|
|
11196
|
+
var Range = require_range2();
|
|
11197
|
+
var validRange = (range, options) => {
|
|
11198
|
+
try {
|
|
11199
|
+
return new Range(range, options).range || "*";
|
|
11200
|
+
} catch (er) {
|
|
11201
|
+
return null;
|
|
11202
|
+
}
|
|
11203
|
+
};
|
|
11204
|
+
module2.exports = validRange;
|
|
11205
|
+
}
|
|
11206
|
+
});
|
|
11207
|
+
|
|
11208
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.js
|
|
11209
|
+
var require_outside2 = __commonJS({
|
|
11210
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.js"(exports2, module2) {
|
|
11211
|
+
"use strict";
|
|
11212
|
+
init_cjs_shims();
|
|
11213
|
+
var SemVer = require_semver3();
|
|
11214
|
+
var Comparator = require_comparator2();
|
|
11215
|
+
var { ANY } = Comparator;
|
|
11216
|
+
var Range = require_range2();
|
|
11217
|
+
var satisfies = require_satisfies2();
|
|
11218
|
+
var gt = require_gt2();
|
|
11219
|
+
var lt = require_lt2();
|
|
11220
|
+
var lte = require_lte2();
|
|
11221
|
+
var gte = require_gte2();
|
|
11222
|
+
var outside = (version, range, hilo, options) => {
|
|
11223
|
+
version = new SemVer(version, options);
|
|
11224
|
+
range = new Range(range, options);
|
|
11225
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
11226
|
+
switch (hilo) {
|
|
11227
|
+
case ">":
|
|
11228
|
+
gtfn = gt;
|
|
11229
|
+
ltefn = lte;
|
|
11230
|
+
ltfn = lt;
|
|
11231
|
+
comp = ">";
|
|
11232
|
+
ecomp = ">=";
|
|
11233
|
+
break;
|
|
11234
|
+
case "<":
|
|
11235
|
+
gtfn = lt;
|
|
11236
|
+
ltefn = gte;
|
|
11237
|
+
ltfn = gt;
|
|
11238
|
+
comp = "<";
|
|
11239
|
+
ecomp = "<=";
|
|
11240
|
+
break;
|
|
11241
|
+
default:
|
|
11242
|
+
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
11243
|
+
}
|
|
11244
|
+
if (satisfies(version, range, options)) {
|
|
11245
|
+
return false;
|
|
11246
|
+
}
|
|
11247
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
11248
|
+
const comparators = range.set[i];
|
|
11249
|
+
let high = null;
|
|
11250
|
+
let low = null;
|
|
11251
|
+
comparators.forEach((comparator) => {
|
|
11252
|
+
if (comparator.semver === ANY) {
|
|
11253
|
+
comparator = new Comparator(">=0.0.0");
|
|
11254
|
+
}
|
|
11255
|
+
high = high || comparator;
|
|
11256
|
+
low = low || comparator;
|
|
11257
|
+
if (gtfn(comparator.semver, high.semver, options)) {
|
|
11258
|
+
high = comparator;
|
|
11259
|
+
} else if (ltfn(comparator.semver, low.semver, options)) {
|
|
11260
|
+
low = comparator;
|
|
11261
|
+
}
|
|
11262
|
+
});
|
|
11263
|
+
if (high.operator === comp || high.operator === ecomp) {
|
|
11264
|
+
return false;
|
|
11265
|
+
}
|
|
11266
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) {
|
|
11267
|
+
return false;
|
|
11268
|
+
} else if (low.operator === ecomp && ltfn(version, low.semver)) {
|
|
11269
|
+
return false;
|
|
11270
|
+
}
|
|
11271
|
+
}
|
|
11272
|
+
return true;
|
|
11273
|
+
};
|
|
11274
|
+
module2.exports = outside;
|
|
11275
|
+
}
|
|
11276
|
+
});
|
|
11277
|
+
|
|
11278
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.js
|
|
11279
|
+
var require_gtr2 = __commonJS({
|
|
11280
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.js"(exports2, module2) {
|
|
11281
|
+
"use strict";
|
|
11282
|
+
init_cjs_shims();
|
|
11283
|
+
var outside = require_outside2();
|
|
11284
|
+
var gtr = (version, range, options) => outside(version, range, ">", options);
|
|
11285
|
+
module2.exports = gtr;
|
|
11286
|
+
}
|
|
11287
|
+
});
|
|
11288
|
+
|
|
11289
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.js
|
|
11290
|
+
var require_ltr2 = __commonJS({
|
|
11291
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.js"(exports2, module2) {
|
|
11292
|
+
"use strict";
|
|
11293
|
+
init_cjs_shims();
|
|
11294
|
+
var outside = require_outside2();
|
|
11295
|
+
var ltr = (version, range, options) => outside(version, range, "<", options);
|
|
11296
|
+
module2.exports = ltr;
|
|
11297
|
+
}
|
|
11298
|
+
});
|
|
11299
|
+
|
|
11300
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.js
|
|
11301
|
+
var require_intersects2 = __commonJS({
|
|
11302
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.js"(exports2, module2) {
|
|
11303
|
+
"use strict";
|
|
11304
|
+
init_cjs_shims();
|
|
11305
|
+
var Range = require_range2();
|
|
11306
|
+
var intersects = (r1, r2, options) => {
|
|
11307
|
+
r1 = new Range(r1, options);
|
|
11308
|
+
r2 = new Range(r2, options);
|
|
11309
|
+
return r1.intersects(r2, options);
|
|
11310
|
+
};
|
|
11311
|
+
module2.exports = intersects;
|
|
11312
|
+
}
|
|
11313
|
+
});
|
|
11314
|
+
|
|
11315
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.js
|
|
11316
|
+
var require_simplify2 = __commonJS({
|
|
11317
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.js"(exports2, module2) {
|
|
11318
|
+
"use strict";
|
|
11319
|
+
init_cjs_shims();
|
|
11320
|
+
var satisfies = require_satisfies2();
|
|
11321
|
+
var compare = require_compare2();
|
|
11322
|
+
module2.exports = (versions, range, options) => {
|
|
11323
|
+
const set = [];
|
|
11324
|
+
let first = null;
|
|
11325
|
+
let prev = null;
|
|
11326
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
11327
|
+
for (const version of v) {
|
|
11328
|
+
const included = satisfies(version, range, options);
|
|
11329
|
+
if (included) {
|
|
11330
|
+
prev = version;
|
|
11331
|
+
if (!first) {
|
|
11332
|
+
first = version;
|
|
11333
|
+
}
|
|
11334
|
+
} else {
|
|
11335
|
+
if (prev) {
|
|
11336
|
+
set.push([first, prev]);
|
|
11337
|
+
}
|
|
11338
|
+
prev = null;
|
|
11339
|
+
first = null;
|
|
11340
|
+
}
|
|
11341
|
+
}
|
|
11342
|
+
if (first) {
|
|
11343
|
+
set.push([first, null]);
|
|
11344
|
+
}
|
|
11345
|
+
const ranges = [];
|
|
11346
|
+
for (const [min, max] of set) {
|
|
11347
|
+
if (min === max) {
|
|
11348
|
+
ranges.push(min);
|
|
11349
|
+
} else if (!max && min === v[0]) {
|
|
11350
|
+
ranges.push("*");
|
|
11351
|
+
} else if (!max) {
|
|
11352
|
+
ranges.push(`>=${min}`);
|
|
11353
|
+
} else if (min === v[0]) {
|
|
11354
|
+
ranges.push(`<=${max}`);
|
|
11355
|
+
} else {
|
|
11356
|
+
ranges.push(`${min} - ${max}`);
|
|
11357
|
+
}
|
|
11358
|
+
}
|
|
11359
|
+
const simplified = ranges.join(" || ");
|
|
11360
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
11361
|
+
return simplified.length < original.length ? simplified : range;
|
|
11362
|
+
};
|
|
11363
|
+
}
|
|
11364
|
+
});
|
|
11365
|
+
|
|
11366
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.js
|
|
11367
|
+
var require_subset2 = __commonJS({
|
|
11368
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.js"(exports2, module2) {
|
|
11369
|
+
"use strict";
|
|
11370
|
+
init_cjs_shims();
|
|
11371
|
+
var Range = require_range2();
|
|
11372
|
+
var Comparator = require_comparator2();
|
|
11373
|
+
var { ANY } = Comparator;
|
|
11374
|
+
var satisfies = require_satisfies2();
|
|
11375
|
+
var compare = require_compare2();
|
|
11376
|
+
var subset = (sub, dom, options = {}) => {
|
|
11377
|
+
if (sub === dom) {
|
|
11378
|
+
return true;
|
|
11379
|
+
}
|
|
11380
|
+
sub = new Range(sub, options);
|
|
11381
|
+
dom = new Range(dom, options);
|
|
11382
|
+
let sawNonNull = false;
|
|
11383
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
11384
|
+
for (const simpleDom of dom.set) {
|
|
11385
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
11386
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
11387
|
+
if (isSub) {
|
|
11388
|
+
continue OUTER;
|
|
11389
|
+
}
|
|
11390
|
+
}
|
|
11391
|
+
if (sawNonNull) {
|
|
11392
|
+
return false;
|
|
11393
|
+
}
|
|
11394
|
+
}
|
|
11395
|
+
return true;
|
|
11396
|
+
};
|
|
11397
|
+
var minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
11398
|
+
var minimumVersion = [new Comparator(">=0.0.0")];
|
|
11399
|
+
var simpleSubset = (sub, dom, options) => {
|
|
11400
|
+
if (sub === dom) {
|
|
11401
|
+
return true;
|
|
11402
|
+
}
|
|
11403
|
+
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
11404
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
11405
|
+
return true;
|
|
11406
|
+
} else if (options.includePrerelease) {
|
|
11407
|
+
sub = minimumVersionWithPreRelease;
|
|
11408
|
+
} else {
|
|
11409
|
+
sub = minimumVersion;
|
|
11410
|
+
}
|
|
11411
|
+
}
|
|
11412
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
11413
|
+
if (options.includePrerelease) {
|
|
11414
|
+
return true;
|
|
11415
|
+
} else {
|
|
11416
|
+
dom = minimumVersion;
|
|
11417
|
+
}
|
|
11418
|
+
}
|
|
11419
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
11420
|
+
let gt, lt;
|
|
11421
|
+
for (const c of sub) {
|
|
11422
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
11423
|
+
gt = higherGT(gt, c, options);
|
|
11424
|
+
} else if (c.operator === "<" || c.operator === "<=") {
|
|
11425
|
+
lt = lowerLT(lt, c, options);
|
|
11426
|
+
} else {
|
|
11427
|
+
eqSet.add(c.semver);
|
|
11428
|
+
}
|
|
11429
|
+
}
|
|
11430
|
+
if (eqSet.size > 1) {
|
|
11431
|
+
return null;
|
|
11432
|
+
}
|
|
11433
|
+
let gtltComp;
|
|
11434
|
+
if (gt && lt) {
|
|
11435
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
11436
|
+
if (gtltComp > 0) {
|
|
11437
|
+
return null;
|
|
11438
|
+
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
|
|
11439
|
+
return null;
|
|
11440
|
+
}
|
|
11441
|
+
}
|
|
11442
|
+
for (const eq of eqSet) {
|
|
11443
|
+
if (gt && !satisfies(eq, String(gt), options)) {
|
|
11444
|
+
return null;
|
|
11445
|
+
}
|
|
11446
|
+
if (lt && !satisfies(eq, String(lt), options)) {
|
|
11447
|
+
return null;
|
|
11448
|
+
}
|
|
11449
|
+
for (const c of dom) {
|
|
11450
|
+
if (!satisfies(eq, String(c), options)) {
|
|
11451
|
+
return false;
|
|
11452
|
+
}
|
|
11453
|
+
}
|
|
11454
|
+
return true;
|
|
11455
|
+
}
|
|
11456
|
+
let higher, lower;
|
|
11457
|
+
let hasDomLT, hasDomGT;
|
|
11458
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
11459
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
11460
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) {
|
|
11461
|
+
needDomLTPre = false;
|
|
11462
|
+
}
|
|
11463
|
+
for (const c of dom) {
|
|
11464
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
11465
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
11466
|
+
if (gt) {
|
|
11467
|
+
if (needDomGTPre) {
|
|
11468
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) {
|
|
11469
|
+
needDomGTPre = false;
|
|
11470
|
+
}
|
|
11471
|
+
}
|
|
11472
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
11473
|
+
higher = higherGT(gt, c, options);
|
|
11474
|
+
if (higher === c && higher !== gt) {
|
|
11475
|
+
return false;
|
|
11476
|
+
}
|
|
11477
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) {
|
|
11478
|
+
return false;
|
|
11479
|
+
}
|
|
11480
|
+
}
|
|
11481
|
+
if (lt) {
|
|
11482
|
+
if (needDomLTPre) {
|
|
11483
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) {
|
|
11484
|
+
needDomLTPre = false;
|
|
11485
|
+
}
|
|
11486
|
+
}
|
|
11487
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
11488
|
+
lower = lowerLT(lt, c, options);
|
|
11489
|
+
if (lower === c && lower !== lt) {
|
|
11490
|
+
return false;
|
|
11491
|
+
}
|
|
11492
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) {
|
|
11493
|
+
return false;
|
|
11494
|
+
}
|
|
11495
|
+
}
|
|
11496
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) {
|
|
11497
|
+
return false;
|
|
11498
|
+
}
|
|
11499
|
+
}
|
|
11500
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) {
|
|
11501
|
+
return false;
|
|
11502
|
+
}
|
|
11503
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) {
|
|
11504
|
+
return false;
|
|
11505
|
+
}
|
|
11506
|
+
if (needDomGTPre || needDomLTPre) {
|
|
11507
|
+
return false;
|
|
11508
|
+
}
|
|
11509
|
+
return true;
|
|
11510
|
+
};
|
|
11511
|
+
var higherGT = (a, b, options) => {
|
|
11512
|
+
if (!a) {
|
|
11513
|
+
return b;
|
|
11514
|
+
}
|
|
11515
|
+
const comp = compare(a.semver, b.semver, options);
|
|
11516
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
11517
|
+
};
|
|
11518
|
+
var lowerLT = (a, b, options) => {
|
|
11519
|
+
if (!a) {
|
|
11520
|
+
return b;
|
|
11521
|
+
}
|
|
11522
|
+
const comp = compare(a.semver, b.semver, options);
|
|
11523
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
11524
|
+
};
|
|
11525
|
+
module2.exports = subset;
|
|
11526
|
+
}
|
|
11527
|
+
});
|
|
11528
|
+
|
|
11529
|
+
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.js
|
|
11530
|
+
var require_semver4 = __commonJS({
|
|
11531
|
+
"../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.js"(exports2, module2) {
|
|
11532
|
+
"use strict";
|
|
11533
|
+
init_cjs_shims();
|
|
11534
|
+
var internalRe = require_re2();
|
|
11535
|
+
var constants = require_constants2();
|
|
11536
|
+
var SemVer = require_semver3();
|
|
11537
|
+
var identifiers = require_identifiers2();
|
|
11538
|
+
var parse = require_parse2();
|
|
11539
|
+
var valid = require_valid3();
|
|
11540
|
+
var clean = require_clean2();
|
|
11541
|
+
var inc = require_inc2();
|
|
11542
|
+
var diff = require_diff2();
|
|
11543
|
+
var major2 = require_major2();
|
|
11544
|
+
var minor2 = require_minor2();
|
|
11545
|
+
var patch = require_patch2();
|
|
11546
|
+
var prerelease = require_prerelease2();
|
|
11547
|
+
var compare = require_compare2();
|
|
11548
|
+
var rcompare = require_rcompare2();
|
|
11549
|
+
var compareLoose = require_compare_loose2();
|
|
11550
|
+
var compareBuild = require_compare_build2();
|
|
11551
|
+
var sort = require_sort2();
|
|
11552
|
+
var rsort = require_rsort2();
|
|
11553
|
+
var gt = require_gt2();
|
|
11554
|
+
var lt = require_lt2();
|
|
11555
|
+
var eq = require_eq2();
|
|
11556
|
+
var neq = require_neq2();
|
|
11557
|
+
var gte = require_gte2();
|
|
11558
|
+
var lte = require_lte2();
|
|
11559
|
+
var cmp = require_cmp2();
|
|
11560
|
+
var coerce = require_coerce2();
|
|
11561
|
+
var Comparator = require_comparator2();
|
|
11562
|
+
var Range = require_range2();
|
|
11563
|
+
var satisfies = require_satisfies2();
|
|
11564
|
+
var toComparators = require_to_comparators2();
|
|
11565
|
+
var maxSatisfying = require_max_satisfying2();
|
|
11566
|
+
var minSatisfying = require_min_satisfying2();
|
|
11567
|
+
var minVersion = require_min_version2();
|
|
11568
|
+
var validRange = require_valid4();
|
|
11569
|
+
var outside = require_outside2();
|
|
11570
|
+
var gtr = require_gtr2();
|
|
11571
|
+
var ltr = require_ltr2();
|
|
11572
|
+
var intersects = require_intersects2();
|
|
11573
|
+
var simplifyRange = require_simplify2();
|
|
11574
|
+
var subset = require_subset2();
|
|
11575
|
+
module2.exports = {
|
|
11576
|
+
parse,
|
|
11577
|
+
valid,
|
|
11578
|
+
clean,
|
|
11579
|
+
inc,
|
|
11580
|
+
diff,
|
|
11581
|
+
major: major2,
|
|
11582
|
+
minor: minor2,
|
|
11583
|
+
patch,
|
|
11584
|
+
prerelease,
|
|
11585
|
+
compare,
|
|
11586
|
+
rcompare,
|
|
11587
|
+
compareLoose,
|
|
11588
|
+
compareBuild,
|
|
11589
|
+
sort,
|
|
11590
|
+
rsort,
|
|
11591
|
+
gt,
|
|
11592
|
+
lt,
|
|
11593
|
+
eq,
|
|
11594
|
+
neq,
|
|
11595
|
+
gte,
|
|
11596
|
+
lte,
|
|
11597
|
+
cmp,
|
|
11598
|
+
coerce,
|
|
11599
|
+
Comparator,
|
|
11600
|
+
Range,
|
|
11601
|
+
satisfies,
|
|
11602
|
+
toComparators,
|
|
11603
|
+
maxSatisfying,
|
|
11604
|
+
minSatisfying,
|
|
11605
|
+
minVersion,
|
|
11606
|
+
validRange,
|
|
11607
|
+
outside,
|
|
11608
|
+
gtr,
|
|
11609
|
+
ltr,
|
|
11610
|
+
intersects,
|
|
11611
|
+
simplifyRange,
|
|
11612
|
+
subset,
|
|
11613
|
+
SemVer,
|
|
11614
|
+
re: internalRe.re,
|
|
11615
|
+
src: internalRe.src,
|
|
11616
|
+
tokens: internalRe.t,
|
|
11617
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
11618
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
11619
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
11620
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
11621
|
+
};
|
|
11622
|
+
}
|
|
11623
|
+
});
|
|
11624
|
+
|
|
9650
11625
|
// ../../node_modules/.pnpm/ini@2.0.0/node_modules/ini/ini.js
|
|
9651
11626
|
var require_ini2 = __commonJS({
|
|
9652
11627
|
"../../node_modules/.pnpm/ini@2.0.0/node_modules/ini/ini.js"(exports2, module2) {
|
|
@@ -10712,8 +12687,10 @@ var import_runtime5 = require("@terai/runtime");
|
|
|
10712
12687
|
|
|
10713
12688
|
// ../logger/dist/index.mjs
|
|
10714
12689
|
init_cjs_shims();
|
|
12690
|
+
|
|
12691
|
+
// ../logger/dist/chunk-HH7ZIRTH.mjs
|
|
12692
|
+
init_cjs_shims();
|
|
10715
12693
|
var import_process = __toESM(require("process"), 1);
|
|
10716
|
-
var import_process2 = __toESM(require("process"), 1);
|
|
10717
12694
|
var import_os = __toESM(require("os"), 1);
|
|
10718
12695
|
var import_tty = __toESM(require("tty"), 1);
|
|
10719
12696
|
var ANSI_BACKGROUND_OFFSET = 10;
|
|
@@ -10780,10 +12757,10 @@ var styles = {
|
|
|
10780
12757
|
bgWhiteBright: [107, 49]
|
|
10781
12758
|
}
|
|
10782
12759
|
};
|
|
10783
|
-
|
|
12760
|
+
Object.keys(styles.modifier);
|
|
10784
12761
|
var foregroundColorNames = Object.keys(styles.color);
|
|
10785
12762
|
var backgroundColorNames = Object.keys(styles.bgColor);
|
|
10786
|
-
|
|
12763
|
+
[...foregroundColorNames, ...backgroundColorNames];
|
|
10787
12764
|
function assembleStyles() {
|
|
10788
12765
|
const codes = /* @__PURE__ */ new Map();
|
|
10789
12766
|
for (const [groupName, group] of Object.entries(styles)) {
|
|
@@ -10900,13 +12877,13 @@ function assembleStyles() {
|
|
|
10900
12877
|
}
|
|
10901
12878
|
var ansiStyles = assembleStyles();
|
|
10902
12879
|
var ansi_styles_default = ansiStyles;
|
|
10903
|
-
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args :
|
|
12880
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_process.default.argv) {
|
|
10904
12881
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
10905
12882
|
const position = argv.indexOf(prefix + flag);
|
|
10906
12883
|
const terminatorPosition = argv.indexOf("--");
|
|
10907
12884
|
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
10908
12885
|
}
|
|
10909
|
-
var { env } =
|
|
12886
|
+
var { env } = import_process.default;
|
|
10910
12887
|
var flagForceColor;
|
|
10911
12888
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
10912
12889
|
flagForceColor = 0;
|
|
@@ -10962,7 +12939,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
10962
12939
|
if (env.TERM === "dumb") {
|
|
10963
12940
|
return min;
|
|
10964
12941
|
}
|
|
10965
|
-
if (
|
|
12942
|
+
if (import_process.default.platform === "win32") {
|
|
10966
12943
|
const osRelease = import_os.default.release().split(".");
|
|
10967
12944
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
10968
12945
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
@@ -11198,7 +13175,7 @@ var applyStyle = (self, string) => {
|
|
|
11198
13175
|
};
|
|
11199
13176
|
Object.defineProperties(createChalk.prototype, styles2);
|
|
11200
13177
|
var chalk = createChalk();
|
|
11201
|
-
|
|
13178
|
+
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
11202
13179
|
var source_default = chalk;
|
|
11203
13180
|
function log(message) {
|
|
11204
13181
|
return import_process.default.stdout.write(`${message}
|
|
@@ -11581,10 +13558,10 @@ var styles3 = {
|
|
|
11581
13558
|
bgWhiteBright: [107, 49]
|
|
11582
13559
|
}
|
|
11583
13560
|
};
|
|
11584
|
-
var
|
|
13561
|
+
var modifierNames = Object.keys(styles3.modifier);
|
|
11585
13562
|
var foregroundColorNames2 = Object.keys(styles3.color);
|
|
11586
13563
|
var backgroundColorNames2 = Object.keys(styles3.bgColor);
|
|
11587
|
-
var
|
|
13564
|
+
var colorNames = [...foregroundColorNames2, ...backgroundColorNames2];
|
|
11588
13565
|
function assembleStyles2() {
|
|
11589
13566
|
const codes = /* @__PURE__ */ new Map();
|
|
11590
13567
|
for (const [groupName, group] of Object.entries(styles3)) {
|
|
@@ -12010,7 +13987,7 @@ var applyStyle2 = (self, string) => {
|
|
|
12010
13987
|
};
|
|
12011
13988
|
Object.defineProperties(createChalk2.prototype, styles4);
|
|
12012
13989
|
var chalk2 = createChalk2();
|
|
12013
|
-
var
|
|
13990
|
+
var chalkStderr = createChalk2({ level: stderrColor2 ? stderrColor2.level : 0 });
|
|
12014
13991
|
var source_default2 = chalk2;
|
|
12015
13992
|
|
|
12016
13993
|
// ../../node_modules/.pnpm/update-notifier@6.0.2/node_modules/update-notifier/update-notifier.js
|
|
@@ -17276,7 +19253,7 @@ function registryUrl(scope) {
|
|
|
17276
19253
|
|
|
17277
19254
|
// ../../node_modules/.pnpm/package-json@8.1.1/node_modules/package-json/index.js
|
|
17278
19255
|
var import_registry_auth_token = __toESM(require_registry_auth_token(), 1);
|
|
17279
|
-
var import_semver2 = __toESM(
|
|
19256
|
+
var import_semver2 = __toESM(require_semver4(), 1);
|
|
17280
19257
|
var agentOptions = {
|
|
17281
19258
|
keepAlive: true,
|
|
17282
19259
|
maxSockets: 50
|
|
@@ -17639,10 +19616,10 @@ var styles5 = {
|
|
|
17639
19616
|
bgWhiteBright: [107, 49]
|
|
17640
19617
|
}
|
|
17641
19618
|
};
|
|
17642
|
-
var
|
|
19619
|
+
var modifierNames2 = Object.keys(styles5.modifier);
|
|
17643
19620
|
var foregroundColorNames3 = Object.keys(styles5.color);
|
|
17644
19621
|
var backgroundColorNames3 = Object.keys(styles5.bgColor);
|
|
17645
|
-
var
|
|
19622
|
+
var colorNames2 = [...foregroundColorNames3, ...backgroundColorNames3];
|
|
17646
19623
|
function assembleStyles3() {
|
|
17647
19624
|
const codes = /* @__PURE__ */ new Map();
|
|
17648
19625
|
for (const [groupName, group] of Object.entries(styles5)) {
|
|
@@ -18399,7 +20376,7 @@ function updateNotifier(options) {
|
|
|
18399
20376
|
// package.json
|
|
18400
20377
|
var package_default = {
|
|
18401
20378
|
name: "@terai/dev",
|
|
18402
|
-
version: "0.0.
|
|
20379
|
+
version: "0.0.9",
|
|
18403
20380
|
description: "The user-facing package for Terai",
|
|
18404
20381
|
main: "dist/index.js",
|
|
18405
20382
|
module: "dist/index.mjs",
|
|
@@ -18649,6 +20626,9 @@ var import_extractor = require("@terai/extractor");
|
|
|
18649
20626
|
|
|
18650
20627
|
// ../generator/dist/index.mjs
|
|
18651
20628
|
init_cjs_shims();
|
|
20629
|
+
|
|
20630
|
+
// ../generator/dist/chunk-N4N3TZO6.mjs
|
|
20631
|
+
init_cjs_shims();
|
|
18652
20632
|
var import_runtime2 = require("@terai/runtime");
|
|
18653
20633
|
var import_utils = require("@terai/utils");
|
|
18654
20634
|
async function generate({
|