@shopify/create-app 3.82.1 → 3.83.1
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-75QMAARJ.js → chunk-EU5PDVVS.js} +799 -1168
- package/dist/{chunk-ZIXYVUD6.js → chunk-GDQXK7SS.js} +5 -5
- package/dist/{chunk-2YVW3FGK.js → chunk-H3GWNOGA.js} +7817 -11862
- package/dist/chunk-LABBARNJ.js +76 -0
- package/dist/{chunk-ILI5X6PP.js → chunk-O4KAJGU5.js} +2 -2
- package/dist/{chunk-H2RMSP56.js → chunk-ROHZIBAY.js} +13 -11
- package/dist/{chunk-4ZPIFK7H.js → chunk-S3IDOXGB.js} +5 -3
- package/dist/{chunk-6OWK7KKO.js → chunk-ULXZG5FG.js} +6 -6
- package/dist/{chunk-TNRWP2XN.js → chunk-XM645PFF.js} +5 -5
- package/dist/{custom-oclif-loader-2KUDQ6HQ.js → custom-oclif-loader-7EOQDX6M.js} +4 -6
- package/dist/{chunk-VMUIREUQ.js → del-4XMQNWFE.js} +364 -72
- package/dist/{error-handler-SWZ4Y54O.js → error-handler-C6Y3FZJC.js} +8 -10
- package/dist/hooks/postrun.js +6 -8
- package/dist/hooks/prerun.js +6 -8
- package/dist/{http-proxy-LHSVRGJ5.js → http-proxy-node16-T623PGD4.js} +37 -29
- package/dist/index.js +36083 -36891
- package/dist/lib-CLQ247I5.js +9 -0
- package/dist/{local-KOMGI74N.js → local-OQFLNNSH.js} +4 -6
- package/dist/{node-package-manager-HDKMIXR2.js → node-package-manager-QPXWQ6QR.js} +5 -7
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-2DQEYOWO.js → ui-CS3NGQRA.js} +4 -6
- package/oclif.manifest.json +1 -1
- package/package.json +4 -5
- package/dist/del-MOZRBB7Y.js +0 -374
- package/dist/lib-UJ7YNLH4.js +0 -11
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
+
require_ansi_styles,
|
|
2
3
|
require_brace_expansion,
|
|
3
|
-
require_cross_spawn,
|
|
4
4
|
require_lib,
|
|
5
|
-
|
|
6
|
-
require_source_map
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
require_semver,
|
|
6
|
+
require_source_map
|
|
7
|
+
} from "./chunk-H3GWNOGA.js";
|
|
8
|
+
import {
|
|
9
|
+
require_has_flag
|
|
10
|
+
} from "./chunk-UMUTXITN.js";
|
|
9
11
|
import {
|
|
10
12
|
cwd,
|
|
11
13
|
delimiter,
|
|
@@ -1818,7 +1820,7 @@ var require_throttle = __commonJS({
|
|
|
1818
1820
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/throttle.js"(exports, module) {
|
|
1819
1821
|
init_cjs_shims();
|
|
1820
1822
|
var debounce2 = require_debounce(), isObject = require_isObject(), FUNC_ERROR_TEXT = "Expected a function";
|
|
1821
|
-
function
|
|
1823
|
+
function throttle3(func, wait, options) {
|
|
1822
1824
|
var leading = !0, trailing = !0;
|
|
1823
1825
|
if (typeof func != "function")
|
|
1824
1826
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
@@ -1828,7 +1830,7 @@ var require_throttle = __commonJS({
|
|
|
1828
1830
|
trailing
|
|
1829
1831
|
});
|
|
1830
1832
|
}
|
|
1831
|
-
module.exports =
|
|
1833
|
+
module.exports = throttle3;
|
|
1832
1834
|
}
|
|
1833
1835
|
});
|
|
1834
1836
|
|
|
@@ -16168,6 +16170,138 @@ var require_dist = __commonJS({
|
|
|
16168
16170
|
}
|
|
16169
16171
|
});
|
|
16170
16172
|
|
|
16173
|
+
// ../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js
|
|
16174
|
+
var require_supports_color = __commonJS({
|
|
16175
|
+
"../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports, module) {
|
|
16176
|
+
"use strict";
|
|
16177
|
+
init_cjs_shims();
|
|
16178
|
+
var os5 = __require("os"), tty2 = __require("tty"), hasFlag2 = require_has_flag(), { env: env3 } = process, forceColor;
|
|
16179
|
+
hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never") ? forceColor = 0 : (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) && (forceColor = 1);
|
|
16180
|
+
"FORCE_COLOR" in env3 && (env3.FORCE_COLOR === "true" ? forceColor = 1 : env3.FORCE_COLOR === "false" ? forceColor = 0 : forceColor = env3.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env3.FORCE_COLOR, 10), 3));
|
|
16181
|
+
function translateLevel2(level) {
|
|
16182
|
+
return level === 0 ? !1 : {
|
|
16183
|
+
level,
|
|
16184
|
+
hasBasic: !0,
|
|
16185
|
+
has256: level >= 2,
|
|
16186
|
+
has16m: level >= 3
|
|
16187
|
+
};
|
|
16188
|
+
}
|
|
16189
|
+
function supportsColor3(haveStream, streamIsTTY) {
|
|
16190
|
+
if (forceColor === 0)
|
|
16191
|
+
return 0;
|
|
16192
|
+
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor"))
|
|
16193
|
+
return 3;
|
|
16194
|
+
if (hasFlag2("color=256"))
|
|
16195
|
+
return 2;
|
|
16196
|
+
if (haveStream && !streamIsTTY && forceColor === void 0)
|
|
16197
|
+
return 0;
|
|
16198
|
+
let min = forceColor || 0;
|
|
16199
|
+
if (env3.TERM === "dumb")
|
|
16200
|
+
return min;
|
|
16201
|
+
if (process.platform === "win32") {
|
|
16202
|
+
let osRelease = os5.release().split(".");
|
|
16203
|
+
return Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586 ? Number(osRelease[2]) >= 14931 ? 3 : 2 : 1;
|
|
16204
|
+
}
|
|
16205
|
+
if ("CI" in env3)
|
|
16206
|
+
return ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env3) || env3.CI_NAME === "codeship" ? 1 : min;
|
|
16207
|
+
if ("TEAMCITY_VERSION" in env3)
|
|
16208
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env3.TEAMCITY_VERSION) ? 1 : 0;
|
|
16209
|
+
if (env3.COLORTERM === "truecolor")
|
|
16210
|
+
return 3;
|
|
16211
|
+
if ("TERM_PROGRAM" in env3) {
|
|
16212
|
+
let version = parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
16213
|
+
switch (env3.TERM_PROGRAM) {
|
|
16214
|
+
case "iTerm.app":
|
|
16215
|
+
return version >= 3 ? 3 : 2;
|
|
16216
|
+
case "Apple_Terminal":
|
|
16217
|
+
return 2;
|
|
16218
|
+
}
|
|
16219
|
+
}
|
|
16220
|
+
return /-256(color)?$/i.test(env3.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env3.TERM) || "COLORTERM" in env3 ? 1 : min;
|
|
16221
|
+
}
|
|
16222
|
+
function getSupportLevel(stream2) {
|
|
16223
|
+
let level = supportsColor3(stream2, stream2 && stream2.isTTY);
|
|
16224
|
+
return translateLevel2(level);
|
|
16225
|
+
}
|
|
16226
|
+
module.exports = {
|
|
16227
|
+
supportsColor: getSupportLevel,
|
|
16228
|
+
stdout: translateLevel2(supportsColor3(!0, tty2.isatty(1))),
|
|
16229
|
+
stderr: translateLevel2(supportsColor3(!0, tty2.isatty(2)))
|
|
16230
|
+
};
|
|
16231
|
+
}
|
|
16232
|
+
});
|
|
16233
|
+
|
|
16234
|
+
// ../../node_modules/.pnpm/supports-hyperlinks@3.1.0/node_modules/supports-hyperlinks/index.js
|
|
16235
|
+
var require_supports_hyperlinks = __commonJS({
|
|
16236
|
+
"../../node_modules/.pnpm/supports-hyperlinks@3.1.0/node_modules/supports-hyperlinks/index.js"(exports, module) {
|
|
16237
|
+
"use strict";
|
|
16238
|
+
init_cjs_shims();
|
|
16239
|
+
var supportsColor3 = require_supports_color(), hasFlag2 = require_has_flag();
|
|
16240
|
+
function parseVersion(versionString) {
|
|
16241
|
+
if (/^\d{3,4}$/.test(versionString)) {
|
|
16242
|
+
let m = /(\d{1,2})(\d{2})/.exec(versionString) || [];
|
|
16243
|
+
return {
|
|
16244
|
+
major: 0,
|
|
16245
|
+
minor: parseInt(m[1], 10),
|
|
16246
|
+
patch: parseInt(m[2], 10)
|
|
16247
|
+
};
|
|
16248
|
+
}
|
|
16249
|
+
let versions = (versionString || "").split(".").map((n) => parseInt(n, 10));
|
|
16250
|
+
return {
|
|
16251
|
+
major: versions[0],
|
|
16252
|
+
minor: versions[1],
|
|
16253
|
+
patch: versions[2]
|
|
16254
|
+
};
|
|
16255
|
+
}
|
|
16256
|
+
function supportsHyperlink(stream2) {
|
|
16257
|
+
let {
|
|
16258
|
+
CI,
|
|
16259
|
+
FORCE_HYPERLINK,
|
|
16260
|
+
NETLIFY,
|
|
16261
|
+
TEAMCITY_VERSION,
|
|
16262
|
+
TERM_PROGRAM,
|
|
16263
|
+
TERM_PROGRAM_VERSION,
|
|
16264
|
+
VTE_VERSION
|
|
16265
|
+
} = process.env;
|
|
16266
|
+
if (FORCE_HYPERLINK)
|
|
16267
|
+
return !(FORCE_HYPERLINK.length > 0 && parseInt(FORCE_HYPERLINK, 10) === 0);
|
|
16268
|
+
if (hasFlag2("no-hyperlink") || hasFlag2("no-hyperlinks") || hasFlag2("hyperlink=false") || hasFlag2("hyperlink=never"))
|
|
16269
|
+
return !1;
|
|
16270
|
+
if (hasFlag2("hyperlink=true") || hasFlag2("hyperlink=always") || NETLIFY)
|
|
16271
|
+
return !0;
|
|
16272
|
+
if (!supportsColor3.supportsColor(stream2) || stream2 && !stream2.isTTY)
|
|
16273
|
+
return !1;
|
|
16274
|
+
if ("WT_SESSION" in process.env)
|
|
16275
|
+
return !0;
|
|
16276
|
+
if (process.platform === "win32" || CI || TEAMCITY_VERSION)
|
|
16277
|
+
return !1;
|
|
16278
|
+
if (TERM_PROGRAM) {
|
|
16279
|
+
let version = parseVersion(TERM_PROGRAM_VERSION || "");
|
|
16280
|
+
switch (TERM_PROGRAM) {
|
|
16281
|
+
case "iTerm.app":
|
|
16282
|
+
return version.major === 3 ? version.minor >= 1 : version.major > 3;
|
|
16283
|
+
case "WezTerm":
|
|
16284
|
+
return version.major >= 20200620;
|
|
16285
|
+
case "vscode":
|
|
16286
|
+
return version.major > 1 || version.major === 1 && version.minor >= 72;
|
|
16287
|
+
}
|
|
16288
|
+
}
|
|
16289
|
+
if (VTE_VERSION) {
|
|
16290
|
+
if (VTE_VERSION === "0.50.0")
|
|
16291
|
+
return !1;
|
|
16292
|
+
let version = parseVersion(VTE_VERSION);
|
|
16293
|
+
return version.major > 0 || version.minor >= 50;
|
|
16294
|
+
}
|
|
16295
|
+
return !1;
|
|
16296
|
+
}
|
|
16297
|
+
module.exports = {
|
|
16298
|
+
supportsHyperlink,
|
|
16299
|
+
stdout: supportsHyperlink(process.stdout),
|
|
16300
|
+
stderr: supportsHyperlink(process.stderr)
|
|
16301
|
+
};
|
|
16302
|
+
}
|
|
16303
|
+
});
|
|
16304
|
+
|
|
16171
16305
|
// ../../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/impl/SyncPromise.js
|
|
16172
16306
|
var require_SyncPromise = __commonJS({
|
|
16173
16307
|
"../../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/impl/SyncPromise.js"(exports, module) {
|
|
@@ -19569,6 +19703,248 @@ var require_sortBy = __commonJS({
|
|
|
19569
19703
|
}
|
|
19570
19704
|
});
|
|
19571
19705
|
|
|
19706
|
+
// ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js
|
|
19707
|
+
var require_util = __commonJS({
|
|
19708
|
+
"../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js"(exports, module) {
|
|
19709
|
+
"use strict";
|
|
19710
|
+
init_cjs_shims();
|
|
19711
|
+
var stringReplaceAll2 = (string, substring, replacer) => {
|
|
19712
|
+
let index = string.indexOf(substring);
|
|
19713
|
+
if (index === -1)
|
|
19714
|
+
return string;
|
|
19715
|
+
let substringLength = substring.length, endIndex = 0, returnValue = "";
|
|
19716
|
+
do
|
|
19717
|
+
returnValue += string.substr(endIndex, index - endIndex) + substring + replacer, endIndex = index + substringLength, index = string.indexOf(substring, endIndex);
|
|
19718
|
+
while (index !== -1);
|
|
19719
|
+
return returnValue += string.substr(endIndex), returnValue;
|
|
19720
|
+
}, stringEncaseCRLFWithFirstIndex2 = (string, prefix, postfix, index) => {
|
|
19721
|
+
let endIndex = 0, returnValue = "";
|
|
19722
|
+
do {
|
|
19723
|
+
let gotCR = string[index - 1] === "\r";
|
|
19724
|
+
returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? `\r
|
|
19725
|
+
` : `
|
|
19726
|
+
`) + postfix, endIndex = index + 1, index = string.indexOf(`
|
|
19727
|
+
`, endIndex);
|
|
19728
|
+
} while (index !== -1);
|
|
19729
|
+
return returnValue += string.substr(endIndex), returnValue;
|
|
19730
|
+
};
|
|
19731
|
+
module.exports = {
|
|
19732
|
+
stringReplaceAll: stringReplaceAll2,
|
|
19733
|
+
stringEncaseCRLFWithFirstIndex: stringEncaseCRLFWithFirstIndex2
|
|
19734
|
+
};
|
|
19735
|
+
}
|
|
19736
|
+
});
|
|
19737
|
+
|
|
19738
|
+
// ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js
|
|
19739
|
+
var require_templates = __commonJS({
|
|
19740
|
+
"../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js"(exports, module) {
|
|
19741
|
+
"use strict";
|
|
19742
|
+
init_cjs_shims();
|
|
19743
|
+
var TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi, STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g, STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/, ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi, ESCAPES5 = /* @__PURE__ */ new Map([
|
|
19744
|
+
["n", `
|
|
19745
|
+
`],
|
|
19746
|
+
["r", "\r"],
|
|
19747
|
+
["t", " "],
|
|
19748
|
+
["b", "\b"],
|
|
19749
|
+
["f", "\f"],
|
|
19750
|
+
["v", "\v"],
|
|
19751
|
+
["0", "\0"],
|
|
19752
|
+
["\\", "\\"],
|
|
19753
|
+
["e", "\x1B"],
|
|
19754
|
+
["a", "\x07"]
|
|
19755
|
+
]);
|
|
19756
|
+
function unescape3(c) {
|
|
19757
|
+
let u = c[0] === "u", bracket = c[1] === "{";
|
|
19758
|
+
return u && !bracket && c.length === 5 || c[0] === "x" && c.length === 3 ? String.fromCharCode(parseInt(c.slice(1), 16)) : u && bracket ? String.fromCodePoint(parseInt(c.slice(2, -1), 16)) : ESCAPES5.get(c) || c;
|
|
19759
|
+
}
|
|
19760
|
+
function parseArguments(name, arguments_) {
|
|
19761
|
+
let results = [], chunks = arguments_.trim().split(/\s*,\s*/g), matches;
|
|
19762
|
+
for (let chunk of chunks) {
|
|
19763
|
+
let number = Number(chunk);
|
|
19764
|
+
if (!Number.isNaN(number))
|
|
19765
|
+
results.push(number);
|
|
19766
|
+
else if (matches = chunk.match(STRING_REGEX))
|
|
19767
|
+
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape3, character) => escape3 ? unescape3(escape3) : character));
|
|
19768
|
+
else
|
|
19769
|
+
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
|
19770
|
+
}
|
|
19771
|
+
return results;
|
|
19772
|
+
}
|
|
19773
|
+
function parseStyle(style) {
|
|
19774
|
+
STYLE_REGEX.lastIndex = 0;
|
|
19775
|
+
let results = [], matches;
|
|
19776
|
+
for (; (matches = STYLE_REGEX.exec(style)) !== null; ) {
|
|
19777
|
+
let name = matches[1];
|
|
19778
|
+
if (matches[2]) {
|
|
19779
|
+
let args = parseArguments(name, matches[2]);
|
|
19780
|
+
results.push([name].concat(args));
|
|
19781
|
+
} else
|
|
19782
|
+
results.push([name]);
|
|
19783
|
+
}
|
|
19784
|
+
return results;
|
|
19785
|
+
}
|
|
19786
|
+
function buildStyle(chalk2, styles5) {
|
|
19787
|
+
let enabled = {};
|
|
19788
|
+
for (let layer of styles5)
|
|
19789
|
+
for (let style of layer.styles)
|
|
19790
|
+
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
19791
|
+
let current = chalk2;
|
|
19792
|
+
for (let [styleName, styles6] of Object.entries(enabled))
|
|
19793
|
+
if (Array.isArray(styles6)) {
|
|
19794
|
+
if (!(styleName in current))
|
|
19795
|
+
throw new Error(`Unknown Chalk style: ${styleName}`);
|
|
19796
|
+
current = styles6.length > 0 ? current[styleName](...styles6) : current[styleName];
|
|
19797
|
+
}
|
|
19798
|
+
return current;
|
|
19799
|
+
}
|
|
19800
|
+
module.exports = (chalk2, temporary) => {
|
|
19801
|
+
let styles5 = [], chunks = [], chunk = [];
|
|
19802
|
+
if (temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
|
|
19803
|
+
if (escapeCharacter)
|
|
19804
|
+
chunk.push(unescape3(escapeCharacter));
|
|
19805
|
+
else if (style) {
|
|
19806
|
+
let string = chunk.join("");
|
|
19807
|
+
chunk = [], chunks.push(styles5.length === 0 ? string : buildStyle(chalk2, styles5)(string)), styles5.push({ inverse, styles: parseStyle(style) });
|
|
19808
|
+
} else if (close) {
|
|
19809
|
+
if (styles5.length === 0)
|
|
19810
|
+
throw new Error("Found extraneous } in Chalk template literal");
|
|
19811
|
+
chunks.push(buildStyle(chalk2, styles5)(chunk.join(""))), chunk = [], styles5.pop();
|
|
19812
|
+
} else
|
|
19813
|
+
chunk.push(character);
|
|
19814
|
+
}), chunks.push(chunk.join("")), styles5.length > 0) {
|
|
19815
|
+
let errMessage = `Chalk template literal is missing ${styles5.length} closing bracket${styles5.length === 1 ? "" : "s"} (\`}\`)`;
|
|
19816
|
+
throw new Error(errMessage);
|
|
19817
|
+
}
|
|
19818
|
+
return chunks.join("");
|
|
19819
|
+
};
|
|
19820
|
+
}
|
|
19821
|
+
});
|
|
19822
|
+
|
|
19823
|
+
// ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js
|
|
19824
|
+
var require_source = __commonJS({
|
|
19825
|
+
"../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js"(exports, module) {
|
|
19826
|
+
"use strict";
|
|
19827
|
+
init_cjs_shims();
|
|
19828
|
+
var ansiStyles3 = require_ansi_styles(), { stdout: stdoutColor2, stderr: stderrColor2 } = require_supports_color(), {
|
|
19829
|
+
stringReplaceAll: stringReplaceAll2,
|
|
19830
|
+
stringEncaseCRLFWithFirstIndex: stringEncaseCRLFWithFirstIndex2
|
|
19831
|
+
} = require_util(), { isArray } = Array, levelMapping2 = [
|
|
19832
|
+
"ansi",
|
|
19833
|
+
"ansi",
|
|
19834
|
+
"ansi256",
|
|
19835
|
+
"ansi16m"
|
|
19836
|
+
], styles5 = /* @__PURE__ */ Object.create(null), applyOptions2 = (object, options = {}) => {
|
|
19837
|
+
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3))
|
|
19838
|
+
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
19839
|
+
let colorLevel = stdoutColor2 ? stdoutColor2.level : 0;
|
|
19840
|
+
object.level = options.level === void 0 ? colorLevel : options.level;
|
|
19841
|
+
}, ChalkClass = class {
|
|
19842
|
+
constructor(options) {
|
|
19843
|
+
return chalkFactory2(options);
|
|
19844
|
+
}
|
|
19845
|
+
}, chalkFactory2 = (options) => {
|
|
19846
|
+
let chalk3 = {};
|
|
19847
|
+
return applyOptions2(chalk3, options), chalk3.template = (...arguments_) => chalkTag(chalk3.template, ...arguments_), Object.setPrototypeOf(chalk3, Chalk.prototype), Object.setPrototypeOf(chalk3.template, chalk3), chalk3.template.constructor = () => {
|
|
19848
|
+
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
19849
|
+
}, chalk3.template.Instance = ChalkClass, chalk3.template;
|
|
19850
|
+
};
|
|
19851
|
+
function Chalk(options) {
|
|
19852
|
+
return chalkFactory2(options);
|
|
19853
|
+
}
|
|
19854
|
+
for (let [styleName, style] of Object.entries(ansiStyles3))
|
|
19855
|
+
styles5[styleName] = {
|
|
19856
|
+
get() {
|
|
19857
|
+
let builder = createBuilder2(this, createStyler2(style.open, style.close, this._styler), this._isEmpty);
|
|
19858
|
+
return Object.defineProperty(this, styleName, { value: builder }), builder;
|
|
19859
|
+
}
|
|
19860
|
+
};
|
|
19861
|
+
styles5.visible = {
|
|
19862
|
+
get() {
|
|
19863
|
+
let builder = createBuilder2(this, this._styler, !0);
|
|
19864
|
+
return Object.defineProperty(this, "visible", { value: builder }), builder;
|
|
19865
|
+
}
|
|
19866
|
+
};
|
|
19867
|
+
var usedModels2 = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
|
|
19868
|
+
for (let model of usedModels2)
|
|
19869
|
+
styles5[model] = {
|
|
19870
|
+
get() {
|
|
19871
|
+
let { level } = this;
|
|
19872
|
+
return function(...arguments_) {
|
|
19873
|
+
let styler = createStyler2(ansiStyles3.color[levelMapping2[level]][model](...arguments_), ansiStyles3.color.close, this._styler);
|
|
19874
|
+
return createBuilder2(this, styler, this._isEmpty);
|
|
19875
|
+
};
|
|
19876
|
+
}
|
|
19877
|
+
};
|
|
19878
|
+
for (let model of usedModels2) {
|
|
19879
|
+
let bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
19880
|
+
styles5[bgModel] = {
|
|
19881
|
+
get() {
|
|
19882
|
+
let { level } = this;
|
|
19883
|
+
return function(...arguments_) {
|
|
19884
|
+
let styler = createStyler2(ansiStyles3.bgColor[levelMapping2[level]][model](...arguments_), ansiStyles3.bgColor.close, this._styler);
|
|
19885
|
+
return createBuilder2(this, styler, this._isEmpty);
|
|
19886
|
+
};
|
|
19887
|
+
}
|
|
19888
|
+
};
|
|
19889
|
+
}
|
|
19890
|
+
var proto2 = Object.defineProperties(() => {
|
|
19891
|
+
}, {
|
|
19892
|
+
...styles5,
|
|
19893
|
+
level: {
|
|
19894
|
+
enumerable: !0,
|
|
19895
|
+
get() {
|
|
19896
|
+
return this._generator.level;
|
|
19897
|
+
},
|
|
19898
|
+
set(level) {
|
|
19899
|
+
this._generator.level = level;
|
|
19900
|
+
}
|
|
19901
|
+
}
|
|
19902
|
+
}), createStyler2 = (open, close, parent) => {
|
|
19903
|
+
let openAll, closeAll;
|
|
19904
|
+
return parent === void 0 ? (openAll = open, closeAll = close) : (openAll = parent.openAll + open, closeAll = close + parent.closeAll), {
|
|
19905
|
+
open,
|
|
19906
|
+
close,
|
|
19907
|
+
openAll,
|
|
19908
|
+
closeAll,
|
|
19909
|
+
parent
|
|
19910
|
+
};
|
|
19911
|
+
}, createBuilder2 = (self2, _styler, _isEmpty) => {
|
|
19912
|
+
let builder = (...arguments_) => isArray(arguments_[0]) && isArray(arguments_[0].raw) ? applyStyle2(builder, chalkTag(builder, ...arguments_)) : applyStyle2(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
19913
|
+
return Object.setPrototypeOf(builder, proto2), builder._generator = self2, builder._styler = _styler, builder._isEmpty = _isEmpty, builder;
|
|
19914
|
+
}, applyStyle2 = (self2, string) => {
|
|
19915
|
+
if (self2.level <= 0 || !string)
|
|
19916
|
+
return self2._isEmpty ? "" : string;
|
|
19917
|
+
let styler = self2._styler;
|
|
19918
|
+
if (styler === void 0)
|
|
19919
|
+
return string;
|
|
19920
|
+
let { openAll, closeAll } = styler;
|
|
19921
|
+
if (string.indexOf("\x1B") !== -1)
|
|
19922
|
+
for (; styler !== void 0; )
|
|
19923
|
+
string = stringReplaceAll2(string, styler.close, styler.open), styler = styler.parent;
|
|
19924
|
+
let lfIndex = string.indexOf(`
|
|
19925
|
+
`);
|
|
19926
|
+
return lfIndex !== -1 && (string = stringEncaseCRLFWithFirstIndex2(string, closeAll, openAll, lfIndex)), openAll + string + closeAll;
|
|
19927
|
+
}, template, chalkTag = (chalk3, ...strings) => {
|
|
19928
|
+
let [firstString] = strings;
|
|
19929
|
+
if (!isArray(firstString) || !isArray(firstString.raw))
|
|
19930
|
+
return strings.join(" ");
|
|
19931
|
+
let arguments_ = strings.slice(1), parts = [firstString.raw[0]];
|
|
19932
|
+
for (let i = 1; i < firstString.length; i++)
|
|
19933
|
+
parts.push(
|
|
19934
|
+
String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"),
|
|
19935
|
+
String(firstString.raw[i])
|
|
19936
|
+
);
|
|
19937
|
+
return template === void 0 && (template = require_templates()), template(chalk3, parts.join(""));
|
|
19938
|
+
};
|
|
19939
|
+
Object.defineProperties(Chalk.prototype, styles5);
|
|
19940
|
+
var chalk2 = Chalk();
|
|
19941
|
+
chalk2.supportsColor = stdoutColor2;
|
|
19942
|
+
chalk2.stderr = Chalk({ level: stderrColor2 ? stderrColor2.level : 0 });
|
|
19943
|
+
chalk2.stderr.supportsColor = stderrColor2;
|
|
19944
|
+
module.exports = chalk2;
|
|
19945
|
+
}
|
|
19946
|
+
});
|
|
19947
|
+
|
|
19572
19948
|
// ../../node_modules/.pnpm/tinycolor2@1.6.0/node_modules/tinycolor2/cjs/tinycolor.js
|
|
19573
19949
|
var require_tinycolor = __commonJS({
|
|
19574
19950
|
"../../node_modules/.pnpm/tinycolor2@1.6.0/node_modules/tinycolor2/cjs/tinycolor.js"(exports, module) {
|
|
@@ -20682,6 +21058,374 @@ var require_cjs = __commonJS({
|
|
|
20682
21058
|
}
|
|
20683
21059
|
});
|
|
20684
21060
|
|
|
21061
|
+
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
|
|
21062
|
+
var require_windows = __commonJS({
|
|
21063
|
+
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
|
|
21064
|
+
init_cjs_shims();
|
|
21065
|
+
module.exports = isexe;
|
|
21066
|
+
isexe.sync = sync;
|
|
21067
|
+
var fs5 = __require("fs");
|
|
21068
|
+
function checkPathExt(path8, options) {
|
|
21069
|
+
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
21070
|
+
if (!pathext || (pathext = pathext.split(";"), pathext.indexOf("") !== -1))
|
|
21071
|
+
return !0;
|
|
21072
|
+
for (var i = 0; i < pathext.length; i++) {
|
|
21073
|
+
var p = pathext[i].toLowerCase();
|
|
21074
|
+
if (p && path8.substr(-p.length).toLowerCase() === p)
|
|
21075
|
+
return !0;
|
|
21076
|
+
}
|
|
21077
|
+
return !1;
|
|
21078
|
+
}
|
|
21079
|
+
function checkStat(stat, path8, options) {
|
|
21080
|
+
return !stat.isSymbolicLink() && !stat.isFile() ? !1 : checkPathExt(path8, options);
|
|
21081
|
+
}
|
|
21082
|
+
function isexe(path8, options, cb) {
|
|
21083
|
+
fs5.stat(path8, function(er, stat) {
|
|
21084
|
+
cb(er, er ? !1 : checkStat(stat, path8, options));
|
|
21085
|
+
});
|
|
21086
|
+
}
|
|
21087
|
+
function sync(path8, options) {
|
|
21088
|
+
return checkStat(fs5.statSync(path8), path8, options);
|
|
21089
|
+
}
|
|
21090
|
+
}
|
|
21091
|
+
});
|
|
21092
|
+
|
|
21093
|
+
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
|
|
21094
|
+
var require_mode = __commonJS({
|
|
21095
|
+
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
|
|
21096
|
+
init_cjs_shims();
|
|
21097
|
+
module.exports = isexe;
|
|
21098
|
+
isexe.sync = sync;
|
|
21099
|
+
var fs5 = __require("fs");
|
|
21100
|
+
function isexe(path8, options, cb) {
|
|
21101
|
+
fs5.stat(path8, function(er, stat) {
|
|
21102
|
+
cb(er, er ? !1 : checkStat(stat, options));
|
|
21103
|
+
});
|
|
21104
|
+
}
|
|
21105
|
+
function sync(path8, options) {
|
|
21106
|
+
return checkStat(fs5.statSync(path8), options);
|
|
21107
|
+
}
|
|
21108
|
+
function checkStat(stat, options) {
|
|
21109
|
+
return stat.isFile() && checkMode(stat, options);
|
|
21110
|
+
}
|
|
21111
|
+
function checkMode(stat, options) {
|
|
21112
|
+
var mod = stat.mode, uid = stat.uid, gid = stat.gid, myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid(), myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid(), u = parseInt("100", 8), g = parseInt("010", 8), o = parseInt("001", 8), ug = u | g, ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
|
|
21113
|
+
return ret;
|
|
21114
|
+
}
|
|
21115
|
+
}
|
|
21116
|
+
});
|
|
21117
|
+
|
|
21118
|
+
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
|
|
21119
|
+
var require_isexe = __commonJS({
|
|
21120
|
+
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
|
|
21121
|
+
init_cjs_shims();
|
|
21122
|
+
var fs5 = __require("fs"), core;
|
|
21123
|
+
process.platform === "win32" || global.TESTING_WINDOWS ? core = require_windows() : core = require_mode();
|
|
21124
|
+
module.exports = isexe;
|
|
21125
|
+
isexe.sync = sync;
|
|
21126
|
+
function isexe(path8, options, cb) {
|
|
21127
|
+
if (typeof options == "function" && (cb = options, options = {}), !cb) {
|
|
21128
|
+
if (typeof Promise != "function")
|
|
21129
|
+
throw new TypeError("callback not provided");
|
|
21130
|
+
return new Promise(function(resolve, reject) {
|
|
21131
|
+
isexe(path8, options || {}, function(er, is) {
|
|
21132
|
+
er ? reject(er) : resolve(is);
|
|
21133
|
+
});
|
|
21134
|
+
});
|
|
21135
|
+
}
|
|
21136
|
+
core(path8, options || {}, function(er, is) {
|
|
21137
|
+
er && (er.code === "EACCES" || options && options.ignoreErrors) && (er = null, is = !1), cb(er, is);
|
|
21138
|
+
});
|
|
21139
|
+
}
|
|
21140
|
+
function sync(path8, options) {
|
|
21141
|
+
try {
|
|
21142
|
+
return core.sync(path8, options || {});
|
|
21143
|
+
} catch (er) {
|
|
21144
|
+
if (options && options.ignoreErrors || er.code === "EACCES")
|
|
21145
|
+
return !1;
|
|
21146
|
+
throw er;
|
|
21147
|
+
}
|
|
21148
|
+
}
|
|
21149
|
+
}
|
|
21150
|
+
});
|
|
21151
|
+
|
|
21152
|
+
// ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
|
|
21153
|
+
var require_which = __commonJS({
|
|
21154
|
+
"../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module) {
|
|
21155
|
+
init_cjs_shims();
|
|
21156
|
+
var isWindows2 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", path8 = __require("path"), COLON = isWindows2 ? ";" : ":", isexe = require_isexe(), getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" }), getPathInfo = (cmd, opt) => {
|
|
21157
|
+
let colon = opt.colon || COLON, pathEnv = cmd.match(/\//) || isWindows2 && cmd.match(/\\/) ? [""] : [
|
|
21158
|
+
// windows always checks the cwd first
|
|
21159
|
+
...isWindows2 ? [process.cwd()] : [],
|
|
21160
|
+
...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */
|
|
21161
|
+
"").split(colon)
|
|
21162
|
+
], pathExtExe = isWindows2 ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
|
|
21163
|
+
return isWindows2 && cmd.indexOf(".") !== -1 && pathExt[0] !== "" && pathExt.unshift(""), {
|
|
21164
|
+
pathEnv,
|
|
21165
|
+
pathExt,
|
|
21166
|
+
pathExtExe
|
|
21167
|
+
};
|
|
21168
|
+
}, which3 = (cmd, opt, cb) => {
|
|
21169
|
+
typeof opt == "function" && (cb = opt, opt = {}), opt || (opt = {});
|
|
21170
|
+
let { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt), found = [], step = (i) => new Promise((resolve, reject) => {
|
|
21171
|
+
if (i === pathEnv.length)
|
|
21172
|
+
return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
21173
|
+
let ppRaw = pathEnv[i], pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw, pCmd = path8.join(pathPart, cmd), p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
21174
|
+
resolve(subStep(p, i, 0));
|
|
21175
|
+
}), subStep = (p, i, ii) => new Promise((resolve, reject) => {
|
|
21176
|
+
if (ii === pathExt.length)
|
|
21177
|
+
return resolve(step(i + 1));
|
|
21178
|
+
let ext2 = pathExt[ii];
|
|
21179
|
+
isexe(p + ext2, { pathExt: pathExtExe }, (er, is) => {
|
|
21180
|
+
if (!er && is)
|
|
21181
|
+
if (opt.all)
|
|
21182
|
+
found.push(p + ext2);
|
|
21183
|
+
else
|
|
21184
|
+
return resolve(p + ext2);
|
|
21185
|
+
return resolve(subStep(p, i, ii + 1));
|
|
21186
|
+
});
|
|
21187
|
+
});
|
|
21188
|
+
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
21189
|
+
}, whichSync = (cmd, opt) => {
|
|
21190
|
+
opt = opt || {};
|
|
21191
|
+
let { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt), found = [];
|
|
21192
|
+
for (let i = 0; i < pathEnv.length; i++) {
|
|
21193
|
+
let ppRaw = pathEnv[i], pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw, pCmd = path8.join(pathPart, cmd), p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
21194
|
+
for (let j = 0; j < pathExt.length; j++) {
|
|
21195
|
+
let cur = p + pathExt[j];
|
|
21196
|
+
try {
|
|
21197
|
+
if (isexe.sync(cur, { pathExt: pathExtExe }))
|
|
21198
|
+
if (opt.all)
|
|
21199
|
+
found.push(cur);
|
|
21200
|
+
else
|
|
21201
|
+
return cur;
|
|
21202
|
+
} catch {
|
|
21203
|
+
}
|
|
21204
|
+
}
|
|
21205
|
+
}
|
|
21206
|
+
if (opt.all && found.length)
|
|
21207
|
+
return found;
|
|
21208
|
+
if (opt.nothrow)
|
|
21209
|
+
return null;
|
|
21210
|
+
throw getNotFoundError(cmd);
|
|
21211
|
+
};
|
|
21212
|
+
module.exports = which3;
|
|
21213
|
+
which3.sync = whichSync;
|
|
21214
|
+
}
|
|
21215
|
+
});
|
|
21216
|
+
|
|
21217
|
+
// ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
|
|
21218
|
+
var require_path_key = __commonJS({
|
|
21219
|
+
"../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module) {
|
|
21220
|
+
"use strict";
|
|
21221
|
+
init_cjs_shims();
|
|
21222
|
+
var pathKey2 = (options = {}) => {
|
|
21223
|
+
let environment = options.env || process.env;
|
|
21224
|
+
return (options.platform || process.platform) !== "win32" ? "PATH" : Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
21225
|
+
};
|
|
21226
|
+
module.exports = pathKey2;
|
|
21227
|
+
module.exports.default = pathKey2;
|
|
21228
|
+
}
|
|
21229
|
+
});
|
|
21230
|
+
|
|
21231
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
21232
|
+
var require_resolveCommand = __commonJS({
|
|
21233
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
|
|
21234
|
+
"use strict";
|
|
21235
|
+
init_cjs_shims();
|
|
21236
|
+
var path8 = __require("path"), which3 = require_which(), getPathKey = require_path_key();
|
|
21237
|
+
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
21238
|
+
let env3 = parsed.options.env || process.env, cwd3 = process.cwd(), hasCustomCwd = parsed.options.cwd != null, shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
21239
|
+
if (shouldSwitchCwd)
|
|
21240
|
+
try {
|
|
21241
|
+
process.chdir(parsed.options.cwd);
|
|
21242
|
+
} catch {
|
|
21243
|
+
}
|
|
21244
|
+
let resolved;
|
|
21245
|
+
try {
|
|
21246
|
+
resolved = which3.sync(parsed.command, {
|
|
21247
|
+
path: env3[getPathKey({ env: env3 })],
|
|
21248
|
+
pathExt: withoutPathExt ? path8.delimiter : void 0
|
|
21249
|
+
});
|
|
21250
|
+
} catch {
|
|
21251
|
+
} finally {
|
|
21252
|
+
shouldSwitchCwd && process.chdir(cwd3);
|
|
21253
|
+
}
|
|
21254
|
+
return resolved && (resolved = path8.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved)), resolved;
|
|
21255
|
+
}
|
|
21256
|
+
function resolveCommand(parsed) {
|
|
21257
|
+
return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, !0);
|
|
21258
|
+
}
|
|
21259
|
+
module.exports = resolveCommand;
|
|
21260
|
+
}
|
|
21261
|
+
});
|
|
21262
|
+
|
|
21263
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
|
|
21264
|
+
var require_escape = __commonJS({
|
|
21265
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
|
|
21266
|
+
"use strict";
|
|
21267
|
+
init_cjs_shims();
|
|
21268
|
+
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
21269
|
+
function escapeCommand(arg) {
|
|
21270
|
+
return arg = arg.replace(metaCharsRegExp, "^$1"), arg;
|
|
21271
|
+
}
|
|
21272
|
+
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
21273
|
+
return arg = `${arg}`, arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"'), arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1"), arg = `"${arg}"`, arg = arg.replace(metaCharsRegExp, "^$1"), doubleEscapeMetaChars && (arg = arg.replace(metaCharsRegExp, "^$1")), arg;
|
|
21274
|
+
}
|
|
21275
|
+
module.exports.command = escapeCommand;
|
|
21276
|
+
module.exports.argument = escapeArgument;
|
|
21277
|
+
}
|
|
21278
|
+
});
|
|
21279
|
+
|
|
21280
|
+
// ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
|
|
21281
|
+
var require_shebang_regex = __commonJS({
|
|
21282
|
+
"../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module) {
|
|
21283
|
+
"use strict";
|
|
21284
|
+
init_cjs_shims();
|
|
21285
|
+
module.exports = /^#!(.*)/;
|
|
21286
|
+
}
|
|
21287
|
+
});
|
|
21288
|
+
|
|
21289
|
+
// ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
|
|
21290
|
+
var require_shebang_command = __commonJS({
|
|
21291
|
+
"../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module) {
|
|
21292
|
+
"use strict";
|
|
21293
|
+
init_cjs_shims();
|
|
21294
|
+
var shebangRegex = require_shebang_regex();
|
|
21295
|
+
module.exports = (string = "") => {
|
|
21296
|
+
let match2 = string.match(shebangRegex);
|
|
21297
|
+
if (!match2)
|
|
21298
|
+
return null;
|
|
21299
|
+
let [path8, argument] = match2[0].replace(/#! ?/, "").split(" "), binary = path8.split("/").pop();
|
|
21300
|
+
return binary === "env" ? argument : argument ? `${binary} ${argument}` : binary;
|
|
21301
|
+
};
|
|
21302
|
+
}
|
|
21303
|
+
});
|
|
21304
|
+
|
|
21305
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
21306
|
+
var require_readShebang = __commonJS({
|
|
21307
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
|
|
21308
|
+
"use strict";
|
|
21309
|
+
init_cjs_shims();
|
|
21310
|
+
var fs5 = __require("fs"), shebangCommand = require_shebang_command();
|
|
21311
|
+
function readShebang(command) {
|
|
21312
|
+
let buffer = Buffer.alloc(150), fd;
|
|
21313
|
+
try {
|
|
21314
|
+
fd = fs5.openSync(command, "r"), fs5.readSync(fd, buffer, 0, 150, 0), fs5.closeSync(fd);
|
|
21315
|
+
} catch {
|
|
21316
|
+
}
|
|
21317
|
+
return shebangCommand(buffer.toString());
|
|
21318
|
+
}
|
|
21319
|
+
module.exports = readShebang;
|
|
21320
|
+
}
|
|
21321
|
+
});
|
|
21322
|
+
|
|
21323
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
|
|
21324
|
+
var require_parse = __commonJS({
|
|
21325
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module) {
|
|
21326
|
+
"use strict";
|
|
21327
|
+
init_cjs_shims();
|
|
21328
|
+
var path8 = __require("path"), resolveCommand = require_resolveCommand(), escape3 = require_escape(), readShebang = require_readShebang(), isWin = process.platform === "win32", isExecutableRegExp = /\.(?:com|exe)$/i, isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
21329
|
+
function detectShebang(parsed) {
|
|
21330
|
+
parsed.file = resolveCommand(parsed);
|
|
21331
|
+
let shebang = parsed.file && readShebang(parsed.file);
|
|
21332
|
+
return shebang ? (parsed.args.unshift(parsed.file), parsed.command = shebang, resolveCommand(parsed)) : parsed.file;
|
|
21333
|
+
}
|
|
21334
|
+
function parseNonShell(parsed) {
|
|
21335
|
+
if (!isWin)
|
|
21336
|
+
return parsed;
|
|
21337
|
+
let commandFile = detectShebang(parsed), needsShell = !isExecutableRegExp.test(commandFile);
|
|
21338
|
+
if (parsed.options.forceShell || needsShell) {
|
|
21339
|
+
let needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
21340
|
+
parsed.command = path8.normalize(parsed.command), parsed.command = escape3.command(parsed.command), parsed.args = parsed.args.map((arg) => escape3.argument(arg, needsDoubleEscapeMetaChars));
|
|
21341
|
+
let shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
21342
|
+
parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`], parsed.command = process.env.comspec || "cmd.exe", parsed.options.windowsVerbatimArguments = !0;
|
|
21343
|
+
}
|
|
21344
|
+
return parsed;
|
|
21345
|
+
}
|
|
21346
|
+
function parse(command, args, options) {
|
|
21347
|
+
args && !Array.isArray(args) && (options = args, args = null), args = args ? args.slice(0) : [], options = Object.assign({}, options);
|
|
21348
|
+
let parsed = {
|
|
21349
|
+
command,
|
|
21350
|
+
args,
|
|
21351
|
+
options,
|
|
21352
|
+
file: void 0,
|
|
21353
|
+
original: {
|
|
21354
|
+
command,
|
|
21355
|
+
args
|
|
21356
|
+
}
|
|
21357
|
+
};
|
|
21358
|
+
return options.shell ? parsed : parseNonShell(parsed);
|
|
21359
|
+
}
|
|
21360
|
+
module.exports = parse;
|
|
21361
|
+
}
|
|
21362
|
+
});
|
|
21363
|
+
|
|
21364
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
|
|
21365
|
+
var require_enoent = __commonJS({
|
|
21366
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
|
|
21367
|
+
"use strict";
|
|
21368
|
+
init_cjs_shims();
|
|
21369
|
+
var isWin = process.platform === "win32";
|
|
21370
|
+
function notFoundError(original, syscall) {
|
|
21371
|
+
return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
|
|
21372
|
+
code: "ENOENT",
|
|
21373
|
+
errno: "ENOENT",
|
|
21374
|
+
syscall: `${syscall} ${original.command}`,
|
|
21375
|
+
path: original.command,
|
|
21376
|
+
spawnargs: original.args
|
|
21377
|
+
});
|
|
21378
|
+
}
|
|
21379
|
+
function hookChildProcess(cp, parsed) {
|
|
21380
|
+
if (!isWin)
|
|
21381
|
+
return;
|
|
21382
|
+
let originalEmit = cp.emit;
|
|
21383
|
+
cp.emit = function(name, arg1) {
|
|
21384
|
+
if (name === "exit") {
|
|
21385
|
+
let err = verifyENOENT(arg1, parsed);
|
|
21386
|
+
if (err)
|
|
21387
|
+
return originalEmit.call(cp, "error", err);
|
|
21388
|
+
}
|
|
21389
|
+
return originalEmit.apply(cp, arguments);
|
|
21390
|
+
};
|
|
21391
|
+
}
|
|
21392
|
+
function verifyENOENT(status, parsed) {
|
|
21393
|
+
return isWin && status === 1 && !parsed.file ? notFoundError(parsed.original, "spawn") : null;
|
|
21394
|
+
}
|
|
21395
|
+
function verifyENOENTSync(status, parsed) {
|
|
21396
|
+
return isWin && status === 1 && !parsed.file ? notFoundError(parsed.original, "spawnSync") : null;
|
|
21397
|
+
}
|
|
21398
|
+
module.exports = {
|
|
21399
|
+
hookChildProcess,
|
|
21400
|
+
verifyENOENT,
|
|
21401
|
+
verifyENOENTSync,
|
|
21402
|
+
notFoundError
|
|
21403
|
+
};
|
|
21404
|
+
}
|
|
21405
|
+
});
|
|
21406
|
+
|
|
21407
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
|
|
21408
|
+
var require_cross_spawn = __commonJS({
|
|
21409
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module) {
|
|
21410
|
+
"use strict";
|
|
21411
|
+
init_cjs_shims();
|
|
21412
|
+
var cp = __require("child_process"), parse = require_parse(), enoent = require_enoent();
|
|
21413
|
+
function spawn2(command, args, options) {
|
|
21414
|
+
let parsed = parse(command, args, options), spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
21415
|
+
return enoent.hookChildProcess(spawned, parsed), spawned;
|
|
21416
|
+
}
|
|
21417
|
+
function spawnSync(command, args, options) {
|
|
21418
|
+
let parsed = parse(command, args, options), result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
21419
|
+
return result.error = result.error || enoent.verifyENOENTSync(result.status, parsed), result;
|
|
21420
|
+
}
|
|
21421
|
+
module.exports = spawn2;
|
|
21422
|
+
module.exports.spawn = spawn2;
|
|
21423
|
+
module.exports.sync = spawnSync;
|
|
21424
|
+
module.exports._parse = parse;
|
|
21425
|
+
module.exports._enoent = enoent;
|
|
21426
|
+
}
|
|
21427
|
+
});
|
|
21428
|
+
|
|
20685
21429
|
// ../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js
|
|
20686
21430
|
var require_buffer_stream = __commonJS({
|
|
20687
21431
|
"../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js"(exports, module) {
|
|
@@ -20964,1158 +21708,34 @@ var require_lib2 = __commonJS({
|
|
|
20964
21708
|
}
|
|
20965
21709
|
});
|
|
20966
21710
|
|
|
20967
|
-
// ../../node_modules/.pnpm/
|
|
20968
|
-
var
|
|
20969
|
-
"../../node_modules/.pnpm/
|
|
21711
|
+
// ../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
|
|
21712
|
+
var require_universalify = __commonJS({
|
|
21713
|
+
"../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js"(exports) {
|
|
21714
|
+
"use strict";
|
|
20970
21715
|
init_cjs_shims();
|
|
20971
|
-
|
|
20972
|
-
|
|
20973
|
-
|
|
20974
|
-
|
|
20975
|
-
|
|
20976
|
-
|
|
20977
|
-
|
|
20978
|
-
"
|
|
20979
|
-
|
|
20980
|
-
|
|
20981
|
-
|
|
20982
|
-
|
|
20983
|
-
|
|
20984
|
-
|
|
20985
|
-
|
|
20986
|
-
RELEASE_TYPES,
|
|
20987
|
-
SEMVER_SPEC_VERSION,
|
|
20988
|
-
FLAG_INCLUDE_PRERELEASE: 1,
|
|
20989
|
-
FLAG_LOOSE: 2
|
|
21716
|
+
exports.fromCallback = function(fn) {
|
|
21717
|
+
return Object.defineProperty(function(...args) {
|
|
21718
|
+
if (typeof args[args.length - 1] == "function") fn.apply(this, args);
|
|
21719
|
+
else
|
|
21720
|
+
return new Promise((resolve, reject) => {
|
|
21721
|
+
args.push((err, res) => err != null ? reject(err) : resolve(res)), fn.apply(this, args);
|
|
21722
|
+
});
|
|
21723
|
+
}, "name", { value: fn.name });
|
|
21724
|
+
};
|
|
21725
|
+
exports.fromPromise = function(fn) {
|
|
21726
|
+
return Object.defineProperty(function(...args) {
|
|
21727
|
+
let cb = args[args.length - 1];
|
|
21728
|
+
if (typeof cb != "function") return fn.apply(this, args);
|
|
21729
|
+
args.pop(), fn.apply(this, args).then((r) => cb(null, r), cb);
|
|
21730
|
+
}, "name", { value: fn.name });
|
|
20990
21731
|
};
|
|
20991
21732
|
}
|
|
20992
21733
|
});
|
|
20993
21734
|
|
|
20994
|
-
// ../../node_modules/.pnpm/
|
|
20995
|
-
var
|
|
20996
|
-
"../../node_modules/.pnpm/
|
|
20997
|
-
|
|
20998
|
-
var debug = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
20999
|
-
};
|
|
21000
|
-
module.exports = debug;
|
|
21001
|
-
}
|
|
21002
|
-
});
|
|
21003
|
-
|
|
21004
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js
|
|
21005
|
-
var require_re = __commonJS({
|
|
21006
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js"(exports, module) {
|
|
21007
|
-
init_cjs_shims();
|
|
21008
|
-
var {
|
|
21009
|
-
MAX_SAFE_COMPONENT_LENGTH,
|
|
21010
|
-
MAX_SAFE_BUILD_LENGTH,
|
|
21011
|
-
MAX_LENGTH
|
|
21012
|
-
} = require_constants2(), debug = require_debug();
|
|
21013
|
-
exports = module.exports = {};
|
|
21014
|
-
var re = exports.re = [], safeRe = exports.safeRe = [], src = exports.src = [], t = exports.t = {}, R = 0, LETTERDASHNUMBER = "[a-zA-Z0-9-]", safeRegexReplacements = [
|
|
21015
|
-
["\\s", 1],
|
|
21016
|
-
["\\d", MAX_LENGTH],
|
|
21017
|
-
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
21018
|
-
], makeSafeRegex = (value) => {
|
|
21019
|
-
for (let [token, max] of safeRegexReplacements)
|
|
21020
|
-
value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
21021
|
-
return value;
|
|
21022
|
-
}, createToken = (name, value, isGlobal) => {
|
|
21023
|
-
let safe = makeSafeRegex(value), index = R++;
|
|
21024
|
-
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);
|
|
21025
|
-
};
|
|
21026
|
-
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
21027
|
-
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
21028
|
-
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
21029
|
-
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
21030
|
-
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
21031
|
-
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
21032
|
-
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
21033
|
-
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
21034
|
-
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
21035
|
-
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
21036
|
-
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
21037
|
-
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
21038
|
-
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
21039
|
-
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
21040
|
-
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
21041
|
-
createToken("GTLT", "((?:<|>)?=?)");
|
|
21042
|
-
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
21043
|
-
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
21044
|
-
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
21045
|
-
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
21046
|
-
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
21047
|
-
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
21048
|
-
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
21049
|
-
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
21050
|
-
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
21051
|
-
createToken("COERCERTL", src[t.COERCE], !0);
|
|
21052
|
-
createToken("COERCERTLFULL", src[t.COERCEFULL], !0);
|
|
21053
|
-
createToken("LONETILDE", "(?:~>?)");
|
|
21054
|
-
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, !0);
|
|
21055
|
-
exports.tildeTrimReplace = "$1~";
|
|
21056
|
-
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
21057
|
-
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
21058
|
-
createToken("LONECARET", "(?:\\^)");
|
|
21059
|
-
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, !0);
|
|
21060
|
-
exports.caretTrimReplace = "$1^";
|
|
21061
|
-
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
21062
|
-
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
21063
|
-
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
21064
|
-
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
21065
|
-
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, !0);
|
|
21066
|
-
exports.comparatorTrimReplace = "$1$2$3";
|
|
21067
|
-
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
21068
|
-
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
21069
|
-
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
21070
|
-
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
21071
|
-
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
21072
|
-
}
|
|
21073
|
-
});
|
|
21074
|
-
|
|
21075
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/parse-options.js
|
|
21076
|
-
var require_parse_options = __commonJS({
|
|
21077
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/parse-options.js"(exports, module) {
|
|
21078
|
-
init_cjs_shims();
|
|
21079
|
-
var looseOption = Object.freeze({ loose: !0 }), emptyOpts = Object.freeze({}), parseOptions = (options) => options ? typeof options != "object" ? looseOption : options : emptyOpts;
|
|
21080
|
-
module.exports = parseOptions;
|
|
21081
|
-
}
|
|
21082
|
-
});
|
|
21083
|
-
|
|
21084
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/identifiers.js
|
|
21085
|
-
var require_identifiers = __commonJS({
|
|
21086
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/identifiers.js"(exports, module) {
|
|
21087
|
-
init_cjs_shims();
|
|
21088
|
-
var numeric = /^[0-9]+$/, compareIdentifiers = (a, b) => {
|
|
21089
|
-
let anum = numeric.test(a), bnum = numeric.test(b);
|
|
21090
|
-
return anum && bnum && (a = +a, b = +b), a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
21091
|
-
}, rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
21092
|
-
module.exports = {
|
|
21093
|
-
compareIdentifiers,
|
|
21094
|
-
rcompareIdentifiers
|
|
21095
|
-
};
|
|
21096
|
-
}
|
|
21097
|
-
});
|
|
21098
|
-
|
|
21099
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js
|
|
21100
|
-
var require_semver = __commonJS({
|
|
21101
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js"(exports, module) {
|
|
21102
|
-
init_cjs_shims();
|
|
21103
|
-
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 {
|
|
21104
|
-
constructor(version, options) {
|
|
21105
|
-
if (options = parseOptions(options), version instanceof _SemVer) {
|
|
21106
|
-
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease)
|
|
21107
|
-
return version;
|
|
21108
|
-
version = version.version;
|
|
21109
|
-
} else if (typeof version != "string")
|
|
21110
|
-
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
21111
|
-
if (version.length > MAX_LENGTH)
|
|
21112
|
-
throw new TypeError(
|
|
21113
|
-
`version is longer than ${MAX_LENGTH} characters`
|
|
21114
|
-
);
|
|
21115
|
-
debug("SemVer", version, options), this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease;
|
|
21116
|
-
let m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
21117
|
-
if (!m)
|
|
21118
|
-
throw new TypeError(`Invalid Version: ${version}`);
|
|
21119
|
-
if (this.raw = version, this.major = +m[1], this.minor = +m[2], this.patch = +m[3], this.major > MAX_SAFE_INTEGER || this.major < 0)
|
|
21120
|
-
throw new TypeError("Invalid major version");
|
|
21121
|
-
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0)
|
|
21122
|
-
throw new TypeError("Invalid minor version");
|
|
21123
|
-
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0)
|
|
21124
|
-
throw new TypeError("Invalid patch version");
|
|
21125
|
-
m[4] ? this.prerelease = m[4].split(".").map((id) => {
|
|
21126
|
-
if (/^[0-9]+$/.test(id)) {
|
|
21127
|
-
let num = +id;
|
|
21128
|
-
if (num >= 0 && num < MAX_SAFE_INTEGER)
|
|
21129
|
-
return num;
|
|
21130
|
-
}
|
|
21131
|
-
return id;
|
|
21132
|
-
}) : this.prerelease = [], this.build = m[5] ? m[5].split(".") : [], this.format();
|
|
21133
|
-
}
|
|
21134
|
-
format() {
|
|
21135
|
-
return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
|
|
21136
|
-
}
|
|
21137
|
-
toString() {
|
|
21138
|
-
return this.version;
|
|
21139
|
-
}
|
|
21140
|
-
compare(other) {
|
|
21141
|
-
if (debug("SemVer.compare", this.version, this.options, other), !(other instanceof _SemVer)) {
|
|
21142
|
-
if (typeof other == "string" && other === this.version)
|
|
21143
|
-
return 0;
|
|
21144
|
-
other = new _SemVer(other, this.options);
|
|
21145
|
-
}
|
|
21146
|
-
return other.version === this.version ? 0 : this.compareMain(other) || this.comparePre(other);
|
|
21147
|
-
}
|
|
21148
|
-
compareMain(other) {
|
|
21149
|
-
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);
|
|
21150
|
-
}
|
|
21151
|
-
comparePre(other) {
|
|
21152
|
-
if (other instanceof _SemVer || (other = new _SemVer(other, this.options)), this.prerelease.length && !other.prerelease.length)
|
|
21153
|
-
return -1;
|
|
21154
|
-
if (!this.prerelease.length && other.prerelease.length)
|
|
21155
|
-
return 1;
|
|
21156
|
-
if (!this.prerelease.length && !other.prerelease.length)
|
|
21157
|
-
return 0;
|
|
21158
|
-
let i = 0;
|
|
21159
|
-
do {
|
|
21160
|
-
let a = this.prerelease[i], b = other.prerelease[i];
|
|
21161
|
-
if (debug("prerelease compare", i, a, b), a === void 0 && b === void 0)
|
|
21162
|
-
return 0;
|
|
21163
|
-
if (b === void 0)
|
|
21164
|
-
return 1;
|
|
21165
|
-
if (a === void 0)
|
|
21166
|
-
return -1;
|
|
21167
|
-
if (a === b)
|
|
21168
|
-
continue;
|
|
21169
|
-
return compareIdentifiers(a, b);
|
|
21170
|
-
} while (++i);
|
|
21171
|
-
}
|
|
21172
|
-
compareBuild(other) {
|
|
21173
|
-
other instanceof _SemVer || (other = new _SemVer(other, this.options));
|
|
21174
|
-
let i = 0;
|
|
21175
|
-
do {
|
|
21176
|
-
let a = this.build[i], b = other.build[i];
|
|
21177
|
-
if (debug("build compare", i, a, b), a === void 0 && b === void 0)
|
|
21178
|
-
return 0;
|
|
21179
|
-
if (b === void 0)
|
|
21180
|
-
return 1;
|
|
21181
|
-
if (a === void 0)
|
|
21182
|
-
return -1;
|
|
21183
|
-
if (a === b)
|
|
21184
|
-
continue;
|
|
21185
|
-
return compareIdentifiers(a, b);
|
|
21186
|
-
} while (++i);
|
|
21187
|
-
}
|
|
21188
|
-
// preminor will bump the version up to the next minor release, and immediately
|
|
21189
|
-
// down to pre-release. premajor and prepatch work the same way.
|
|
21190
|
-
inc(release, identifier2, identifierBase) {
|
|
21191
|
-
switch (release) {
|
|
21192
|
-
case "premajor":
|
|
21193
|
-
this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", identifier2, identifierBase);
|
|
21194
|
-
break;
|
|
21195
|
-
case "preminor":
|
|
21196
|
-
this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", identifier2, identifierBase);
|
|
21197
|
-
break;
|
|
21198
|
-
case "prepatch":
|
|
21199
|
-
this.prerelease.length = 0, this.inc("patch", identifier2, identifierBase), this.inc("pre", identifier2, identifierBase);
|
|
21200
|
-
break;
|
|
21201
|
-
// If the input is a non-prerelease version, this acts the same as
|
|
21202
|
-
// prepatch.
|
|
21203
|
-
case "prerelease":
|
|
21204
|
-
this.prerelease.length === 0 && this.inc("patch", identifier2, identifierBase), this.inc("pre", identifier2, identifierBase);
|
|
21205
|
-
break;
|
|
21206
|
-
case "major":
|
|
21207
|
-
(this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
|
|
21208
|
-
break;
|
|
21209
|
-
case "minor":
|
|
21210
|
-
(this.patch !== 0 || this.prerelease.length === 0) && this.minor++, this.patch = 0, this.prerelease = [];
|
|
21211
|
-
break;
|
|
21212
|
-
case "patch":
|
|
21213
|
-
this.prerelease.length === 0 && this.patch++, this.prerelease = [];
|
|
21214
|
-
break;
|
|
21215
|
-
// This probably shouldn't be used publicly.
|
|
21216
|
-
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
21217
|
-
case "pre": {
|
|
21218
|
-
let base = Number(identifierBase) ? 1 : 0;
|
|
21219
|
-
if (!identifier2 && identifierBase === !1)
|
|
21220
|
-
throw new Error("invalid increment argument: identifier is empty");
|
|
21221
|
-
if (this.prerelease.length === 0)
|
|
21222
|
-
this.prerelease = [base];
|
|
21223
|
-
else {
|
|
21224
|
-
let i = this.prerelease.length;
|
|
21225
|
-
for (; --i >= 0; )
|
|
21226
|
-
typeof this.prerelease[i] == "number" && (this.prerelease[i]++, i = -2);
|
|
21227
|
-
if (i === -1) {
|
|
21228
|
-
if (identifier2 === this.prerelease.join(".") && identifierBase === !1)
|
|
21229
|
-
throw new Error("invalid increment argument: identifier already exists");
|
|
21230
|
-
this.prerelease.push(base);
|
|
21231
|
-
}
|
|
21232
|
-
}
|
|
21233
|
-
if (identifier2) {
|
|
21234
|
-
let prerelease = [identifier2, base];
|
|
21235
|
-
identifierBase === !1 && (prerelease = [identifier2]), compareIdentifiers(this.prerelease[0], identifier2) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = prerelease) : this.prerelease = prerelease;
|
|
21236
|
-
}
|
|
21237
|
-
break;
|
|
21238
|
-
}
|
|
21239
|
-
default:
|
|
21240
|
-
throw new Error(`invalid increment argument: ${release}`);
|
|
21241
|
-
}
|
|
21242
|
-
return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
|
|
21243
|
-
}
|
|
21244
|
-
};
|
|
21245
|
-
module.exports = SemVer;
|
|
21246
|
-
}
|
|
21247
|
-
});
|
|
21248
|
-
|
|
21249
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js
|
|
21250
|
-
var require_parse = __commonJS({
|
|
21251
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js"(exports, module) {
|
|
21252
|
-
init_cjs_shims();
|
|
21253
|
-
var SemVer = require_semver(), parse = (version, options, throwErrors = !1) => {
|
|
21254
|
-
if (version instanceof SemVer)
|
|
21255
|
-
return version;
|
|
21256
|
-
try {
|
|
21257
|
-
return new SemVer(version, options);
|
|
21258
|
-
} catch (er) {
|
|
21259
|
-
if (!throwErrors)
|
|
21260
|
-
return null;
|
|
21261
|
-
throw er;
|
|
21262
|
-
}
|
|
21263
|
-
};
|
|
21264
|
-
module.exports = parse;
|
|
21265
|
-
}
|
|
21266
|
-
});
|
|
21267
|
-
|
|
21268
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/valid.js
|
|
21269
|
-
var require_valid = __commonJS({
|
|
21270
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/valid.js"(exports, module) {
|
|
21271
|
-
init_cjs_shims();
|
|
21272
|
-
var parse = require_parse(), valid = (version, options) => {
|
|
21273
|
-
let v = parse(version, options);
|
|
21274
|
-
return v ? v.version : null;
|
|
21275
|
-
};
|
|
21276
|
-
module.exports = valid;
|
|
21277
|
-
}
|
|
21278
|
-
});
|
|
21279
|
-
|
|
21280
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/clean.js
|
|
21281
|
-
var require_clean = __commonJS({
|
|
21282
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/clean.js"(exports, module) {
|
|
21283
|
-
init_cjs_shims();
|
|
21284
|
-
var parse = require_parse(), clean = (version, options) => {
|
|
21285
|
-
let s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
21286
|
-
return s ? s.version : null;
|
|
21287
|
-
};
|
|
21288
|
-
module.exports = clean;
|
|
21289
|
-
}
|
|
21290
|
-
});
|
|
21291
|
-
|
|
21292
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/inc.js
|
|
21293
|
-
var require_inc = __commonJS({
|
|
21294
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/inc.js"(exports, module) {
|
|
21295
|
-
init_cjs_shims();
|
|
21296
|
-
var SemVer = require_semver(), inc = (version, release, options, identifier2, identifierBase) => {
|
|
21297
|
-
typeof options == "string" && (identifierBase = identifier2, identifier2 = options, options = void 0);
|
|
21298
|
-
try {
|
|
21299
|
-
return new SemVer(
|
|
21300
|
-
version instanceof SemVer ? version.version : version,
|
|
21301
|
-
options
|
|
21302
|
-
).inc(release, identifier2, identifierBase).version;
|
|
21303
|
-
} catch {
|
|
21304
|
-
return null;
|
|
21305
|
-
}
|
|
21306
|
-
};
|
|
21307
|
-
module.exports = inc;
|
|
21308
|
-
}
|
|
21309
|
-
});
|
|
21310
|
-
|
|
21311
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/diff.js
|
|
21312
|
-
var require_diff = __commonJS({
|
|
21313
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/diff.js"(exports, module) {
|
|
21314
|
-
init_cjs_shims();
|
|
21315
|
-
var parse = require_parse(), diff2 = (version1, version2) => {
|
|
21316
|
-
let v1 = parse(version1, null, !0), v2 = parse(version2, null, !0), comparison = v1.compare(v2);
|
|
21317
|
-
if (comparison === 0)
|
|
21318
|
-
return null;
|
|
21319
|
-
let v1Higher = comparison > 0, highVersion = v1Higher ? v1 : v2, lowVersion = v1Higher ? v2 : v1, highHasPre = !!highVersion.prerelease.length;
|
|
21320
|
-
if (!!lowVersion.prerelease.length && !highHasPre)
|
|
21321
|
-
return !lowVersion.patch && !lowVersion.minor ? "major" : highVersion.patch ? "patch" : highVersion.minor ? "minor" : "major";
|
|
21322
|
-
let prefix = highHasPre ? "pre" : "";
|
|
21323
|
-
return v1.major !== v2.major ? prefix + "major" : v1.minor !== v2.minor ? prefix + "minor" : v1.patch !== v2.patch ? prefix + "patch" : "prerelease";
|
|
21324
|
-
};
|
|
21325
|
-
module.exports = diff2;
|
|
21326
|
-
}
|
|
21327
|
-
});
|
|
21328
|
-
|
|
21329
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/major.js
|
|
21330
|
-
var require_major = __commonJS({
|
|
21331
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/major.js"(exports, module) {
|
|
21332
|
-
init_cjs_shims();
|
|
21333
|
-
var SemVer = require_semver(), major = (a, loose) => new SemVer(a, loose).major;
|
|
21334
|
-
module.exports = major;
|
|
21335
|
-
}
|
|
21336
|
-
});
|
|
21337
|
-
|
|
21338
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/minor.js
|
|
21339
|
-
var require_minor = __commonJS({
|
|
21340
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/minor.js"(exports, module) {
|
|
21341
|
-
init_cjs_shims();
|
|
21342
|
-
var SemVer = require_semver(), minor = (a, loose) => new SemVer(a, loose).minor;
|
|
21343
|
-
module.exports = minor;
|
|
21344
|
-
}
|
|
21345
|
-
});
|
|
21346
|
-
|
|
21347
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/patch.js
|
|
21348
|
-
var require_patch = __commonJS({
|
|
21349
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/patch.js"(exports, module) {
|
|
21350
|
-
init_cjs_shims();
|
|
21351
|
-
var SemVer = require_semver(), patch = (a, loose) => new SemVer(a, loose).patch;
|
|
21352
|
-
module.exports = patch;
|
|
21353
|
-
}
|
|
21354
|
-
});
|
|
21355
|
-
|
|
21356
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/prerelease.js
|
|
21357
|
-
var require_prerelease = __commonJS({
|
|
21358
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
21359
|
-
init_cjs_shims();
|
|
21360
|
-
var parse = require_parse(), prerelease = (version, options) => {
|
|
21361
|
-
let parsed = parse(version, options);
|
|
21362
|
-
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
21363
|
-
};
|
|
21364
|
-
module.exports = prerelease;
|
|
21365
|
-
}
|
|
21366
|
-
});
|
|
21367
|
-
|
|
21368
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js
|
|
21369
|
-
var require_compare = __commonJS({
|
|
21370
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js"(exports, module) {
|
|
21371
|
-
init_cjs_shims();
|
|
21372
|
-
var SemVer = require_semver(), compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
21373
|
-
module.exports = compare;
|
|
21374
|
-
}
|
|
21375
|
-
});
|
|
21376
|
-
|
|
21377
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rcompare.js
|
|
21378
|
-
var require_rcompare = __commonJS({
|
|
21379
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rcompare.js"(exports, module) {
|
|
21380
|
-
init_cjs_shims();
|
|
21381
|
-
var compare = require_compare(), rcompare = (a, b, loose) => compare(b, a, loose);
|
|
21382
|
-
module.exports = rcompare;
|
|
21383
|
-
}
|
|
21384
|
-
});
|
|
21385
|
-
|
|
21386
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-loose.js
|
|
21387
|
-
var require_compare_loose = __commonJS({
|
|
21388
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-loose.js"(exports, module) {
|
|
21389
|
-
init_cjs_shims();
|
|
21390
|
-
var compare = require_compare(), compareLoose = (a, b) => compare(a, b, !0);
|
|
21391
|
-
module.exports = compareLoose;
|
|
21392
|
-
}
|
|
21393
|
-
});
|
|
21394
|
-
|
|
21395
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-build.js
|
|
21396
|
-
var require_compare_build = __commonJS({
|
|
21397
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-build.js"(exports, module) {
|
|
21398
|
-
init_cjs_shims();
|
|
21399
|
-
var SemVer = require_semver(), compareBuild = (a, b, loose) => {
|
|
21400
|
-
let versionA = new SemVer(a, loose), versionB = new SemVer(b, loose);
|
|
21401
|
-
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
21402
|
-
};
|
|
21403
|
-
module.exports = compareBuild;
|
|
21404
|
-
}
|
|
21405
|
-
});
|
|
21406
|
-
|
|
21407
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/sort.js
|
|
21408
|
-
var require_sort = __commonJS({
|
|
21409
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/sort.js"(exports, module) {
|
|
21410
|
-
init_cjs_shims();
|
|
21411
|
-
var compareBuild = require_compare_build(), sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
21412
|
-
module.exports = sort;
|
|
21413
|
-
}
|
|
21414
|
-
});
|
|
21415
|
-
|
|
21416
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rsort.js
|
|
21417
|
-
var require_rsort = __commonJS({
|
|
21418
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rsort.js"(exports, module) {
|
|
21419
|
-
init_cjs_shims();
|
|
21420
|
-
var compareBuild = require_compare_build(), rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
21421
|
-
module.exports = rsort;
|
|
21422
|
-
}
|
|
21423
|
-
});
|
|
21424
|
-
|
|
21425
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gt.js
|
|
21426
|
-
var require_gt = __commonJS({
|
|
21427
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gt.js"(exports, module) {
|
|
21428
|
-
init_cjs_shims();
|
|
21429
|
-
var compare = require_compare(), gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
21430
|
-
module.exports = gt;
|
|
21431
|
-
}
|
|
21432
|
-
});
|
|
21433
|
-
|
|
21434
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lt.js
|
|
21435
|
-
var require_lt = __commonJS({
|
|
21436
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lt.js"(exports, module) {
|
|
21437
|
-
init_cjs_shims();
|
|
21438
|
-
var compare = require_compare(), lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
21439
|
-
module.exports = lt;
|
|
21440
|
-
}
|
|
21441
|
-
});
|
|
21442
|
-
|
|
21443
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/eq.js
|
|
21444
|
-
var require_eq2 = __commonJS({
|
|
21445
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/eq.js"(exports, module) {
|
|
21446
|
-
init_cjs_shims();
|
|
21447
|
-
var compare = require_compare(), eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
21448
|
-
module.exports = eq;
|
|
21449
|
-
}
|
|
21450
|
-
});
|
|
21451
|
-
|
|
21452
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/neq.js
|
|
21453
|
-
var require_neq = __commonJS({
|
|
21454
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/neq.js"(exports, module) {
|
|
21455
|
-
init_cjs_shims();
|
|
21456
|
-
var compare = require_compare(), neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
21457
|
-
module.exports = neq;
|
|
21458
|
-
}
|
|
21459
|
-
});
|
|
21460
|
-
|
|
21461
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gte.js
|
|
21462
|
-
var require_gte = __commonJS({
|
|
21463
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gte.js"(exports, module) {
|
|
21464
|
-
init_cjs_shims();
|
|
21465
|
-
var compare = require_compare(), gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
21466
|
-
module.exports = gte;
|
|
21467
|
-
}
|
|
21468
|
-
});
|
|
21469
|
-
|
|
21470
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lte.js
|
|
21471
|
-
var require_lte = __commonJS({
|
|
21472
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lte.js"(exports, module) {
|
|
21473
|
-
init_cjs_shims();
|
|
21474
|
-
var compare = require_compare(), lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
21475
|
-
module.exports = lte;
|
|
21476
|
-
}
|
|
21477
|
-
});
|
|
21478
|
-
|
|
21479
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/cmp.js
|
|
21480
|
-
var require_cmp = __commonJS({
|
|
21481
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/cmp.js"(exports, module) {
|
|
21482
|
-
init_cjs_shims();
|
|
21483
|
-
var eq = require_eq2(), neq = require_neq(), gt = require_gt(), gte = require_gte(), lt = require_lt(), lte = require_lte(), cmp = (a, op, b, loose) => {
|
|
21484
|
-
switch (op) {
|
|
21485
|
-
case "===":
|
|
21486
|
-
return typeof a == "object" && (a = a.version), typeof b == "object" && (b = b.version), a === b;
|
|
21487
|
-
case "!==":
|
|
21488
|
-
return typeof a == "object" && (a = a.version), typeof b == "object" && (b = b.version), a !== b;
|
|
21489
|
-
case "":
|
|
21490
|
-
case "=":
|
|
21491
|
-
case "==":
|
|
21492
|
-
return eq(a, b, loose);
|
|
21493
|
-
case "!=":
|
|
21494
|
-
return neq(a, b, loose);
|
|
21495
|
-
case ">":
|
|
21496
|
-
return gt(a, b, loose);
|
|
21497
|
-
case ">=":
|
|
21498
|
-
return gte(a, b, loose);
|
|
21499
|
-
case "<":
|
|
21500
|
-
return lt(a, b, loose);
|
|
21501
|
-
case "<=":
|
|
21502
|
-
return lte(a, b, loose);
|
|
21503
|
-
default:
|
|
21504
|
-
throw new TypeError(`Invalid operator: ${op}`);
|
|
21505
|
-
}
|
|
21506
|
-
};
|
|
21507
|
-
module.exports = cmp;
|
|
21508
|
-
}
|
|
21509
|
-
});
|
|
21510
|
-
|
|
21511
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/coerce.js
|
|
21512
|
-
var require_coerce = __commonJS({
|
|
21513
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/coerce.js"(exports, module) {
|
|
21514
|
-
init_cjs_shims();
|
|
21515
|
-
var SemVer = require_semver(), parse = require_parse(), { safeRe: re, t } = require_re(), coerce = (version, options) => {
|
|
21516
|
-
if (version instanceof SemVer)
|
|
21517
|
-
return version;
|
|
21518
|
-
if (typeof version == "number" && (version = String(version)), typeof version != "string")
|
|
21519
|
-
return null;
|
|
21520
|
-
options = options || {};
|
|
21521
|
-
let match2 = null;
|
|
21522
|
-
if (!options.rtl)
|
|
21523
|
-
match2 = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
21524
|
-
else {
|
|
21525
|
-
let coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL], next;
|
|
21526
|
-
for (; (next = coerceRtlRegex.exec(version)) && (!match2 || match2.index + match2[0].length !== version.length); )
|
|
21527
|
-
(!match2 || next.index + next[0].length !== match2.index + match2[0].length) && (match2 = next), coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
21528
|
-
coerceRtlRegex.lastIndex = -1;
|
|
21529
|
-
}
|
|
21530
|
-
if (match2 === null)
|
|
21531
|
-
return null;
|
|
21532
|
-
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]}` : "";
|
|
21533
|
-
return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
21534
|
-
};
|
|
21535
|
-
module.exports = coerce;
|
|
21536
|
-
}
|
|
21537
|
-
});
|
|
21538
|
-
|
|
21539
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/lrucache.js
|
|
21540
|
-
var require_lrucache = __commonJS({
|
|
21541
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/lrucache.js"(exports, module) {
|
|
21542
|
-
init_cjs_shims();
|
|
21543
|
-
var LRUCache = class {
|
|
21544
|
-
constructor() {
|
|
21545
|
-
this.max = 1e3, this.map = /* @__PURE__ */ new Map();
|
|
21546
|
-
}
|
|
21547
|
-
get(key) {
|
|
21548
|
-
let value = this.map.get(key);
|
|
21549
|
-
if (value !== void 0)
|
|
21550
|
-
return this.map.delete(key), this.map.set(key, value), value;
|
|
21551
|
-
}
|
|
21552
|
-
delete(key) {
|
|
21553
|
-
return this.map.delete(key);
|
|
21554
|
-
}
|
|
21555
|
-
set(key, value) {
|
|
21556
|
-
if (!this.delete(key) && value !== void 0) {
|
|
21557
|
-
if (this.map.size >= this.max) {
|
|
21558
|
-
let firstKey = this.map.keys().next().value;
|
|
21559
|
-
this.delete(firstKey);
|
|
21560
|
-
}
|
|
21561
|
-
this.map.set(key, value);
|
|
21562
|
-
}
|
|
21563
|
-
return this;
|
|
21564
|
-
}
|
|
21565
|
-
};
|
|
21566
|
-
module.exports = LRUCache;
|
|
21567
|
-
}
|
|
21568
|
-
});
|
|
21569
|
-
|
|
21570
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js
|
|
21571
|
-
var require_range = __commonJS({
|
|
21572
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js"(exports, module) {
|
|
21573
|
-
init_cjs_shims();
|
|
21574
|
-
var SPACE_CHARACTERS = /\s+/g, Range = class _Range {
|
|
21575
|
-
constructor(range, options) {
|
|
21576
|
-
if (options = parseOptions(options), range instanceof _Range)
|
|
21577
|
-
return range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease ? range : new _Range(range.raw, options);
|
|
21578
|
-
if (range instanceof Comparator)
|
|
21579
|
-
return this.raw = range.value, this.set = [[range]], this.formatted = void 0, this;
|
|
21580
|
-
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)
|
|
21581
|
-
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
21582
|
-
if (this.set.length > 1) {
|
|
21583
|
-
let first = this.set[0];
|
|
21584
|
-
if (this.set = this.set.filter((c) => !isNullSet(c[0])), this.set.length === 0)
|
|
21585
|
-
this.set = [first];
|
|
21586
|
-
else if (this.set.length > 1) {
|
|
21587
|
-
for (let c of this.set)
|
|
21588
|
-
if (c.length === 1 && isAny(c[0])) {
|
|
21589
|
-
this.set = [c];
|
|
21590
|
-
break;
|
|
21591
|
-
}
|
|
21592
|
-
}
|
|
21593
|
-
}
|
|
21594
|
-
this.formatted = void 0;
|
|
21595
|
-
}
|
|
21596
|
-
get range() {
|
|
21597
|
-
if (this.formatted === void 0) {
|
|
21598
|
-
this.formatted = "";
|
|
21599
|
-
for (let i = 0; i < this.set.length; i++) {
|
|
21600
|
-
i > 0 && (this.formatted += "||");
|
|
21601
|
-
let comps = this.set[i];
|
|
21602
|
-
for (let k = 0; k < comps.length; k++)
|
|
21603
|
-
k > 0 && (this.formatted += " "), this.formatted += comps[k].toString().trim();
|
|
21604
|
-
}
|
|
21605
|
-
}
|
|
21606
|
-
return this.formatted;
|
|
21607
|
-
}
|
|
21608
|
-
format() {
|
|
21609
|
-
return this.range;
|
|
21610
|
-
}
|
|
21611
|
-
toString() {
|
|
21612
|
-
return this.range;
|
|
21613
|
-
}
|
|
21614
|
-
parseRange(range) {
|
|
21615
|
-
let memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range, cached = cache3.get(memoKey);
|
|
21616
|
-
if (cached)
|
|
21617
|
-
return cached;
|
|
21618
|
-
let loose = this.options.loose, hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
21619
|
-
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);
|
|
21620
|
-
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
21621
|
-
loose && (rangeList = rangeList.filter((comp) => (debug("loose invalid filter", comp, this.options), !!comp.match(re[t.COMPARATORLOOSE])))), debug("range list", rangeList);
|
|
21622
|
-
let rangeMap = /* @__PURE__ */ new Map(), comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
21623
|
-
for (let comp of comparators) {
|
|
21624
|
-
if (isNullSet(comp))
|
|
21625
|
-
return [comp];
|
|
21626
|
-
rangeMap.set(comp.value, comp);
|
|
21627
|
-
}
|
|
21628
|
-
rangeMap.size > 1 && rangeMap.has("") && rangeMap.delete("");
|
|
21629
|
-
let result = [...rangeMap.values()];
|
|
21630
|
-
return cache3.set(memoKey, result), result;
|
|
21631
|
-
}
|
|
21632
|
-
intersects(range, options) {
|
|
21633
|
-
if (!(range instanceof _Range))
|
|
21634
|
-
throw new TypeError("a Range is required");
|
|
21635
|
-
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)))));
|
|
21636
|
-
}
|
|
21637
|
-
// if ANY of the sets match ALL of its comparators, then pass
|
|
21638
|
-
test(version) {
|
|
21639
|
-
if (!version)
|
|
21640
|
-
return !1;
|
|
21641
|
-
if (typeof version == "string")
|
|
21642
|
-
try {
|
|
21643
|
-
version = new SemVer(version, this.options);
|
|
21644
|
-
} catch {
|
|
21645
|
-
return !1;
|
|
21646
|
-
}
|
|
21647
|
-
for (let i = 0; i < this.set.length; i++)
|
|
21648
|
-
if (testSet(this.set[i], version, this.options))
|
|
21649
|
-
return !0;
|
|
21650
|
-
return !1;
|
|
21651
|
-
}
|
|
21652
|
-
};
|
|
21653
|
-
module.exports = Range;
|
|
21654
|
-
var LRU = require_lrucache(), cache3 = new LRU(), parseOptions = require_parse_options(), Comparator = require_comparator(), debug = require_debug(), SemVer = require_semver(), {
|
|
21655
|
-
safeRe: re,
|
|
21656
|
-
t,
|
|
21657
|
-
comparatorTrimReplace,
|
|
21658
|
-
tildeTrimReplace,
|
|
21659
|
-
caretTrimReplace
|
|
21660
|
-
} = require_re(), { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants2(), isNullSet = (c) => c.value === "<0.0.0-0", isAny = (c) => c.value === "", isSatisfiable = (comparators, options) => {
|
|
21661
|
-
let result = !0, remainingComparators = comparators.slice(), testComparator = remainingComparators.pop();
|
|
21662
|
-
for (; result && remainingComparators.length; )
|
|
21663
|
-
result = remainingComparators.every((otherComparator) => testComparator.intersects(otherComparator, options)), testComparator = remainingComparators.pop();
|
|
21664
|
-
return result;
|
|
21665
|
-
}, 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) => {
|
|
21666
|
-
let r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
21667
|
-
return comp.replace(r, (_2, M, m, p, pr) => {
|
|
21668
|
-
debug("tilde", comp, _2, M, m, p, pr);
|
|
21669
|
-
let ret;
|
|
21670
|
-
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;
|
|
21671
|
-
});
|
|
21672
|
-
}, replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" "), replaceCaret = (comp, options) => {
|
|
21673
|
-
debug("caret", comp, options);
|
|
21674
|
-
let r = options.loose ? re[t.CARETLOOSE] : re[t.CARET], z = options.includePrerelease ? "-0" : "";
|
|
21675
|
-
return comp.replace(r, (_2, M, m, p, pr) => {
|
|
21676
|
-
debug("caret", comp, _2, M, m, p, pr);
|
|
21677
|
-
let ret;
|
|
21678
|
-
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;
|
|
21679
|
-
});
|
|
21680
|
-
}, replaceXRanges = (comp, options) => (debug("replaceXRanges", comp, options), comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ")), replaceXRange = (comp, options) => {
|
|
21681
|
-
comp = comp.trim();
|
|
21682
|
-
let r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
21683
|
-
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
21684
|
-
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
21685
|
-
let xM = isX(M), xm = xM || isX(m), xp = xm || isX(p), anyX = xp;
|
|
21686
|
-
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;
|
|
21687
|
-
});
|
|
21688
|
-
}, 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) => {
|
|
21689
|
-
for (let i = 0; i < set.length; i++)
|
|
21690
|
-
if (!set[i].test(version))
|
|
21691
|
-
return !1;
|
|
21692
|
-
if (version.prerelease.length && !options.includePrerelease) {
|
|
21693
|
-
for (let i = 0; i < set.length; i++)
|
|
21694
|
-
if (debug(set[i].semver), set[i].semver !== Comparator.ANY && set[i].semver.prerelease.length > 0) {
|
|
21695
|
-
let allowed = set[i].semver;
|
|
21696
|
-
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch)
|
|
21697
|
-
return !0;
|
|
21698
|
-
}
|
|
21699
|
-
return !1;
|
|
21700
|
-
}
|
|
21701
|
-
return !0;
|
|
21702
|
-
};
|
|
21703
|
-
}
|
|
21704
|
-
});
|
|
21705
|
-
|
|
21706
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/comparator.js
|
|
21707
|
-
var require_comparator = __commonJS({
|
|
21708
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/comparator.js"(exports, module) {
|
|
21709
|
-
init_cjs_shims();
|
|
21710
|
-
var ANY = Symbol("SemVer ANY"), Comparator = class _Comparator {
|
|
21711
|
-
static get ANY() {
|
|
21712
|
-
return ANY;
|
|
21713
|
-
}
|
|
21714
|
-
constructor(comp, options) {
|
|
21715
|
-
if (options = parseOptions(options), comp instanceof _Comparator) {
|
|
21716
|
-
if (comp.loose === !!options.loose)
|
|
21717
|
-
return comp;
|
|
21718
|
-
comp = comp.value;
|
|
21719
|
-
}
|
|
21720
|
-
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);
|
|
21721
|
-
}
|
|
21722
|
-
parse(comp) {
|
|
21723
|
-
let r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR], m = comp.match(r);
|
|
21724
|
-
if (!m)
|
|
21725
|
-
throw new TypeError(`Invalid comparator: ${comp}`);
|
|
21726
|
-
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;
|
|
21727
|
-
}
|
|
21728
|
-
toString() {
|
|
21729
|
-
return this.value;
|
|
21730
|
-
}
|
|
21731
|
-
test(version) {
|
|
21732
|
-
if (debug("Comparator.test", version, this.options.loose), this.semver === ANY || version === ANY)
|
|
21733
|
-
return !0;
|
|
21734
|
-
if (typeof version == "string")
|
|
21735
|
-
try {
|
|
21736
|
-
version = new SemVer(version, this.options);
|
|
21737
|
-
} catch {
|
|
21738
|
-
return !1;
|
|
21739
|
-
}
|
|
21740
|
-
return cmp(version, this.operator, this.semver, this.options);
|
|
21741
|
-
}
|
|
21742
|
-
intersects(comp, options) {
|
|
21743
|
-
if (!(comp instanceof _Comparator))
|
|
21744
|
-
throw new TypeError("a Comparator is required");
|
|
21745
|
-
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(">")));
|
|
21746
|
-
}
|
|
21747
|
-
};
|
|
21748
|
-
module.exports = Comparator;
|
|
21749
|
-
var parseOptions = require_parse_options(), { safeRe: re, t } = require_re(), cmp = require_cmp(), debug = require_debug(), SemVer = require_semver(), Range = require_range();
|
|
21750
|
-
}
|
|
21751
|
-
});
|
|
21752
|
-
|
|
21753
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/satisfies.js
|
|
21754
|
-
var require_satisfies = __commonJS({
|
|
21755
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/satisfies.js"(exports, module) {
|
|
21756
|
-
init_cjs_shims();
|
|
21757
|
-
var Range = require_range(), satisfies2 = (version, range, options) => {
|
|
21758
|
-
try {
|
|
21759
|
-
range = new Range(range, options);
|
|
21760
|
-
} catch {
|
|
21761
|
-
return !1;
|
|
21762
|
-
}
|
|
21763
|
-
return range.test(version);
|
|
21764
|
-
};
|
|
21765
|
-
module.exports = satisfies2;
|
|
21766
|
-
}
|
|
21767
|
-
});
|
|
21768
|
-
|
|
21769
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/to-comparators.js
|
|
21770
|
-
var require_to_comparators = __commonJS({
|
|
21771
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/to-comparators.js"(exports, module) {
|
|
21772
|
-
init_cjs_shims();
|
|
21773
|
-
var Range = require_range(), toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
21774
|
-
module.exports = toComparators;
|
|
21775
|
-
}
|
|
21776
|
-
});
|
|
21777
|
-
|
|
21778
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/max-satisfying.js
|
|
21779
|
-
var require_max_satisfying = __commonJS({
|
|
21780
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/max-satisfying.js"(exports, module) {
|
|
21781
|
-
init_cjs_shims();
|
|
21782
|
-
var SemVer = require_semver(), Range = require_range(), maxSatisfying = (versions, range, options) => {
|
|
21783
|
-
let max = null, maxSV = null, rangeObj = null;
|
|
21784
|
-
try {
|
|
21785
|
-
rangeObj = new Range(range, options);
|
|
21786
|
-
} catch {
|
|
21787
|
-
return null;
|
|
21788
|
-
}
|
|
21789
|
-
return versions.forEach((v) => {
|
|
21790
|
-
rangeObj.test(v) && (!max || maxSV.compare(v) === -1) && (max = v, maxSV = new SemVer(max, options));
|
|
21791
|
-
}), max;
|
|
21792
|
-
};
|
|
21793
|
-
module.exports = maxSatisfying;
|
|
21794
|
-
}
|
|
21795
|
-
});
|
|
21796
|
-
|
|
21797
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-satisfying.js
|
|
21798
|
-
var require_min_satisfying = __commonJS({
|
|
21799
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-satisfying.js"(exports, module) {
|
|
21800
|
-
init_cjs_shims();
|
|
21801
|
-
var SemVer = require_semver(), Range = require_range(), minSatisfying = (versions, range, options) => {
|
|
21802
|
-
let min = null, minSV = null, rangeObj = null;
|
|
21803
|
-
try {
|
|
21804
|
-
rangeObj = new Range(range, options);
|
|
21805
|
-
} catch {
|
|
21806
|
-
return null;
|
|
21807
|
-
}
|
|
21808
|
-
return versions.forEach((v) => {
|
|
21809
|
-
rangeObj.test(v) && (!min || minSV.compare(v) === 1) && (min = v, minSV = new SemVer(min, options));
|
|
21810
|
-
}), min;
|
|
21811
|
-
};
|
|
21812
|
-
module.exports = minSatisfying;
|
|
21813
|
-
}
|
|
21814
|
-
});
|
|
21815
|
-
|
|
21816
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-version.js
|
|
21817
|
-
var require_min_version = __commonJS({
|
|
21818
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-version.js"(exports, module) {
|
|
21819
|
-
init_cjs_shims();
|
|
21820
|
-
var SemVer = require_semver(), Range = require_range(), gt = require_gt(), minVersion = (range, loose) => {
|
|
21821
|
-
range = new Range(range, loose);
|
|
21822
|
-
let minver = new SemVer("0.0.0");
|
|
21823
|
-
if (range.test(minver) || (minver = new SemVer("0.0.0-0"), range.test(minver)))
|
|
21824
|
-
return minver;
|
|
21825
|
-
minver = null;
|
|
21826
|
-
for (let i = 0; i < range.set.length; ++i) {
|
|
21827
|
-
let comparators = range.set[i], setMin = null;
|
|
21828
|
-
comparators.forEach((comparator) => {
|
|
21829
|
-
let compver = new SemVer(comparator.semver.version);
|
|
21830
|
-
switch (comparator.operator) {
|
|
21831
|
-
case ">":
|
|
21832
|
-
compver.prerelease.length === 0 ? compver.patch++ : compver.prerelease.push(0), compver.raw = compver.format();
|
|
21833
|
-
/* fallthrough */
|
|
21834
|
-
case "":
|
|
21835
|
-
case ">=":
|
|
21836
|
-
(!setMin || gt(compver, setMin)) && (setMin = compver);
|
|
21837
|
-
break;
|
|
21838
|
-
case "<":
|
|
21839
|
-
case "<=":
|
|
21840
|
-
break;
|
|
21841
|
-
/* istanbul ignore next */
|
|
21842
|
-
default:
|
|
21843
|
-
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
21844
|
-
}
|
|
21845
|
-
}), setMin && (!minver || gt(minver, setMin)) && (minver = setMin);
|
|
21846
|
-
}
|
|
21847
|
-
return minver && range.test(minver) ? minver : null;
|
|
21848
|
-
};
|
|
21849
|
-
module.exports = minVersion;
|
|
21850
|
-
}
|
|
21851
|
-
});
|
|
21852
|
-
|
|
21853
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/valid.js
|
|
21854
|
-
var require_valid2 = __commonJS({
|
|
21855
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/valid.js"(exports, module) {
|
|
21856
|
-
init_cjs_shims();
|
|
21857
|
-
var Range = require_range(), validRange = (range, options) => {
|
|
21858
|
-
try {
|
|
21859
|
-
return new Range(range, options).range || "*";
|
|
21860
|
-
} catch {
|
|
21861
|
-
return null;
|
|
21862
|
-
}
|
|
21863
|
-
};
|
|
21864
|
-
module.exports = validRange;
|
|
21865
|
-
}
|
|
21866
|
-
});
|
|
21867
|
-
|
|
21868
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/outside.js
|
|
21869
|
-
var require_outside = __commonJS({
|
|
21870
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/outside.js"(exports, module) {
|
|
21871
|
-
init_cjs_shims();
|
|
21872
|
-
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) => {
|
|
21873
|
-
version = new SemVer(version, options), range = new Range(range, options);
|
|
21874
|
-
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
21875
|
-
switch (hilo) {
|
|
21876
|
-
case ">":
|
|
21877
|
-
gtfn = gt, ltefn = lte, ltfn = lt, comp = ">", ecomp = ">=";
|
|
21878
|
-
break;
|
|
21879
|
-
case "<":
|
|
21880
|
-
gtfn = lt, ltefn = gte, ltfn = gt, comp = "<", ecomp = "<=";
|
|
21881
|
-
break;
|
|
21882
|
-
default:
|
|
21883
|
-
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
21884
|
-
}
|
|
21885
|
-
if (satisfies2(version, range, options))
|
|
21886
|
-
return !1;
|
|
21887
|
-
for (let i = 0; i < range.set.length; ++i) {
|
|
21888
|
-
let comparators = range.set[i], high = null, low = null;
|
|
21889
|
-
if (comparators.forEach((comparator) => {
|
|
21890
|
-
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);
|
|
21891
|
-
}), high.operator === comp || high.operator === ecomp || (!low.operator || low.operator === comp) && ltefn(version, low.semver))
|
|
21892
|
-
return !1;
|
|
21893
|
-
if (low.operator === ecomp && ltfn(version, low.semver))
|
|
21894
|
-
return !1;
|
|
21895
|
-
}
|
|
21896
|
-
return !0;
|
|
21897
|
-
};
|
|
21898
|
-
module.exports = outside;
|
|
21899
|
-
}
|
|
21900
|
-
});
|
|
21901
|
-
|
|
21902
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/gtr.js
|
|
21903
|
-
var require_gtr = __commonJS({
|
|
21904
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/gtr.js"(exports, module) {
|
|
21905
|
-
init_cjs_shims();
|
|
21906
|
-
var outside = require_outside(), gtr = (version, range, options) => outside(version, range, ">", options);
|
|
21907
|
-
module.exports = gtr;
|
|
21908
|
-
}
|
|
21909
|
-
});
|
|
21910
|
-
|
|
21911
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/ltr.js
|
|
21912
|
-
var require_ltr = __commonJS({
|
|
21913
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/ltr.js"(exports, module) {
|
|
21914
|
-
init_cjs_shims();
|
|
21915
|
-
var outside = require_outside(), ltr = (version, range, options) => outside(version, range, "<", options);
|
|
21916
|
-
module.exports = ltr;
|
|
21917
|
-
}
|
|
21918
|
-
});
|
|
21919
|
-
|
|
21920
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/intersects.js
|
|
21921
|
-
var require_intersects = __commonJS({
|
|
21922
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/intersects.js"(exports, module) {
|
|
21923
|
-
init_cjs_shims();
|
|
21924
|
-
var Range = require_range(), intersects = (r1, r2, options) => (r1 = new Range(r1, options), r2 = new Range(r2, options), r1.intersects(r2, options));
|
|
21925
|
-
module.exports = intersects;
|
|
21926
|
-
}
|
|
21927
|
-
});
|
|
21928
|
-
|
|
21929
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/simplify.js
|
|
21930
|
-
var require_simplify = __commonJS({
|
|
21931
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/simplify.js"(exports, module) {
|
|
21932
|
-
init_cjs_shims();
|
|
21933
|
-
var satisfies2 = require_satisfies(), compare = require_compare();
|
|
21934
|
-
module.exports = (versions, range, options) => {
|
|
21935
|
-
let set = [], first = null, prev = null, v = versions.sort((a, b) => compare(a, b, options));
|
|
21936
|
-
for (let version of v)
|
|
21937
|
-
satisfies2(version, range, options) ? (prev = version, first || (first = version)) : (prev && set.push([first, prev]), prev = null, first = null);
|
|
21938
|
-
first && set.push([first, null]);
|
|
21939
|
-
let ranges = [];
|
|
21940
|
-
for (let [min, max] of set)
|
|
21941
|
-
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}`);
|
|
21942
|
-
let simplified = ranges.join(" || "), original = typeof range.raw == "string" ? range.raw : String(range);
|
|
21943
|
-
return simplified.length < original.length ? simplified : range;
|
|
21944
|
-
};
|
|
21945
|
-
}
|
|
21946
|
-
});
|
|
21947
|
-
|
|
21948
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/subset.js
|
|
21949
|
-
var require_subset = __commonJS({
|
|
21950
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/subset.js"(exports, module) {
|
|
21951
|
-
init_cjs_shims();
|
|
21952
|
-
var Range = require_range(), Comparator = require_comparator(), { ANY } = Comparator, satisfies2 = require_satisfies(), compare = require_compare(), subset = (sub, dom, options = {}) => {
|
|
21953
|
-
if (sub === dom)
|
|
21954
|
-
return !0;
|
|
21955
|
-
sub = new Range(sub, options), dom = new Range(dom, options);
|
|
21956
|
-
let sawNonNull = !1;
|
|
21957
|
-
OUTER: for (let simpleSub of sub.set) {
|
|
21958
|
-
for (let simpleDom of dom.set) {
|
|
21959
|
-
let isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
21960
|
-
if (sawNonNull = sawNonNull || isSub !== null, isSub)
|
|
21961
|
-
continue OUTER;
|
|
21962
|
-
}
|
|
21963
|
-
if (sawNonNull)
|
|
21964
|
-
return !1;
|
|
21965
|
-
}
|
|
21966
|
-
return !0;
|
|
21967
|
-
}, minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")], minimumVersion = [new Comparator(">=0.0.0")], simpleSubset = (sub, dom, options) => {
|
|
21968
|
-
if (sub === dom)
|
|
21969
|
-
return !0;
|
|
21970
|
-
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
21971
|
-
if (dom.length === 1 && dom[0].semver === ANY)
|
|
21972
|
-
return !0;
|
|
21973
|
-
options.includePrerelease ? sub = minimumVersionWithPreRelease : sub = minimumVersion;
|
|
21974
|
-
}
|
|
21975
|
-
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
21976
|
-
if (options.includePrerelease)
|
|
21977
|
-
return !0;
|
|
21978
|
-
dom = minimumVersion;
|
|
21979
|
-
}
|
|
21980
|
-
let eqSet = /* @__PURE__ */ new Set(), gt, lt;
|
|
21981
|
-
for (let c of sub)
|
|
21982
|
-
c.operator === ">" || c.operator === ">=" ? gt = higherGT(gt, c, options) : c.operator === "<" || c.operator === "<=" ? lt = lowerLT(lt, c, options) : eqSet.add(c.semver);
|
|
21983
|
-
if (eqSet.size > 1)
|
|
21984
|
-
return null;
|
|
21985
|
-
let gtltComp;
|
|
21986
|
-
if (gt && lt) {
|
|
21987
|
-
if (gtltComp = compare(gt.semver, lt.semver, options), gtltComp > 0)
|
|
21988
|
-
return null;
|
|
21989
|
-
if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<="))
|
|
21990
|
-
return null;
|
|
21991
|
-
}
|
|
21992
|
-
for (let eq of eqSet) {
|
|
21993
|
-
if (gt && !satisfies2(eq, String(gt), options) || lt && !satisfies2(eq, String(lt), options))
|
|
21994
|
-
return null;
|
|
21995
|
-
for (let c of dom)
|
|
21996
|
-
if (!satisfies2(eq, String(c), options))
|
|
21997
|
-
return !1;
|
|
21998
|
-
return !0;
|
|
21999
|
-
}
|
|
22000
|
-
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;
|
|
22001
|
-
needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0 && (needDomLTPre = !1);
|
|
22002
|
-
for (let c of dom) {
|
|
22003
|
-
if (hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=", hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=", gt) {
|
|
22004
|
-
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 === ">=") {
|
|
22005
|
-
if (higher = higherGT(gt, c, options), higher === c && higher !== gt)
|
|
22006
|
-
return !1;
|
|
22007
|
-
} else if (gt.operator === ">=" && !satisfies2(gt.semver, String(c), options))
|
|
22008
|
-
return !1;
|
|
22009
|
-
}
|
|
22010
|
-
if (lt) {
|
|
22011
|
-
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 === "<=") {
|
|
22012
|
-
if (lower = lowerLT(lt, c, options), lower === c && lower !== lt)
|
|
22013
|
-
return !1;
|
|
22014
|
-
} else if (lt.operator === "<=" && !satisfies2(lt.semver, String(c), options))
|
|
22015
|
-
return !1;
|
|
22016
|
-
}
|
|
22017
|
-
if (!c.operator && (lt || gt) && gtltComp !== 0)
|
|
22018
|
-
return !1;
|
|
22019
|
-
}
|
|
22020
|
-
return !(gt && hasDomLT && !lt && gtltComp !== 0 || lt && hasDomGT && !gt && gtltComp !== 0 || needDomGTPre || needDomLTPre);
|
|
22021
|
-
}, higherGT = (a, b, options) => {
|
|
22022
|
-
if (!a)
|
|
22023
|
-
return b;
|
|
22024
|
-
let comp = compare(a.semver, b.semver, options);
|
|
22025
|
-
return comp > 0 ? a : comp < 0 || b.operator === ">" && a.operator === ">=" ? b : a;
|
|
22026
|
-
}, lowerLT = (a, b, options) => {
|
|
22027
|
-
if (!a)
|
|
22028
|
-
return b;
|
|
22029
|
-
let comp = compare(a.semver, b.semver, options);
|
|
22030
|
-
return comp < 0 ? a : comp > 0 || b.operator === "<" && a.operator === "<=" ? b : a;
|
|
22031
|
-
};
|
|
22032
|
-
module.exports = subset;
|
|
22033
|
-
}
|
|
22034
|
-
});
|
|
22035
|
-
|
|
22036
|
-
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/index.js
|
|
22037
|
-
var require_semver2 = __commonJS({
|
|
22038
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/index.js"(exports, module) {
|
|
22039
|
-
init_cjs_shims();
|
|
22040
|
-
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();
|
|
22041
|
-
module.exports = {
|
|
22042
|
-
parse,
|
|
22043
|
-
valid,
|
|
22044
|
-
clean,
|
|
22045
|
-
inc,
|
|
22046
|
-
diff: diff2,
|
|
22047
|
-
major,
|
|
22048
|
-
minor,
|
|
22049
|
-
patch,
|
|
22050
|
-
prerelease,
|
|
22051
|
-
compare,
|
|
22052
|
-
rcompare,
|
|
22053
|
-
compareLoose,
|
|
22054
|
-
compareBuild,
|
|
22055
|
-
sort,
|
|
22056
|
-
rsort,
|
|
22057
|
-
gt,
|
|
22058
|
-
lt,
|
|
22059
|
-
eq,
|
|
22060
|
-
neq,
|
|
22061
|
-
gte,
|
|
22062
|
-
lte,
|
|
22063
|
-
cmp,
|
|
22064
|
-
coerce,
|
|
22065
|
-
Comparator,
|
|
22066
|
-
Range,
|
|
22067
|
-
satisfies: satisfies2,
|
|
22068
|
-
toComparators,
|
|
22069
|
-
maxSatisfying,
|
|
22070
|
-
minSatisfying,
|
|
22071
|
-
minVersion,
|
|
22072
|
-
validRange,
|
|
22073
|
-
outside,
|
|
22074
|
-
gtr,
|
|
22075
|
-
ltr,
|
|
22076
|
-
intersects,
|
|
22077
|
-
simplifyRange,
|
|
22078
|
-
subset,
|
|
22079
|
-
SemVer,
|
|
22080
|
-
re: internalRe.re,
|
|
22081
|
-
src: internalRe.src,
|
|
22082
|
-
tokens: internalRe.t,
|
|
22083
|
-
SEMVER_SPEC_VERSION: constants3.SEMVER_SPEC_VERSION,
|
|
22084
|
-
RELEASE_TYPES: constants3.RELEASE_TYPES,
|
|
22085
|
-
compareIdentifiers: identifiers.compareIdentifiers,
|
|
22086
|
-
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
22087
|
-
};
|
|
22088
|
-
}
|
|
22089
|
-
});
|
|
22090
|
-
|
|
22091
|
-
// ../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
|
|
22092
|
-
var require_universalify = __commonJS({
|
|
22093
|
-
"../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js"(exports) {
|
|
22094
|
-
"use strict";
|
|
22095
|
-
init_cjs_shims();
|
|
22096
|
-
exports.fromCallback = function(fn) {
|
|
22097
|
-
return Object.defineProperty(function(...args) {
|
|
22098
|
-
if (typeof args[args.length - 1] == "function") fn.apply(this, args);
|
|
22099
|
-
else
|
|
22100
|
-
return new Promise((resolve, reject) => {
|
|
22101
|
-
args.push((err, res) => err != null ? reject(err) : resolve(res)), fn.apply(this, args);
|
|
22102
|
-
});
|
|
22103
|
-
}, "name", { value: fn.name });
|
|
22104
|
-
};
|
|
22105
|
-
exports.fromPromise = function(fn) {
|
|
22106
|
-
return Object.defineProperty(function(...args) {
|
|
22107
|
-
let cb = args[args.length - 1];
|
|
22108
|
-
if (typeof cb != "function") return fn.apply(this, args);
|
|
22109
|
-
args.pop(), fn.apply(this, args).then((r) => cb(null, r), cb);
|
|
22110
|
-
}, "name", { value: fn.name });
|
|
22111
|
-
};
|
|
22112
|
-
}
|
|
22113
|
-
});
|
|
22114
|
-
|
|
22115
|
-
// ../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/fs/index.js
|
|
22116
|
-
var require_fs = __commonJS({
|
|
22117
|
-
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/fs/index.js"(exports) {
|
|
22118
|
-
"use strict";
|
|
21735
|
+
// ../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/fs/index.js
|
|
21736
|
+
var require_fs = __commonJS({
|
|
21737
|
+
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/fs/index.js"(exports) {
|
|
21738
|
+
"use strict";
|
|
22119
21739
|
init_cjs_shims();
|
|
22120
21740
|
var u = require_universalify().fromCallback, fs5 = require_graceful_fs(), api = [
|
|
22121
21741
|
"access",
|
|
@@ -23201,7 +22821,7 @@ var require_move2 = __commonJS({
|
|
|
23201
22821
|
});
|
|
23202
22822
|
|
|
23203
22823
|
// ../../node_modules/.pnpm/macaddress@0.5.3/node_modules/macaddress/lib/util.js
|
|
23204
|
-
var
|
|
22824
|
+
var require_util2 = __commonJS({
|
|
23205
22825
|
"../../node_modules/.pnpm/macaddress@0.5.3/node_modules/macaddress/lib/util.js"(exports, module) {
|
|
23206
22826
|
"use strict";
|
|
23207
22827
|
init_cjs_shims();
|
|
@@ -23491,7 +23111,7 @@ var require_macaddress = __commonJS({
|
|
|
23491
23111
|
"../../node_modules/.pnpm/macaddress@0.5.3/node_modules/macaddress/index.js"(exports, module) {
|
|
23492
23112
|
"use strict";
|
|
23493
23113
|
init_cjs_shims();
|
|
23494
|
-
var util =
|
|
23114
|
+
var util = require_util2(), lib = {};
|
|
23495
23115
|
lib.getMacAddress = require_getmacaddress();
|
|
23496
23116
|
lib.getAllInterfaces = require_getallinterfaces();
|
|
23497
23117
|
lib.networkInterfaces = require_networkinterfaces();
|
|
@@ -23611,7 +23231,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
|
|
|
23611
23231
|
try {
|
|
23612
23232
|
await getAndSet();
|
|
23613
23233
|
} catch (error) {
|
|
23614
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
23234
|
+
let { sendErrorToBugsnag } = await import("./error-handler-C6Y3FZJC.js");
|
|
23615
23235
|
await sendErrorToBugsnag(error, "unexpected_error");
|
|
23616
23236
|
}
|
|
23617
23237
|
}, durationStack = [];
|
|
@@ -29032,9 +28652,14 @@ function truncated(text, maxWidth) {
|
|
|
29032
28652
|
}
|
|
29033
28653
|
var TextAnimation = (0, import_react50.memo)(({ text, maxWidth }) => {
|
|
29034
28654
|
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));
|
|
29035
|
-
|
|
29036
|
-
|
|
29037
|
-
|
|
28655
|
+
(0, import_react50.useLayoutEffect)(() => {
|
|
28656
|
+
let handleResize = () => {
|
|
28657
|
+
setWidth(Math.floor(stdout.columns * 0.66));
|
|
28658
|
+
};
|
|
28659
|
+
return stdout.on("resize", handleResize), () => {
|
|
28660
|
+
stdout.off("resize", handleResize);
|
|
28661
|
+
};
|
|
28662
|
+
}, [stdout]);
|
|
29038
28663
|
let renderAnimation = (0, import_react50.useCallback)(() => {
|
|
29039
28664
|
let newFrame = frame.current + 1;
|
|
29040
28665
|
frame.current = newFrame, setRenderedFrame(rainbow(truncated(rotated(text, frame.current), width), frame.current)), timeout.current = setTimeout(() => {
|
|
@@ -29209,10 +28834,13 @@ init_cjs_shims();
|
|
|
29209
28834
|
|
|
29210
28835
|
// ../cli-kit/dist/public/common/function.js
|
|
29211
28836
|
init_cjs_shims();
|
|
29212
|
-
var import_memoize = __toESM(require_memoize(), 1), import_debounce = __toESM(require_debounce(), 1);
|
|
28837
|
+
var import_memoize = __toESM(require_memoize(), 1), import_debounce = __toESM(require_debounce(), 1), import_throttle2 = __toESM(require_throttle(), 1);
|
|
29213
28838
|
function debounce(func, wait, options) {
|
|
29214
28839
|
return (0, import_debounce.default)(func, wait, options);
|
|
29215
28840
|
}
|
|
28841
|
+
function throttle2(func, wait, options) {
|
|
28842
|
+
return (0, import_throttle2.default)(func, wait, options);
|
|
28843
|
+
}
|
|
29216
28844
|
|
|
29217
28845
|
// ../cli-kit/dist/private/node/ui/components/AutocompletePrompt.js
|
|
29218
28846
|
var import_react54 = __toESM(require_react(), 1);
|
|
@@ -29228,17 +28856,21 @@ function AutocompletePrompt({ message, choices, infoTable, onSubmit, search, has
|
|
|
29228
28856
|
}, [answer, onSubmit, promptState, unmountInk]);
|
|
29229
28857
|
let setLoadingWhenSlow = (0, import_react54.useRef)(), searchTermRef = (0, import_react54.useRef)("");
|
|
29230
28858
|
searchTermRef.current = searchTerm;
|
|
29231
|
-
let
|
|
28859
|
+
let choicesRef = (0, import_react54.useRef)(choices);
|
|
28860
|
+
choicesRef.current = choices;
|
|
28861
|
+
let initialHasPagesRef = (0, import_react54.useRef)(initialHasMorePages);
|
|
28862
|
+
initialHasPagesRef.current = initialHasMorePages;
|
|
28863
|
+
let debounceSearch = import_react54.default.useMemo(() => throttle2((term) => {
|
|
29232
28864
|
setLoadingWhenSlow.current = setTimeout(() => {
|
|
29233
28865
|
setPromptState(PromptState.Loading);
|
|
29234
28866
|
}, 100), paginatedSearch(term).then((result) => {
|
|
29235
|
-
searchTermRef.current.length === 0 ? (setSearchResults(
|
|
28867
|
+
searchTermRef.current.length === 0 ? (setSearchResults(choicesRef.current), setHasMorePages(initialHasPagesRef.current)) : (setSearchResults(result.data), setHasMorePages(result.meta?.hasNextPage ?? !1)), setPromptState(PromptState.Idle);
|
|
29236
28868
|
}).catch(() => {
|
|
29237
28869
|
setPromptState(PromptState.Error);
|
|
29238
28870
|
}).finally(() => {
|
|
29239
28871
|
clearTimeout(setLoadingWhenSlow.current);
|
|
29240
28872
|
});
|
|
29241
|
-
},
|
|
28873
|
+
}, 400, { leading: !0, trailing: !0 }), [paginatedSearch, setPromptState]);
|
|
29242
28874
|
return import_react54.default.createElement(PromptLayout, { message, state: promptState, infoTable, infoMessage, abortSignal, header: promptState !== PromptState.Submitted && canSearch ? import_react54.default.createElement(
|
|
29243
28875
|
Box_default,
|
|
29244
28876
|
{ marginLeft: 3 },
|
|
@@ -30468,7 +30100,7 @@ async function isWsl() {
|
|
|
30468
30100
|
|
|
30469
30101
|
// ../cli-kit/dist/public/node/version.js
|
|
30470
30102
|
init_cjs_shims();
|
|
30471
|
-
var import_which2 = __toESM(require_lib2(), 1), import_semver = __toESM(
|
|
30103
|
+
var import_which2 = __toESM(require_lib2(), 1), import_semver = __toESM(require_semver(), 1);
|
|
30472
30104
|
async function localCLIVersion(directory) {
|
|
30473
30105
|
try {
|
|
30474
30106
|
return (await captureOutput("npm", ["list", "@shopify/cli"], { cwd: directory })).match(/@shopify\/cli@([\w.-]*)/)?.[1];
|
|
@@ -32093,7 +31725,7 @@ function removeFileSync(path8) {
|
|
|
32093
31725
|
outputDebug(outputContent`Sync-removing file at ${outputToken.path(path8)}...`), removeSync(path8);
|
|
32094
31726
|
}
|
|
32095
31727
|
async function rmdir(path8, options = {}) {
|
|
32096
|
-
let { default: del } = await import("./del-
|
|
31728
|
+
let { default: del } = await import("./del-4XMQNWFE.js");
|
|
32097
31729
|
outputDebug(outputContent`Removing directory at ${outputToken.path(path8)}...`), await del(path8, { force: options.force });
|
|
32098
31730
|
}
|
|
32099
31731
|
async function isDirectory(path8) {
|
|
@@ -32653,7 +32285,6 @@ export {
|
|
|
32653
32285
|
macAddress,
|
|
32654
32286
|
getThemeKitAccessDomain,
|
|
32655
32287
|
opentelemetryDomain,
|
|
32656
|
-
require_semver2 as require_semver,
|
|
32657
32288
|
localCLIVersion,
|
|
32658
32289
|
globalCLIVersion,
|
|
32659
32290
|
isPreReleaseVersion,
|
|
@@ -32820,4 +32451,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
|
32820
32451
|
* LICENSE file in the root directory of this source tree.
|
|
32821
32452
|
*)
|
|
32822
32453
|
*/
|
|
32823
|
-
//# sourceMappingURL=chunk-
|
|
32454
|
+
//# sourceMappingURL=chunk-EU5PDVVS.js.map
|