@shopify/create-app 3.78.2 → 3.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-PS6NFRCK.js → chunk-7AOB653K.js} +104 -19
- package/dist/{chunk-EQR72MUQ.js → chunk-BE7EA5HD.js} +10 -6
- package/dist/{chunk-WHWAKQQY.js → chunk-DOJFJSIT.js} +6 -1129
- package/dist/{chunk-NT557SK2.js → chunk-HSB3QV4W.js} +1197 -128
- package/dist/{chunk-HYAKRM37.js → chunk-S6CRGH63.js} +15 -14
- package/dist/{chunk-KNEC3BRF.js → chunk-SKROIF4Z.js} +5 -5
- package/dist/{custom-oclif-loader-4XA4AN34.js → custom-oclif-loader-YVZFS2MG.js} +2 -2
- package/dist/{error-handler-M5SCW37U.js → error-handler-2KYYHHUD.js} +6 -6
- package/dist/hooks/postrun.js +4 -4
- package/dist/hooks/prerun.js +4 -4
- package/dist/index.js +17420 -17069
- package/dist/is-wsl-YAJ3DFN7.js +64 -0
- package/dist/{local-ZUDPXH3G.js → local-FKLT6MRX.js} +2 -4
- package/dist/{node-package-manager-FFT43K5J.js → node-package-manager-6MPETXDL.js} +3 -3
- package/dist/toml-patch-wasm-J5VGG6WG.js +140 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-FBSFOBFT.js → ui-O37QGDLX.js} +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
joinPath,
|
|
13
13
|
normalizePath,
|
|
14
14
|
relativizePath,
|
|
15
|
-
sniffForJson,
|
|
16
15
|
sniffForPath
|
|
17
16
|
} from "./chunk-ZUCWDIGE.js";
|
|
18
17
|
import {
|
|
@@ -20890,7 +20889,7 @@ var require_lib2 = __commonJS({
|
|
|
20890
20889
|
}, getPathPart = (raw, cmd) => {
|
|
20891
20890
|
let pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
20892
20891
|
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join2(pathPart, cmd);
|
|
20893
|
-
},
|
|
20892
|
+
}, which3 = async (cmd, opt = {}) => {
|
|
20894
20893
|
let { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt), found = [];
|
|
20895
20894
|
for (let envPart of pathEnv) {
|
|
20896
20895
|
let p = getPathPart(envPart, cmd);
|
|
@@ -20927,8 +20926,1132 @@ var require_lib2 = __commonJS({
|
|
|
20927
20926
|
return null;
|
|
20928
20927
|
throw getNotFoundError(cmd);
|
|
20929
20928
|
};
|
|
20930
|
-
module.exports =
|
|
20931
|
-
|
|
20929
|
+
module.exports = which3;
|
|
20930
|
+
which3.sync = whichSync;
|
|
20931
|
+
}
|
|
20932
|
+
});
|
|
20933
|
+
|
|
20934
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/constants.js
|
|
20935
|
+
var require_constants2 = __commonJS({
|
|
20936
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/constants.js"(exports, module) {
|
|
20937
|
+
init_cjs_shims();
|
|
20938
|
+
var SEMVER_SPEC_VERSION = "2.0.0", MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
20939
|
+
9007199254740991, MAX_SAFE_COMPONENT_LENGTH = 16, MAX_SAFE_BUILD_LENGTH = 250, RELEASE_TYPES = [
|
|
20940
|
+
"major",
|
|
20941
|
+
"premajor",
|
|
20942
|
+
"minor",
|
|
20943
|
+
"preminor",
|
|
20944
|
+
"patch",
|
|
20945
|
+
"prepatch",
|
|
20946
|
+
"prerelease"
|
|
20947
|
+
];
|
|
20948
|
+
module.exports = {
|
|
20949
|
+
MAX_LENGTH: 256,
|
|
20950
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
20951
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
20952
|
+
MAX_SAFE_INTEGER,
|
|
20953
|
+
RELEASE_TYPES,
|
|
20954
|
+
SEMVER_SPEC_VERSION,
|
|
20955
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
20956
|
+
FLAG_LOOSE: 2
|
|
20957
|
+
};
|
|
20958
|
+
}
|
|
20959
|
+
});
|
|
20960
|
+
|
|
20961
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js
|
|
20962
|
+
var require_debug = __commonJS({
|
|
20963
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js"(exports, module) {
|
|
20964
|
+
init_cjs_shims();
|
|
20965
|
+
var debug = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
20966
|
+
};
|
|
20967
|
+
module.exports = debug;
|
|
20968
|
+
}
|
|
20969
|
+
});
|
|
20970
|
+
|
|
20971
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js
|
|
20972
|
+
var require_re = __commonJS({
|
|
20973
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js"(exports, module) {
|
|
20974
|
+
init_cjs_shims();
|
|
20975
|
+
var {
|
|
20976
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
20977
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
20978
|
+
MAX_LENGTH
|
|
20979
|
+
} = require_constants2(), debug = require_debug();
|
|
20980
|
+
exports = module.exports = {};
|
|
20981
|
+
var re = exports.re = [], safeRe = exports.safeRe = [], src = exports.src = [], t = exports.t = {}, R = 0, LETTERDASHNUMBER = "[a-zA-Z0-9-]", safeRegexReplacements = [
|
|
20982
|
+
["\\s", 1],
|
|
20983
|
+
["\\d", MAX_LENGTH],
|
|
20984
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
20985
|
+
], makeSafeRegex = (value) => {
|
|
20986
|
+
for (let [token, max] of safeRegexReplacements)
|
|
20987
|
+
value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
20988
|
+
return value;
|
|
20989
|
+
}, createToken = (name, value, isGlobal) => {
|
|
20990
|
+
let safe = makeSafeRegex(value), index = R++;
|
|
20991
|
+
debug(name, index, value), t[name] = index, src[index] = value, re[index] = new RegExp(value, isGlobal ? "g" : void 0), safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
20992
|
+
};
|
|
20993
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
20994
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
20995
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
20996
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
20997
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
20998
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
20999
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
21000
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
21001
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
21002
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
21003
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
21004
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
21005
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
21006
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
21007
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
21008
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
21009
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
21010
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
21011
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
21012
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
21013
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
21014
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
21015
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
21016
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
21017
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
21018
|
+
createToken("COERCERTL", src[t.COERCE], !0);
|
|
21019
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], !0);
|
|
21020
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
21021
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, !0);
|
|
21022
|
+
exports.tildeTrimReplace = "$1~";
|
|
21023
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
21024
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
21025
|
+
createToken("LONECARET", "(?:\\^)");
|
|
21026
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, !0);
|
|
21027
|
+
exports.caretTrimReplace = "$1^";
|
|
21028
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
21029
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
21030
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
21031
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
21032
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, !0);
|
|
21033
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
21034
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
21035
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
21036
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
21037
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
21038
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
21039
|
+
}
|
|
21040
|
+
});
|
|
21041
|
+
|
|
21042
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/parse-options.js
|
|
21043
|
+
var require_parse_options = __commonJS({
|
|
21044
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/parse-options.js"(exports, module) {
|
|
21045
|
+
init_cjs_shims();
|
|
21046
|
+
var looseOption = Object.freeze({ loose: !0 }), emptyOpts = Object.freeze({}), parseOptions = (options) => options ? typeof options != "object" ? looseOption : options : emptyOpts;
|
|
21047
|
+
module.exports = parseOptions;
|
|
21048
|
+
}
|
|
21049
|
+
});
|
|
21050
|
+
|
|
21051
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/identifiers.js
|
|
21052
|
+
var require_identifiers = __commonJS({
|
|
21053
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/identifiers.js"(exports, module) {
|
|
21054
|
+
init_cjs_shims();
|
|
21055
|
+
var numeric = /^[0-9]+$/, compareIdentifiers = (a, b) => {
|
|
21056
|
+
let anum = numeric.test(a), bnum = numeric.test(b);
|
|
21057
|
+
return anum && bnum && (a = +a, b = +b), a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
21058
|
+
}, rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
21059
|
+
module.exports = {
|
|
21060
|
+
compareIdentifiers,
|
|
21061
|
+
rcompareIdentifiers
|
|
21062
|
+
};
|
|
21063
|
+
}
|
|
21064
|
+
});
|
|
21065
|
+
|
|
21066
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js
|
|
21067
|
+
var require_semver = __commonJS({
|
|
21068
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js"(exports, module) {
|
|
21069
|
+
init_cjs_shims();
|
|
21070
|
+
var debug = require_debug(), { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants2(), { safeRe: re, t } = require_re(), parseOptions = require_parse_options(), { compareIdentifiers } = require_identifiers(), SemVer = class _SemVer {
|
|
21071
|
+
constructor(version, options) {
|
|
21072
|
+
if (options = parseOptions(options), version instanceof _SemVer) {
|
|
21073
|
+
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease)
|
|
21074
|
+
return version;
|
|
21075
|
+
version = version.version;
|
|
21076
|
+
} else if (typeof version != "string")
|
|
21077
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
21078
|
+
if (version.length > MAX_LENGTH)
|
|
21079
|
+
throw new TypeError(
|
|
21080
|
+
`version is longer than ${MAX_LENGTH} characters`
|
|
21081
|
+
);
|
|
21082
|
+
debug("SemVer", version, options), this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease;
|
|
21083
|
+
let m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
21084
|
+
if (!m)
|
|
21085
|
+
throw new TypeError(`Invalid Version: ${version}`);
|
|
21086
|
+
if (this.raw = version, this.major = +m[1], this.minor = +m[2], this.patch = +m[3], this.major > MAX_SAFE_INTEGER || this.major < 0)
|
|
21087
|
+
throw new TypeError("Invalid major version");
|
|
21088
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0)
|
|
21089
|
+
throw new TypeError("Invalid minor version");
|
|
21090
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0)
|
|
21091
|
+
throw new TypeError("Invalid patch version");
|
|
21092
|
+
m[4] ? this.prerelease = m[4].split(".").map((id) => {
|
|
21093
|
+
if (/^[0-9]+$/.test(id)) {
|
|
21094
|
+
let num = +id;
|
|
21095
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER)
|
|
21096
|
+
return num;
|
|
21097
|
+
}
|
|
21098
|
+
return id;
|
|
21099
|
+
}) : this.prerelease = [], this.build = m[5] ? m[5].split(".") : [], this.format();
|
|
21100
|
+
}
|
|
21101
|
+
format() {
|
|
21102
|
+
return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
|
|
21103
|
+
}
|
|
21104
|
+
toString() {
|
|
21105
|
+
return this.version;
|
|
21106
|
+
}
|
|
21107
|
+
compare(other) {
|
|
21108
|
+
if (debug("SemVer.compare", this.version, this.options, other), !(other instanceof _SemVer)) {
|
|
21109
|
+
if (typeof other == "string" && other === this.version)
|
|
21110
|
+
return 0;
|
|
21111
|
+
other = new _SemVer(other, this.options);
|
|
21112
|
+
}
|
|
21113
|
+
return other.version === this.version ? 0 : this.compareMain(other) || this.comparePre(other);
|
|
21114
|
+
}
|
|
21115
|
+
compareMain(other) {
|
|
21116
|
+
return other instanceof _SemVer || (other = new _SemVer(other, this.options)), compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
21117
|
+
}
|
|
21118
|
+
comparePre(other) {
|
|
21119
|
+
if (other instanceof _SemVer || (other = new _SemVer(other, this.options)), this.prerelease.length && !other.prerelease.length)
|
|
21120
|
+
return -1;
|
|
21121
|
+
if (!this.prerelease.length && other.prerelease.length)
|
|
21122
|
+
return 1;
|
|
21123
|
+
if (!this.prerelease.length && !other.prerelease.length)
|
|
21124
|
+
return 0;
|
|
21125
|
+
let i = 0;
|
|
21126
|
+
do {
|
|
21127
|
+
let a = this.prerelease[i], b = other.prerelease[i];
|
|
21128
|
+
if (debug("prerelease compare", i, a, b), a === void 0 && b === void 0)
|
|
21129
|
+
return 0;
|
|
21130
|
+
if (b === void 0)
|
|
21131
|
+
return 1;
|
|
21132
|
+
if (a === void 0)
|
|
21133
|
+
return -1;
|
|
21134
|
+
if (a === b)
|
|
21135
|
+
continue;
|
|
21136
|
+
return compareIdentifiers(a, b);
|
|
21137
|
+
} while (++i);
|
|
21138
|
+
}
|
|
21139
|
+
compareBuild(other) {
|
|
21140
|
+
other instanceof _SemVer || (other = new _SemVer(other, this.options));
|
|
21141
|
+
let i = 0;
|
|
21142
|
+
do {
|
|
21143
|
+
let a = this.build[i], b = other.build[i];
|
|
21144
|
+
if (debug("build compare", i, a, b), a === void 0 && b === void 0)
|
|
21145
|
+
return 0;
|
|
21146
|
+
if (b === void 0)
|
|
21147
|
+
return 1;
|
|
21148
|
+
if (a === void 0)
|
|
21149
|
+
return -1;
|
|
21150
|
+
if (a === b)
|
|
21151
|
+
continue;
|
|
21152
|
+
return compareIdentifiers(a, b);
|
|
21153
|
+
} while (++i);
|
|
21154
|
+
}
|
|
21155
|
+
// preminor will bump the version up to the next minor release, and immediately
|
|
21156
|
+
// down to pre-release. premajor and prepatch work the same way.
|
|
21157
|
+
inc(release, identifier2, identifierBase) {
|
|
21158
|
+
switch (release) {
|
|
21159
|
+
case "premajor":
|
|
21160
|
+
this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", identifier2, identifierBase);
|
|
21161
|
+
break;
|
|
21162
|
+
case "preminor":
|
|
21163
|
+
this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", identifier2, identifierBase);
|
|
21164
|
+
break;
|
|
21165
|
+
case "prepatch":
|
|
21166
|
+
this.prerelease.length = 0, this.inc("patch", identifier2, identifierBase), this.inc("pre", identifier2, identifierBase);
|
|
21167
|
+
break;
|
|
21168
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
21169
|
+
// prepatch.
|
|
21170
|
+
case "prerelease":
|
|
21171
|
+
this.prerelease.length === 0 && this.inc("patch", identifier2, identifierBase), this.inc("pre", identifier2, identifierBase);
|
|
21172
|
+
break;
|
|
21173
|
+
case "major":
|
|
21174
|
+
(this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
|
|
21175
|
+
break;
|
|
21176
|
+
case "minor":
|
|
21177
|
+
(this.patch !== 0 || this.prerelease.length === 0) && this.minor++, this.patch = 0, this.prerelease = [];
|
|
21178
|
+
break;
|
|
21179
|
+
case "patch":
|
|
21180
|
+
this.prerelease.length === 0 && this.patch++, this.prerelease = [];
|
|
21181
|
+
break;
|
|
21182
|
+
// This probably shouldn't be used publicly.
|
|
21183
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
21184
|
+
case "pre": {
|
|
21185
|
+
let base = Number(identifierBase) ? 1 : 0;
|
|
21186
|
+
if (!identifier2 && identifierBase === !1)
|
|
21187
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
21188
|
+
if (this.prerelease.length === 0)
|
|
21189
|
+
this.prerelease = [base];
|
|
21190
|
+
else {
|
|
21191
|
+
let i = this.prerelease.length;
|
|
21192
|
+
for (; --i >= 0; )
|
|
21193
|
+
typeof this.prerelease[i] == "number" && (this.prerelease[i]++, i = -2);
|
|
21194
|
+
if (i === -1) {
|
|
21195
|
+
if (identifier2 === this.prerelease.join(".") && identifierBase === !1)
|
|
21196
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
21197
|
+
this.prerelease.push(base);
|
|
21198
|
+
}
|
|
21199
|
+
}
|
|
21200
|
+
if (identifier2) {
|
|
21201
|
+
let prerelease = [identifier2, base];
|
|
21202
|
+
identifierBase === !1 && (prerelease = [identifier2]), compareIdentifiers(this.prerelease[0], identifier2) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = prerelease) : this.prerelease = prerelease;
|
|
21203
|
+
}
|
|
21204
|
+
break;
|
|
21205
|
+
}
|
|
21206
|
+
default:
|
|
21207
|
+
throw new Error(`invalid increment argument: ${release}`);
|
|
21208
|
+
}
|
|
21209
|
+
return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
|
|
21210
|
+
}
|
|
21211
|
+
};
|
|
21212
|
+
module.exports = SemVer;
|
|
21213
|
+
}
|
|
21214
|
+
});
|
|
21215
|
+
|
|
21216
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js
|
|
21217
|
+
var require_parse = __commonJS({
|
|
21218
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js"(exports, module) {
|
|
21219
|
+
init_cjs_shims();
|
|
21220
|
+
var SemVer = require_semver(), parse = (version, options, throwErrors = !1) => {
|
|
21221
|
+
if (version instanceof SemVer)
|
|
21222
|
+
return version;
|
|
21223
|
+
try {
|
|
21224
|
+
return new SemVer(version, options);
|
|
21225
|
+
} catch (er) {
|
|
21226
|
+
if (!throwErrors)
|
|
21227
|
+
return null;
|
|
21228
|
+
throw er;
|
|
21229
|
+
}
|
|
21230
|
+
};
|
|
21231
|
+
module.exports = parse;
|
|
21232
|
+
}
|
|
21233
|
+
});
|
|
21234
|
+
|
|
21235
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/valid.js
|
|
21236
|
+
var require_valid = __commonJS({
|
|
21237
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/valid.js"(exports, module) {
|
|
21238
|
+
init_cjs_shims();
|
|
21239
|
+
var parse = require_parse(), valid = (version, options) => {
|
|
21240
|
+
let v = parse(version, options);
|
|
21241
|
+
return v ? v.version : null;
|
|
21242
|
+
};
|
|
21243
|
+
module.exports = valid;
|
|
21244
|
+
}
|
|
21245
|
+
});
|
|
21246
|
+
|
|
21247
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/clean.js
|
|
21248
|
+
var require_clean = __commonJS({
|
|
21249
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/clean.js"(exports, module) {
|
|
21250
|
+
init_cjs_shims();
|
|
21251
|
+
var parse = require_parse(), clean = (version, options) => {
|
|
21252
|
+
let s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
21253
|
+
return s ? s.version : null;
|
|
21254
|
+
};
|
|
21255
|
+
module.exports = clean;
|
|
21256
|
+
}
|
|
21257
|
+
});
|
|
21258
|
+
|
|
21259
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/inc.js
|
|
21260
|
+
var require_inc = __commonJS({
|
|
21261
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/inc.js"(exports, module) {
|
|
21262
|
+
init_cjs_shims();
|
|
21263
|
+
var SemVer = require_semver(), inc = (version, release, options, identifier2, identifierBase) => {
|
|
21264
|
+
typeof options == "string" && (identifierBase = identifier2, identifier2 = options, options = void 0);
|
|
21265
|
+
try {
|
|
21266
|
+
return new SemVer(
|
|
21267
|
+
version instanceof SemVer ? version.version : version,
|
|
21268
|
+
options
|
|
21269
|
+
).inc(release, identifier2, identifierBase).version;
|
|
21270
|
+
} catch {
|
|
21271
|
+
return null;
|
|
21272
|
+
}
|
|
21273
|
+
};
|
|
21274
|
+
module.exports = inc;
|
|
21275
|
+
}
|
|
21276
|
+
});
|
|
21277
|
+
|
|
21278
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/diff.js
|
|
21279
|
+
var require_diff = __commonJS({
|
|
21280
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/diff.js"(exports, module) {
|
|
21281
|
+
init_cjs_shims();
|
|
21282
|
+
var parse = require_parse(), diff2 = (version1, version2) => {
|
|
21283
|
+
let v1 = parse(version1, null, !0), v2 = parse(version2, null, !0), comparison = v1.compare(v2);
|
|
21284
|
+
if (comparison === 0)
|
|
21285
|
+
return null;
|
|
21286
|
+
let v1Higher = comparison > 0, highVersion = v1Higher ? v1 : v2, lowVersion = v1Higher ? v2 : v1, highHasPre = !!highVersion.prerelease.length;
|
|
21287
|
+
if (!!lowVersion.prerelease.length && !highHasPre)
|
|
21288
|
+
return !lowVersion.patch && !lowVersion.minor ? "major" : highVersion.patch ? "patch" : highVersion.minor ? "minor" : "major";
|
|
21289
|
+
let prefix = highHasPre ? "pre" : "";
|
|
21290
|
+
return v1.major !== v2.major ? prefix + "major" : v1.minor !== v2.minor ? prefix + "minor" : v1.patch !== v2.patch ? prefix + "patch" : "prerelease";
|
|
21291
|
+
};
|
|
21292
|
+
module.exports = diff2;
|
|
21293
|
+
}
|
|
21294
|
+
});
|
|
21295
|
+
|
|
21296
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/major.js
|
|
21297
|
+
var require_major = __commonJS({
|
|
21298
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/major.js"(exports, module) {
|
|
21299
|
+
init_cjs_shims();
|
|
21300
|
+
var SemVer = require_semver(), major = (a, loose) => new SemVer(a, loose).major;
|
|
21301
|
+
module.exports = major;
|
|
21302
|
+
}
|
|
21303
|
+
});
|
|
21304
|
+
|
|
21305
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/minor.js
|
|
21306
|
+
var require_minor = __commonJS({
|
|
21307
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/minor.js"(exports, module) {
|
|
21308
|
+
init_cjs_shims();
|
|
21309
|
+
var SemVer = require_semver(), minor = (a, loose) => new SemVer(a, loose).minor;
|
|
21310
|
+
module.exports = minor;
|
|
21311
|
+
}
|
|
21312
|
+
});
|
|
21313
|
+
|
|
21314
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/patch.js
|
|
21315
|
+
var require_patch = __commonJS({
|
|
21316
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/patch.js"(exports, module) {
|
|
21317
|
+
init_cjs_shims();
|
|
21318
|
+
var SemVer = require_semver(), patch = (a, loose) => new SemVer(a, loose).patch;
|
|
21319
|
+
module.exports = patch;
|
|
21320
|
+
}
|
|
21321
|
+
});
|
|
21322
|
+
|
|
21323
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/prerelease.js
|
|
21324
|
+
var require_prerelease = __commonJS({
|
|
21325
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
21326
|
+
init_cjs_shims();
|
|
21327
|
+
var parse = require_parse(), prerelease = (version, options) => {
|
|
21328
|
+
let parsed = parse(version, options);
|
|
21329
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
21330
|
+
};
|
|
21331
|
+
module.exports = prerelease;
|
|
21332
|
+
}
|
|
21333
|
+
});
|
|
21334
|
+
|
|
21335
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js
|
|
21336
|
+
var require_compare = __commonJS({
|
|
21337
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js"(exports, module) {
|
|
21338
|
+
init_cjs_shims();
|
|
21339
|
+
var SemVer = require_semver(), compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
21340
|
+
module.exports = compare;
|
|
21341
|
+
}
|
|
21342
|
+
});
|
|
21343
|
+
|
|
21344
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rcompare.js
|
|
21345
|
+
var require_rcompare = __commonJS({
|
|
21346
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rcompare.js"(exports, module) {
|
|
21347
|
+
init_cjs_shims();
|
|
21348
|
+
var compare = require_compare(), rcompare = (a, b, loose) => compare(b, a, loose);
|
|
21349
|
+
module.exports = rcompare;
|
|
21350
|
+
}
|
|
21351
|
+
});
|
|
21352
|
+
|
|
21353
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-loose.js
|
|
21354
|
+
var require_compare_loose = __commonJS({
|
|
21355
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-loose.js"(exports, module) {
|
|
21356
|
+
init_cjs_shims();
|
|
21357
|
+
var compare = require_compare(), compareLoose = (a, b) => compare(a, b, !0);
|
|
21358
|
+
module.exports = compareLoose;
|
|
21359
|
+
}
|
|
21360
|
+
});
|
|
21361
|
+
|
|
21362
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-build.js
|
|
21363
|
+
var require_compare_build = __commonJS({
|
|
21364
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-build.js"(exports, module) {
|
|
21365
|
+
init_cjs_shims();
|
|
21366
|
+
var SemVer = require_semver(), compareBuild = (a, b, loose) => {
|
|
21367
|
+
let versionA = new SemVer(a, loose), versionB = new SemVer(b, loose);
|
|
21368
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
21369
|
+
};
|
|
21370
|
+
module.exports = compareBuild;
|
|
21371
|
+
}
|
|
21372
|
+
});
|
|
21373
|
+
|
|
21374
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/sort.js
|
|
21375
|
+
var require_sort = __commonJS({
|
|
21376
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/sort.js"(exports, module) {
|
|
21377
|
+
init_cjs_shims();
|
|
21378
|
+
var compareBuild = require_compare_build(), sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
21379
|
+
module.exports = sort;
|
|
21380
|
+
}
|
|
21381
|
+
});
|
|
21382
|
+
|
|
21383
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rsort.js
|
|
21384
|
+
var require_rsort = __commonJS({
|
|
21385
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rsort.js"(exports, module) {
|
|
21386
|
+
init_cjs_shims();
|
|
21387
|
+
var compareBuild = require_compare_build(), rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
21388
|
+
module.exports = rsort;
|
|
21389
|
+
}
|
|
21390
|
+
});
|
|
21391
|
+
|
|
21392
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gt.js
|
|
21393
|
+
var require_gt = __commonJS({
|
|
21394
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gt.js"(exports, module) {
|
|
21395
|
+
init_cjs_shims();
|
|
21396
|
+
var compare = require_compare(), gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
21397
|
+
module.exports = gt;
|
|
21398
|
+
}
|
|
21399
|
+
});
|
|
21400
|
+
|
|
21401
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lt.js
|
|
21402
|
+
var require_lt = __commonJS({
|
|
21403
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lt.js"(exports, module) {
|
|
21404
|
+
init_cjs_shims();
|
|
21405
|
+
var compare = require_compare(), lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
21406
|
+
module.exports = lt;
|
|
21407
|
+
}
|
|
21408
|
+
});
|
|
21409
|
+
|
|
21410
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/eq.js
|
|
21411
|
+
var require_eq2 = __commonJS({
|
|
21412
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/eq.js"(exports, module) {
|
|
21413
|
+
init_cjs_shims();
|
|
21414
|
+
var compare = require_compare(), eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
21415
|
+
module.exports = eq;
|
|
21416
|
+
}
|
|
21417
|
+
});
|
|
21418
|
+
|
|
21419
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/neq.js
|
|
21420
|
+
var require_neq = __commonJS({
|
|
21421
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/neq.js"(exports, module) {
|
|
21422
|
+
init_cjs_shims();
|
|
21423
|
+
var compare = require_compare(), neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
21424
|
+
module.exports = neq;
|
|
21425
|
+
}
|
|
21426
|
+
});
|
|
21427
|
+
|
|
21428
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gte.js
|
|
21429
|
+
var require_gte = __commonJS({
|
|
21430
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gte.js"(exports, module) {
|
|
21431
|
+
init_cjs_shims();
|
|
21432
|
+
var compare = require_compare(), gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
21433
|
+
module.exports = gte;
|
|
21434
|
+
}
|
|
21435
|
+
});
|
|
21436
|
+
|
|
21437
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lte.js
|
|
21438
|
+
var require_lte = __commonJS({
|
|
21439
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lte.js"(exports, module) {
|
|
21440
|
+
init_cjs_shims();
|
|
21441
|
+
var compare = require_compare(), lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
21442
|
+
module.exports = lte;
|
|
21443
|
+
}
|
|
21444
|
+
});
|
|
21445
|
+
|
|
21446
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/cmp.js
|
|
21447
|
+
var require_cmp = __commonJS({
|
|
21448
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/cmp.js"(exports, module) {
|
|
21449
|
+
init_cjs_shims();
|
|
21450
|
+
var eq = require_eq2(), neq = require_neq(), gt = require_gt(), gte = require_gte(), lt = require_lt(), lte = require_lte(), cmp = (a, op, b, loose) => {
|
|
21451
|
+
switch (op) {
|
|
21452
|
+
case "===":
|
|
21453
|
+
return typeof a == "object" && (a = a.version), typeof b == "object" && (b = b.version), a === b;
|
|
21454
|
+
case "!==":
|
|
21455
|
+
return typeof a == "object" && (a = a.version), typeof b == "object" && (b = b.version), a !== b;
|
|
21456
|
+
case "":
|
|
21457
|
+
case "=":
|
|
21458
|
+
case "==":
|
|
21459
|
+
return eq(a, b, loose);
|
|
21460
|
+
case "!=":
|
|
21461
|
+
return neq(a, b, loose);
|
|
21462
|
+
case ">":
|
|
21463
|
+
return gt(a, b, loose);
|
|
21464
|
+
case ">=":
|
|
21465
|
+
return gte(a, b, loose);
|
|
21466
|
+
case "<":
|
|
21467
|
+
return lt(a, b, loose);
|
|
21468
|
+
case "<=":
|
|
21469
|
+
return lte(a, b, loose);
|
|
21470
|
+
default:
|
|
21471
|
+
throw new TypeError(`Invalid operator: ${op}`);
|
|
21472
|
+
}
|
|
21473
|
+
};
|
|
21474
|
+
module.exports = cmp;
|
|
21475
|
+
}
|
|
21476
|
+
});
|
|
21477
|
+
|
|
21478
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/coerce.js
|
|
21479
|
+
var require_coerce = __commonJS({
|
|
21480
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/coerce.js"(exports, module) {
|
|
21481
|
+
init_cjs_shims();
|
|
21482
|
+
var SemVer = require_semver(), parse = require_parse(), { safeRe: re, t } = require_re(), coerce = (version, options) => {
|
|
21483
|
+
if (version instanceof SemVer)
|
|
21484
|
+
return version;
|
|
21485
|
+
if (typeof version == "number" && (version = String(version)), typeof version != "string")
|
|
21486
|
+
return null;
|
|
21487
|
+
options = options || {};
|
|
21488
|
+
let match2 = null;
|
|
21489
|
+
if (!options.rtl)
|
|
21490
|
+
match2 = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
21491
|
+
else {
|
|
21492
|
+
let coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL], next;
|
|
21493
|
+
for (; (next = coerceRtlRegex.exec(version)) && (!match2 || match2.index + match2[0].length !== version.length); )
|
|
21494
|
+
(!match2 || next.index + next[0].length !== match2.index + match2[0].length) && (match2 = next), coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
21495
|
+
coerceRtlRegex.lastIndex = -1;
|
|
21496
|
+
}
|
|
21497
|
+
if (match2 === null)
|
|
21498
|
+
return null;
|
|
21499
|
+
let major = match2[2], minor = match2[3] || "0", patch = match2[4] || "0", prerelease = options.includePrerelease && match2[5] ? `-${match2[5]}` : "", build = options.includePrerelease && match2[6] ? `+${match2[6]}` : "";
|
|
21500
|
+
return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
21501
|
+
};
|
|
21502
|
+
module.exports = coerce;
|
|
21503
|
+
}
|
|
21504
|
+
});
|
|
21505
|
+
|
|
21506
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/lrucache.js
|
|
21507
|
+
var require_lrucache = __commonJS({
|
|
21508
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/lrucache.js"(exports, module) {
|
|
21509
|
+
init_cjs_shims();
|
|
21510
|
+
var LRUCache = class {
|
|
21511
|
+
constructor() {
|
|
21512
|
+
this.max = 1e3, this.map = /* @__PURE__ */ new Map();
|
|
21513
|
+
}
|
|
21514
|
+
get(key) {
|
|
21515
|
+
let value = this.map.get(key);
|
|
21516
|
+
if (value !== void 0)
|
|
21517
|
+
return this.map.delete(key), this.map.set(key, value), value;
|
|
21518
|
+
}
|
|
21519
|
+
delete(key) {
|
|
21520
|
+
return this.map.delete(key);
|
|
21521
|
+
}
|
|
21522
|
+
set(key, value) {
|
|
21523
|
+
if (!this.delete(key) && value !== void 0) {
|
|
21524
|
+
if (this.map.size >= this.max) {
|
|
21525
|
+
let firstKey = this.map.keys().next().value;
|
|
21526
|
+
this.delete(firstKey);
|
|
21527
|
+
}
|
|
21528
|
+
this.map.set(key, value);
|
|
21529
|
+
}
|
|
21530
|
+
return this;
|
|
21531
|
+
}
|
|
21532
|
+
};
|
|
21533
|
+
module.exports = LRUCache;
|
|
21534
|
+
}
|
|
21535
|
+
});
|
|
21536
|
+
|
|
21537
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js
|
|
21538
|
+
var require_range = __commonJS({
|
|
21539
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js"(exports, module) {
|
|
21540
|
+
init_cjs_shims();
|
|
21541
|
+
var SPACE_CHARACTERS = /\s+/g, Range = class _Range {
|
|
21542
|
+
constructor(range, options) {
|
|
21543
|
+
if (options = parseOptions(options), range instanceof _Range)
|
|
21544
|
+
return range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease ? range : new _Range(range.raw, options);
|
|
21545
|
+
if (range instanceof Comparator)
|
|
21546
|
+
return this.raw = range.value, this.set = [[range]], this.formatted = void 0, this;
|
|
21547
|
+
if (this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease, this.raw = range.trim().replace(SPACE_CHARACTERS, " "), this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length), !this.set.length)
|
|
21548
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
21549
|
+
if (this.set.length > 1) {
|
|
21550
|
+
let first = this.set[0];
|
|
21551
|
+
if (this.set = this.set.filter((c) => !isNullSet(c[0])), this.set.length === 0)
|
|
21552
|
+
this.set = [first];
|
|
21553
|
+
else if (this.set.length > 1) {
|
|
21554
|
+
for (let c of this.set)
|
|
21555
|
+
if (c.length === 1 && isAny(c[0])) {
|
|
21556
|
+
this.set = [c];
|
|
21557
|
+
break;
|
|
21558
|
+
}
|
|
21559
|
+
}
|
|
21560
|
+
}
|
|
21561
|
+
this.formatted = void 0;
|
|
21562
|
+
}
|
|
21563
|
+
get range() {
|
|
21564
|
+
if (this.formatted === void 0) {
|
|
21565
|
+
this.formatted = "";
|
|
21566
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
21567
|
+
i > 0 && (this.formatted += "||");
|
|
21568
|
+
let comps = this.set[i];
|
|
21569
|
+
for (let k = 0; k < comps.length; k++)
|
|
21570
|
+
k > 0 && (this.formatted += " "), this.formatted += comps[k].toString().trim();
|
|
21571
|
+
}
|
|
21572
|
+
}
|
|
21573
|
+
return this.formatted;
|
|
21574
|
+
}
|
|
21575
|
+
format() {
|
|
21576
|
+
return this.range;
|
|
21577
|
+
}
|
|
21578
|
+
toString() {
|
|
21579
|
+
return this.range;
|
|
21580
|
+
}
|
|
21581
|
+
parseRange(range) {
|
|
21582
|
+
let memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range, cached = cache3.get(memoKey);
|
|
21583
|
+
if (cached)
|
|
21584
|
+
return cached;
|
|
21585
|
+
let loose = this.options.loose, hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
21586
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease)), debug("hyphen replace", range), range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace), debug("comparator trim", range), range = range.replace(re[t.TILDETRIM], tildeTrimReplace), debug("tilde trim", range), range = range.replace(re[t.CARETTRIM], caretTrimReplace), debug("caret trim", range);
|
|
21587
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
21588
|
+
loose && (rangeList = rangeList.filter((comp) => (debug("loose invalid filter", comp, this.options), !!comp.match(re[t.COMPARATORLOOSE])))), debug("range list", rangeList);
|
|
21589
|
+
let rangeMap = /* @__PURE__ */ new Map(), comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
21590
|
+
for (let comp of comparators) {
|
|
21591
|
+
if (isNullSet(comp))
|
|
21592
|
+
return [comp];
|
|
21593
|
+
rangeMap.set(comp.value, comp);
|
|
21594
|
+
}
|
|
21595
|
+
rangeMap.size > 1 && rangeMap.has("") && rangeMap.delete("");
|
|
21596
|
+
let result = [...rangeMap.values()];
|
|
21597
|
+
return cache3.set(memoKey, result), result;
|
|
21598
|
+
}
|
|
21599
|
+
intersects(range, options) {
|
|
21600
|
+
if (!(range instanceof _Range))
|
|
21601
|
+
throw new TypeError("a Range is required");
|
|
21602
|
+
return this.set.some((thisComparators) => isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => rangeComparators.every((rangeComparator) => thisComparator.intersects(rangeComparator, options)))));
|
|
21603
|
+
}
|
|
21604
|
+
// if ANY of the sets match ALL of its comparators, then pass
|
|
21605
|
+
test(version) {
|
|
21606
|
+
if (!version)
|
|
21607
|
+
return !1;
|
|
21608
|
+
if (typeof version == "string")
|
|
21609
|
+
try {
|
|
21610
|
+
version = new SemVer(version, this.options);
|
|
21611
|
+
} catch {
|
|
21612
|
+
return !1;
|
|
21613
|
+
}
|
|
21614
|
+
for (let i = 0; i < this.set.length; i++)
|
|
21615
|
+
if (testSet(this.set[i], version, this.options))
|
|
21616
|
+
return !0;
|
|
21617
|
+
return !1;
|
|
21618
|
+
}
|
|
21619
|
+
};
|
|
21620
|
+
module.exports = Range;
|
|
21621
|
+
var LRU = require_lrucache(), cache3 = new LRU(), parseOptions = require_parse_options(), Comparator = require_comparator(), debug = require_debug(), SemVer = require_semver(), {
|
|
21622
|
+
safeRe: re,
|
|
21623
|
+
t,
|
|
21624
|
+
comparatorTrimReplace,
|
|
21625
|
+
tildeTrimReplace,
|
|
21626
|
+
caretTrimReplace
|
|
21627
|
+
} = require_re(), { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants2(), isNullSet = (c) => c.value === "<0.0.0-0", isAny = (c) => c.value === "", isSatisfiable = (comparators, options) => {
|
|
21628
|
+
let result = !0, remainingComparators = comparators.slice(), testComparator = remainingComparators.pop();
|
|
21629
|
+
for (; result && remainingComparators.length; )
|
|
21630
|
+
result = remainingComparators.every((otherComparator) => testComparator.intersects(otherComparator, options)), testComparator = remainingComparators.pop();
|
|
21631
|
+
return result;
|
|
21632
|
+
}, parseComparator = (comp, options) => (debug("comp", comp, options), comp = replaceCarets(comp, options), debug("caret", comp), comp = replaceTildes(comp, options), debug("tildes", comp), comp = replaceXRanges(comp, options), debug("xrange", comp), comp = replaceStars(comp, options), debug("stars", comp), comp), isX = (id) => !id || id.toLowerCase() === "x" || id === "*", replaceTildes = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" "), replaceTilde = (comp, options) => {
|
|
21633
|
+
let r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
21634
|
+
return comp.replace(r, (_2, M, m, p, pr) => {
|
|
21635
|
+
debug("tilde", comp, _2, M, m, p, pr);
|
|
21636
|
+
let ret;
|
|
21637
|
+
return isX(M) ? ret = "" : isX(m) ? ret = `>=${M}.0.0 <${+M + 1}.0.0-0` : isX(p) ? ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0` : pr ? (debug("replaceTilde pr", pr), ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`) : ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`, debug("tilde return", ret), ret;
|
|
21638
|
+
});
|
|
21639
|
+
}, replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" "), replaceCaret = (comp, options) => {
|
|
21640
|
+
debug("caret", comp, options);
|
|
21641
|
+
let r = options.loose ? re[t.CARETLOOSE] : re[t.CARET], z = options.includePrerelease ? "-0" : "";
|
|
21642
|
+
return comp.replace(r, (_2, M, m, p, pr) => {
|
|
21643
|
+
debug("caret", comp, _2, M, m, p, pr);
|
|
21644
|
+
let ret;
|
|
21645
|
+
return isX(M) ? ret = "" : isX(m) ? ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0` : isX(p) ? M === "0" ? ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0` : pr ? (debug("replaceCaret pr", pr), M === "0" ? m === "0" ? ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0` : ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`) : (debug("no pr"), M === "0" ? m === "0" ? ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0` : ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`), debug("caret return", ret), ret;
|
|
21646
|
+
});
|
|
21647
|
+
}, replaceXRanges = (comp, options) => (debug("replaceXRanges", comp, options), comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ")), replaceXRange = (comp, options) => {
|
|
21648
|
+
comp = comp.trim();
|
|
21649
|
+
let r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
21650
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
21651
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
21652
|
+
let xM = isX(M), xm = xM || isX(m), xp = xm || isX(p), anyX = xp;
|
|
21653
|
+
return gtlt === "=" && anyX && (gtlt = ""), pr = options.includePrerelease ? "-0" : "", xM ? gtlt === ">" || gtlt === "<" ? ret = "<0.0.0-0" : ret = "*" : gtlt && anyX ? (xm && (m = 0), p = 0, gtlt === ">" ? (gtlt = ">=", xm ? (M = +M + 1, m = 0, p = 0) : (m = +m + 1, p = 0)) : gtlt === "<=" && (gtlt = "<", xm ? M = +M + 1 : m = +m + 1), gtlt === "<" && (pr = "-0"), ret = `${gtlt + M}.${m}.${p}${pr}`) : xm ? ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0` : xp && (ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`), debug("xRange return", ret), ret;
|
|
21654
|
+
});
|
|
21655
|
+
}, replaceStars = (comp, options) => (debug("replaceStars", comp, options), comp.trim().replace(re[t.STAR], "")), replaceGTE0 = (comp, options) => (debug("replaceGTE0", comp, options), comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "")), hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => (isX(fM) ? from = "" : isX(fm) ? from = `>=${fM}.0.0${incPr ? "-0" : ""}` : isX(fp) ? from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}` : fpr ? from = `>=${from}` : from = `>=${from}${incPr ? "-0" : ""}`, isX(tM) ? to = "" : isX(tm) ? to = `<${+tM + 1}.0.0-0` : isX(tp) ? to = `<${tM}.${+tm + 1}.0-0` : tpr ? to = `<=${tM}.${tm}.${tp}-${tpr}` : incPr ? to = `<${tM}.${tm}.${+tp + 1}-0` : to = `<=${to}`, `${from} ${to}`.trim()), testSet = (set, version, options) => {
|
|
21656
|
+
for (let i = 0; i < set.length; i++)
|
|
21657
|
+
if (!set[i].test(version))
|
|
21658
|
+
return !1;
|
|
21659
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
21660
|
+
for (let i = 0; i < set.length; i++)
|
|
21661
|
+
if (debug(set[i].semver), set[i].semver !== Comparator.ANY && set[i].semver.prerelease.length > 0) {
|
|
21662
|
+
let allowed = set[i].semver;
|
|
21663
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch)
|
|
21664
|
+
return !0;
|
|
21665
|
+
}
|
|
21666
|
+
return !1;
|
|
21667
|
+
}
|
|
21668
|
+
return !0;
|
|
21669
|
+
};
|
|
21670
|
+
}
|
|
21671
|
+
});
|
|
21672
|
+
|
|
21673
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/comparator.js
|
|
21674
|
+
var require_comparator = __commonJS({
|
|
21675
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/comparator.js"(exports, module) {
|
|
21676
|
+
init_cjs_shims();
|
|
21677
|
+
var ANY = Symbol("SemVer ANY"), Comparator = class _Comparator {
|
|
21678
|
+
static get ANY() {
|
|
21679
|
+
return ANY;
|
|
21680
|
+
}
|
|
21681
|
+
constructor(comp, options) {
|
|
21682
|
+
if (options = parseOptions(options), comp instanceof _Comparator) {
|
|
21683
|
+
if (comp.loose === !!options.loose)
|
|
21684
|
+
return comp;
|
|
21685
|
+
comp = comp.value;
|
|
21686
|
+
}
|
|
21687
|
+
comp = comp.trim().split(/\s+/).join(" "), debug("comparator", comp, options), this.options = options, this.loose = !!options.loose, this.parse(comp), this.semver === ANY ? this.value = "" : this.value = this.operator + this.semver.version, debug("comp", this);
|
|
21688
|
+
}
|
|
21689
|
+
parse(comp) {
|
|
21690
|
+
let r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR], m = comp.match(r);
|
|
21691
|
+
if (!m)
|
|
21692
|
+
throw new TypeError(`Invalid comparator: ${comp}`);
|
|
21693
|
+
this.operator = m[1] !== void 0 ? m[1] : "", this.operator === "=" && (this.operator = ""), m[2] ? this.semver = new SemVer(m[2], this.options.loose) : this.semver = ANY;
|
|
21694
|
+
}
|
|
21695
|
+
toString() {
|
|
21696
|
+
return this.value;
|
|
21697
|
+
}
|
|
21698
|
+
test(version) {
|
|
21699
|
+
if (debug("Comparator.test", version, this.options.loose), this.semver === ANY || version === ANY)
|
|
21700
|
+
return !0;
|
|
21701
|
+
if (typeof version == "string")
|
|
21702
|
+
try {
|
|
21703
|
+
version = new SemVer(version, this.options);
|
|
21704
|
+
} catch {
|
|
21705
|
+
return !1;
|
|
21706
|
+
}
|
|
21707
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
21708
|
+
}
|
|
21709
|
+
intersects(comp, options) {
|
|
21710
|
+
if (!(comp instanceof _Comparator))
|
|
21711
|
+
throw new TypeError("a Comparator is required");
|
|
21712
|
+
return this.operator === "" ? this.value === "" ? !0 : new Range(comp.value, options).test(this.value) : comp.operator === "" ? comp.value === "" ? !0 : new Range(this.value, options).test(comp.semver) : (options = parseOptions(options), options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0") || !options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && comp.operator.startsWith(">") || this.operator.startsWith("<") && comp.operator.startsWith("<") || this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=") || cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<") || cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")));
|
|
21713
|
+
}
|
|
21714
|
+
};
|
|
21715
|
+
module.exports = Comparator;
|
|
21716
|
+
var parseOptions = require_parse_options(), { safeRe: re, t } = require_re(), cmp = require_cmp(), debug = require_debug(), SemVer = require_semver(), Range = require_range();
|
|
21717
|
+
}
|
|
21718
|
+
});
|
|
21719
|
+
|
|
21720
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/satisfies.js
|
|
21721
|
+
var require_satisfies = __commonJS({
|
|
21722
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/satisfies.js"(exports, module) {
|
|
21723
|
+
init_cjs_shims();
|
|
21724
|
+
var Range = require_range(), satisfies2 = (version, range, options) => {
|
|
21725
|
+
try {
|
|
21726
|
+
range = new Range(range, options);
|
|
21727
|
+
} catch {
|
|
21728
|
+
return !1;
|
|
21729
|
+
}
|
|
21730
|
+
return range.test(version);
|
|
21731
|
+
};
|
|
21732
|
+
module.exports = satisfies2;
|
|
21733
|
+
}
|
|
21734
|
+
});
|
|
21735
|
+
|
|
21736
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/to-comparators.js
|
|
21737
|
+
var require_to_comparators = __commonJS({
|
|
21738
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/to-comparators.js"(exports, module) {
|
|
21739
|
+
init_cjs_shims();
|
|
21740
|
+
var Range = require_range(), toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
21741
|
+
module.exports = toComparators;
|
|
21742
|
+
}
|
|
21743
|
+
});
|
|
21744
|
+
|
|
21745
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/max-satisfying.js
|
|
21746
|
+
var require_max_satisfying = __commonJS({
|
|
21747
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/max-satisfying.js"(exports, module) {
|
|
21748
|
+
init_cjs_shims();
|
|
21749
|
+
var SemVer = require_semver(), Range = require_range(), maxSatisfying = (versions, range, options) => {
|
|
21750
|
+
let max = null, maxSV = null, rangeObj = null;
|
|
21751
|
+
try {
|
|
21752
|
+
rangeObj = new Range(range, options);
|
|
21753
|
+
} catch {
|
|
21754
|
+
return null;
|
|
21755
|
+
}
|
|
21756
|
+
return versions.forEach((v) => {
|
|
21757
|
+
rangeObj.test(v) && (!max || maxSV.compare(v) === -1) && (max = v, maxSV = new SemVer(max, options));
|
|
21758
|
+
}), max;
|
|
21759
|
+
};
|
|
21760
|
+
module.exports = maxSatisfying;
|
|
21761
|
+
}
|
|
21762
|
+
});
|
|
21763
|
+
|
|
21764
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-satisfying.js
|
|
21765
|
+
var require_min_satisfying = __commonJS({
|
|
21766
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-satisfying.js"(exports, module) {
|
|
21767
|
+
init_cjs_shims();
|
|
21768
|
+
var SemVer = require_semver(), Range = require_range(), minSatisfying = (versions, range, options) => {
|
|
21769
|
+
let min = null, minSV = null, rangeObj = null;
|
|
21770
|
+
try {
|
|
21771
|
+
rangeObj = new Range(range, options);
|
|
21772
|
+
} catch {
|
|
21773
|
+
return null;
|
|
21774
|
+
}
|
|
21775
|
+
return versions.forEach((v) => {
|
|
21776
|
+
rangeObj.test(v) && (!min || minSV.compare(v) === 1) && (min = v, minSV = new SemVer(min, options));
|
|
21777
|
+
}), min;
|
|
21778
|
+
};
|
|
21779
|
+
module.exports = minSatisfying;
|
|
21780
|
+
}
|
|
21781
|
+
});
|
|
21782
|
+
|
|
21783
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-version.js
|
|
21784
|
+
var require_min_version = __commonJS({
|
|
21785
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-version.js"(exports, module) {
|
|
21786
|
+
init_cjs_shims();
|
|
21787
|
+
var SemVer = require_semver(), Range = require_range(), gt = require_gt(), minVersion = (range, loose) => {
|
|
21788
|
+
range = new Range(range, loose);
|
|
21789
|
+
let minver = new SemVer("0.0.0");
|
|
21790
|
+
if (range.test(minver) || (minver = new SemVer("0.0.0-0"), range.test(minver)))
|
|
21791
|
+
return minver;
|
|
21792
|
+
minver = null;
|
|
21793
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
21794
|
+
let comparators = range.set[i], setMin = null;
|
|
21795
|
+
comparators.forEach((comparator) => {
|
|
21796
|
+
let compver = new SemVer(comparator.semver.version);
|
|
21797
|
+
switch (comparator.operator) {
|
|
21798
|
+
case ">":
|
|
21799
|
+
compver.prerelease.length === 0 ? compver.patch++ : compver.prerelease.push(0), compver.raw = compver.format();
|
|
21800
|
+
/* fallthrough */
|
|
21801
|
+
case "":
|
|
21802
|
+
case ">=":
|
|
21803
|
+
(!setMin || gt(compver, setMin)) && (setMin = compver);
|
|
21804
|
+
break;
|
|
21805
|
+
case "<":
|
|
21806
|
+
case "<=":
|
|
21807
|
+
break;
|
|
21808
|
+
/* istanbul ignore next */
|
|
21809
|
+
default:
|
|
21810
|
+
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
21811
|
+
}
|
|
21812
|
+
}), setMin && (!minver || gt(minver, setMin)) && (minver = setMin);
|
|
21813
|
+
}
|
|
21814
|
+
return minver && range.test(minver) ? minver : null;
|
|
21815
|
+
};
|
|
21816
|
+
module.exports = minVersion;
|
|
21817
|
+
}
|
|
21818
|
+
});
|
|
21819
|
+
|
|
21820
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/valid.js
|
|
21821
|
+
var require_valid2 = __commonJS({
|
|
21822
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/valid.js"(exports, module) {
|
|
21823
|
+
init_cjs_shims();
|
|
21824
|
+
var Range = require_range(), validRange = (range, options) => {
|
|
21825
|
+
try {
|
|
21826
|
+
return new Range(range, options).range || "*";
|
|
21827
|
+
} catch {
|
|
21828
|
+
return null;
|
|
21829
|
+
}
|
|
21830
|
+
};
|
|
21831
|
+
module.exports = validRange;
|
|
21832
|
+
}
|
|
21833
|
+
});
|
|
21834
|
+
|
|
21835
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/outside.js
|
|
21836
|
+
var require_outside = __commonJS({
|
|
21837
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/outside.js"(exports, module) {
|
|
21838
|
+
init_cjs_shims();
|
|
21839
|
+
var SemVer = require_semver(), Comparator = require_comparator(), { ANY } = Comparator, Range = require_range(), satisfies2 = require_satisfies(), gt = require_gt(), lt = require_lt(), lte = require_lte(), gte = require_gte(), outside = (version, range, hilo, options) => {
|
|
21840
|
+
version = new SemVer(version, options), range = new Range(range, options);
|
|
21841
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
21842
|
+
switch (hilo) {
|
|
21843
|
+
case ">":
|
|
21844
|
+
gtfn = gt, ltefn = lte, ltfn = lt, comp = ">", ecomp = ">=";
|
|
21845
|
+
break;
|
|
21846
|
+
case "<":
|
|
21847
|
+
gtfn = lt, ltefn = gte, ltfn = gt, comp = "<", ecomp = "<=";
|
|
21848
|
+
break;
|
|
21849
|
+
default:
|
|
21850
|
+
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
21851
|
+
}
|
|
21852
|
+
if (satisfies2(version, range, options))
|
|
21853
|
+
return !1;
|
|
21854
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
21855
|
+
let comparators = range.set[i], high = null, low = null;
|
|
21856
|
+
if (comparators.forEach((comparator) => {
|
|
21857
|
+
comparator.semver === ANY && (comparator = new Comparator(">=0.0.0")), high = high || comparator, low = low || comparator, gtfn(comparator.semver, high.semver, options) ? high = comparator : ltfn(comparator.semver, low.semver, options) && (low = comparator);
|
|
21858
|
+
}), high.operator === comp || high.operator === ecomp || (!low.operator || low.operator === comp) && ltefn(version, low.semver))
|
|
21859
|
+
return !1;
|
|
21860
|
+
if (low.operator === ecomp && ltfn(version, low.semver))
|
|
21861
|
+
return !1;
|
|
21862
|
+
}
|
|
21863
|
+
return !0;
|
|
21864
|
+
};
|
|
21865
|
+
module.exports = outside;
|
|
21866
|
+
}
|
|
21867
|
+
});
|
|
21868
|
+
|
|
21869
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/gtr.js
|
|
21870
|
+
var require_gtr = __commonJS({
|
|
21871
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/gtr.js"(exports, module) {
|
|
21872
|
+
init_cjs_shims();
|
|
21873
|
+
var outside = require_outside(), gtr = (version, range, options) => outside(version, range, ">", options);
|
|
21874
|
+
module.exports = gtr;
|
|
21875
|
+
}
|
|
21876
|
+
});
|
|
21877
|
+
|
|
21878
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/ltr.js
|
|
21879
|
+
var require_ltr = __commonJS({
|
|
21880
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/ltr.js"(exports, module) {
|
|
21881
|
+
init_cjs_shims();
|
|
21882
|
+
var outside = require_outside(), ltr = (version, range, options) => outside(version, range, "<", options);
|
|
21883
|
+
module.exports = ltr;
|
|
21884
|
+
}
|
|
21885
|
+
});
|
|
21886
|
+
|
|
21887
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/intersects.js
|
|
21888
|
+
var require_intersects = __commonJS({
|
|
21889
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/intersects.js"(exports, module) {
|
|
21890
|
+
init_cjs_shims();
|
|
21891
|
+
var Range = require_range(), intersects = (r1, r2, options) => (r1 = new Range(r1, options), r2 = new Range(r2, options), r1.intersects(r2, options));
|
|
21892
|
+
module.exports = intersects;
|
|
21893
|
+
}
|
|
21894
|
+
});
|
|
21895
|
+
|
|
21896
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/simplify.js
|
|
21897
|
+
var require_simplify = __commonJS({
|
|
21898
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/simplify.js"(exports, module) {
|
|
21899
|
+
init_cjs_shims();
|
|
21900
|
+
var satisfies2 = require_satisfies(), compare = require_compare();
|
|
21901
|
+
module.exports = (versions, range, options) => {
|
|
21902
|
+
let set = [], first = null, prev = null, v = versions.sort((a, b) => compare(a, b, options));
|
|
21903
|
+
for (let version of v)
|
|
21904
|
+
satisfies2(version, range, options) ? (prev = version, first || (first = version)) : (prev && set.push([first, prev]), prev = null, first = null);
|
|
21905
|
+
first && set.push([first, null]);
|
|
21906
|
+
let ranges = [];
|
|
21907
|
+
for (let [min, max] of set)
|
|
21908
|
+
min === max ? ranges.push(min) : !max && min === v[0] ? ranges.push("*") : max ? min === v[0] ? ranges.push(`<=${max}`) : ranges.push(`${min} - ${max}`) : ranges.push(`>=${min}`);
|
|
21909
|
+
let simplified = ranges.join(" || "), original = typeof range.raw == "string" ? range.raw : String(range);
|
|
21910
|
+
return simplified.length < original.length ? simplified : range;
|
|
21911
|
+
};
|
|
21912
|
+
}
|
|
21913
|
+
});
|
|
21914
|
+
|
|
21915
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/subset.js
|
|
21916
|
+
var require_subset = __commonJS({
|
|
21917
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/subset.js"(exports, module) {
|
|
21918
|
+
init_cjs_shims();
|
|
21919
|
+
var Range = require_range(), Comparator = require_comparator(), { ANY } = Comparator, satisfies2 = require_satisfies(), compare = require_compare(), subset = (sub, dom, options = {}) => {
|
|
21920
|
+
if (sub === dom)
|
|
21921
|
+
return !0;
|
|
21922
|
+
sub = new Range(sub, options), dom = new Range(dom, options);
|
|
21923
|
+
let sawNonNull = !1;
|
|
21924
|
+
OUTER: for (let simpleSub of sub.set) {
|
|
21925
|
+
for (let simpleDom of dom.set) {
|
|
21926
|
+
let isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
21927
|
+
if (sawNonNull = sawNonNull || isSub !== null, isSub)
|
|
21928
|
+
continue OUTER;
|
|
21929
|
+
}
|
|
21930
|
+
if (sawNonNull)
|
|
21931
|
+
return !1;
|
|
21932
|
+
}
|
|
21933
|
+
return !0;
|
|
21934
|
+
}, minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")], minimumVersion = [new Comparator(">=0.0.0")], simpleSubset = (sub, dom, options) => {
|
|
21935
|
+
if (sub === dom)
|
|
21936
|
+
return !0;
|
|
21937
|
+
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
21938
|
+
if (dom.length === 1 && dom[0].semver === ANY)
|
|
21939
|
+
return !0;
|
|
21940
|
+
options.includePrerelease ? sub = minimumVersionWithPreRelease : sub = minimumVersion;
|
|
21941
|
+
}
|
|
21942
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
21943
|
+
if (options.includePrerelease)
|
|
21944
|
+
return !0;
|
|
21945
|
+
dom = minimumVersion;
|
|
21946
|
+
}
|
|
21947
|
+
let eqSet = /* @__PURE__ */ new Set(), gt, lt;
|
|
21948
|
+
for (let c of sub)
|
|
21949
|
+
c.operator === ">" || c.operator === ">=" ? gt = higherGT(gt, c, options) : c.operator === "<" || c.operator === "<=" ? lt = lowerLT(lt, c, options) : eqSet.add(c.semver);
|
|
21950
|
+
if (eqSet.size > 1)
|
|
21951
|
+
return null;
|
|
21952
|
+
let gtltComp;
|
|
21953
|
+
if (gt && lt) {
|
|
21954
|
+
if (gtltComp = compare(gt.semver, lt.semver, options), gtltComp > 0)
|
|
21955
|
+
return null;
|
|
21956
|
+
if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<="))
|
|
21957
|
+
return null;
|
|
21958
|
+
}
|
|
21959
|
+
for (let eq of eqSet) {
|
|
21960
|
+
if (gt && !satisfies2(eq, String(gt), options) || lt && !satisfies2(eq, String(lt), options))
|
|
21961
|
+
return null;
|
|
21962
|
+
for (let c of dom)
|
|
21963
|
+
if (!satisfies2(eq, String(c), options))
|
|
21964
|
+
return !1;
|
|
21965
|
+
return !0;
|
|
21966
|
+
}
|
|
21967
|
+
let higher, lower, hasDomLT, hasDomGT, needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : !1, needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : !1;
|
|
21968
|
+
needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0 && (needDomLTPre = !1);
|
|
21969
|
+
for (let c of dom) {
|
|
21970
|
+
if (hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=", hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=", gt) {
|
|
21971
|
+
if (needDomGTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch && (needDomGTPre = !1), c.operator === ">" || c.operator === ">=") {
|
|
21972
|
+
if (higher = higherGT(gt, c, options), higher === c && higher !== gt)
|
|
21973
|
+
return !1;
|
|
21974
|
+
} else if (gt.operator === ">=" && !satisfies2(gt.semver, String(c), options))
|
|
21975
|
+
return !1;
|
|
21976
|
+
}
|
|
21977
|
+
if (lt) {
|
|
21978
|
+
if (needDomLTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch && (needDomLTPre = !1), c.operator === "<" || c.operator === "<=") {
|
|
21979
|
+
if (lower = lowerLT(lt, c, options), lower === c && lower !== lt)
|
|
21980
|
+
return !1;
|
|
21981
|
+
} else if (lt.operator === "<=" && !satisfies2(lt.semver, String(c), options))
|
|
21982
|
+
return !1;
|
|
21983
|
+
}
|
|
21984
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0)
|
|
21985
|
+
return !1;
|
|
21986
|
+
}
|
|
21987
|
+
return !(gt && hasDomLT && !lt && gtltComp !== 0 || lt && hasDomGT && !gt && gtltComp !== 0 || needDomGTPre || needDomLTPre);
|
|
21988
|
+
}, higherGT = (a, b, options) => {
|
|
21989
|
+
if (!a)
|
|
21990
|
+
return b;
|
|
21991
|
+
let comp = compare(a.semver, b.semver, options);
|
|
21992
|
+
return comp > 0 ? a : comp < 0 || b.operator === ">" && a.operator === ">=" ? b : a;
|
|
21993
|
+
}, lowerLT = (a, b, options) => {
|
|
21994
|
+
if (!a)
|
|
21995
|
+
return b;
|
|
21996
|
+
let comp = compare(a.semver, b.semver, options);
|
|
21997
|
+
return comp < 0 ? a : comp > 0 || b.operator === "<" && a.operator === "<=" ? b : a;
|
|
21998
|
+
};
|
|
21999
|
+
module.exports = subset;
|
|
22000
|
+
}
|
|
22001
|
+
});
|
|
22002
|
+
|
|
22003
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/index.js
|
|
22004
|
+
var require_semver2 = __commonJS({
|
|
22005
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/index.js"(exports, module) {
|
|
22006
|
+
init_cjs_shims();
|
|
22007
|
+
var internalRe = require_re(), constants3 = require_constants2(), SemVer = require_semver(), identifiers = require_identifiers(), parse = require_parse(), valid = require_valid(), clean = require_clean(), inc = require_inc(), diff2 = require_diff(), major = require_major(), minor = require_minor(), patch = require_patch(), prerelease = require_prerelease(), compare = require_compare(), rcompare = require_rcompare(), compareLoose = require_compare_loose(), compareBuild = require_compare_build(), sort = require_sort(), rsort = require_rsort(), gt = require_gt(), lt = require_lt(), eq = require_eq2(), neq = require_neq(), gte = require_gte(), lte = require_lte(), cmp = require_cmp(), coerce = require_coerce(), Comparator = require_comparator(), Range = require_range(), satisfies2 = require_satisfies(), toComparators = require_to_comparators(), maxSatisfying = require_max_satisfying(), minSatisfying = require_min_satisfying(), minVersion = require_min_version(), validRange = require_valid2(), outside = require_outside(), gtr = require_gtr(), ltr = require_ltr(), intersects = require_intersects(), simplifyRange = require_simplify(), subset = require_subset();
|
|
22008
|
+
module.exports = {
|
|
22009
|
+
parse,
|
|
22010
|
+
valid,
|
|
22011
|
+
clean,
|
|
22012
|
+
inc,
|
|
22013
|
+
diff: diff2,
|
|
22014
|
+
major,
|
|
22015
|
+
minor,
|
|
22016
|
+
patch,
|
|
22017
|
+
prerelease,
|
|
22018
|
+
compare,
|
|
22019
|
+
rcompare,
|
|
22020
|
+
compareLoose,
|
|
22021
|
+
compareBuild,
|
|
22022
|
+
sort,
|
|
22023
|
+
rsort,
|
|
22024
|
+
gt,
|
|
22025
|
+
lt,
|
|
22026
|
+
eq,
|
|
22027
|
+
neq,
|
|
22028
|
+
gte,
|
|
22029
|
+
lte,
|
|
22030
|
+
cmp,
|
|
22031
|
+
coerce,
|
|
22032
|
+
Comparator,
|
|
22033
|
+
Range,
|
|
22034
|
+
satisfies: satisfies2,
|
|
22035
|
+
toComparators,
|
|
22036
|
+
maxSatisfying,
|
|
22037
|
+
minSatisfying,
|
|
22038
|
+
minVersion,
|
|
22039
|
+
validRange,
|
|
22040
|
+
outside,
|
|
22041
|
+
gtr,
|
|
22042
|
+
ltr,
|
|
22043
|
+
intersects,
|
|
22044
|
+
simplifyRange,
|
|
22045
|
+
subset,
|
|
22046
|
+
SemVer,
|
|
22047
|
+
re: internalRe.re,
|
|
22048
|
+
src: internalRe.src,
|
|
22049
|
+
tokens: internalRe.t,
|
|
22050
|
+
SEMVER_SPEC_VERSION: constants3.SEMVER_SPEC_VERSION,
|
|
22051
|
+
RELEASE_TYPES: constants3.RELEASE_TYPES,
|
|
22052
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
22053
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
22054
|
+
};
|
|
20932
22055
|
}
|
|
20933
22056
|
});
|
|
20934
22057
|
|
|
@@ -21787,10 +22910,10 @@ var require_ensure = __commonJS({
|
|
|
21787
22910
|
var require_utils2 = __commonJS({
|
|
21788
22911
|
"../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module) {
|
|
21789
22912
|
init_cjs_shims();
|
|
21790
|
-
function stringify(obj, { EOL
|
|
22913
|
+
function stringify(obj, { EOL = `
|
|
21791
22914
|
`, finalEOL = !0, replacer = null, spaces } = {}) {
|
|
21792
|
-
let EOF = finalEOL ?
|
|
21793
|
-
return JSON.stringify(obj, replacer, spaces).replace(/\n/g,
|
|
22915
|
+
let EOF = finalEOL ? EOL : "";
|
|
22916
|
+
return JSON.stringify(obj, replacer, spaces).replace(/\n/g, EOL) + EOF;
|
|
21794
22917
|
}
|
|
21795
22918
|
function stripBom(content) {
|
|
21796
22919
|
return Buffer.isBuffer(content) && (content = content.toString("utf8")), content.replace(/^\uFEFF/, "");
|
|
@@ -22177,8 +23300,8 @@ var require_getmacaddress_unix = __commonJS({
|
|
|
22177
23300
|
var require_getmacaddress = __commonJS({
|
|
22178
23301
|
"../../node_modules/.pnpm/macaddress@0.5.3/node_modules/macaddress/lib/getmacaddress.js"(exports, module) {
|
|
22179
23302
|
init_cjs_shims();
|
|
22180
|
-
var
|
|
22181
|
-
switch (
|
|
23303
|
+
var os5 = __require("os"), _getMacAddress, _validIfaceRegExp = "^[a-z0-9]+$";
|
|
23304
|
+
switch (os5.platform()) {
|
|
22182
23305
|
case "win32":
|
|
22183
23306
|
_validIfaceRegExp = "^[a-z0-9 -]+$", _getMacAddress = require_getmacaddress_windows();
|
|
22184
23307
|
break;
|
|
@@ -22282,8 +23405,8 @@ var require_getallinterfaces_unix = __commonJS({
|
|
|
22282
23405
|
var require_getallinterfaces = __commonJS({
|
|
22283
23406
|
"../../node_modules/.pnpm/macaddress@0.5.3/node_modules/macaddress/lib/getallinterfaces.js"(exports, module) {
|
|
22284
23407
|
init_cjs_shims();
|
|
22285
|
-
var
|
|
22286
|
-
switch (
|
|
23408
|
+
var os5 = __require("os"), _getAllInterfaces;
|
|
23409
|
+
switch (os5.platform()) {
|
|
22287
23410
|
case "win32":
|
|
22288
23411
|
_getAllInterfaces = require_getallinterfaces_windows();
|
|
22289
23412
|
break;
|
|
@@ -22307,11 +23430,11 @@ var require_getallinterfaces = __commonJS({
|
|
|
22307
23430
|
var require_networkinterfaces = __commonJS({
|
|
22308
23431
|
"../../node_modules/.pnpm/macaddress@0.5.3/node_modules/macaddress/lib/networkinterfaces.js"(exports, module) {
|
|
22309
23432
|
init_cjs_shims();
|
|
22310
|
-
var
|
|
23433
|
+
var os5 = __require("os");
|
|
22311
23434
|
module.exports = function() {
|
|
22312
23435
|
var allAddresses = {};
|
|
22313
23436
|
try {
|
|
22314
|
-
var ifaces =
|
|
23437
|
+
var ifaces = os5.networkInterfaces();
|
|
22315
23438
|
} catch (e) {
|
|
22316
23439
|
if (e.syscall === "uv_interface_addresses")
|
|
22317
23440
|
return allAddresses;
|
|
@@ -22455,7 +23578,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
|
|
|
22455
23578
|
try {
|
|
22456
23579
|
await getAndSet();
|
|
22457
23580
|
} catch (error) {
|
|
22458
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
23581
|
+
let { sendErrorToBugsnag } = await import("./error-handler-2KYYHHUD.js");
|
|
22459
23582
|
await sendErrorToBugsnag(error, "unexpected_error");
|
|
22460
23583
|
}
|
|
22461
23584
|
}, durationStack = [];
|
|
@@ -27065,6 +28188,9 @@ function uniqBy(array, iteratee) {
|
|
|
27065
28188
|
function difference(array, ...values) {
|
|
27066
28189
|
return (0, import_difference.default)(array, ...values);
|
|
27067
28190
|
}
|
|
28191
|
+
function asHumanFriendlyArray(items) {
|
|
28192
|
+
return items.length < 2 ? items : items.reduce((acc, item, index) => (index === items.length - 1 ? acc.push("and") : index !== 0 && acc.push(", "), acc.push(item), acc), []);
|
|
28193
|
+
}
|
|
27068
28194
|
|
|
27069
28195
|
// ../cli-kit/dist/public/common/string.js
|
|
27070
28196
|
var import_change_case = __toESM(require_dist16(), 1), SAFE_RANDOM_BUSINESS_ADJECTIVES = [
|
|
@@ -27851,12 +28977,16 @@ function truncated(text, maxWidth) {
|
|
|
27851
28977
|
return maxWidth ? text.slice(0, maxWidth) : text;
|
|
27852
28978
|
}
|
|
27853
28979
|
var TextAnimation = (0, import_react50.memo)(({ text, maxWidth }) => {
|
|
27854
|
-
let frame = (0, import_react50.useRef)(0), [renderedFrame, setRenderedFrame] = (0, import_react50.useState)(text), timeout = (0, import_react50.useRef)(),
|
|
28980
|
+
let frame = (0, import_react50.useRef)(0), [renderedFrame, setRenderedFrame] = (0, import_react50.useState)(text), timeout = (0, import_react50.useRef)(), { stdout } = use_stdout_default(), [width, setWidth] = (0, import_react50.useState)(maxWidth ?? Math.floor(stdout.columns * 0.66));
|
|
28981
|
+
stdout.on("resize", () => {
|
|
28982
|
+
setWidth(Math.floor(stdout.columns * 0.66));
|
|
28983
|
+
});
|
|
28984
|
+
let renderAnimation = (0, import_react50.useCallback)(() => {
|
|
27855
28985
|
let newFrame = frame.current + 1;
|
|
27856
|
-
frame.current = newFrame, setRenderedFrame(rainbow(truncated(rotated(text, frame.current),
|
|
28986
|
+
frame.current = newFrame, setRenderedFrame(rainbow(truncated(rotated(text, frame.current), width), frame.current)), timeout.current = setTimeout(() => {
|
|
27857
28987
|
renderAnimation();
|
|
27858
28988
|
}, 35);
|
|
27859
|
-
}, [text,
|
|
28989
|
+
}, [text, width]);
|
|
27860
28990
|
return (0, import_react50.useLayoutEffect)(() => (renderAnimation(), () => {
|
|
27861
28991
|
clearTimeout(timeout.current);
|
|
27862
28992
|
}), [renderAnimation]), import_react50.default.createElement(Text, null, renderedFrame);
|
|
@@ -29284,6 +30414,36 @@ function terminalSupportsPrompting() {
|
|
|
29284
30414
|
function isCI() {
|
|
29285
30415
|
return isTruthy(process.env.CI);
|
|
29286
30416
|
}
|
|
30417
|
+
async function isWsl() {
|
|
30418
|
+
return (await import("./is-wsl-YAJ3DFN7.js")).default;
|
|
30419
|
+
}
|
|
30420
|
+
|
|
30421
|
+
// ../cli-kit/dist/public/node/version.js
|
|
30422
|
+
init_cjs_shims();
|
|
30423
|
+
var import_which2 = __toESM(require_lib2(), 1), import_semver = __toESM(require_semver2(), 1);
|
|
30424
|
+
async function localCLIVersion(directory) {
|
|
30425
|
+
try {
|
|
30426
|
+
return (await captureOutput("npm", ["list", "@shopify/cli"], { cwd: directory })).match(/@shopify\/cli@([\w.-]*)/)?.[1];
|
|
30427
|
+
} catch {
|
|
30428
|
+
return;
|
|
30429
|
+
}
|
|
30430
|
+
}
|
|
30431
|
+
async function globalCLIVersion() {
|
|
30432
|
+
try {
|
|
30433
|
+
let env3 = { ...process.env, SHOPIFY_CLI_NO_ANALYTICS: "1" }, shopifyBinaries = import_which2.default.sync("shopify", { all: !0 }).filter((path8) => !path8.includes("node_modules"));
|
|
30434
|
+
if (!shopifyBinaries[0])
|
|
30435
|
+
return;
|
|
30436
|
+
let versionMatch = (await captureOutput(shopifyBinaries[0], [], { env: env3 })).match(/@shopify\/cli\/([^\s]+)/);
|
|
30437
|
+
if (versionMatch && versionMatch[1]) {
|
|
30438
|
+
let version = versionMatch[1];
|
|
30439
|
+
if ((0, import_semver.satisfies)(version, ">=3.59.0") || version.startsWith("0.0.0"))
|
|
30440
|
+
return version;
|
|
30441
|
+
}
|
|
30442
|
+
return;
|
|
30443
|
+
} catch {
|
|
30444
|
+
return;
|
|
30445
|
+
}
|
|
30446
|
+
}
|
|
29287
30447
|
|
|
29288
30448
|
// ../cli-kit/dist/public/node/is-global.js
|
|
29289
30449
|
var _isGlobal;
|
|
@@ -29297,20 +30457,12 @@ function currentProcessIsGlobal(argv = process.argv) {
|
|
|
29297
30457
|
return !1;
|
|
29298
30458
|
}
|
|
29299
30459
|
}
|
|
29300
|
-
async function isGlobalCLIInstalled() {
|
|
29301
|
-
try {
|
|
29302
|
-
let env3 = { ...process.env, SHOPIFY_CLI_NO_ANALYTICS: "1" };
|
|
29303
|
-
return (await captureOutput("shopify", ["app"], { env: env3 })).includes("app dev");
|
|
29304
|
-
} catch {
|
|
29305
|
-
return !1;
|
|
29306
|
-
}
|
|
29307
|
-
}
|
|
29308
30460
|
async function installGlobalShopifyCLI(packageManager) {
|
|
29309
30461
|
let args = packageManager === "yarn" ? ["global", "add", "@shopify/cli@latest"] : ["install", "-g", "@shopify/cli@latest"];
|
|
29310
30462
|
outputInfo(`Running ${packageManager} ${args.join(" ")}...`), await exec3(packageManager, args, { stdio: "inherit" });
|
|
29311
30463
|
}
|
|
29312
30464
|
async function installGlobalCLIPrompt() {
|
|
29313
|
-
return terminalSupportsPrompting() ? await
|
|
30465
|
+
return terminalSupportsPrompting() ? await globalCLIVersion() ? { install: !1, alreadyInstalled: !0 } : { install: await renderSelectPrompt({
|
|
29314
30466
|
message: "We recommend installing Shopify CLI globally in your system. Would you like to install it now?",
|
|
29315
30467
|
choices: [
|
|
29316
30468
|
{ value: "yes", label: "Yes" },
|
|
@@ -30686,22 +31838,22 @@ var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/, regExpEscape2 = (s) => s.replace(/[-[
|
|
|
30686
31838
|
return globParts.filter((gs) => gs.length);
|
|
30687
31839
|
}
|
|
30688
31840
|
partsMatch(a, b, emptyGSMatch = !1) {
|
|
30689
|
-
let ai = 0, bi = 0, result = [],
|
|
31841
|
+
let ai = 0, bi = 0, result = [], which3 = "";
|
|
30690
31842
|
for (; ai < a.length && bi < b.length; )
|
|
30691
31843
|
if (a[ai] === b[bi])
|
|
30692
|
-
result.push(
|
|
31844
|
+
result.push(which3 === "b" ? b[bi] : a[ai]), ai++, bi++;
|
|
30693
31845
|
else if (emptyGSMatch && a[ai] === "**" && b[bi] === a[ai + 1])
|
|
30694
31846
|
result.push(a[ai]), ai++;
|
|
30695
31847
|
else if (emptyGSMatch && b[bi] === "**" && a[ai] === b[bi + 1])
|
|
30696
31848
|
result.push(b[bi]), bi++;
|
|
30697
31849
|
else if (a[ai] === "*" && b[bi] && (this.options.dot || !b[bi].startsWith(".")) && b[bi] !== "**") {
|
|
30698
|
-
if (
|
|
31850
|
+
if (which3 === "b")
|
|
30699
31851
|
return !1;
|
|
30700
|
-
|
|
31852
|
+
which3 = "a", result.push(a[ai]), ai++, bi++;
|
|
30701
31853
|
} else if (b[bi] === "*" && a[ai] && (this.options.dot || !a[ai].startsWith(".")) && a[ai] !== "**") {
|
|
30702
|
-
if (
|
|
31854
|
+
if (which3 === "a")
|
|
30703
31855
|
return !1;
|
|
30704
|
-
|
|
31856
|
+
which3 = "b", result.push(b[bi]), ai++, bi++;
|
|
30705
31857
|
} else
|
|
30706
31858
|
return !1;
|
|
30707
31859
|
return a.length === b.length && result;
|
|
@@ -30850,7 +32002,6 @@ minimatch.unescape = unescape2;
|
|
|
30850
32002
|
// ../cli-kit/dist/public/node/fs.js
|
|
30851
32003
|
import { mkdirSync as fsMkdirSync, readFileSync as fsReadFileSync, writeFileSync as fsWriteFileSync, appendFileSync as fsAppendFileSync, statSync as fsStatSync, createReadStream as fsCreateReadStream, createWriteStream as fsCreateWriteStream, constants as fsConstants, existsSync as fsFileExistsSync, unlinkSync as fsUnlinkSync } from "fs";
|
|
30852
32004
|
import { mkdir as fsMkdir, writeFile as fsWriteFile, readFile as fsReadFile, realpath as fsRealPath, appendFile as fsAppendFile, mkdtemp as fsMkdtemp, stat as fsStat, lstat as fsLstat, chmod as fsChmod, access as fsAccess, rename as fsRename, unlink as fsUnlink } from "fs/promises";
|
|
30853
|
-
import * as os4 from "os";
|
|
30854
32005
|
async function inTemporaryDirectory(callback) {
|
|
30855
32006
|
return temporaryDirectoryTask(callback);
|
|
30856
32007
|
}
|
|
@@ -30888,9 +32039,6 @@ function writeFileSync(path8, data) {
|
|
|
30888
32039
|
async function mkdir(path8) {
|
|
30889
32040
|
outputDebug(outputContent`Creating directory at ${outputToken.path(path8)}...`), await fsMkdir(path8, { recursive: !0 });
|
|
30890
32041
|
}
|
|
30891
|
-
function mkdirSync(path8) {
|
|
30892
|
-
outputDebug(outputContent`Sync-creating directory at ${outputToken.path(path8)}...`), fsMkdirSync(path8, { recursive: !0 });
|
|
30893
|
-
}
|
|
30894
32042
|
async function removeFile(path8) {
|
|
30895
32043
|
outputDebug(outputContent`Removing file at ${outputToken.path(path8)}...`), await remove(path8);
|
|
30896
32044
|
}
|
|
@@ -30957,20 +32105,6 @@ async function glob(pattern, options) {
|
|
|
30957
32105
|
let { default: fastGlob } = await import("./out-AZBX4ITJ.js"), overridenOptions = options;
|
|
30958
32106
|
return options?.dot == null && (overridenOptions = { ...options, dot: !0 }), fastGlob(pattern, overridenOptions);
|
|
30959
32107
|
}
|
|
30960
|
-
function detectEOL(content) {
|
|
30961
|
-
let match2 = content.match(/\r\n|\n/g);
|
|
30962
|
-
if (!match2)
|
|
30963
|
-
return defaultEOL();
|
|
30964
|
-
let crlf = match2.filter((eol) => eol === `\r
|
|
30965
|
-
`).length, lf = match2.filter((eol) => eol === `
|
|
30966
|
-
`).length;
|
|
30967
|
-
return crlf > lf ? `\r
|
|
30968
|
-
` : `
|
|
30969
|
-
`;
|
|
30970
|
-
}
|
|
30971
|
-
function defaultEOL() {
|
|
30972
|
-
return os4.EOL;
|
|
30973
|
-
}
|
|
30974
32108
|
async function findPathUp(matcher, options) {
|
|
30975
32109
|
let got = await findUp(matcher, options);
|
|
30976
32110
|
return got ? normalizePath(got) : void 0;
|
|
@@ -30985,16 +32119,16 @@ init_cjs_shims();
|
|
|
30985
32119
|
// ../../node_modules/.pnpm/env-paths@3.0.0/node_modules/env-paths/index.js
|
|
30986
32120
|
init_cjs_shims();
|
|
30987
32121
|
import path7 from "node:path";
|
|
30988
|
-
import
|
|
32122
|
+
import os4 from "node:os";
|
|
30989
32123
|
import process20 from "node:process";
|
|
30990
|
-
var homedir =
|
|
32124
|
+
var homedir = os4.homedir(), tmpdir = os4.tmpdir(), { env: env2 } = process20, macos = (name) => {
|
|
30991
32125
|
let library = path7.join(homedir, "Library");
|
|
30992
32126
|
return {
|
|
30993
32127
|
data: path7.join(library, "Application Support", name),
|
|
30994
32128
|
config: path7.join(library, "Preferences", name),
|
|
30995
32129
|
cache: path7.join(library, "Caches", name),
|
|
30996
32130
|
log: path7.join(library, "Logs", name),
|
|
30997
|
-
temp: path7.join(
|
|
32131
|
+
temp: path7.join(tmpdir, name)
|
|
30998
32132
|
};
|
|
30999
32133
|
}, windows = (name) => {
|
|
31000
32134
|
let appData = env2.APPDATA || path7.join(homedir, "AppData", "Roaming"), localAppData = env2.LOCALAPPDATA || path7.join(homedir, "AppData", "Local");
|
|
@@ -31004,7 +32138,7 @@ var homedir = os5.homedir(), tmpdir2 = os5.tmpdir(), { env: env2 } = process20,
|
|
|
31004
32138
|
config: path7.join(appData, name, "Config"),
|
|
31005
32139
|
cache: path7.join(localAppData, name, "Cache"),
|
|
31006
32140
|
log: path7.join(localAppData, name, "Log"),
|
|
31007
|
-
temp: path7.join(
|
|
32141
|
+
temp: path7.join(tmpdir, name)
|
|
31008
32142
|
};
|
|
31009
32143
|
}, linux = (name) => {
|
|
31010
32144
|
let username2 = path7.basename(homedir);
|
|
@@ -31014,7 +32148,7 @@ var homedir = os5.homedir(), tmpdir2 = os5.tmpdir(), { env: env2 } = process20,
|
|
|
31014
32148
|
cache: path7.join(env2.XDG_CACHE_HOME || path7.join(homedir, ".cache"), name),
|
|
31015
32149
|
// https://wiki.debian.org/XDGBaseDirectorySpecification#state
|
|
31016
32150
|
log: path7.join(env2.XDG_STATE_HOME || path7.join(homedir, ".local", "state"), name),
|
|
31017
|
-
temp: path7.join(
|
|
32151
|
+
temp: path7.join(tmpdir, username2, name)
|
|
31018
32152
|
};
|
|
31019
32153
|
};
|
|
31020
32154
|
function envPaths(name, { suffix = "nodejs" } = {}) {
|
|
@@ -31230,60 +32364,6 @@ function getCIMetadata(envName, envs) {
|
|
|
31230
32364
|
}
|
|
31231
32365
|
}
|
|
31232
32366
|
|
|
31233
|
-
// ../cli-kit/dist/public/node/environment.js
|
|
31234
|
-
init_cjs_shims();
|
|
31235
|
-
|
|
31236
|
-
// ../cli-kit/dist/public/node/crypto.js
|
|
31237
|
-
init_cjs_shims();
|
|
31238
|
-
import crypto2 from "crypto";
|
|
31239
|
-
function hashString(str) {
|
|
31240
|
-
return crypto2.createHash("sha1").update(str).digest("hex");
|
|
31241
|
-
}
|
|
31242
|
-
function fileHash(buff) {
|
|
31243
|
-
return crypto2.createHash("md5").update(buff).digest("hex");
|
|
31244
|
-
}
|
|
31245
|
-
function randomUUID() {
|
|
31246
|
-
return crypto2.randomUUID();
|
|
31247
|
-
}
|
|
31248
|
-
function nonRandomUUID(subject) {
|
|
31249
|
-
return crypto2.createHash("sha1").update(Buffer.from("6ba7b810-9dad-11d1-80b4-00c04fd430c8".replace(/-/g, ""), "hex")).update(subject).digest().toString("hex").replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, "$1-$2-$3-$4-$5");
|
|
31250
|
-
}
|
|
31251
|
-
|
|
31252
|
-
// ../cli-kit/dist/public/node/environment.js
|
|
31253
|
-
function getEnvironmentVariables() {
|
|
31254
|
-
return process.env;
|
|
31255
|
-
}
|
|
31256
|
-
function getPartnersToken() {
|
|
31257
|
-
return getEnvironmentVariables()[environmentVariables.partnersToken];
|
|
31258
|
-
}
|
|
31259
|
-
function getBackendPort() {
|
|
31260
|
-
let backendPort = getEnvironmentVariables()[systemEnvironmentVariables.backendPort];
|
|
31261
|
-
if (backendPort && !isNaN(Number(backendPort)))
|
|
31262
|
-
return Number(backendPort);
|
|
31263
|
-
}
|
|
31264
|
-
function getIdentityTokenInformation() {
|
|
31265
|
-
let identityToken = getEnvironmentVariables()[environmentVariables.identityToken], refreshToken = getEnvironmentVariables()[environmentVariables.refreshToken];
|
|
31266
|
-
if (!(!identityToken || !refreshToken))
|
|
31267
|
-
return {
|
|
31268
|
-
accessToken: identityToken,
|
|
31269
|
-
refreshToken,
|
|
31270
|
-
userId: nonRandomUUID(identityToken)
|
|
31271
|
-
};
|
|
31272
|
-
}
|
|
31273
|
-
function jsonOutputEnabled(environment = getEnvironmentVariables()) {
|
|
31274
|
-
return sniffForJson() || isTruthy(environment[environmentVariables.json]);
|
|
31275
|
-
}
|
|
31276
|
-
function blockPartnersAccess() {
|
|
31277
|
-
return isTruthy(getEnvironmentVariables()[environmentVariables.neverUsePartnersApi]);
|
|
31278
|
-
}
|
|
31279
|
-
function skipNetworkLevelRetry(environment = getEnvironmentVariables()) {
|
|
31280
|
-
return isTruthy(environment[environmentVariables.skipNetworkLevelRetry]);
|
|
31281
|
-
}
|
|
31282
|
-
function maxRequestTimeForNetworkCallsMs(environment = getEnvironmentVariables()) {
|
|
31283
|
-
let maxRequestTime = environment[environmentVariables.maxRequestTimeForNetworkCalls];
|
|
31284
|
-
return maxRequestTime && !isNaN(Number(maxRequestTime)) ? Number(maxRequestTime) : 15 * 1e3;
|
|
31285
|
-
}
|
|
31286
|
-
|
|
31287
32367
|
// ../../node_modules/.pnpm/is-interactive@2.0.0/node_modules/is-interactive/index.js
|
|
31288
32368
|
init_cjs_shims();
|
|
31289
32369
|
function isInteractive({ stream: stream2 = process.stdout } = {}) {
|
|
@@ -31305,9 +32385,6 @@ function isDevelopment(env3 = process.env) {
|
|
|
31305
32385
|
function isVerbose(env3 = process.env) {
|
|
31306
32386
|
return isTruthy(env3[environmentVariables.verbose]) || process.argv.includes("--verbose");
|
|
31307
32387
|
}
|
|
31308
|
-
function isAppManagementDisabled() {
|
|
31309
|
-
return !!getPartnersToken();
|
|
31310
|
-
}
|
|
31311
32388
|
async function isShopify(env3 = process.env) {
|
|
31312
32389
|
return Object.prototype.hasOwnProperty.call(env3, environmentVariables.runAsUser) ? !isTruthy(env3[environmentVariables.runAsUser]) : await fileExists(pathConstants.executables.dev) || isSpin(env3);
|
|
31313
32390
|
}
|
|
@@ -31434,6 +32511,7 @@ export {
|
|
|
31434
32511
|
uniq,
|
|
31435
32512
|
uniqBy,
|
|
31436
32513
|
difference,
|
|
32514
|
+
asHumanFriendlyArray,
|
|
31437
32515
|
getRandomName,
|
|
31438
32516
|
capitalize,
|
|
31439
32517
|
pluralize,
|
|
@@ -31459,7 +32537,6 @@ export {
|
|
|
31459
32537
|
writeFile,
|
|
31460
32538
|
writeFileSync,
|
|
31461
32539
|
mkdir,
|
|
31462
|
-
mkdirSync,
|
|
31463
32540
|
removeFile,
|
|
31464
32541
|
removeFileSync,
|
|
31465
32542
|
rmdir,
|
|
@@ -31476,12 +32553,12 @@ export {
|
|
|
31476
32553
|
fileExistsSync,
|
|
31477
32554
|
generateRandomNameForSubdirectory,
|
|
31478
32555
|
glob,
|
|
31479
|
-
detectEOL,
|
|
31480
32556
|
findPathUp,
|
|
31481
32557
|
matchGlob,
|
|
31482
32558
|
envPaths,
|
|
31483
32559
|
logsFolder,
|
|
31484
32560
|
environmentVariables,
|
|
32561
|
+
systemEnvironmentVariables,
|
|
31485
32562
|
sessionConstants,
|
|
31486
32563
|
bugsnagApiKey,
|
|
31487
32564
|
reportingRateLimit,
|
|
@@ -31500,6 +32577,7 @@ export {
|
|
|
31500
32577
|
sleep,
|
|
31501
32578
|
terminalSupportsPrompting,
|
|
31502
32579
|
isCI,
|
|
32580
|
+
isWsl,
|
|
31503
32581
|
Environment,
|
|
31504
32582
|
serviceEnvironment,
|
|
31505
32583
|
spinFqdn,
|
|
@@ -31509,23 +32587,10 @@ export {
|
|
|
31509
32587
|
appHost,
|
|
31510
32588
|
spinVariables,
|
|
31511
32589
|
fetchSpinPort,
|
|
31512
|
-
hashString,
|
|
31513
|
-
fileHash,
|
|
31514
|
-
randomUUID,
|
|
31515
|
-
nonRandomUUID,
|
|
31516
|
-
getEnvironmentVariables,
|
|
31517
|
-
getPartnersToken,
|
|
31518
|
-
getBackendPort,
|
|
31519
|
-
getIdentityTokenInformation,
|
|
31520
|
-
jsonOutputEnabled,
|
|
31521
|
-
blockPartnersAccess,
|
|
31522
|
-
skipNetworkLevelRetry,
|
|
31523
|
-
maxRequestTimeForNetworkCallsMs,
|
|
31524
32590
|
isTerminalInteractive,
|
|
31525
32591
|
homeDirectory,
|
|
31526
32592
|
isDevelopment,
|
|
31527
32593
|
isVerbose,
|
|
31528
|
-
isAppManagementDisabled,
|
|
31529
32594
|
isShopify,
|
|
31530
32595
|
isUnitTest,
|
|
31531
32596
|
analyticsDisabled,
|
|
@@ -31545,6 +32610,9 @@ export {
|
|
|
31545
32610
|
macAddress,
|
|
31546
32611
|
getThemeKitAccessDomain,
|
|
31547
32612
|
opentelemetryDomain,
|
|
32613
|
+
require_semver2 as require_semver,
|
|
32614
|
+
localCLIVersion,
|
|
32615
|
+
globalCLIVersion,
|
|
31548
32616
|
currentProcessIsGlobal,
|
|
31549
32617
|
installGlobalShopifyCLI,
|
|
31550
32618
|
installGlobalCLIPrompt,
|
|
@@ -31598,6 +32666,7 @@ export {
|
|
|
31598
32666
|
ConcurrentOutput,
|
|
31599
32667
|
render2 as render,
|
|
31600
32668
|
handleCtrlC,
|
|
32669
|
+
Alert,
|
|
31601
32670
|
useAbortSignal,
|
|
31602
32671
|
require_baseForOwn,
|
|
31603
32672
|
require_baseEach,
|
|
@@ -31709,4 +32778,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
|
31709
32778
|
* LICENSE file in the root directory of this source tree.
|
|
31710
32779
|
*)
|
|
31711
32780
|
*/
|
|
31712
|
-
//# sourceMappingURL=chunk-
|
|
32781
|
+
//# sourceMappingURL=chunk-HSB3QV4W.js.map
|