@yamada-ui/cli 1.0.2 → 1.0.3-dev-20240303100548
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/README.md +2 -2
- package/dist/command/colors/index.js +2 -2
- package/dist/command/tokens/create-theme-typings.js +2 -2
- package/dist/command/tokens/index.js +2 -2
- package/dist/index.js +1881 -5
- package/dist/utils/cli.js +1881 -5
- package/dist/utils/index.js +1881 -5
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -33,10 +33,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
));
|
|
34
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@8.0.
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@8.0.2_typescript@5.3.3/node_modules/tsup/assets/cjs_shims.js
|
|
37
37
|
var getImportMetaUrl, importMetaUrl;
|
|
38
38
|
var init_cjs_shims = __esm({
|
|
39
|
-
"../../node_modules/.pnpm/tsup@8.0.
|
|
39
|
+
"../../node_modules/.pnpm/tsup@8.0.2_typescript@5.3.3/node_modules/tsup/assets/cjs_shims.js"() {
|
|
40
40
|
"use strict";
|
|
41
41
|
getImportMetaUrl = () => typeof document === "undefined" ? new URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
42
42
|
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
@@ -9729,6 +9729,1882 @@ var require_registry_auth_token = __commonJS({
|
|
|
9729
9729
|
}
|
|
9730
9730
|
});
|
|
9731
9731
|
|
|
9732
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/constants.js
|
|
9733
|
+
var require_constants2 = __commonJS({
|
|
9734
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/constants.js"(exports2, module2) {
|
|
9735
|
+
"use strict";
|
|
9736
|
+
init_cjs_shims();
|
|
9737
|
+
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
9738
|
+
var MAX_LENGTH = 256;
|
|
9739
|
+
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
9740
|
+
9007199254740991;
|
|
9741
|
+
var MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
9742
|
+
var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
9743
|
+
var RELEASE_TYPES = [
|
|
9744
|
+
"major",
|
|
9745
|
+
"premajor",
|
|
9746
|
+
"minor",
|
|
9747
|
+
"preminor",
|
|
9748
|
+
"patch",
|
|
9749
|
+
"prepatch",
|
|
9750
|
+
"prerelease"
|
|
9751
|
+
];
|
|
9752
|
+
module2.exports = {
|
|
9753
|
+
MAX_LENGTH,
|
|
9754
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
9755
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
9756
|
+
MAX_SAFE_INTEGER,
|
|
9757
|
+
RELEASE_TYPES,
|
|
9758
|
+
SEMVER_SPEC_VERSION,
|
|
9759
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
9760
|
+
FLAG_LOOSE: 2
|
|
9761
|
+
};
|
|
9762
|
+
}
|
|
9763
|
+
});
|
|
9764
|
+
|
|
9765
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/debug.js
|
|
9766
|
+
var require_debug2 = __commonJS({
|
|
9767
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/debug.js"(exports2, module2) {
|
|
9768
|
+
"use strict";
|
|
9769
|
+
init_cjs_shims();
|
|
9770
|
+
var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
9771
|
+
};
|
|
9772
|
+
module2.exports = debug;
|
|
9773
|
+
}
|
|
9774
|
+
});
|
|
9775
|
+
|
|
9776
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/re.js
|
|
9777
|
+
var require_re2 = __commonJS({
|
|
9778
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/re.js"(exports2, module2) {
|
|
9779
|
+
"use strict";
|
|
9780
|
+
init_cjs_shims();
|
|
9781
|
+
var {
|
|
9782
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
9783
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
9784
|
+
MAX_LENGTH
|
|
9785
|
+
} = require_constants2();
|
|
9786
|
+
var debug = require_debug2();
|
|
9787
|
+
exports2 = module2.exports = {};
|
|
9788
|
+
var re = exports2.re = [];
|
|
9789
|
+
var safeRe = exports2.safeRe = [];
|
|
9790
|
+
var src = exports2.src = [];
|
|
9791
|
+
var t = exports2.t = {};
|
|
9792
|
+
var R = 0;
|
|
9793
|
+
var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
9794
|
+
var safeRegexReplacements = [
|
|
9795
|
+
["\\s", 1],
|
|
9796
|
+
["\\d", MAX_LENGTH],
|
|
9797
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
9798
|
+
];
|
|
9799
|
+
var makeSafeRegex = (value) => {
|
|
9800
|
+
for (const [token, max] of safeRegexReplacements) {
|
|
9801
|
+
value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
9802
|
+
}
|
|
9803
|
+
return value;
|
|
9804
|
+
};
|
|
9805
|
+
var createToken = (name, value, isGlobal) => {
|
|
9806
|
+
const safe = makeSafeRegex(value);
|
|
9807
|
+
const index = R++;
|
|
9808
|
+
debug(name, index, value);
|
|
9809
|
+
t[name] = index;
|
|
9810
|
+
src[index] = value;
|
|
9811
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
9812
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
9813
|
+
};
|
|
9814
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
9815
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
9816
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
9817
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
9818
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
9819
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
9820
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
9821
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
9822
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
9823
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
9824
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
9825
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
9826
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
9827
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
9828
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
9829
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
9830
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
9831
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
9832
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
9833
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
9834
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
9835
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
9836
|
+
createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
9837
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
9838
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
9839
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
9840
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
9841
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
9842
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
9843
|
+
exports2.tildeTrimReplace = "$1~";
|
|
9844
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
9845
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
9846
|
+
createToken("LONECARET", "(?:\\^)");
|
|
9847
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
9848
|
+
exports2.caretTrimReplace = "$1^";
|
|
9849
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
9850
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
9851
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
9852
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
9853
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
9854
|
+
exports2.comparatorTrimReplace = "$1$2$3";
|
|
9855
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
9856
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
9857
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
9858
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
9859
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
9860
|
+
}
|
|
9861
|
+
});
|
|
9862
|
+
|
|
9863
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/parse-options.js
|
|
9864
|
+
var require_parse_options2 = __commonJS({
|
|
9865
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/parse-options.js"(exports2, module2) {
|
|
9866
|
+
"use strict";
|
|
9867
|
+
init_cjs_shims();
|
|
9868
|
+
var looseOption = Object.freeze({ loose: true });
|
|
9869
|
+
var emptyOpts = Object.freeze({});
|
|
9870
|
+
var parseOptions = (options) => {
|
|
9871
|
+
if (!options) {
|
|
9872
|
+
return emptyOpts;
|
|
9873
|
+
}
|
|
9874
|
+
if (typeof options !== "object") {
|
|
9875
|
+
return looseOption;
|
|
9876
|
+
}
|
|
9877
|
+
return options;
|
|
9878
|
+
};
|
|
9879
|
+
module2.exports = parseOptions;
|
|
9880
|
+
}
|
|
9881
|
+
});
|
|
9882
|
+
|
|
9883
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/identifiers.js
|
|
9884
|
+
var require_identifiers2 = __commonJS({
|
|
9885
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/identifiers.js"(exports2, module2) {
|
|
9886
|
+
"use strict";
|
|
9887
|
+
init_cjs_shims();
|
|
9888
|
+
var numeric = /^[0-9]+$/;
|
|
9889
|
+
var compareIdentifiers = (a, b) => {
|
|
9890
|
+
const anum = numeric.test(a);
|
|
9891
|
+
const bnum = numeric.test(b);
|
|
9892
|
+
if (anum && bnum) {
|
|
9893
|
+
a = +a;
|
|
9894
|
+
b = +b;
|
|
9895
|
+
}
|
|
9896
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
9897
|
+
};
|
|
9898
|
+
var rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
9899
|
+
module2.exports = {
|
|
9900
|
+
compareIdentifiers,
|
|
9901
|
+
rcompareIdentifiers
|
|
9902
|
+
};
|
|
9903
|
+
}
|
|
9904
|
+
});
|
|
9905
|
+
|
|
9906
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/classes/semver.js
|
|
9907
|
+
var require_semver3 = __commonJS({
|
|
9908
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/classes/semver.js"(exports2, module2) {
|
|
9909
|
+
"use strict";
|
|
9910
|
+
init_cjs_shims();
|
|
9911
|
+
var debug = require_debug2();
|
|
9912
|
+
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants2();
|
|
9913
|
+
var { safeRe: re, t } = require_re2();
|
|
9914
|
+
var parseOptions = require_parse_options2();
|
|
9915
|
+
var { compareIdentifiers } = require_identifiers2();
|
|
9916
|
+
var SemVer = class _SemVer {
|
|
9917
|
+
constructor(version, options) {
|
|
9918
|
+
options = parseOptions(options);
|
|
9919
|
+
if (version instanceof _SemVer) {
|
|
9920
|
+
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
9921
|
+
return version;
|
|
9922
|
+
} else {
|
|
9923
|
+
version = version.version;
|
|
9924
|
+
}
|
|
9925
|
+
} else if (typeof version !== "string") {
|
|
9926
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
9927
|
+
}
|
|
9928
|
+
if (version.length > MAX_LENGTH) {
|
|
9929
|
+
throw new TypeError(
|
|
9930
|
+
`version is longer than ${MAX_LENGTH} characters`
|
|
9931
|
+
);
|
|
9932
|
+
}
|
|
9933
|
+
debug("SemVer", version, options);
|
|
9934
|
+
this.options = options;
|
|
9935
|
+
this.loose = !!options.loose;
|
|
9936
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
9937
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
9938
|
+
if (!m) {
|
|
9939
|
+
throw new TypeError(`Invalid Version: ${version}`);
|
|
9940
|
+
}
|
|
9941
|
+
this.raw = version;
|
|
9942
|
+
this.major = +m[1];
|
|
9943
|
+
this.minor = +m[2];
|
|
9944
|
+
this.patch = +m[3];
|
|
9945
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
|
9946
|
+
throw new TypeError("Invalid major version");
|
|
9947
|
+
}
|
|
9948
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
|
9949
|
+
throw new TypeError("Invalid minor version");
|
|
9950
|
+
}
|
|
9951
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
|
9952
|
+
throw new TypeError("Invalid patch version");
|
|
9953
|
+
}
|
|
9954
|
+
if (!m[4]) {
|
|
9955
|
+
this.prerelease = [];
|
|
9956
|
+
} else {
|
|
9957
|
+
this.prerelease = m[4].split(".").map((id) => {
|
|
9958
|
+
if (/^[0-9]+$/.test(id)) {
|
|
9959
|
+
const num = +id;
|
|
9960
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) {
|
|
9961
|
+
return num;
|
|
9962
|
+
}
|
|
9963
|
+
}
|
|
9964
|
+
return id;
|
|
9965
|
+
});
|
|
9966
|
+
}
|
|
9967
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
9968
|
+
this.format();
|
|
9969
|
+
}
|
|
9970
|
+
format() {
|
|
9971
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
9972
|
+
if (this.prerelease.length) {
|
|
9973
|
+
this.version += `-${this.prerelease.join(".")}`;
|
|
9974
|
+
}
|
|
9975
|
+
return this.version;
|
|
9976
|
+
}
|
|
9977
|
+
toString() {
|
|
9978
|
+
return this.version;
|
|
9979
|
+
}
|
|
9980
|
+
compare(other) {
|
|
9981
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
9982
|
+
if (!(other instanceof _SemVer)) {
|
|
9983
|
+
if (typeof other === "string" && other === this.version) {
|
|
9984
|
+
return 0;
|
|
9985
|
+
}
|
|
9986
|
+
other = new _SemVer(other, this.options);
|
|
9987
|
+
}
|
|
9988
|
+
if (other.version === this.version) {
|
|
9989
|
+
return 0;
|
|
9990
|
+
}
|
|
9991
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
9992
|
+
}
|
|
9993
|
+
compareMain(other) {
|
|
9994
|
+
if (!(other instanceof _SemVer)) {
|
|
9995
|
+
other = new _SemVer(other, this.options);
|
|
9996
|
+
}
|
|
9997
|
+
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
9998
|
+
}
|
|
9999
|
+
comparePre(other) {
|
|
10000
|
+
if (!(other instanceof _SemVer)) {
|
|
10001
|
+
other = new _SemVer(other, this.options);
|
|
10002
|
+
}
|
|
10003
|
+
if (this.prerelease.length && !other.prerelease.length) {
|
|
10004
|
+
return -1;
|
|
10005
|
+
} else if (!this.prerelease.length && other.prerelease.length) {
|
|
10006
|
+
return 1;
|
|
10007
|
+
} else if (!this.prerelease.length && !other.prerelease.length) {
|
|
10008
|
+
return 0;
|
|
10009
|
+
}
|
|
10010
|
+
let i = 0;
|
|
10011
|
+
do {
|
|
10012
|
+
const a = this.prerelease[i];
|
|
10013
|
+
const b = other.prerelease[i];
|
|
10014
|
+
debug("prerelease compare", i, a, b);
|
|
10015
|
+
if (a === void 0 && b === void 0) {
|
|
10016
|
+
return 0;
|
|
10017
|
+
} else if (b === void 0) {
|
|
10018
|
+
return 1;
|
|
10019
|
+
} else if (a === void 0) {
|
|
10020
|
+
return -1;
|
|
10021
|
+
} else if (a === b) {
|
|
10022
|
+
continue;
|
|
10023
|
+
} else {
|
|
10024
|
+
return compareIdentifiers(a, b);
|
|
10025
|
+
}
|
|
10026
|
+
} while (++i);
|
|
10027
|
+
}
|
|
10028
|
+
compareBuild(other) {
|
|
10029
|
+
if (!(other instanceof _SemVer)) {
|
|
10030
|
+
other = new _SemVer(other, this.options);
|
|
10031
|
+
}
|
|
10032
|
+
let i = 0;
|
|
10033
|
+
do {
|
|
10034
|
+
const a = this.build[i];
|
|
10035
|
+
const b = other.build[i];
|
|
10036
|
+
debug("prerelease compare", i, a, b);
|
|
10037
|
+
if (a === void 0 && b === void 0) {
|
|
10038
|
+
return 0;
|
|
10039
|
+
} else if (b === void 0) {
|
|
10040
|
+
return 1;
|
|
10041
|
+
} else if (a === void 0) {
|
|
10042
|
+
return -1;
|
|
10043
|
+
} else if (a === b) {
|
|
10044
|
+
continue;
|
|
10045
|
+
} else {
|
|
10046
|
+
return compareIdentifiers(a, b);
|
|
10047
|
+
}
|
|
10048
|
+
} while (++i);
|
|
10049
|
+
}
|
|
10050
|
+
// preminor will bump the version up to the next minor release, and immediately
|
|
10051
|
+
// down to pre-release. premajor and prepatch work the same way.
|
|
10052
|
+
inc(release, identifier, identifierBase) {
|
|
10053
|
+
switch (release) {
|
|
10054
|
+
case "premajor":
|
|
10055
|
+
this.prerelease.length = 0;
|
|
10056
|
+
this.patch = 0;
|
|
10057
|
+
this.minor = 0;
|
|
10058
|
+
this.major++;
|
|
10059
|
+
this.inc("pre", identifier, identifierBase);
|
|
10060
|
+
break;
|
|
10061
|
+
case "preminor":
|
|
10062
|
+
this.prerelease.length = 0;
|
|
10063
|
+
this.patch = 0;
|
|
10064
|
+
this.minor++;
|
|
10065
|
+
this.inc("pre", identifier, identifierBase);
|
|
10066
|
+
break;
|
|
10067
|
+
case "prepatch":
|
|
10068
|
+
this.prerelease.length = 0;
|
|
10069
|
+
this.inc("patch", identifier, identifierBase);
|
|
10070
|
+
this.inc("pre", identifier, identifierBase);
|
|
10071
|
+
break;
|
|
10072
|
+
case "prerelease":
|
|
10073
|
+
if (this.prerelease.length === 0) {
|
|
10074
|
+
this.inc("patch", identifier, identifierBase);
|
|
10075
|
+
}
|
|
10076
|
+
this.inc("pre", identifier, identifierBase);
|
|
10077
|
+
break;
|
|
10078
|
+
case "major":
|
|
10079
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
10080
|
+
this.major++;
|
|
10081
|
+
}
|
|
10082
|
+
this.minor = 0;
|
|
10083
|
+
this.patch = 0;
|
|
10084
|
+
this.prerelease = [];
|
|
10085
|
+
break;
|
|
10086
|
+
case "minor":
|
|
10087
|
+
if (this.patch !== 0 || this.prerelease.length === 0) {
|
|
10088
|
+
this.minor++;
|
|
10089
|
+
}
|
|
10090
|
+
this.patch = 0;
|
|
10091
|
+
this.prerelease = [];
|
|
10092
|
+
break;
|
|
10093
|
+
case "patch":
|
|
10094
|
+
if (this.prerelease.length === 0) {
|
|
10095
|
+
this.patch++;
|
|
10096
|
+
}
|
|
10097
|
+
this.prerelease = [];
|
|
10098
|
+
break;
|
|
10099
|
+
case "pre": {
|
|
10100
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
10101
|
+
if (!identifier && identifierBase === false) {
|
|
10102
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
10103
|
+
}
|
|
10104
|
+
if (this.prerelease.length === 0) {
|
|
10105
|
+
this.prerelease = [base];
|
|
10106
|
+
} else {
|
|
10107
|
+
let i = this.prerelease.length;
|
|
10108
|
+
while (--i >= 0) {
|
|
10109
|
+
if (typeof this.prerelease[i] === "number") {
|
|
10110
|
+
this.prerelease[i]++;
|
|
10111
|
+
i = -2;
|
|
10112
|
+
}
|
|
10113
|
+
}
|
|
10114
|
+
if (i === -1) {
|
|
10115
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) {
|
|
10116
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
10117
|
+
}
|
|
10118
|
+
this.prerelease.push(base);
|
|
10119
|
+
}
|
|
10120
|
+
}
|
|
10121
|
+
if (identifier) {
|
|
10122
|
+
let prerelease = [identifier, base];
|
|
10123
|
+
if (identifierBase === false) {
|
|
10124
|
+
prerelease = [identifier];
|
|
10125
|
+
}
|
|
10126
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
10127
|
+
if (isNaN(this.prerelease[1])) {
|
|
10128
|
+
this.prerelease = prerelease;
|
|
10129
|
+
}
|
|
10130
|
+
} else {
|
|
10131
|
+
this.prerelease = prerelease;
|
|
10132
|
+
}
|
|
10133
|
+
}
|
|
10134
|
+
break;
|
|
10135
|
+
}
|
|
10136
|
+
default:
|
|
10137
|
+
throw new Error(`invalid increment argument: ${release}`);
|
|
10138
|
+
}
|
|
10139
|
+
this.raw = this.format();
|
|
10140
|
+
if (this.build.length) {
|
|
10141
|
+
this.raw += `+${this.build.join(".")}`;
|
|
10142
|
+
}
|
|
10143
|
+
return this;
|
|
10144
|
+
}
|
|
10145
|
+
};
|
|
10146
|
+
module2.exports = SemVer;
|
|
10147
|
+
}
|
|
10148
|
+
});
|
|
10149
|
+
|
|
10150
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/parse.js
|
|
10151
|
+
var require_parse2 = __commonJS({
|
|
10152
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/parse.js"(exports2, module2) {
|
|
10153
|
+
"use strict";
|
|
10154
|
+
init_cjs_shims();
|
|
10155
|
+
var SemVer = require_semver3();
|
|
10156
|
+
var parse = (version, options, throwErrors = false) => {
|
|
10157
|
+
if (version instanceof SemVer) {
|
|
10158
|
+
return version;
|
|
10159
|
+
}
|
|
10160
|
+
try {
|
|
10161
|
+
return new SemVer(version, options);
|
|
10162
|
+
} catch (er) {
|
|
10163
|
+
if (!throwErrors) {
|
|
10164
|
+
return null;
|
|
10165
|
+
}
|
|
10166
|
+
throw er;
|
|
10167
|
+
}
|
|
10168
|
+
};
|
|
10169
|
+
module2.exports = parse;
|
|
10170
|
+
}
|
|
10171
|
+
});
|
|
10172
|
+
|
|
10173
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/valid.js
|
|
10174
|
+
var require_valid3 = __commonJS({
|
|
10175
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/valid.js"(exports2, module2) {
|
|
10176
|
+
"use strict";
|
|
10177
|
+
init_cjs_shims();
|
|
10178
|
+
var parse = require_parse2();
|
|
10179
|
+
var valid = (version, options) => {
|
|
10180
|
+
const v = parse(version, options);
|
|
10181
|
+
return v ? v.version : null;
|
|
10182
|
+
};
|
|
10183
|
+
module2.exports = valid;
|
|
10184
|
+
}
|
|
10185
|
+
});
|
|
10186
|
+
|
|
10187
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/clean.js
|
|
10188
|
+
var require_clean2 = __commonJS({
|
|
10189
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/clean.js"(exports2, module2) {
|
|
10190
|
+
"use strict";
|
|
10191
|
+
init_cjs_shims();
|
|
10192
|
+
var parse = require_parse2();
|
|
10193
|
+
var clean = (version, options) => {
|
|
10194
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
10195
|
+
return s ? s.version : null;
|
|
10196
|
+
};
|
|
10197
|
+
module2.exports = clean;
|
|
10198
|
+
}
|
|
10199
|
+
});
|
|
10200
|
+
|
|
10201
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/inc.js
|
|
10202
|
+
var require_inc2 = __commonJS({
|
|
10203
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/inc.js"(exports2, module2) {
|
|
10204
|
+
"use strict";
|
|
10205
|
+
init_cjs_shims();
|
|
10206
|
+
var SemVer = require_semver3();
|
|
10207
|
+
var inc = (version, release, options, identifier, identifierBase) => {
|
|
10208
|
+
if (typeof options === "string") {
|
|
10209
|
+
identifierBase = identifier;
|
|
10210
|
+
identifier = options;
|
|
10211
|
+
options = void 0;
|
|
10212
|
+
}
|
|
10213
|
+
try {
|
|
10214
|
+
return new SemVer(
|
|
10215
|
+
version instanceof SemVer ? version.version : version,
|
|
10216
|
+
options
|
|
10217
|
+
).inc(release, identifier, identifierBase).version;
|
|
10218
|
+
} catch (er) {
|
|
10219
|
+
return null;
|
|
10220
|
+
}
|
|
10221
|
+
};
|
|
10222
|
+
module2.exports = inc;
|
|
10223
|
+
}
|
|
10224
|
+
});
|
|
10225
|
+
|
|
10226
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/diff.js
|
|
10227
|
+
var require_diff2 = __commonJS({
|
|
10228
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/diff.js"(exports2, module2) {
|
|
10229
|
+
"use strict";
|
|
10230
|
+
init_cjs_shims();
|
|
10231
|
+
var parse = require_parse2();
|
|
10232
|
+
var diff = (version1, version2) => {
|
|
10233
|
+
const v1 = parse(version1, null, true);
|
|
10234
|
+
const v2 = parse(version2, null, true);
|
|
10235
|
+
const comparison = v1.compare(v2);
|
|
10236
|
+
if (comparison === 0) {
|
|
10237
|
+
return null;
|
|
10238
|
+
}
|
|
10239
|
+
const v1Higher = comparison > 0;
|
|
10240
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
10241
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
10242
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
10243
|
+
const lowHasPre = !!lowVersion.prerelease.length;
|
|
10244
|
+
if (lowHasPre && !highHasPre) {
|
|
10245
|
+
if (!lowVersion.patch && !lowVersion.minor) {
|
|
10246
|
+
return "major";
|
|
10247
|
+
}
|
|
10248
|
+
if (highVersion.patch) {
|
|
10249
|
+
return "patch";
|
|
10250
|
+
}
|
|
10251
|
+
if (highVersion.minor) {
|
|
10252
|
+
return "minor";
|
|
10253
|
+
}
|
|
10254
|
+
return "major";
|
|
10255
|
+
}
|
|
10256
|
+
const prefix = highHasPre ? "pre" : "";
|
|
10257
|
+
if (v1.major !== v2.major) {
|
|
10258
|
+
return prefix + "major";
|
|
10259
|
+
}
|
|
10260
|
+
if (v1.minor !== v2.minor) {
|
|
10261
|
+
return prefix + "minor";
|
|
10262
|
+
}
|
|
10263
|
+
if (v1.patch !== v2.patch) {
|
|
10264
|
+
return prefix + "patch";
|
|
10265
|
+
}
|
|
10266
|
+
return "prerelease";
|
|
10267
|
+
};
|
|
10268
|
+
module2.exports = diff;
|
|
10269
|
+
}
|
|
10270
|
+
});
|
|
10271
|
+
|
|
10272
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/major.js
|
|
10273
|
+
var require_major2 = __commonJS({
|
|
10274
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/major.js"(exports2, module2) {
|
|
10275
|
+
"use strict";
|
|
10276
|
+
init_cjs_shims();
|
|
10277
|
+
var SemVer = require_semver3();
|
|
10278
|
+
var major2 = (a, loose) => new SemVer(a, loose).major;
|
|
10279
|
+
module2.exports = major2;
|
|
10280
|
+
}
|
|
10281
|
+
});
|
|
10282
|
+
|
|
10283
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/minor.js
|
|
10284
|
+
var require_minor2 = __commonJS({
|
|
10285
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/minor.js"(exports2, module2) {
|
|
10286
|
+
"use strict";
|
|
10287
|
+
init_cjs_shims();
|
|
10288
|
+
var SemVer = require_semver3();
|
|
10289
|
+
var minor2 = (a, loose) => new SemVer(a, loose).minor;
|
|
10290
|
+
module2.exports = minor2;
|
|
10291
|
+
}
|
|
10292
|
+
});
|
|
10293
|
+
|
|
10294
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/patch.js
|
|
10295
|
+
var require_patch2 = __commonJS({
|
|
10296
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/patch.js"(exports2, module2) {
|
|
10297
|
+
"use strict";
|
|
10298
|
+
init_cjs_shims();
|
|
10299
|
+
var SemVer = require_semver3();
|
|
10300
|
+
var patch = (a, loose) => new SemVer(a, loose).patch;
|
|
10301
|
+
module2.exports = patch;
|
|
10302
|
+
}
|
|
10303
|
+
});
|
|
10304
|
+
|
|
10305
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/prerelease.js
|
|
10306
|
+
var require_prerelease2 = __commonJS({
|
|
10307
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/prerelease.js"(exports2, module2) {
|
|
10308
|
+
"use strict";
|
|
10309
|
+
init_cjs_shims();
|
|
10310
|
+
var parse = require_parse2();
|
|
10311
|
+
var prerelease = (version, options) => {
|
|
10312
|
+
const parsed = parse(version, options);
|
|
10313
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
10314
|
+
};
|
|
10315
|
+
module2.exports = prerelease;
|
|
10316
|
+
}
|
|
10317
|
+
});
|
|
10318
|
+
|
|
10319
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/compare.js
|
|
10320
|
+
var require_compare2 = __commonJS({
|
|
10321
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/compare.js"(exports2, module2) {
|
|
10322
|
+
"use strict";
|
|
10323
|
+
init_cjs_shims();
|
|
10324
|
+
var SemVer = require_semver3();
|
|
10325
|
+
var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
10326
|
+
module2.exports = compare;
|
|
10327
|
+
}
|
|
10328
|
+
});
|
|
10329
|
+
|
|
10330
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/rcompare.js
|
|
10331
|
+
var require_rcompare2 = __commonJS({
|
|
10332
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/rcompare.js"(exports2, module2) {
|
|
10333
|
+
"use strict";
|
|
10334
|
+
init_cjs_shims();
|
|
10335
|
+
var compare = require_compare2();
|
|
10336
|
+
var rcompare = (a, b, loose) => compare(b, a, loose);
|
|
10337
|
+
module2.exports = rcompare;
|
|
10338
|
+
}
|
|
10339
|
+
});
|
|
10340
|
+
|
|
10341
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/compare-loose.js
|
|
10342
|
+
var require_compare_loose2 = __commonJS({
|
|
10343
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/compare-loose.js"(exports2, module2) {
|
|
10344
|
+
"use strict";
|
|
10345
|
+
init_cjs_shims();
|
|
10346
|
+
var compare = require_compare2();
|
|
10347
|
+
var compareLoose = (a, b) => compare(a, b, true);
|
|
10348
|
+
module2.exports = compareLoose;
|
|
10349
|
+
}
|
|
10350
|
+
});
|
|
10351
|
+
|
|
10352
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/compare-build.js
|
|
10353
|
+
var require_compare_build2 = __commonJS({
|
|
10354
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/compare-build.js"(exports2, module2) {
|
|
10355
|
+
"use strict";
|
|
10356
|
+
init_cjs_shims();
|
|
10357
|
+
var SemVer = require_semver3();
|
|
10358
|
+
var compareBuild = (a, b, loose) => {
|
|
10359
|
+
const versionA = new SemVer(a, loose);
|
|
10360
|
+
const versionB = new SemVer(b, loose);
|
|
10361
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
10362
|
+
};
|
|
10363
|
+
module2.exports = compareBuild;
|
|
10364
|
+
}
|
|
10365
|
+
});
|
|
10366
|
+
|
|
10367
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/sort.js
|
|
10368
|
+
var require_sort2 = __commonJS({
|
|
10369
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/sort.js"(exports2, module2) {
|
|
10370
|
+
"use strict";
|
|
10371
|
+
init_cjs_shims();
|
|
10372
|
+
var compareBuild = require_compare_build2();
|
|
10373
|
+
var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
10374
|
+
module2.exports = sort;
|
|
10375
|
+
}
|
|
10376
|
+
});
|
|
10377
|
+
|
|
10378
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/rsort.js
|
|
10379
|
+
var require_rsort2 = __commonJS({
|
|
10380
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/rsort.js"(exports2, module2) {
|
|
10381
|
+
"use strict";
|
|
10382
|
+
init_cjs_shims();
|
|
10383
|
+
var compareBuild = require_compare_build2();
|
|
10384
|
+
var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
10385
|
+
module2.exports = rsort;
|
|
10386
|
+
}
|
|
10387
|
+
});
|
|
10388
|
+
|
|
10389
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/gt.js
|
|
10390
|
+
var require_gt2 = __commonJS({
|
|
10391
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/gt.js"(exports2, module2) {
|
|
10392
|
+
"use strict";
|
|
10393
|
+
init_cjs_shims();
|
|
10394
|
+
var compare = require_compare2();
|
|
10395
|
+
var gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
10396
|
+
module2.exports = gt;
|
|
10397
|
+
}
|
|
10398
|
+
});
|
|
10399
|
+
|
|
10400
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/lt.js
|
|
10401
|
+
var require_lt2 = __commonJS({
|
|
10402
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/lt.js"(exports2, module2) {
|
|
10403
|
+
"use strict";
|
|
10404
|
+
init_cjs_shims();
|
|
10405
|
+
var compare = require_compare2();
|
|
10406
|
+
var lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
10407
|
+
module2.exports = lt;
|
|
10408
|
+
}
|
|
10409
|
+
});
|
|
10410
|
+
|
|
10411
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/eq.js
|
|
10412
|
+
var require_eq2 = __commonJS({
|
|
10413
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/eq.js"(exports2, module2) {
|
|
10414
|
+
"use strict";
|
|
10415
|
+
init_cjs_shims();
|
|
10416
|
+
var compare = require_compare2();
|
|
10417
|
+
var eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
10418
|
+
module2.exports = eq;
|
|
10419
|
+
}
|
|
10420
|
+
});
|
|
10421
|
+
|
|
10422
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/neq.js
|
|
10423
|
+
var require_neq2 = __commonJS({
|
|
10424
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/neq.js"(exports2, module2) {
|
|
10425
|
+
"use strict";
|
|
10426
|
+
init_cjs_shims();
|
|
10427
|
+
var compare = require_compare2();
|
|
10428
|
+
var neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
10429
|
+
module2.exports = neq;
|
|
10430
|
+
}
|
|
10431
|
+
});
|
|
10432
|
+
|
|
10433
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/gte.js
|
|
10434
|
+
var require_gte2 = __commonJS({
|
|
10435
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/gte.js"(exports2, module2) {
|
|
10436
|
+
"use strict";
|
|
10437
|
+
init_cjs_shims();
|
|
10438
|
+
var compare = require_compare2();
|
|
10439
|
+
var gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
10440
|
+
module2.exports = gte;
|
|
10441
|
+
}
|
|
10442
|
+
});
|
|
10443
|
+
|
|
10444
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/lte.js
|
|
10445
|
+
var require_lte2 = __commonJS({
|
|
10446
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/lte.js"(exports2, module2) {
|
|
10447
|
+
"use strict";
|
|
10448
|
+
init_cjs_shims();
|
|
10449
|
+
var compare = require_compare2();
|
|
10450
|
+
var lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
10451
|
+
module2.exports = lte;
|
|
10452
|
+
}
|
|
10453
|
+
});
|
|
10454
|
+
|
|
10455
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/cmp.js
|
|
10456
|
+
var require_cmp2 = __commonJS({
|
|
10457
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/cmp.js"(exports2, module2) {
|
|
10458
|
+
"use strict";
|
|
10459
|
+
init_cjs_shims();
|
|
10460
|
+
var eq = require_eq2();
|
|
10461
|
+
var neq = require_neq2();
|
|
10462
|
+
var gt = require_gt2();
|
|
10463
|
+
var gte = require_gte2();
|
|
10464
|
+
var lt = require_lt2();
|
|
10465
|
+
var lte = require_lte2();
|
|
10466
|
+
var cmp = (a, op, b, loose) => {
|
|
10467
|
+
switch (op) {
|
|
10468
|
+
case "===":
|
|
10469
|
+
if (typeof a === "object") {
|
|
10470
|
+
a = a.version;
|
|
10471
|
+
}
|
|
10472
|
+
if (typeof b === "object") {
|
|
10473
|
+
b = b.version;
|
|
10474
|
+
}
|
|
10475
|
+
return a === b;
|
|
10476
|
+
case "!==":
|
|
10477
|
+
if (typeof a === "object") {
|
|
10478
|
+
a = a.version;
|
|
10479
|
+
}
|
|
10480
|
+
if (typeof b === "object") {
|
|
10481
|
+
b = b.version;
|
|
10482
|
+
}
|
|
10483
|
+
return a !== b;
|
|
10484
|
+
case "":
|
|
10485
|
+
case "=":
|
|
10486
|
+
case "==":
|
|
10487
|
+
return eq(a, b, loose);
|
|
10488
|
+
case "!=":
|
|
10489
|
+
return neq(a, b, loose);
|
|
10490
|
+
case ">":
|
|
10491
|
+
return gt(a, b, loose);
|
|
10492
|
+
case ">=":
|
|
10493
|
+
return gte(a, b, loose);
|
|
10494
|
+
case "<":
|
|
10495
|
+
return lt(a, b, loose);
|
|
10496
|
+
case "<=":
|
|
10497
|
+
return lte(a, b, loose);
|
|
10498
|
+
default:
|
|
10499
|
+
throw new TypeError(`Invalid operator: ${op}`);
|
|
10500
|
+
}
|
|
10501
|
+
};
|
|
10502
|
+
module2.exports = cmp;
|
|
10503
|
+
}
|
|
10504
|
+
});
|
|
10505
|
+
|
|
10506
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/coerce.js
|
|
10507
|
+
var require_coerce2 = __commonJS({
|
|
10508
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/coerce.js"(exports2, module2) {
|
|
10509
|
+
"use strict";
|
|
10510
|
+
init_cjs_shims();
|
|
10511
|
+
var SemVer = require_semver3();
|
|
10512
|
+
var parse = require_parse2();
|
|
10513
|
+
var { safeRe: re, t } = require_re2();
|
|
10514
|
+
var coerce = (version, options) => {
|
|
10515
|
+
if (version instanceof SemVer) {
|
|
10516
|
+
return version;
|
|
10517
|
+
}
|
|
10518
|
+
if (typeof version === "number") {
|
|
10519
|
+
version = String(version);
|
|
10520
|
+
}
|
|
10521
|
+
if (typeof version !== "string") {
|
|
10522
|
+
return null;
|
|
10523
|
+
}
|
|
10524
|
+
options = options || {};
|
|
10525
|
+
let match = null;
|
|
10526
|
+
if (!options.rtl) {
|
|
10527
|
+
match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
10528
|
+
} else {
|
|
10529
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
10530
|
+
let next;
|
|
10531
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
10532
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) {
|
|
10533
|
+
match = next;
|
|
10534
|
+
}
|
|
10535
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
10536
|
+
}
|
|
10537
|
+
coerceRtlRegex.lastIndex = -1;
|
|
10538
|
+
}
|
|
10539
|
+
if (match === null) {
|
|
10540
|
+
return null;
|
|
10541
|
+
}
|
|
10542
|
+
const major2 = match[2];
|
|
10543
|
+
const minor2 = match[3] || "0";
|
|
10544
|
+
const patch = match[4] || "0";
|
|
10545
|
+
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
10546
|
+
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
10547
|
+
return parse(`${major2}.${minor2}.${patch}${prerelease}${build}`, options);
|
|
10548
|
+
};
|
|
10549
|
+
module2.exports = coerce;
|
|
10550
|
+
}
|
|
10551
|
+
});
|
|
10552
|
+
|
|
10553
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/classes/range.js
|
|
10554
|
+
var require_range2 = __commonJS({
|
|
10555
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/classes/range.js"(exports2, module2) {
|
|
10556
|
+
"use strict";
|
|
10557
|
+
init_cjs_shims();
|
|
10558
|
+
var Range = class _Range {
|
|
10559
|
+
constructor(range, options) {
|
|
10560
|
+
options = parseOptions(options);
|
|
10561
|
+
if (range instanceof _Range) {
|
|
10562
|
+
if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) {
|
|
10563
|
+
return range;
|
|
10564
|
+
} else {
|
|
10565
|
+
return new _Range(range.raw, options);
|
|
10566
|
+
}
|
|
10567
|
+
}
|
|
10568
|
+
if (range instanceof Comparator) {
|
|
10569
|
+
this.raw = range.value;
|
|
10570
|
+
this.set = [[range]];
|
|
10571
|
+
this.format();
|
|
10572
|
+
return this;
|
|
10573
|
+
}
|
|
10574
|
+
this.options = options;
|
|
10575
|
+
this.loose = !!options.loose;
|
|
10576
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
10577
|
+
this.raw = range.trim().split(/\s+/).join(" ");
|
|
10578
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
10579
|
+
if (!this.set.length) {
|
|
10580
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
10581
|
+
}
|
|
10582
|
+
if (this.set.length > 1) {
|
|
10583
|
+
const first = this.set[0];
|
|
10584
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
10585
|
+
if (this.set.length === 0) {
|
|
10586
|
+
this.set = [first];
|
|
10587
|
+
} else if (this.set.length > 1) {
|
|
10588
|
+
for (const c of this.set) {
|
|
10589
|
+
if (c.length === 1 && isAny(c[0])) {
|
|
10590
|
+
this.set = [c];
|
|
10591
|
+
break;
|
|
10592
|
+
}
|
|
10593
|
+
}
|
|
10594
|
+
}
|
|
10595
|
+
}
|
|
10596
|
+
this.format();
|
|
10597
|
+
}
|
|
10598
|
+
format() {
|
|
10599
|
+
this.range = this.set.map((comps) => comps.join(" ").trim()).join("||").trim();
|
|
10600
|
+
return this.range;
|
|
10601
|
+
}
|
|
10602
|
+
toString() {
|
|
10603
|
+
return this.range;
|
|
10604
|
+
}
|
|
10605
|
+
parseRange(range) {
|
|
10606
|
+
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
10607
|
+
const memoKey = memoOpts + ":" + range;
|
|
10608
|
+
const cached = cache.get(memoKey);
|
|
10609
|
+
if (cached) {
|
|
10610
|
+
return cached;
|
|
10611
|
+
}
|
|
10612
|
+
const loose = this.options.loose;
|
|
10613
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
10614
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
10615
|
+
debug("hyphen replace", range);
|
|
10616
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
10617
|
+
debug("comparator trim", range);
|
|
10618
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
10619
|
+
debug("tilde trim", range);
|
|
10620
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
10621
|
+
debug("caret trim", range);
|
|
10622
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
10623
|
+
if (loose) {
|
|
10624
|
+
rangeList = rangeList.filter((comp) => {
|
|
10625
|
+
debug("loose invalid filter", comp, this.options);
|
|
10626
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
10627
|
+
});
|
|
10628
|
+
}
|
|
10629
|
+
debug("range list", rangeList);
|
|
10630
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
10631
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
10632
|
+
for (const comp of comparators) {
|
|
10633
|
+
if (isNullSet(comp)) {
|
|
10634
|
+
return [comp];
|
|
10635
|
+
}
|
|
10636
|
+
rangeMap.set(comp.value, comp);
|
|
10637
|
+
}
|
|
10638
|
+
if (rangeMap.size > 1 && rangeMap.has("")) {
|
|
10639
|
+
rangeMap.delete("");
|
|
10640
|
+
}
|
|
10641
|
+
const result = [...rangeMap.values()];
|
|
10642
|
+
cache.set(memoKey, result);
|
|
10643
|
+
return result;
|
|
10644
|
+
}
|
|
10645
|
+
intersects(range, options) {
|
|
10646
|
+
if (!(range instanceof _Range)) {
|
|
10647
|
+
throw new TypeError("a Range is required");
|
|
10648
|
+
}
|
|
10649
|
+
return this.set.some((thisComparators) => {
|
|
10650
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
10651
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
10652
|
+
return rangeComparators.every((rangeComparator) => {
|
|
10653
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
10654
|
+
});
|
|
10655
|
+
});
|
|
10656
|
+
});
|
|
10657
|
+
});
|
|
10658
|
+
}
|
|
10659
|
+
// if ANY of the sets match ALL of its comparators, then pass
|
|
10660
|
+
test(version) {
|
|
10661
|
+
if (!version) {
|
|
10662
|
+
return false;
|
|
10663
|
+
}
|
|
10664
|
+
if (typeof version === "string") {
|
|
10665
|
+
try {
|
|
10666
|
+
version = new SemVer(version, this.options);
|
|
10667
|
+
} catch (er) {
|
|
10668
|
+
return false;
|
|
10669
|
+
}
|
|
10670
|
+
}
|
|
10671
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
10672
|
+
if (testSet(this.set[i], version, this.options)) {
|
|
10673
|
+
return true;
|
|
10674
|
+
}
|
|
10675
|
+
}
|
|
10676
|
+
return false;
|
|
10677
|
+
}
|
|
10678
|
+
};
|
|
10679
|
+
module2.exports = Range;
|
|
10680
|
+
var LRU = require_lru_cache();
|
|
10681
|
+
var cache = new LRU({ max: 1e3 });
|
|
10682
|
+
var parseOptions = require_parse_options2();
|
|
10683
|
+
var Comparator = require_comparator2();
|
|
10684
|
+
var debug = require_debug2();
|
|
10685
|
+
var SemVer = require_semver3();
|
|
10686
|
+
var {
|
|
10687
|
+
safeRe: re,
|
|
10688
|
+
t,
|
|
10689
|
+
comparatorTrimReplace,
|
|
10690
|
+
tildeTrimReplace,
|
|
10691
|
+
caretTrimReplace
|
|
10692
|
+
} = require_re2();
|
|
10693
|
+
var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants2();
|
|
10694
|
+
var isNullSet = (c) => c.value === "<0.0.0-0";
|
|
10695
|
+
var isAny = (c) => c.value === "";
|
|
10696
|
+
var isSatisfiable = (comparators, options) => {
|
|
10697
|
+
let result = true;
|
|
10698
|
+
const remainingComparators = comparators.slice();
|
|
10699
|
+
let testComparator = remainingComparators.pop();
|
|
10700
|
+
while (result && remainingComparators.length) {
|
|
10701
|
+
result = remainingComparators.every((otherComparator) => {
|
|
10702
|
+
return testComparator.intersects(otherComparator, options);
|
|
10703
|
+
});
|
|
10704
|
+
testComparator = remainingComparators.pop();
|
|
10705
|
+
}
|
|
10706
|
+
return result;
|
|
10707
|
+
};
|
|
10708
|
+
var parseComparator = (comp, options) => {
|
|
10709
|
+
debug("comp", comp, options);
|
|
10710
|
+
comp = replaceCarets(comp, options);
|
|
10711
|
+
debug("caret", comp);
|
|
10712
|
+
comp = replaceTildes(comp, options);
|
|
10713
|
+
debug("tildes", comp);
|
|
10714
|
+
comp = replaceXRanges(comp, options);
|
|
10715
|
+
debug("xrange", comp);
|
|
10716
|
+
comp = replaceStars(comp, options);
|
|
10717
|
+
debug("stars", comp);
|
|
10718
|
+
return comp;
|
|
10719
|
+
};
|
|
10720
|
+
var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
10721
|
+
var replaceTildes = (comp, options) => {
|
|
10722
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
10723
|
+
};
|
|
10724
|
+
var replaceTilde = (comp, options) => {
|
|
10725
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
10726
|
+
return comp.replace(r, (_, M, m, p3, pr) => {
|
|
10727
|
+
debug("tilde", comp, _, M, m, p3, pr);
|
|
10728
|
+
let ret;
|
|
10729
|
+
if (isX(M)) {
|
|
10730
|
+
ret = "";
|
|
10731
|
+
} else if (isX(m)) {
|
|
10732
|
+
ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
10733
|
+
} else if (isX(p3)) {
|
|
10734
|
+
ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
10735
|
+
} else if (pr) {
|
|
10736
|
+
debug("replaceTilde pr", pr);
|
|
10737
|
+
ret = `>=${M}.${m}.${p3}-${pr} <${M}.${+m + 1}.0-0`;
|
|
10738
|
+
} else {
|
|
10739
|
+
ret = `>=${M}.${m}.${p3} <${M}.${+m + 1}.0-0`;
|
|
10740
|
+
}
|
|
10741
|
+
debug("tilde return", ret);
|
|
10742
|
+
return ret;
|
|
10743
|
+
});
|
|
10744
|
+
};
|
|
10745
|
+
var replaceCarets = (comp, options) => {
|
|
10746
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
10747
|
+
};
|
|
10748
|
+
var replaceCaret = (comp, options) => {
|
|
10749
|
+
debug("caret", comp, options);
|
|
10750
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
10751
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
10752
|
+
return comp.replace(r, (_, M, m, p3, pr) => {
|
|
10753
|
+
debug("caret", comp, _, M, m, p3, pr);
|
|
10754
|
+
let ret;
|
|
10755
|
+
if (isX(M)) {
|
|
10756
|
+
ret = "";
|
|
10757
|
+
} else if (isX(m)) {
|
|
10758
|
+
ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
10759
|
+
} else if (isX(p3)) {
|
|
10760
|
+
if (M === "0") {
|
|
10761
|
+
ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
10762
|
+
} else {
|
|
10763
|
+
ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
10764
|
+
}
|
|
10765
|
+
} else if (pr) {
|
|
10766
|
+
debug("replaceCaret pr", pr);
|
|
10767
|
+
if (M === "0") {
|
|
10768
|
+
if (m === "0") {
|
|
10769
|
+
ret = `>=${M}.${m}.${p3}-${pr} <${M}.${m}.${+p3 + 1}-0`;
|
|
10770
|
+
} else {
|
|
10771
|
+
ret = `>=${M}.${m}.${p3}-${pr} <${M}.${+m + 1}.0-0`;
|
|
10772
|
+
}
|
|
10773
|
+
} else {
|
|
10774
|
+
ret = `>=${M}.${m}.${p3}-${pr} <${+M + 1}.0.0-0`;
|
|
10775
|
+
}
|
|
10776
|
+
} else {
|
|
10777
|
+
debug("no pr");
|
|
10778
|
+
if (M === "0") {
|
|
10779
|
+
if (m === "0") {
|
|
10780
|
+
ret = `>=${M}.${m}.${p3}${z} <${M}.${m}.${+p3 + 1}-0`;
|
|
10781
|
+
} else {
|
|
10782
|
+
ret = `>=${M}.${m}.${p3}${z} <${M}.${+m + 1}.0-0`;
|
|
10783
|
+
}
|
|
10784
|
+
} else {
|
|
10785
|
+
ret = `>=${M}.${m}.${p3} <${+M + 1}.0.0-0`;
|
|
10786
|
+
}
|
|
10787
|
+
}
|
|
10788
|
+
debug("caret return", ret);
|
|
10789
|
+
return ret;
|
|
10790
|
+
});
|
|
10791
|
+
};
|
|
10792
|
+
var replaceXRanges = (comp, options) => {
|
|
10793
|
+
debug("replaceXRanges", comp, options);
|
|
10794
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
10795
|
+
};
|
|
10796
|
+
var replaceXRange = (comp, options) => {
|
|
10797
|
+
comp = comp.trim();
|
|
10798
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
10799
|
+
return comp.replace(r, (ret, gtlt, M, m, p3, pr) => {
|
|
10800
|
+
debug("xRange", comp, ret, gtlt, M, m, p3, pr);
|
|
10801
|
+
const xM = isX(M);
|
|
10802
|
+
const xm = xM || isX(m);
|
|
10803
|
+
const xp = xm || isX(p3);
|
|
10804
|
+
const anyX = xp;
|
|
10805
|
+
if (gtlt === "=" && anyX) {
|
|
10806
|
+
gtlt = "";
|
|
10807
|
+
}
|
|
10808
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
10809
|
+
if (xM) {
|
|
10810
|
+
if (gtlt === ">" || gtlt === "<") {
|
|
10811
|
+
ret = "<0.0.0-0";
|
|
10812
|
+
} else {
|
|
10813
|
+
ret = "*";
|
|
10814
|
+
}
|
|
10815
|
+
} else if (gtlt && anyX) {
|
|
10816
|
+
if (xm) {
|
|
10817
|
+
m = 0;
|
|
10818
|
+
}
|
|
10819
|
+
p3 = 0;
|
|
10820
|
+
if (gtlt === ">") {
|
|
10821
|
+
gtlt = ">=";
|
|
10822
|
+
if (xm) {
|
|
10823
|
+
M = +M + 1;
|
|
10824
|
+
m = 0;
|
|
10825
|
+
p3 = 0;
|
|
10826
|
+
} else {
|
|
10827
|
+
m = +m + 1;
|
|
10828
|
+
p3 = 0;
|
|
10829
|
+
}
|
|
10830
|
+
} else if (gtlt === "<=") {
|
|
10831
|
+
gtlt = "<";
|
|
10832
|
+
if (xm) {
|
|
10833
|
+
M = +M + 1;
|
|
10834
|
+
} else {
|
|
10835
|
+
m = +m + 1;
|
|
10836
|
+
}
|
|
10837
|
+
}
|
|
10838
|
+
if (gtlt === "<") {
|
|
10839
|
+
pr = "-0";
|
|
10840
|
+
}
|
|
10841
|
+
ret = `${gtlt + M}.${m}.${p3}${pr}`;
|
|
10842
|
+
} else if (xm) {
|
|
10843
|
+
ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
10844
|
+
} else if (xp) {
|
|
10845
|
+
ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
10846
|
+
}
|
|
10847
|
+
debug("xRange return", ret);
|
|
10848
|
+
return ret;
|
|
10849
|
+
});
|
|
10850
|
+
};
|
|
10851
|
+
var replaceStars = (comp, options) => {
|
|
10852
|
+
debug("replaceStars", comp, options);
|
|
10853
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
10854
|
+
};
|
|
10855
|
+
var replaceGTE0 = (comp, options) => {
|
|
10856
|
+
debug("replaceGTE0", comp, options);
|
|
10857
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
10858
|
+
};
|
|
10859
|
+
var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) => {
|
|
10860
|
+
if (isX(fM)) {
|
|
10861
|
+
from = "";
|
|
10862
|
+
} else if (isX(fm)) {
|
|
10863
|
+
from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
10864
|
+
} else if (isX(fp)) {
|
|
10865
|
+
from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
10866
|
+
} else if (fpr) {
|
|
10867
|
+
from = `>=${from}`;
|
|
10868
|
+
} else {
|
|
10869
|
+
from = `>=${from}${incPr ? "-0" : ""}`;
|
|
10870
|
+
}
|
|
10871
|
+
if (isX(tM)) {
|
|
10872
|
+
to = "";
|
|
10873
|
+
} else if (isX(tm)) {
|
|
10874
|
+
to = `<${+tM + 1}.0.0-0`;
|
|
10875
|
+
} else if (isX(tp)) {
|
|
10876
|
+
to = `<${tM}.${+tm + 1}.0-0`;
|
|
10877
|
+
} else if (tpr) {
|
|
10878
|
+
to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
10879
|
+
} else if (incPr) {
|
|
10880
|
+
to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
10881
|
+
} else {
|
|
10882
|
+
to = `<=${to}`;
|
|
10883
|
+
}
|
|
10884
|
+
return `${from} ${to}`.trim();
|
|
10885
|
+
};
|
|
10886
|
+
var testSet = (set, version, options) => {
|
|
10887
|
+
for (let i = 0; i < set.length; i++) {
|
|
10888
|
+
if (!set[i].test(version)) {
|
|
10889
|
+
return false;
|
|
10890
|
+
}
|
|
10891
|
+
}
|
|
10892
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
10893
|
+
for (let i = 0; i < set.length; i++) {
|
|
10894
|
+
debug(set[i].semver);
|
|
10895
|
+
if (set[i].semver === Comparator.ANY) {
|
|
10896
|
+
continue;
|
|
10897
|
+
}
|
|
10898
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
10899
|
+
const allowed = set[i].semver;
|
|
10900
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) {
|
|
10901
|
+
return true;
|
|
10902
|
+
}
|
|
10903
|
+
}
|
|
10904
|
+
}
|
|
10905
|
+
return false;
|
|
10906
|
+
}
|
|
10907
|
+
return true;
|
|
10908
|
+
};
|
|
10909
|
+
}
|
|
10910
|
+
});
|
|
10911
|
+
|
|
10912
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/classes/comparator.js
|
|
10913
|
+
var require_comparator2 = __commonJS({
|
|
10914
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/classes/comparator.js"(exports2, module2) {
|
|
10915
|
+
"use strict";
|
|
10916
|
+
init_cjs_shims();
|
|
10917
|
+
var ANY = Symbol("SemVer ANY");
|
|
10918
|
+
var Comparator = class _Comparator {
|
|
10919
|
+
static get ANY() {
|
|
10920
|
+
return ANY;
|
|
10921
|
+
}
|
|
10922
|
+
constructor(comp, options) {
|
|
10923
|
+
options = parseOptions(options);
|
|
10924
|
+
if (comp instanceof _Comparator) {
|
|
10925
|
+
if (comp.loose === !!options.loose) {
|
|
10926
|
+
return comp;
|
|
10927
|
+
} else {
|
|
10928
|
+
comp = comp.value;
|
|
10929
|
+
}
|
|
10930
|
+
}
|
|
10931
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
10932
|
+
debug("comparator", comp, options);
|
|
10933
|
+
this.options = options;
|
|
10934
|
+
this.loose = !!options.loose;
|
|
10935
|
+
this.parse(comp);
|
|
10936
|
+
if (this.semver === ANY) {
|
|
10937
|
+
this.value = "";
|
|
10938
|
+
} else {
|
|
10939
|
+
this.value = this.operator + this.semver.version;
|
|
10940
|
+
}
|
|
10941
|
+
debug("comp", this);
|
|
10942
|
+
}
|
|
10943
|
+
parse(comp) {
|
|
10944
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
10945
|
+
const m = comp.match(r);
|
|
10946
|
+
if (!m) {
|
|
10947
|
+
throw new TypeError(`Invalid comparator: ${comp}`);
|
|
10948
|
+
}
|
|
10949
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
10950
|
+
if (this.operator === "=") {
|
|
10951
|
+
this.operator = "";
|
|
10952
|
+
}
|
|
10953
|
+
if (!m[2]) {
|
|
10954
|
+
this.semver = ANY;
|
|
10955
|
+
} else {
|
|
10956
|
+
this.semver = new SemVer(m[2], this.options.loose);
|
|
10957
|
+
}
|
|
10958
|
+
}
|
|
10959
|
+
toString() {
|
|
10960
|
+
return this.value;
|
|
10961
|
+
}
|
|
10962
|
+
test(version) {
|
|
10963
|
+
debug("Comparator.test", version, this.options.loose);
|
|
10964
|
+
if (this.semver === ANY || version === ANY) {
|
|
10965
|
+
return true;
|
|
10966
|
+
}
|
|
10967
|
+
if (typeof version === "string") {
|
|
10968
|
+
try {
|
|
10969
|
+
version = new SemVer(version, this.options);
|
|
10970
|
+
} catch (er) {
|
|
10971
|
+
return false;
|
|
10972
|
+
}
|
|
10973
|
+
}
|
|
10974
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
10975
|
+
}
|
|
10976
|
+
intersects(comp, options) {
|
|
10977
|
+
if (!(comp instanceof _Comparator)) {
|
|
10978
|
+
throw new TypeError("a Comparator is required");
|
|
10979
|
+
}
|
|
10980
|
+
if (this.operator === "") {
|
|
10981
|
+
if (this.value === "") {
|
|
10982
|
+
return true;
|
|
10983
|
+
}
|
|
10984
|
+
return new Range(comp.value, options).test(this.value);
|
|
10985
|
+
} else if (comp.operator === "") {
|
|
10986
|
+
if (comp.value === "") {
|
|
10987
|
+
return true;
|
|
10988
|
+
}
|
|
10989
|
+
return new Range(this.value, options).test(comp.semver);
|
|
10990
|
+
}
|
|
10991
|
+
options = parseOptions(options);
|
|
10992
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
|
|
10993
|
+
return false;
|
|
10994
|
+
}
|
|
10995
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
|
|
10996
|
+
return false;
|
|
10997
|
+
}
|
|
10998
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
|
|
10999
|
+
return true;
|
|
11000
|
+
}
|
|
11001
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
|
|
11002
|
+
return true;
|
|
11003
|
+
}
|
|
11004
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
|
|
11005
|
+
return true;
|
|
11006
|
+
}
|
|
11007
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
|
|
11008
|
+
return true;
|
|
11009
|
+
}
|
|
11010
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
|
|
11011
|
+
return true;
|
|
11012
|
+
}
|
|
11013
|
+
return false;
|
|
11014
|
+
}
|
|
11015
|
+
};
|
|
11016
|
+
module2.exports = Comparator;
|
|
11017
|
+
var parseOptions = require_parse_options2();
|
|
11018
|
+
var { safeRe: re, t } = require_re2();
|
|
11019
|
+
var cmp = require_cmp2();
|
|
11020
|
+
var debug = require_debug2();
|
|
11021
|
+
var SemVer = require_semver3();
|
|
11022
|
+
var Range = require_range2();
|
|
11023
|
+
}
|
|
11024
|
+
});
|
|
11025
|
+
|
|
11026
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/satisfies.js
|
|
11027
|
+
var require_satisfies2 = __commonJS({
|
|
11028
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/satisfies.js"(exports2, module2) {
|
|
11029
|
+
"use strict";
|
|
11030
|
+
init_cjs_shims();
|
|
11031
|
+
var Range = require_range2();
|
|
11032
|
+
var satisfies = (version, range, options) => {
|
|
11033
|
+
try {
|
|
11034
|
+
range = new Range(range, options);
|
|
11035
|
+
} catch (er) {
|
|
11036
|
+
return false;
|
|
11037
|
+
}
|
|
11038
|
+
return range.test(version);
|
|
11039
|
+
};
|
|
11040
|
+
module2.exports = satisfies;
|
|
11041
|
+
}
|
|
11042
|
+
});
|
|
11043
|
+
|
|
11044
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/to-comparators.js
|
|
11045
|
+
var require_to_comparators2 = __commonJS({
|
|
11046
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/to-comparators.js"(exports2, module2) {
|
|
11047
|
+
"use strict";
|
|
11048
|
+
init_cjs_shims();
|
|
11049
|
+
var Range = require_range2();
|
|
11050
|
+
var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
11051
|
+
module2.exports = toComparators;
|
|
11052
|
+
}
|
|
11053
|
+
});
|
|
11054
|
+
|
|
11055
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/max-satisfying.js
|
|
11056
|
+
var require_max_satisfying2 = __commonJS({
|
|
11057
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/max-satisfying.js"(exports2, module2) {
|
|
11058
|
+
"use strict";
|
|
11059
|
+
init_cjs_shims();
|
|
11060
|
+
var SemVer = require_semver3();
|
|
11061
|
+
var Range = require_range2();
|
|
11062
|
+
var maxSatisfying = (versions, range, options) => {
|
|
11063
|
+
let max = null;
|
|
11064
|
+
let maxSV = null;
|
|
11065
|
+
let rangeObj = null;
|
|
11066
|
+
try {
|
|
11067
|
+
rangeObj = new Range(range, options);
|
|
11068
|
+
} catch (er) {
|
|
11069
|
+
return null;
|
|
11070
|
+
}
|
|
11071
|
+
versions.forEach((v) => {
|
|
11072
|
+
if (rangeObj.test(v)) {
|
|
11073
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
11074
|
+
max = v;
|
|
11075
|
+
maxSV = new SemVer(max, options);
|
|
11076
|
+
}
|
|
11077
|
+
}
|
|
11078
|
+
});
|
|
11079
|
+
return max;
|
|
11080
|
+
};
|
|
11081
|
+
module2.exports = maxSatisfying;
|
|
11082
|
+
}
|
|
11083
|
+
});
|
|
11084
|
+
|
|
11085
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/min-satisfying.js
|
|
11086
|
+
var require_min_satisfying2 = __commonJS({
|
|
11087
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/min-satisfying.js"(exports2, module2) {
|
|
11088
|
+
"use strict";
|
|
11089
|
+
init_cjs_shims();
|
|
11090
|
+
var SemVer = require_semver3();
|
|
11091
|
+
var Range = require_range2();
|
|
11092
|
+
var minSatisfying = (versions, range, options) => {
|
|
11093
|
+
let min = null;
|
|
11094
|
+
let minSV = null;
|
|
11095
|
+
let rangeObj = null;
|
|
11096
|
+
try {
|
|
11097
|
+
rangeObj = new Range(range, options);
|
|
11098
|
+
} catch (er) {
|
|
11099
|
+
return null;
|
|
11100
|
+
}
|
|
11101
|
+
versions.forEach((v) => {
|
|
11102
|
+
if (rangeObj.test(v)) {
|
|
11103
|
+
if (!min || minSV.compare(v) === 1) {
|
|
11104
|
+
min = v;
|
|
11105
|
+
minSV = new SemVer(min, options);
|
|
11106
|
+
}
|
|
11107
|
+
}
|
|
11108
|
+
});
|
|
11109
|
+
return min;
|
|
11110
|
+
};
|
|
11111
|
+
module2.exports = minSatisfying;
|
|
11112
|
+
}
|
|
11113
|
+
});
|
|
11114
|
+
|
|
11115
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/min-version.js
|
|
11116
|
+
var require_min_version2 = __commonJS({
|
|
11117
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/min-version.js"(exports2, module2) {
|
|
11118
|
+
"use strict";
|
|
11119
|
+
init_cjs_shims();
|
|
11120
|
+
var SemVer = require_semver3();
|
|
11121
|
+
var Range = require_range2();
|
|
11122
|
+
var gt = require_gt2();
|
|
11123
|
+
var minVersion = (range, loose) => {
|
|
11124
|
+
range = new Range(range, loose);
|
|
11125
|
+
let minver = new SemVer("0.0.0");
|
|
11126
|
+
if (range.test(minver)) {
|
|
11127
|
+
return minver;
|
|
11128
|
+
}
|
|
11129
|
+
minver = new SemVer("0.0.0-0");
|
|
11130
|
+
if (range.test(minver)) {
|
|
11131
|
+
return minver;
|
|
11132
|
+
}
|
|
11133
|
+
minver = null;
|
|
11134
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
11135
|
+
const comparators = range.set[i];
|
|
11136
|
+
let setMin = null;
|
|
11137
|
+
comparators.forEach((comparator) => {
|
|
11138
|
+
const compver = new SemVer(comparator.semver.version);
|
|
11139
|
+
switch (comparator.operator) {
|
|
11140
|
+
case ">":
|
|
11141
|
+
if (compver.prerelease.length === 0) {
|
|
11142
|
+
compver.patch++;
|
|
11143
|
+
} else {
|
|
11144
|
+
compver.prerelease.push(0);
|
|
11145
|
+
}
|
|
11146
|
+
compver.raw = compver.format();
|
|
11147
|
+
case "":
|
|
11148
|
+
case ">=":
|
|
11149
|
+
if (!setMin || gt(compver, setMin)) {
|
|
11150
|
+
setMin = compver;
|
|
11151
|
+
}
|
|
11152
|
+
break;
|
|
11153
|
+
case "<":
|
|
11154
|
+
case "<=":
|
|
11155
|
+
break;
|
|
11156
|
+
default:
|
|
11157
|
+
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
11158
|
+
}
|
|
11159
|
+
});
|
|
11160
|
+
if (setMin && (!minver || gt(minver, setMin))) {
|
|
11161
|
+
minver = setMin;
|
|
11162
|
+
}
|
|
11163
|
+
}
|
|
11164
|
+
if (minver && range.test(minver)) {
|
|
11165
|
+
return minver;
|
|
11166
|
+
}
|
|
11167
|
+
return null;
|
|
11168
|
+
};
|
|
11169
|
+
module2.exports = minVersion;
|
|
11170
|
+
}
|
|
11171
|
+
});
|
|
11172
|
+
|
|
11173
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/valid.js
|
|
11174
|
+
var require_valid4 = __commonJS({
|
|
11175
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/valid.js"(exports2, module2) {
|
|
11176
|
+
"use strict";
|
|
11177
|
+
init_cjs_shims();
|
|
11178
|
+
var Range = require_range2();
|
|
11179
|
+
var validRange = (range, options) => {
|
|
11180
|
+
try {
|
|
11181
|
+
return new Range(range, options).range || "*";
|
|
11182
|
+
} catch (er) {
|
|
11183
|
+
return null;
|
|
11184
|
+
}
|
|
11185
|
+
};
|
|
11186
|
+
module2.exports = validRange;
|
|
11187
|
+
}
|
|
11188
|
+
});
|
|
11189
|
+
|
|
11190
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/outside.js
|
|
11191
|
+
var require_outside2 = __commonJS({
|
|
11192
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/outside.js"(exports2, module2) {
|
|
11193
|
+
"use strict";
|
|
11194
|
+
init_cjs_shims();
|
|
11195
|
+
var SemVer = require_semver3();
|
|
11196
|
+
var Comparator = require_comparator2();
|
|
11197
|
+
var { ANY } = Comparator;
|
|
11198
|
+
var Range = require_range2();
|
|
11199
|
+
var satisfies = require_satisfies2();
|
|
11200
|
+
var gt = require_gt2();
|
|
11201
|
+
var lt = require_lt2();
|
|
11202
|
+
var lte = require_lte2();
|
|
11203
|
+
var gte = require_gte2();
|
|
11204
|
+
var outside = (version, range, hilo, options) => {
|
|
11205
|
+
version = new SemVer(version, options);
|
|
11206
|
+
range = new Range(range, options);
|
|
11207
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
11208
|
+
switch (hilo) {
|
|
11209
|
+
case ">":
|
|
11210
|
+
gtfn = gt;
|
|
11211
|
+
ltefn = lte;
|
|
11212
|
+
ltfn = lt;
|
|
11213
|
+
comp = ">";
|
|
11214
|
+
ecomp = ">=";
|
|
11215
|
+
break;
|
|
11216
|
+
case "<":
|
|
11217
|
+
gtfn = lt;
|
|
11218
|
+
ltefn = gte;
|
|
11219
|
+
ltfn = gt;
|
|
11220
|
+
comp = "<";
|
|
11221
|
+
ecomp = "<=";
|
|
11222
|
+
break;
|
|
11223
|
+
default:
|
|
11224
|
+
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
11225
|
+
}
|
|
11226
|
+
if (satisfies(version, range, options)) {
|
|
11227
|
+
return false;
|
|
11228
|
+
}
|
|
11229
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
11230
|
+
const comparators = range.set[i];
|
|
11231
|
+
let high = null;
|
|
11232
|
+
let low = null;
|
|
11233
|
+
comparators.forEach((comparator) => {
|
|
11234
|
+
if (comparator.semver === ANY) {
|
|
11235
|
+
comparator = new Comparator(">=0.0.0");
|
|
11236
|
+
}
|
|
11237
|
+
high = high || comparator;
|
|
11238
|
+
low = low || comparator;
|
|
11239
|
+
if (gtfn(comparator.semver, high.semver, options)) {
|
|
11240
|
+
high = comparator;
|
|
11241
|
+
} else if (ltfn(comparator.semver, low.semver, options)) {
|
|
11242
|
+
low = comparator;
|
|
11243
|
+
}
|
|
11244
|
+
});
|
|
11245
|
+
if (high.operator === comp || high.operator === ecomp) {
|
|
11246
|
+
return false;
|
|
11247
|
+
}
|
|
11248
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) {
|
|
11249
|
+
return false;
|
|
11250
|
+
} else if (low.operator === ecomp && ltfn(version, low.semver)) {
|
|
11251
|
+
return false;
|
|
11252
|
+
}
|
|
11253
|
+
}
|
|
11254
|
+
return true;
|
|
11255
|
+
};
|
|
11256
|
+
module2.exports = outside;
|
|
11257
|
+
}
|
|
11258
|
+
});
|
|
11259
|
+
|
|
11260
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/gtr.js
|
|
11261
|
+
var require_gtr2 = __commonJS({
|
|
11262
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/gtr.js"(exports2, module2) {
|
|
11263
|
+
"use strict";
|
|
11264
|
+
init_cjs_shims();
|
|
11265
|
+
var outside = require_outside2();
|
|
11266
|
+
var gtr = (version, range, options) => outside(version, range, ">", options);
|
|
11267
|
+
module2.exports = gtr;
|
|
11268
|
+
}
|
|
11269
|
+
});
|
|
11270
|
+
|
|
11271
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/ltr.js
|
|
11272
|
+
var require_ltr2 = __commonJS({
|
|
11273
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/ltr.js"(exports2, module2) {
|
|
11274
|
+
"use strict";
|
|
11275
|
+
init_cjs_shims();
|
|
11276
|
+
var outside = require_outside2();
|
|
11277
|
+
var ltr = (version, range, options) => outside(version, range, "<", options);
|
|
11278
|
+
module2.exports = ltr;
|
|
11279
|
+
}
|
|
11280
|
+
});
|
|
11281
|
+
|
|
11282
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/intersects.js
|
|
11283
|
+
var require_intersects2 = __commonJS({
|
|
11284
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/intersects.js"(exports2, module2) {
|
|
11285
|
+
"use strict";
|
|
11286
|
+
init_cjs_shims();
|
|
11287
|
+
var Range = require_range2();
|
|
11288
|
+
var intersects = (r1, r2, options) => {
|
|
11289
|
+
r1 = new Range(r1, options);
|
|
11290
|
+
r2 = new Range(r2, options);
|
|
11291
|
+
return r1.intersects(r2, options);
|
|
11292
|
+
};
|
|
11293
|
+
module2.exports = intersects;
|
|
11294
|
+
}
|
|
11295
|
+
});
|
|
11296
|
+
|
|
11297
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/simplify.js
|
|
11298
|
+
var require_simplify2 = __commonJS({
|
|
11299
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/simplify.js"(exports2, module2) {
|
|
11300
|
+
"use strict";
|
|
11301
|
+
init_cjs_shims();
|
|
11302
|
+
var satisfies = require_satisfies2();
|
|
11303
|
+
var compare = require_compare2();
|
|
11304
|
+
module2.exports = (versions, range, options) => {
|
|
11305
|
+
const set = [];
|
|
11306
|
+
let first = null;
|
|
11307
|
+
let prev = null;
|
|
11308
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
11309
|
+
for (const version of v) {
|
|
11310
|
+
const included = satisfies(version, range, options);
|
|
11311
|
+
if (included) {
|
|
11312
|
+
prev = version;
|
|
11313
|
+
if (!first) {
|
|
11314
|
+
first = version;
|
|
11315
|
+
}
|
|
11316
|
+
} else {
|
|
11317
|
+
if (prev) {
|
|
11318
|
+
set.push([first, prev]);
|
|
11319
|
+
}
|
|
11320
|
+
prev = null;
|
|
11321
|
+
first = null;
|
|
11322
|
+
}
|
|
11323
|
+
}
|
|
11324
|
+
if (first) {
|
|
11325
|
+
set.push([first, null]);
|
|
11326
|
+
}
|
|
11327
|
+
const ranges = [];
|
|
11328
|
+
for (const [min, max] of set) {
|
|
11329
|
+
if (min === max) {
|
|
11330
|
+
ranges.push(min);
|
|
11331
|
+
} else if (!max && min === v[0]) {
|
|
11332
|
+
ranges.push("*");
|
|
11333
|
+
} else if (!max) {
|
|
11334
|
+
ranges.push(`>=${min}`);
|
|
11335
|
+
} else if (min === v[0]) {
|
|
11336
|
+
ranges.push(`<=${max}`);
|
|
11337
|
+
} else {
|
|
11338
|
+
ranges.push(`${min} - ${max}`);
|
|
11339
|
+
}
|
|
11340
|
+
}
|
|
11341
|
+
const simplified = ranges.join(" || ");
|
|
11342
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
11343
|
+
return simplified.length < original.length ? simplified : range;
|
|
11344
|
+
};
|
|
11345
|
+
}
|
|
11346
|
+
});
|
|
11347
|
+
|
|
11348
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/subset.js
|
|
11349
|
+
var require_subset2 = __commonJS({
|
|
11350
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/subset.js"(exports2, module2) {
|
|
11351
|
+
"use strict";
|
|
11352
|
+
init_cjs_shims();
|
|
11353
|
+
var Range = require_range2();
|
|
11354
|
+
var Comparator = require_comparator2();
|
|
11355
|
+
var { ANY } = Comparator;
|
|
11356
|
+
var satisfies = require_satisfies2();
|
|
11357
|
+
var compare = require_compare2();
|
|
11358
|
+
var subset = (sub, dom, options = {}) => {
|
|
11359
|
+
if (sub === dom) {
|
|
11360
|
+
return true;
|
|
11361
|
+
}
|
|
11362
|
+
sub = new Range(sub, options);
|
|
11363
|
+
dom = new Range(dom, options);
|
|
11364
|
+
let sawNonNull = false;
|
|
11365
|
+
OUTER:
|
|
11366
|
+
for (const simpleSub of sub.set) {
|
|
11367
|
+
for (const simpleDom of dom.set) {
|
|
11368
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
11369
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
11370
|
+
if (isSub) {
|
|
11371
|
+
continue OUTER;
|
|
11372
|
+
}
|
|
11373
|
+
}
|
|
11374
|
+
if (sawNonNull) {
|
|
11375
|
+
return false;
|
|
11376
|
+
}
|
|
11377
|
+
}
|
|
11378
|
+
return true;
|
|
11379
|
+
};
|
|
11380
|
+
var minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
11381
|
+
var minimumVersion = [new Comparator(">=0.0.0")];
|
|
11382
|
+
var simpleSubset = (sub, dom, options) => {
|
|
11383
|
+
if (sub === dom) {
|
|
11384
|
+
return true;
|
|
11385
|
+
}
|
|
11386
|
+
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
11387
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
11388
|
+
return true;
|
|
11389
|
+
} else if (options.includePrerelease) {
|
|
11390
|
+
sub = minimumVersionWithPreRelease;
|
|
11391
|
+
} else {
|
|
11392
|
+
sub = minimumVersion;
|
|
11393
|
+
}
|
|
11394
|
+
}
|
|
11395
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
11396
|
+
if (options.includePrerelease) {
|
|
11397
|
+
return true;
|
|
11398
|
+
} else {
|
|
11399
|
+
dom = minimumVersion;
|
|
11400
|
+
}
|
|
11401
|
+
}
|
|
11402
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
11403
|
+
let gt, lt;
|
|
11404
|
+
for (const c of sub) {
|
|
11405
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
11406
|
+
gt = higherGT(gt, c, options);
|
|
11407
|
+
} else if (c.operator === "<" || c.operator === "<=") {
|
|
11408
|
+
lt = lowerLT(lt, c, options);
|
|
11409
|
+
} else {
|
|
11410
|
+
eqSet.add(c.semver);
|
|
11411
|
+
}
|
|
11412
|
+
}
|
|
11413
|
+
if (eqSet.size > 1) {
|
|
11414
|
+
return null;
|
|
11415
|
+
}
|
|
11416
|
+
let gtltComp;
|
|
11417
|
+
if (gt && lt) {
|
|
11418
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
11419
|
+
if (gtltComp > 0) {
|
|
11420
|
+
return null;
|
|
11421
|
+
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
|
|
11422
|
+
return null;
|
|
11423
|
+
}
|
|
11424
|
+
}
|
|
11425
|
+
for (const eq of eqSet) {
|
|
11426
|
+
if (gt && !satisfies(eq, String(gt), options)) {
|
|
11427
|
+
return null;
|
|
11428
|
+
}
|
|
11429
|
+
if (lt && !satisfies(eq, String(lt), options)) {
|
|
11430
|
+
return null;
|
|
11431
|
+
}
|
|
11432
|
+
for (const c of dom) {
|
|
11433
|
+
if (!satisfies(eq, String(c), options)) {
|
|
11434
|
+
return false;
|
|
11435
|
+
}
|
|
11436
|
+
}
|
|
11437
|
+
return true;
|
|
11438
|
+
}
|
|
11439
|
+
let higher, lower;
|
|
11440
|
+
let hasDomLT, hasDomGT;
|
|
11441
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
11442
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
11443
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) {
|
|
11444
|
+
needDomLTPre = false;
|
|
11445
|
+
}
|
|
11446
|
+
for (const c of dom) {
|
|
11447
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
11448
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
11449
|
+
if (gt) {
|
|
11450
|
+
if (needDomGTPre) {
|
|
11451
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) {
|
|
11452
|
+
needDomGTPre = false;
|
|
11453
|
+
}
|
|
11454
|
+
}
|
|
11455
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
11456
|
+
higher = higherGT(gt, c, options);
|
|
11457
|
+
if (higher === c && higher !== gt) {
|
|
11458
|
+
return false;
|
|
11459
|
+
}
|
|
11460
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) {
|
|
11461
|
+
return false;
|
|
11462
|
+
}
|
|
11463
|
+
}
|
|
11464
|
+
if (lt) {
|
|
11465
|
+
if (needDomLTPre) {
|
|
11466
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) {
|
|
11467
|
+
needDomLTPre = false;
|
|
11468
|
+
}
|
|
11469
|
+
}
|
|
11470
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
11471
|
+
lower = lowerLT(lt, c, options);
|
|
11472
|
+
if (lower === c && lower !== lt) {
|
|
11473
|
+
return false;
|
|
11474
|
+
}
|
|
11475
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) {
|
|
11476
|
+
return false;
|
|
11477
|
+
}
|
|
11478
|
+
}
|
|
11479
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) {
|
|
11480
|
+
return false;
|
|
11481
|
+
}
|
|
11482
|
+
}
|
|
11483
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) {
|
|
11484
|
+
return false;
|
|
11485
|
+
}
|
|
11486
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) {
|
|
11487
|
+
return false;
|
|
11488
|
+
}
|
|
11489
|
+
if (needDomGTPre || needDomLTPre) {
|
|
11490
|
+
return false;
|
|
11491
|
+
}
|
|
11492
|
+
return true;
|
|
11493
|
+
};
|
|
11494
|
+
var higherGT = (a, b, options) => {
|
|
11495
|
+
if (!a) {
|
|
11496
|
+
return b;
|
|
11497
|
+
}
|
|
11498
|
+
const comp = compare(a.semver, b.semver, options);
|
|
11499
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
11500
|
+
};
|
|
11501
|
+
var lowerLT = (a, b, options) => {
|
|
11502
|
+
if (!a) {
|
|
11503
|
+
return b;
|
|
11504
|
+
}
|
|
11505
|
+
const comp = compare(a.semver, b.semver, options);
|
|
11506
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
11507
|
+
};
|
|
11508
|
+
module2.exports = subset;
|
|
11509
|
+
}
|
|
11510
|
+
});
|
|
11511
|
+
|
|
11512
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/index.js
|
|
11513
|
+
var require_semver4 = __commonJS({
|
|
11514
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/index.js"(exports2, module2) {
|
|
11515
|
+
"use strict";
|
|
11516
|
+
init_cjs_shims();
|
|
11517
|
+
var internalRe = require_re2();
|
|
11518
|
+
var constants = require_constants2();
|
|
11519
|
+
var SemVer = require_semver3();
|
|
11520
|
+
var identifiers = require_identifiers2();
|
|
11521
|
+
var parse = require_parse2();
|
|
11522
|
+
var valid = require_valid3();
|
|
11523
|
+
var clean = require_clean2();
|
|
11524
|
+
var inc = require_inc2();
|
|
11525
|
+
var diff = require_diff2();
|
|
11526
|
+
var major2 = require_major2();
|
|
11527
|
+
var minor2 = require_minor2();
|
|
11528
|
+
var patch = require_patch2();
|
|
11529
|
+
var prerelease = require_prerelease2();
|
|
11530
|
+
var compare = require_compare2();
|
|
11531
|
+
var rcompare = require_rcompare2();
|
|
11532
|
+
var compareLoose = require_compare_loose2();
|
|
11533
|
+
var compareBuild = require_compare_build2();
|
|
11534
|
+
var sort = require_sort2();
|
|
11535
|
+
var rsort = require_rsort2();
|
|
11536
|
+
var gt = require_gt2();
|
|
11537
|
+
var lt = require_lt2();
|
|
11538
|
+
var eq = require_eq2();
|
|
11539
|
+
var neq = require_neq2();
|
|
11540
|
+
var gte = require_gte2();
|
|
11541
|
+
var lte = require_lte2();
|
|
11542
|
+
var cmp = require_cmp2();
|
|
11543
|
+
var coerce = require_coerce2();
|
|
11544
|
+
var Comparator = require_comparator2();
|
|
11545
|
+
var Range = require_range2();
|
|
11546
|
+
var satisfies = require_satisfies2();
|
|
11547
|
+
var toComparators = require_to_comparators2();
|
|
11548
|
+
var maxSatisfying = require_max_satisfying2();
|
|
11549
|
+
var minSatisfying = require_min_satisfying2();
|
|
11550
|
+
var minVersion = require_min_version2();
|
|
11551
|
+
var validRange = require_valid4();
|
|
11552
|
+
var outside = require_outside2();
|
|
11553
|
+
var gtr = require_gtr2();
|
|
11554
|
+
var ltr = require_ltr2();
|
|
11555
|
+
var intersects = require_intersects2();
|
|
11556
|
+
var simplifyRange = require_simplify2();
|
|
11557
|
+
var subset = require_subset2();
|
|
11558
|
+
module2.exports = {
|
|
11559
|
+
parse,
|
|
11560
|
+
valid,
|
|
11561
|
+
clean,
|
|
11562
|
+
inc,
|
|
11563
|
+
diff,
|
|
11564
|
+
major: major2,
|
|
11565
|
+
minor: minor2,
|
|
11566
|
+
patch,
|
|
11567
|
+
prerelease,
|
|
11568
|
+
compare,
|
|
11569
|
+
rcompare,
|
|
11570
|
+
compareLoose,
|
|
11571
|
+
compareBuild,
|
|
11572
|
+
sort,
|
|
11573
|
+
rsort,
|
|
11574
|
+
gt,
|
|
11575
|
+
lt,
|
|
11576
|
+
eq,
|
|
11577
|
+
neq,
|
|
11578
|
+
gte,
|
|
11579
|
+
lte,
|
|
11580
|
+
cmp,
|
|
11581
|
+
coerce,
|
|
11582
|
+
Comparator,
|
|
11583
|
+
Range,
|
|
11584
|
+
satisfies,
|
|
11585
|
+
toComparators,
|
|
11586
|
+
maxSatisfying,
|
|
11587
|
+
minSatisfying,
|
|
11588
|
+
minVersion,
|
|
11589
|
+
validRange,
|
|
11590
|
+
outside,
|
|
11591
|
+
gtr,
|
|
11592
|
+
ltr,
|
|
11593
|
+
intersects,
|
|
11594
|
+
simplifyRange,
|
|
11595
|
+
subset,
|
|
11596
|
+
SemVer,
|
|
11597
|
+
re: internalRe.re,
|
|
11598
|
+
src: internalRe.src,
|
|
11599
|
+
tokens: internalRe.t,
|
|
11600
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
11601
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
11602
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
11603
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
11604
|
+
};
|
|
11605
|
+
}
|
|
11606
|
+
});
|
|
11607
|
+
|
|
9732
11608
|
// ../../node_modules/.pnpm/ini@2.0.0/node_modules/ini/ini.js
|
|
9733
11609
|
var require_ini2 = __commonJS({
|
|
9734
11610
|
"../../node_modules/.pnpm/ini@2.0.0/node_modules/ini/ini.js"(exports2, module2) {
|
|
@@ -16414,7 +18290,7 @@ function registryUrl(scope) {
|
|
|
16414
18290
|
|
|
16415
18291
|
// ../../node_modules/.pnpm/package-json@8.1.1/node_modules/package-json/index.js
|
|
16416
18292
|
var import_registry_auth_token = __toESM(require_registry_auth_token(), 1);
|
|
16417
|
-
var import_semver2 = __toESM(
|
|
18293
|
+
var import_semver2 = __toESM(require_semver4(), 1);
|
|
16418
18294
|
var agentOptions = {
|
|
16419
18295
|
keepAlive: true,
|
|
16420
18296
|
maxSockets: 50
|
|
@@ -17535,11 +19411,11 @@ var package_default = {
|
|
|
17535
19411
|
homepage: "https://yamada-ui.com",
|
|
17536
19412
|
repository: {
|
|
17537
19413
|
type: "git",
|
|
17538
|
-
url: "git+https://github.com/
|
|
19414
|
+
url: "git+https://github.com/yamada-ui/yamada-ui",
|
|
17539
19415
|
directory: "packages/cli"
|
|
17540
19416
|
},
|
|
17541
19417
|
bugs: {
|
|
17542
|
-
url: "https://github.com/
|
|
19418
|
+
url: "https://github.com/yamada-ui/yamada-ui/issues"
|
|
17543
19419
|
},
|
|
17544
19420
|
bin: {
|
|
17545
19421
|
"yamada-cli": "bin/index.js"
|