bundle-stats 4.22.2 → 4.23.0-beta.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/lib/index.js +207 -548
- package/package.json +11 -11
package/lib/index.js
CHANGED
|
@@ -21,7 +21,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
21
21
|
}
|
|
22
22
|
return to;
|
|
23
23
|
};
|
|
24
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
25
25
|
value: mod,
|
|
26
26
|
enumerable: true
|
|
27
27
|
}) : target, mod));
|
|
@@ -333,7 +333,7 @@ var require_legacy_streams$1 = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
333
333
|
this.paused = false;
|
|
334
334
|
this.flags = "r";
|
|
335
335
|
this.mode = 438;
|
|
336
|
-
this.bufferSize =
|
|
336
|
+
this.bufferSize = 65536;
|
|
337
337
|
options = options || {};
|
|
338
338
|
var keys = Object.keys(options);
|
|
339
339
|
for (var index = 0, length = keys.length; index < length; index++) {
|
|
@@ -976,8 +976,10 @@ var Interceptor = class {
|
|
|
976
976
|
if (this.exited) return;
|
|
977
977
|
this.exited = true;
|
|
978
978
|
for (const callback of this.callbacks) callback();
|
|
979
|
-
if (signal)
|
|
980
|
-
|
|
979
|
+
if (signal) {
|
|
980
|
+
if (IS_WINDOWS && signal !== "SIGINT" && signal !== "SIGTERM" && signal !== "SIGKILL") node_process.default.kill(node_process.default.pid, "SIGTERM");
|
|
981
|
+
else node_process.default.kill(node_process.default.pid, signal);
|
|
982
|
+
}
|
|
981
983
|
};
|
|
982
984
|
this.hook = () => {
|
|
983
985
|
node_process.default.once("exit", () => this.exit());
|
|
@@ -1076,8 +1078,10 @@ function writeFileSync(filePath, data, options = DEFAULT_WRITE_OPTIONS) {
|
|
|
1076
1078
|
if (options.tmpCreated) options.tmpCreated(tempPath);
|
|
1077
1079
|
if (isString(data)) FS.retry.writeSync(retryOptions)(fd, data, 0, options.encoding || "utf8");
|
|
1078
1080
|
else if (!isUndefined(data)) FS.retry.writeSync(retryOptions)(fd, data, 0, data.length, 0);
|
|
1079
|
-
if (options.fsync !== false)
|
|
1080
|
-
|
|
1081
|
+
if (options.fsync !== false) {
|
|
1082
|
+
if (options.fsyncWait !== false) FS.retry.fsyncSync(retryOptions)(fd);
|
|
1083
|
+
else FS.attempt.fsync(fd);
|
|
1084
|
+
}
|
|
1081
1085
|
FS.retry.closeSync(retryOptions)(fd);
|
|
1082
1086
|
fd = null;
|
|
1083
1087
|
if (options.chown && (options.chown.uid !== DEFAULT_USER_UID || options.chown.gid !== DEFAULT_USER_GID)) FS.attempt.chownSync(tempPath, options.chown.uid, options.chown.gid);
|
|
@@ -1098,12 +1102,12 @@ function writeFileSync(filePath, data, options = DEFAULT_WRITE_OPTIONS) {
|
|
|
1098
1102
|
}
|
|
1099
1103
|
|
|
1100
1104
|
//#endregion
|
|
1101
|
-
//#region ../../node_modules/
|
|
1105
|
+
//#region ../../node_modules/dot-prop/index.js
|
|
1102
1106
|
const isObject$1 = (value) => {
|
|
1103
1107
|
const type = typeof value;
|
|
1104
1108
|
return value !== null && (type === "object" || type === "function");
|
|
1105
1109
|
};
|
|
1106
|
-
const disallowedKeys = new Set([
|
|
1110
|
+
const disallowedKeys = /* @__PURE__ */ new Set([
|
|
1107
1111
|
"__proto__",
|
|
1108
1112
|
"prototype",
|
|
1109
1113
|
"constructor"
|
|
@@ -1181,9 +1185,7 @@ function getPathSegments(path) {
|
|
|
1181
1185
|
parts.push(currentSegment);
|
|
1182
1186
|
break;
|
|
1183
1187
|
case "index": throw new Error("Index was not closed");
|
|
1184
|
-
case "start":
|
|
1185
|
-
parts.push("");
|
|
1186
|
-
break;
|
|
1188
|
+
case "start": parts.push("");
|
|
1187
1189
|
}
|
|
1188
1190
|
return parts;
|
|
1189
1191
|
}
|
|
@@ -1736,20 +1738,21 @@ const chalk = createChalk();
|
|
|
1736
1738
|
const chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
1737
1739
|
|
|
1738
1740
|
//#endregion
|
|
1739
|
-
//#region ../../node_modules/
|
|
1740
|
-
var require_debug
|
|
1741
|
+
//#region ../../node_modules/semver/internal/debug.js
|
|
1742
|
+
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1741
1743
|
const debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
1742
1744
|
module.exports = debug;
|
|
1743
1745
|
}));
|
|
1744
1746
|
|
|
1745
1747
|
//#endregion
|
|
1746
|
-
//#region ../../node_modules/
|
|
1747
|
-
var require_constants
|
|
1748
|
+
//#region ../../node_modules/semver/internal/constants.js
|
|
1749
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1748
1750
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
1749
1751
|
const MAX_LENGTH = 256;
|
|
1750
|
-
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
|
|
1752
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
|
|
1753
|
+
/* istanbul ignore next */ 9007199254740991;
|
|
1751
1754
|
const MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
1752
|
-
const MAX_SAFE_BUILD_LENGTH =
|
|
1755
|
+
const MAX_SAFE_BUILD_LENGTH = 250;
|
|
1753
1756
|
const RELEASE_TYPES = [
|
|
1754
1757
|
"major",
|
|
1755
1758
|
"premajor",
|
|
@@ -1772,10 +1775,10 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1772
1775
|
}));
|
|
1773
1776
|
|
|
1774
1777
|
//#endregion
|
|
1775
|
-
//#region ../../node_modules/
|
|
1776
|
-
var require_re
|
|
1777
|
-
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants
|
|
1778
|
-
const debug = require_debug
|
|
1778
|
+
//#region ../../node_modules/semver/internal/re.js
|
|
1779
|
+
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1780
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
1781
|
+
const debug = require_debug();
|
|
1779
1782
|
exports = module.exports = {};
|
|
1780
1783
|
const re = exports.re = [];
|
|
1781
1784
|
const safeRe = exports.safeRe = [];
|
|
@@ -1852,8 +1855,8 @@ var require_re$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1852
1855
|
}));
|
|
1853
1856
|
|
|
1854
1857
|
//#endregion
|
|
1855
|
-
//#region ../../node_modules/
|
|
1856
|
-
var require_parse_options
|
|
1858
|
+
//#region ../../node_modules/semver/internal/parse-options.js
|
|
1859
|
+
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1857
1860
|
const looseOption = Object.freeze({ loose: true });
|
|
1858
1861
|
const emptyOpts = Object.freeze({});
|
|
1859
1862
|
const parseOptions = (options) => {
|
|
@@ -1865,8 +1868,8 @@ var require_parse_options$1 = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
1865
1868
|
}));
|
|
1866
1869
|
|
|
1867
1870
|
//#endregion
|
|
1868
|
-
//#region ../../node_modules/
|
|
1869
|
-
var require_identifiers
|
|
1871
|
+
//#region ../../node_modules/semver/internal/identifiers.js
|
|
1872
|
+
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1870
1873
|
const numeric = /^[0-9]+$/;
|
|
1871
1874
|
const compareIdentifiers = (a, b) => {
|
|
1872
1875
|
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
@@ -1886,19 +1889,26 @@ var require_identifiers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1886
1889
|
}));
|
|
1887
1890
|
|
|
1888
1891
|
//#endregion
|
|
1889
|
-
//#region ../../node_modules/
|
|
1890
|
-
var require_semver$
|
|
1891
|
-
const debug = require_debug
|
|
1892
|
-
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants
|
|
1893
|
-
const { safeRe: re, t } = require_re
|
|
1894
|
-
const parseOptions = require_parse_options
|
|
1895
|
-
const { compareIdentifiers } = require_identifiers
|
|
1892
|
+
//#region ../../node_modules/semver/classes/semver.js
|
|
1893
|
+
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1894
|
+
const debug = require_debug();
|
|
1895
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
1896
|
+
const { safeRe: re, t } = require_re();
|
|
1897
|
+
const parseOptions = require_parse_options();
|
|
1898
|
+
const { compareIdentifiers } = require_identifiers();
|
|
1899
|
+
const isPrereleaseIdentifier = (prerelease, identifier) => {
|
|
1900
|
+
const identifiers = identifier.split(".");
|
|
1901
|
+
if (identifiers.length > prerelease.length) return false;
|
|
1902
|
+
for (let i = 0; i < identifiers.length; i++) if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) return false;
|
|
1903
|
+
return true;
|
|
1904
|
+
};
|
|
1896
1905
|
var SemVer = class SemVer {
|
|
1897
1906
|
constructor(version, options) {
|
|
1898
1907
|
options = parseOptions(options);
|
|
1899
|
-
if (version instanceof SemVer)
|
|
1900
|
-
|
|
1901
|
-
|
|
1908
|
+
if (version instanceof SemVer) {
|
|
1909
|
+
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
1910
|
+
else version = version.version;
|
|
1911
|
+
} else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
1902
1912
|
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
1903
1913
|
debug("SemVer", version, options);
|
|
1904
1914
|
this.options = options;
|
|
@@ -2049,8 +2059,9 @@ var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2049
2059
|
if (identifier) {
|
|
2050
2060
|
let prerelease = [identifier, base];
|
|
2051
2061
|
if (identifierBase === false) prerelease = [identifier];
|
|
2052
|
-
if (
|
|
2053
|
-
|
|
2062
|
+
if (isPrereleaseIdentifier(this.prerelease, identifier)) {
|
|
2063
|
+
const prereleaseBase = this.prerelease[identifier.split(".").length];
|
|
2064
|
+
if (isNaN(prereleaseBase)) this.prerelease = prerelease;
|
|
2054
2065
|
} else this.prerelease = prerelease;
|
|
2055
2066
|
}
|
|
2056
2067
|
break;
|
|
@@ -2066,9 +2077,9 @@ var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2066
2077
|
}));
|
|
2067
2078
|
|
|
2068
2079
|
//#endregion
|
|
2069
|
-
//#region ../../node_modules/
|
|
2070
|
-
var require_parse
|
|
2071
|
-
const SemVer = require_semver$
|
|
2080
|
+
//#region ../../node_modules/semver/functions/parse.js
|
|
2081
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2082
|
+
const SemVer = require_semver$1();
|
|
2072
2083
|
const parse = (version, options, throwErrors = false) => {
|
|
2073
2084
|
if (version instanceof SemVer) return version;
|
|
2074
2085
|
try {
|
|
@@ -2082,9 +2093,9 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2082
2093
|
}));
|
|
2083
2094
|
|
|
2084
2095
|
//#endregion
|
|
2085
|
-
//#region ../../node_modules/
|
|
2086
|
-
var require_diff
|
|
2087
|
-
const parse = require_parse
|
|
2096
|
+
//#region ../../node_modules/semver/functions/diff.js
|
|
2097
|
+
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2098
|
+
const parse = require_parse();
|
|
2088
2099
|
const diff = (version1, version2) => {
|
|
2089
2100
|
const v1 = parse(version1, null, true);
|
|
2090
2101
|
const v2 = parse(version2, null, true);
|
|
@@ -2111,25 +2122,25 @@ var require_diff$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2111
2122
|
}));
|
|
2112
2123
|
|
|
2113
2124
|
//#endregion
|
|
2114
|
-
//#region ../../node_modules/
|
|
2115
|
-
var require_compare
|
|
2116
|
-
const SemVer = require_semver$
|
|
2125
|
+
//#region ../../node_modules/semver/functions/compare.js
|
|
2126
|
+
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2127
|
+
const SemVer = require_semver$1();
|
|
2117
2128
|
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
2118
2129
|
module.exports = compare;
|
|
2119
2130
|
}));
|
|
2120
2131
|
|
|
2121
2132
|
//#endregion
|
|
2122
|
-
//#region ../../node_modules/
|
|
2123
|
-
var require_gt
|
|
2124
|
-
const compare = require_compare
|
|
2133
|
+
//#region ../../node_modules/semver/functions/gt.js
|
|
2134
|
+
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2135
|
+
const compare = require_compare();
|
|
2125
2136
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
2126
2137
|
module.exports = gt;
|
|
2127
2138
|
}));
|
|
2128
2139
|
|
|
2129
2140
|
//#endregion
|
|
2130
2141
|
//#region ../../node_modules/ky/distribution/errors/HTTPError.js
|
|
2131
|
-
var import_diff = /* @__PURE__ */ __toESM(require_diff
|
|
2132
|
-
var import_gt = /* @__PURE__ */ __toESM(require_gt
|
|
2142
|
+
var import_diff = /* @__PURE__ */ __toESM(require_diff(), 1);
|
|
2143
|
+
var import_gt = /* @__PURE__ */ __toESM(require_gt(), 1);
|
|
2133
2144
|
var HTTPError = class extends Error {
|
|
2134
2145
|
response;
|
|
2135
2146
|
request;
|
|
@@ -2528,9 +2539,11 @@ const deepMerge = (...sources) => {
|
|
|
2528
2539
|
}
|
|
2529
2540
|
}
|
|
2530
2541
|
if (searchParameters !== void 0) returnValue.searchParams = searchParameters;
|
|
2531
|
-
if (signals.length > 0)
|
|
2532
|
-
|
|
2533
|
-
|
|
2542
|
+
if (signals.length > 0) {
|
|
2543
|
+
if (signals.length === 1) returnValue.signal = signals[0];
|
|
2544
|
+
else if (supportsAbortSignal) returnValue.signal = AbortSignal.any(signals);
|
|
2545
|
+
else returnValue.signal = signals.at(-1);
|
|
2546
|
+
}
|
|
2534
2547
|
return returnValue;
|
|
2535
2548
|
};
|
|
2536
2549
|
|
|
@@ -3253,10 +3266,11 @@ var require_deep_extend = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3253
3266
|
function deepCloneArray(arr) {
|
|
3254
3267
|
var clone = [];
|
|
3255
3268
|
arr.forEach(function(item, index) {
|
|
3256
|
-
if (typeof item === "object" && item !== null)
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3269
|
+
if (typeof item === "object" && item !== null) {
|
|
3270
|
+
if (Array.isArray(item)) clone[index] = deepCloneArray(item);
|
|
3271
|
+
else if (isSpecificValue(item)) clone[index] = cloneSpecificValue(item);
|
|
3272
|
+
else clone[index] = deepExtend({}, item);
|
|
3273
|
+
} else clone[index] = item;
|
|
3260
3274
|
});
|
|
3261
3275
|
return clone;
|
|
3262
3276
|
}
|
|
@@ -3445,13 +3459,15 @@ var require_minimist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3445
3459
|
} else setArg(letters[j], flags.strings[letters[j]] ? "" : true, arg);
|
|
3446
3460
|
}
|
|
3447
3461
|
key = arg.slice(-1)[0];
|
|
3448
|
-
if (!broken && key !== "-")
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3462
|
+
if (!broken && key !== "-") {
|
|
3463
|
+
if (args[i + 1] && !/^(-|--)[^-]/.test(args[i + 1]) && !flags.bools[key] && (aliases[key] ? !aliasIsBoolean(key) : true)) {
|
|
3464
|
+
setArg(key, args[i + 1], arg);
|
|
3465
|
+
i += 1;
|
|
3466
|
+
} else if (args[i + 1] && /^(true|false)$/.test(args[i + 1])) {
|
|
3467
|
+
setArg(key, args[i + 1] === "true", arg);
|
|
3468
|
+
i += 1;
|
|
3469
|
+
} else setArg(key, flags.strings[key] ? "" : true, arg);
|
|
3470
|
+
}
|
|
3455
3471
|
} else {
|
|
3456
3472
|
if (!flags.unknownFn || flags.unknownFn(arg) !== false) argv._.push(flags.strings._ || !isNumber(arg) ? arg : Number(arg));
|
|
3457
3473
|
if (opts.stopEarly) {
|
|
@@ -3804,7 +3820,7 @@ var require_legacy_streams = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
3804
3820
|
this.paused = false;
|
|
3805
3821
|
this.flags = "r";
|
|
3806
3822
|
this.mode = 438;
|
|
3807
|
-
this.bufferSize =
|
|
3823
|
+
this.bufferSize = 65536;
|
|
3808
3824
|
options = options || {};
|
|
3809
3825
|
var keys = Object.keys(options);
|
|
3810
3826
|
for (var index = 0, length = keys.length; index < length; index++) {
|
|
@@ -4380,7 +4396,13 @@ var require_proto_list = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4380
4396
|
//#endregion
|
|
4381
4397
|
//#region ../../node_modules/config-chain/index.js
|
|
4382
4398
|
var require_config_chain = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4383
|
-
var ProtoList = require_proto_list()
|
|
4399
|
+
var ProtoList = require_proto_list();
|
|
4400
|
+
var path$12 = require("path");
|
|
4401
|
+
var fs$4 = require("fs");
|
|
4402
|
+
var ini = require_ini$1();
|
|
4403
|
+
var EE = require("events").EventEmitter;
|
|
4404
|
+
var url$1 = require("url");
|
|
4405
|
+
var http = require("http");
|
|
4384
4406
|
var exports = module.exports = function() {
|
|
4385
4407
|
var args = [].slice.call(arguments), conf = new ConfigChain();
|
|
4386
4408
|
while (args.length) {
|
|
@@ -4407,15 +4429,16 @@ var require_config_chain = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4407
4429
|
if (!type) try {
|
|
4408
4430
|
return JSON.parse(content);
|
|
4409
4431
|
} catch (er) {
|
|
4410
|
-
return ini
|
|
4411
|
-
}
|
|
4412
|
-
else if (type === "json") if (this.emit) try {
|
|
4413
|
-
return JSON.parse(content);
|
|
4414
|
-
} catch (er) {
|
|
4415
|
-
this.emit("error", er);
|
|
4432
|
+
return ini.parse(content);
|
|
4416
4433
|
}
|
|
4417
|
-
else
|
|
4418
|
-
|
|
4434
|
+
else if (type === "json") {
|
|
4435
|
+
if (this.emit) try {
|
|
4436
|
+
return JSON.parse(content);
|
|
4437
|
+
} catch (er) {
|
|
4438
|
+
this.emit("error", er);
|
|
4439
|
+
}
|
|
4440
|
+
else return JSON.parse(content);
|
|
4441
|
+
} else return ini.parse(content);
|
|
4419
4442
|
};
|
|
4420
4443
|
var json = exports.json = function() {
|
|
4421
4444
|
var args = [].slice.call(arguments).filter(function(arg) {
|
|
@@ -4495,12 +4518,14 @@ var require_config_chain = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4495
4518
|
var type = type || target.type;
|
|
4496
4519
|
var data = target.data;
|
|
4497
4520
|
if (target.type === "json") data = JSON.stringify(data);
|
|
4498
|
-
else data = ini
|
|
4521
|
+
else data = ini.stringify(data);
|
|
4499
4522
|
this._saving++;
|
|
4500
4523
|
fs$4.writeFile(target.path, data, "utf8", function(er) {
|
|
4501
4524
|
this._saving--;
|
|
4502
|
-
if (er)
|
|
4503
|
-
|
|
4525
|
+
if (er) {
|
|
4526
|
+
if (cb) return cb(er);
|
|
4527
|
+
else return this.emit("error", er);
|
|
4528
|
+
}
|
|
4504
4529
|
if (this._saving === 0) {
|
|
4505
4530
|
if (cb) cb();
|
|
4506
4531
|
this.emit("save");
|
|
@@ -5218,21 +5243,24 @@ var require_npm_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5218
5243
|
}
|
|
5219
5244
|
conf.addEnv();
|
|
5220
5245
|
conf.loadPrefix();
|
|
5246
|
+
const trustedUserconfig = conf.get("userconfig");
|
|
5247
|
+
const trustedPrefix = conf.get("prefix");
|
|
5248
|
+
if (trustedPrefix) {
|
|
5249
|
+
const etc = path$7.resolve(trustedPrefix, "etc");
|
|
5250
|
+
conf.root.globalconfig = path$7.resolve(etc, "npmrc");
|
|
5251
|
+
conf.root.globalignorefile = path$7.resolve(etc, "npmignore");
|
|
5252
|
+
}
|
|
5253
|
+
const trustedGlobalconfig = conf.get("globalconfig");
|
|
5221
5254
|
const projectConf = path$7.resolve(conf.localPrefix, ".npmrc");
|
|
5222
|
-
const userConf =
|
|
5255
|
+
const userConf = trustedUserconfig;
|
|
5223
5256
|
if (!conf.get("global") && projectConf !== userConf) warnings.push(conf.addFile(projectConf, "project"));
|
|
5224
5257
|
else conf.add({}, "project");
|
|
5225
5258
|
if (conf.get("workspace-prefix") && conf.get("workspace-prefix") !== projectConf) {
|
|
5226
5259
|
const workspaceConf = path$7.resolve(conf.get("workspace-prefix"), ".npmrc");
|
|
5227
5260
|
warnings.push(conf.addFile(workspaceConf, "workspace"));
|
|
5228
5261
|
}
|
|
5229
|
-
warnings.push(conf.addFile(
|
|
5230
|
-
|
|
5231
|
-
const etc = path$7.resolve(conf.get("prefix"), "etc");
|
|
5232
|
-
conf.root.globalconfig = path$7.resolve(etc, "npmrc");
|
|
5233
|
-
conf.root.globalignorefile = path$7.resolve(etc, "npmignore");
|
|
5234
|
-
}
|
|
5235
|
-
warnings.push(conf.addFile(conf.get("globalconfig"), "global"));
|
|
5262
|
+
warnings.push(conf.addFile(trustedUserconfig, "user"));
|
|
5263
|
+
warnings.push(conf.addFile(trustedGlobalconfig, "global"));
|
|
5236
5264
|
conf.loadUser();
|
|
5237
5265
|
const caFile = conf.get("cafile");
|
|
5238
5266
|
if (caFile) conf.loadCAFile(caFile);
|
|
@@ -5341,353 +5369,7 @@ var require_registry_auth_token = /* @__PURE__ */ __commonJSMin(((exports, modul
|
|
|
5341
5369
|
}));
|
|
5342
5370
|
|
|
5343
5371
|
//#endregion
|
|
5344
|
-
//#region ../../node_modules/
|
|
5345
|
-
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5346
|
-
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
5347
|
-
const MAX_LENGTH = 256;
|
|
5348
|
-
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
5349
|
-
const MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
5350
|
-
const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
5351
|
-
const RELEASE_TYPES = [
|
|
5352
|
-
"major",
|
|
5353
|
-
"premajor",
|
|
5354
|
-
"minor",
|
|
5355
|
-
"preminor",
|
|
5356
|
-
"patch",
|
|
5357
|
-
"prepatch",
|
|
5358
|
-
"prerelease"
|
|
5359
|
-
];
|
|
5360
|
-
module.exports = {
|
|
5361
|
-
MAX_LENGTH,
|
|
5362
|
-
MAX_SAFE_COMPONENT_LENGTH,
|
|
5363
|
-
MAX_SAFE_BUILD_LENGTH,
|
|
5364
|
-
MAX_SAFE_INTEGER,
|
|
5365
|
-
RELEASE_TYPES,
|
|
5366
|
-
SEMVER_SPEC_VERSION,
|
|
5367
|
-
FLAG_INCLUDE_PRERELEASE: 1,
|
|
5368
|
-
FLAG_LOOSE: 2
|
|
5369
|
-
};
|
|
5370
|
-
}));
|
|
5371
|
-
|
|
5372
|
-
//#endregion
|
|
5373
|
-
//#region ../../node_modules/package-json/node_modules/semver/internal/debug.js
|
|
5374
|
-
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5375
|
-
const debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
5376
|
-
module.exports = debug;
|
|
5377
|
-
}));
|
|
5378
|
-
|
|
5379
|
-
//#endregion
|
|
5380
|
-
//#region ../../node_modules/package-json/node_modules/semver/internal/re.js
|
|
5381
|
-
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5382
|
-
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
5383
|
-
const debug = require_debug();
|
|
5384
|
-
exports = module.exports = {};
|
|
5385
|
-
const re = exports.re = [];
|
|
5386
|
-
const safeRe = exports.safeRe = [];
|
|
5387
|
-
const src = exports.src = [];
|
|
5388
|
-
const safeSrc = exports.safeSrc = [];
|
|
5389
|
-
const t = exports.t = {};
|
|
5390
|
-
let R = 0;
|
|
5391
|
-
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
5392
|
-
const safeRegexReplacements = [
|
|
5393
|
-
["\\s", 1],
|
|
5394
|
-
["\\d", MAX_LENGTH],
|
|
5395
|
-
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
5396
|
-
];
|
|
5397
|
-
const makeSafeRegex = (value) => {
|
|
5398
|
-
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
5399
|
-
return value;
|
|
5400
|
-
};
|
|
5401
|
-
const createToken = (name, value, isGlobal) => {
|
|
5402
|
-
const safe = makeSafeRegex(value);
|
|
5403
|
-
const index = R++;
|
|
5404
|
-
debug(name, index, value);
|
|
5405
|
-
t[name] = index;
|
|
5406
|
-
src[index] = value;
|
|
5407
|
-
safeSrc[index] = safe;
|
|
5408
|
-
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
5409
|
-
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
5410
|
-
};
|
|
5411
|
-
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
5412
|
-
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
5413
|
-
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
5414
|
-
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
5415
|
-
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
5416
|
-
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
5417
|
-
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
5418
|
-
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
5419
|
-
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
5420
|
-
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
5421
|
-
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
5422
|
-
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
5423
|
-
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
5424
|
-
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
5425
|
-
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
5426
|
-
createToken("GTLT", "((?:<|>)?=?)");
|
|
5427
|
-
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
5428
|
-
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
5429
|
-
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
5430
|
-
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
5431
|
-
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
5432
|
-
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
5433
|
-
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
5434
|
-
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
5435
|
-
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
5436
|
-
createToken("COERCERTL", src[t.COERCE], true);
|
|
5437
|
-
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
5438
|
-
createToken("LONETILDE", "(?:~>?)");
|
|
5439
|
-
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
5440
|
-
exports.tildeTrimReplace = "$1~";
|
|
5441
|
-
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
5442
|
-
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
5443
|
-
createToken("LONECARET", "(?:\\^)");
|
|
5444
|
-
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
5445
|
-
exports.caretTrimReplace = "$1^";
|
|
5446
|
-
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
5447
|
-
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
5448
|
-
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
5449
|
-
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
5450
|
-
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
5451
|
-
exports.comparatorTrimReplace = "$1$2$3";
|
|
5452
|
-
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
5453
|
-
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
5454
|
-
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
5455
|
-
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
5456
|
-
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
5457
|
-
}));
|
|
5458
|
-
|
|
5459
|
-
//#endregion
|
|
5460
|
-
//#region ../../node_modules/package-json/node_modules/semver/internal/parse-options.js
|
|
5461
|
-
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5462
|
-
const looseOption = Object.freeze({ loose: true });
|
|
5463
|
-
const emptyOpts = Object.freeze({});
|
|
5464
|
-
const parseOptions = (options) => {
|
|
5465
|
-
if (!options) return emptyOpts;
|
|
5466
|
-
if (typeof options !== "object") return looseOption;
|
|
5467
|
-
return options;
|
|
5468
|
-
};
|
|
5469
|
-
module.exports = parseOptions;
|
|
5470
|
-
}));
|
|
5471
|
-
|
|
5472
|
-
//#endregion
|
|
5473
|
-
//#region ../../node_modules/package-json/node_modules/semver/internal/identifiers.js
|
|
5474
|
-
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5475
|
-
const numeric = /^[0-9]+$/;
|
|
5476
|
-
const compareIdentifiers = (a, b) => {
|
|
5477
|
-
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
5478
|
-
const anum = numeric.test(a);
|
|
5479
|
-
const bnum = numeric.test(b);
|
|
5480
|
-
if (anum && bnum) {
|
|
5481
|
-
a = +a;
|
|
5482
|
-
b = +b;
|
|
5483
|
-
}
|
|
5484
|
-
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
5485
|
-
};
|
|
5486
|
-
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
5487
|
-
module.exports = {
|
|
5488
|
-
compareIdentifiers,
|
|
5489
|
-
rcompareIdentifiers
|
|
5490
|
-
};
|
|
5491
|
-
}));
|
|
5492
|
-
|
|
5493
|
-
//#endregion
|
|
5494
|
-
//#region ../../node_modules/package-json/node_modules/semver/classes/semver.js
|
|
5495
|
-
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5496
|
-
const debug = require_debug();
|
|
5497
|
-
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
5498
|
-
const { safeRe: re, t } = require_re();
|
|
5499
|
-
const parseOptions = require_parse_options();
|
|
5500
|
-
const { compareIdentifiers } = require_identifiers();
|
|
5501
|
-
var SemVer = class SemVer {
|
|
5502
|
-
constructor(version, options) {
|
|
5503
|
-
options = parseOptions(options);
|
|
5504
|
-
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
5505
|
-
else version = version.version;
|
|
5506
|
-
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
5507
|
-
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
5508
|
-
debug("SemVer", version, options);
|
|
5509
|
-
this.options = options;
|
|
5510
|
-
this.loose = !!options.loose;
|
|
5511
|
-
this.includePrerelease = !!options.includePrerelease;
|
|
5512
|
-
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
5513
|
-
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
5514
|
-
this.raw = version;
|
|
5515
|
-
this.major = +m[1];
|
|
5516
|
-
this.minor = +m[2];
|
|
5517
|
-
this.patch = +m[3];
|
|
5518
|
-
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
5519
|
-
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
5520
|
-
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
5521
|
-
if (!m[4]) this.prerelease = [];
|
|
5522
|
-
else this.prerelease = m[4].split(".").map((id) => {
|
|
5523
|
-
if (/^[0-9]+$/.test(id)) {
|
|
5524
|
-
const num = +id;
|
|
5525
|
-
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
5526
|
-
}
|
|
5527
|
-
return id;
|
|
5528
|
-
});
|
|
5529
|
-
this.build = m[5] ? m[5].split(".") : [];
|
|
5530
|
-
this.format();
|
|
5531
|
-
}
|
|
5532
|
-
format() {
|
|
5533
|
-
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
5534
|
-
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
5535
|
-
return this.version;
|
|
5536
|
-
}
|
|
5537
|
-
toString() {
|
|
5538
|
-
return this.version;
|
|
5539
|
-
}
|
|
5540
|
-
compare(other) {
|
|
5541
|
-
debug("SemVer.compare", this.version, this.options, other);
|
|
5542
|
-
if (!(other instanceof SemVer)) {
|
|
5543
|
-
if (typeof other === "string" && other === this.version) return 0;
|
|
5544
|
-
other = new SemVer(other, this.options);
|
|
5545
|
-
}
|
|
5546
|
-
if (other.version === this.version) return 0;
|
|
5547
|
-
return this.compareMain(other) || this.comparePre(other);
|
|
5548
|
-
}
|
|
5549
|
-
compareMain(other) {
|
|
5550
|
-
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
5551
|
-
if (this.major < other.major) return -1;
|
|
5552
|
-
if (this.major > other.major) return 1;
|
|
5553
|
-
if (this.minor < other.minor) return -1;
|
|
5554
|
-
if (this.minor > other.minor) return 1;
|
|
5555
|
-
if (this.patch < other.patch) return -1;
|
|
5556
|
-
if (this.patch > other.patch) return 1;
|
|
5557
|
-
return 0;
|
|
5558
|
-
}
|
|
5559
|
-
comparePre(other) {
|
|
5560
|
-
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
5561
|
-
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
5562
|
-
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
5563
|
-
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
5564
|
-
let i = 0;
|
|
5565
|
-
do {
|
|
5566
|
-
const a = this.prerelease[i];
|
|
5567
|
-
const b = other.prerelease[i];
|
|
5568
|
-
debug("prerelease compare", i, a, b);
|
|
5569
|
-
if (a === void 0 && b === void 0) return 0;
|
|
5570
|
-
else if (b === void 0) return 1;
|
|
5571
|
-
else if (a === void 0) return -1;
|
|
5572
|
-
else if (a === b) continue;
|
|
5573
|
-
else return compareIdentifiers(a, b);
|
|
5574
|
-
} while (++i);
|
|
5575
|
-
}
|
|
5576
|
-
compareBuild(other) {
|
|
5577
|
-
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
5578
|
-
let i = 0;
|
|
5579
|
-
do {
|
|
5580
|
-
const a = this.build[i];
|
|
5581
|
-
const b = other.build[i];
|
|
5582
|
-
debug("build compare", i, a, b);
|
|
5583
|
-
if (a === void 0 && b === void 0) return 0;
|
|
5584
|
-
else if (b === void 0) return 1;
|
|
5585
|
-
else if (a === void 0) return -1;
|
|
5586
|
-
else if (a === b) continue;
|
|
5587
|
-
else return compareIdentifiers(a, b);
|
|
5588
|
-
} while (++i);
|
|
5589
|
-
}
|
|
5590
|
-
inc(release, identifier, identifierBase) {
|
|
5591
|
-
if (release.startsWith("pre")) {
|
|
5592
|
-
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
5593
|
-
if (identifier) {
|
|
5594
|
-
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
5595
|
-
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
5596
|
-
}
|
|
5597
|
-
}
|
|
5598
|
-
switch (release) {
|
|
5599
|
-
case "premajor":
|
|
5600
|
-
this.prerelease.length = 0;
|
|
5601
|
-
this.patch = 0;
|
|
5602
|
-
this.minor = 0;
|
|
5603
|
-
this.major++;
|
|
5604
|
-
this.inc("pre", identifier, identifierBase);
|
|
5605
|
-
break;
|
|
5606
|
-
case "preminor":
|
|
5607
|
-
this.prerelease.length = 0;
|
|
5608
|
-
this.patch = 0;
|
|
5609
|
-
this.minor++;
|
|
5610
|
-
this.inc("pre", identifier, identifierBase);
|
|
5611
|
-
break;
|
|
5612
|
-
case "prepatch":
|
|
5613
|
-
this.prerelease.length = 0;
|
|
5614
|
-
this.inc("patch", identifier, identifierBase);
|
|
5615
|
-
this.inc("pre", identifier, identifierBase);
|
|
5616
|
-
break;
|
|
5617
|
-
case "prerelease":
|
|
5618
|
-
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
5619
|
-
this.inc("pre", identifier, identifierBase);
|
|
5620
|
-
break;
|
|
5621
|
-
case "release":
|
|
5622
|
-
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
5623
|
-
this.prerelease.length = 0;
|
|
5624
|
-
break;
|
|
5625
|
-
case "major":
|
|
5626
|
-
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
5627
|
-
this.minor = 0;
|
|
5628
|
-
this.patch = 0;
|
|
5629
|
-
this.prerelease = [];
|
|
5630
|
-
break;
|
|
5631
|
-
case "minor":
|
|
5632
|
-
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
5633
|
-
this.patch = 0;
|
|
5634
|
-
this.prerelease = [];
|
|
5635
|
-
break;
|
|
5636
|
-
case "patch":
|
|
5637
|
-
if (this.prerelease.length === 0) this.patch++;
|
|
5638
|
-
this.prerelease = [];
|
|
5639
|
-
break;
|
|
5640
|
-
case "pre": {
|
|
5641
|
-
const base = Number(identifierBase) ? 1 : 0;
|
|
5642
|
-
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
5643
|
-
else {
|
|
5644
|
-
let i = this.prerelease.length;
|
|
5645
|
-
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
5646
|
-
this.prerelease[i]++;
|
|
5647
|
-
i = -2;
|
|
5648
|
-
}
|
|
5649
|
-
if (i === -1) {
|
|
5650
|
-
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
5651
|
-
this.prerelease.push(base);
|
|
5652
|
-
}
|
|
5653
|
-
}
|
|
5654
|
-
if (identifier) {
|
|
5655
|
-
let prerelease = [identifier, base];
|
|
5656
|
-
if (identifierBase === false) prerelease = [identifier];
|
|
5657
|
-
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
5658
|
-
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
5659
|
-
} else this.prerelease = prerelease;
|
|
5660
|
-
}
|
|
5661
|
-
break;
|
|
5662
|
-
}
|
|
5663
|
-
default: throw new Error(`invalid increment argument: ${release}`);
|
|
5664
|
-
}
|
|
5665
|
-
this.raw = this.format();
|
|
5666
|
-
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
5667
|
-
return this;
|
|
5668
|
-
}
|
|
5669
|
-
};
|
|
5670
|
-
module.exports = SemVer;
|
|
5671
|
-
}));
|
|
5672
|
-
|
|
5673
|
-
//#endregion
|
|
5674
|
-
//#region ../../node_modules/package-json/node_modules/semver/functions/parse.js
|
|
5675
|
-
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5676
|
-
const SemVer = require_semver$1();
|
|
5677
|
-
const parse = (version, options, throwErrors = false) => {
|
|
5678
|
-
if (version instanceof SemVer) return version;
|
|
5679
|
-
try {
|
|
5680
|
-
return new SemVer(version, options);
|
|
5681
|
-
} catch (er) {
|
|
5682
|
-
if (!throwErrors) return null;
|
|
5683
|
-
throw er;
|
|
5684
|
-
}
|
|
5685
|
-
};
|
|
5686
|
-
module.exports = parse;
|
|
5687
|
-
}));
|
|
5688
|
-
|
|
5689
|
-
//#endregion
|
|
5690
|
-
//#region ../../node_modules/package-json/node_modules/semver/functions/valid.js
|
|
5372
|
+
//#region ../../node_modules/semver/functions/valid.js
|
|
5691
5373
|
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5692
5374
|
const parse = require_parse();
|
|
5693
5375
|
const valid = (version, options) => {
|
|
@@ -5698,7 +5380,7 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5698
5380
|
}));
|
|
5699
5381
|
|
|
5700
5382
|
//#endregion
|
|
5701
|
-
//#region ../../node_modules/
|
|
5383
|
+
//#region ../../node_modules/semver/functions/clean.js
|
|
5702
5384
|
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5703
5385
|
const parse = require_parse();
|
|
5704
5386
|
const clean = (version, options) => {
|
|
@@ -5709,7 +5391,7 @@ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5709
5391
|
}));
|
|
5710
5392
|
|
|
5711
5393
|
//#endregion
|
|
5712
|
-
//#region ../../node_modules/
|
|
5394
|
+
//#region ../../node_modules/semver/functions/inc.js
|
|
5713
5395
|
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5714
5396
|
const SemVer = require_semver$1();
|
|
5715
5397
|
const inc = (version, release, options, identifier, identifierBase) => {
|
|
@@ -5728,36 +5410,7 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5728
5410
|
}));
|
|
5729
5411
|
|
|
5730
5412
|
//#endregion
|
|
5731
|
-
//#region ../../node_modules/
|
|
5732
|
-
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5733
|
-
const parse = require_parse();
|
|
5734
|
-
const diff = (version1, version2) => {
|
|
5735
|
-
const v1 = parse(version1, null, true);
|
|
5736
|
-
const v2 = parse(version2, null, true);
|
|
5737
|
-
const comparison = v1.compare(v2);
|
|
5738
|
-
if (comparison === 0) return null;
|
|
5739
|
-
const v1Higher = comparison > 0;
|
|
5740
|
-
const highVersion = v1Higher ? v1 : v2;
|
|
5741
|
-
const lowVersion = v1Higher ? v2 : v1;
|
|
5742
|
-
const highHasPre = !!highVersion.prerelease.length;
|
|
5743
|
-
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
5744
|
-
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
5745
|
-
if (lowVersion.compareMain(highVersion) === 0) {
|
|
5746
|
-
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
5747
|
-
return "patch";
|
|
5748
|
-
}
|
|
5749
|
-
}
|
|
5750
|
-
const prefix = highHasPre ? "pre" : "";
|
|
5751
|
-
if (v1.major !== v2.major) return prefix + "major";
|
|
5752
|
-
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
5753
|
-
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
5754
|
-
return "prerelease";
|
|
5755
|
-
};
|
|
5756
|
-
module.exports = diff;
|
|
5757
|
-
}));
|
|
5758
|
-
|
|
5759
|
-
//#endregion
|
|
5760
|
-
//#region ../../node_modules/package-json/node_modules/semver/functions/major.js
|
|
5413
|
+
//#region ../../node_modules/semver/functions/major.js
|
|
5761
5414
|
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5762
5415
|
const SemVer = require_semver$1();
|
|
5763
5416
|
const major = (a, loose) => new SemVer(a, loose).major;
|
|
@@ -5765,7 +5418,7 @@ var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5765
5418
|
}));
|
|
5766
5419
|
|
|
5767
5420
|
//#endregion
|
|
5768
|
-
//#region ../../node_modules/
|
|
5421
|
+
//#region ../../node_modules/semver/functions/minor.js
|
|
5769
5422
|
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5770
5423
|
const SemVer = require_semver$1();
|
|
5771
5424
|
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
@@ -5773,7 +5426,7 @@ var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5773
5426
|
}));
|
|
5774
5427
|
|
|
5775
5428
|
//#endregion
|
|
5776
|
-
//#region ../../node_modules/
|
|
5429
|
+
//#region ../../node_modules/semver/functions/patch.js
|
|
5777
5430
|
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5778
5431
|
const SemVer = require_semver$1();
|
|
5779
5432
|
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
@@ -5781,7 +5434,7 @@ var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5781
5434
|
}));
|
|
5782
5435
|
|
|
5783
5436
|
//#endregion
|
|
5784
|
-
//#region ../../node_modules/
|
|
5437
|
+
//#region ../../node_modules/semver/functions/prerelease.js
|
|
5785
5438
|
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5786
5439
|
const parse = require_parse();
|
|
5787
5440
|
const prerelease = (version, options) => {
|
|
@@ -5792,15 +5445,7 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5792
5445
|
}));
|
|
5793
5446
|
|
|
5794
5447
|
//#endregion
|
|
5795
|
-
//#region ../../node_modules/
|
|
5796
|
-
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5797
|
-
const SemVer = require_semver$1();
|
|
5798
|
-
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
5799
|
-
module.exports = compare;
|
|
5800
|
-
}));
|
|
5801
|
-
|
|
5802
|
-
//#endregion
|
|
5803
|
-
//#region ../../node_modules/package-json/node_modules/semver/functions/rcompare.js
|
|
5448
|
+
//#region ../../node_modules/semver/functions/rcompare.js
|
|
5804
5449
|
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5805
5450
|
const compare = require_compare();
|
|
5806
5451
|
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
@@ -5808,7 +5453,7 @@ var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5808
5453
|
}));
|
|
5809
5454
|
|
|
5810
5455
|
//#endregion
|
|
5811
|
-
//#region ../../node_modules/
|
|
5456
|
+
//#region ../../node_modules/semver/functions/compare-loose.js
|
|
5812
5457
|
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5813
5458
|
const compare = require_compare();
|
|
5814
5459
|
const compareLoose = (a, b) => compare(a, b, true);
|
|
@@ -5816,7 +5461,7 @@ var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
5816
5461
|
}));
|
|
5817
5462
|
|
|
5818
5463
|
//#endregion
|
|
5819
|
-
//#region ../../node_modules/
|
|
5464
|
+
//#region ../../node_modules/semver/functions/compare-build.js
|
|
5820
5465
|
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5821
5466
|
const SemVer = require_semver$1();
|
|
5822
5467
|
const compareBuild = (a, b, loose) => {
|
|
@@ -5828,7 +5473,7 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
5828
5473
|
}));
|
|
5829
5474
|
|
|
5830
5475
|
//#endregion
|
|
5831
|
-
//#region ../../node_modules/
|
|
5476
|
+
//#region ../../node_modules/semver/functions/sort.js
|
|
5832
5477
|
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5833
5478
|
const compareBuild = require_compare_build();
|
|
5834
5479
|
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
@@ -5836,7 +5481,7 @@ var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5836
5481
|
}));
|
|
5837
5482
|
|
|
5838
5483
|
//#endregion
|
|
5839
|
-
//#region ../../node_modules/
|
|
5484
|
+
//#region ../../node_modules/semver/functions/rsort.js
|
|
5840
5485
|
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5841
5486
|
const compareBuild = require_compare_build();
|
|
5842
5487
|
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
@@ -5844,15 +5489,7 @@ var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5844
5489
|
}));
|
|
5845
5490
|
|
|
5846
5491
|
//#endregion
|
|
5847
|
-
//#region ../../node_modules/
|
|
5848
|
-
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5849
|
-
const compare = require_compare();
|
|
5850
|
-
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
5851
|
-
module.exports = gt;
|
|
5852
|
-
}));
|
|
5853
|
-
|
|
5854
|
-
//#endregion
|
|
5855
|
-
//#region ../../node_modules/package-json/node_modules/semver/functions/lt.js
|
|
5492
|
+
//#region ../../node_modules/semver/functions/lt.js
|
|
5856
5493
|
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5857
5494
|
const compare = require_compare();
|
|
5858
5495
|
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
@@ -5860,7 +5497,7 @@ var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5860
5497
|
}));
|
|
5861
5498
|
|
|
5862
5499
|
//#endregion
|
|
5863
|
-
//#region ../../node_modules/
|
|
5500
|
+
//#region ../../node_modules/semver/functions/eq.js
|
|
5864
5501
|
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5865
5502
|
const compare = require_compare();
|
|
5866
5503
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
@@ -5868,7 +5505,7 @@ var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5868
5505
|
}));
|
|
5869
5506
|
|
|
5870
5507
|
//#endregion
|
|
5871
|
-
//#region ../../node_modules/
|
|
5508
|
+
//#region ../../node_modules/semver/functions/neq.js
|
|
5872
5509
|
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5873
5510
|
const compare = require_compare();
|
|
5874
5511
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
@@ -5876,7 +5513,7 @@ var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5876
5513
|
}));
|
|
5877
5514
|
|
|
5878
5515
|
//#endregion
|
|
5879
|
-
//#region ../../node_modules/
|
|
5516
|
+
//#region ../../node_modules/semver/functions/gte.js
|
|
5880
5517
|
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5881
5518
|
const compare = require_compare();
|
|
5882
5519
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
@@ -5884,7 +5521,7 @@ var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5884
5521
|
}));
|
|
5885
5522
|
|
|
5886
5523
|
//#endregion
|
|
5887
|
-
//#region ../../node_modules/
|
|
5524
|
+
//#region ../../node_modules/semver/functions/lte.js
|
|
5888
5525
|
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5889
5526
|
const compare = require_compare();
|
|
5890
5527
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
@@ -5892,7 +5529,7 @@ var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5892
5529
|
}));
|
|
5893
5530
|
|
|
5894
5531
|
//#endregion
|
|
5895
|
-
//#region ../../node_modules/
|
|
5532
|
+
//#region ../../node_modules/semver/functions/cmp.js
|
|
5896
5533
|
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5897
5534
|
const eq = require_eq();
|
|
5898
5535
|
const neq = require_neq();
|
|
@@ -5925,7 +5562,7 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5925
5562
|
}));
|
|
5926
5563
|
|
|
5927
5564
|
//#endregion
|
|
5928
|
-
//#region ../../node_modules/
|
|
5565
|
+
//#region ../../node_modules/semver/functions/coerce.js
|
|
5929
5566
|
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5930
5567
|
const SemVer = require_semver$1();
|
|
5931
5568
|
const parse = require_parse();
|
|
@@ -5948,13 +5585,17 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5948
5585
|
}
|
|
5949
5586
|
if (match === null) return null;
|
|
5950
5587
|
const major = match[2];
|
|
5951
|
-
|
|
5588
|
+
const minor = match[3] || "0";
|
|
5589
|
+
const patch = match[4] || "0";
|
|
5590
|
+
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
5591
|
+
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
5592
|
+
return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
5952
5593
|
};
|
|
5953
5594
|
module.exports = coerce;
|
|
5954
5595
|
}));
|
|
5955
5596
|
|
|
5956
5597
|
//#endregion
|
|
5957
|
-
//#region ../../node_modules/
|
|
5598
|
+
//#region ../../node_modules/semver/functions/truncate.js
|
|
5958
5599
|
var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5959
5600
|
const parse = require_parse();
|
|
5960
5601
|
const constants = require_constants();
|
|
@@ -5965,7 +5606,8 @@ var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5965
5606
|
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
5966
5607
|
};
|
|
5967
5608
|
const cloneInputVersion = (version, options) => {
|
|
5968
|
-
|
|
5609
|
+
const versionStringToParse = version instanceof SemVer ? version.version : version;
|
|
5610
|
+
return parse(versionStringToParse, options);
|
|
5969
5611
|
};
|
|
5970
5612
|
const doTruncation = (version, truncation) => {
|
|
5971
5613
|
if (isPrerelease(truncation)) return version.version;
|
|
@@ -5975,9 +5617,7 @@ var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5975
5617
|
version.minor = 0;
|
|
5976
5618
|
version.patch = 0;
|
|
5977
5619
|
break;
|
|
5978
|
-
case "minor":
|
|
5979
|
-
version.patch = 0;
|
|
5980
|
-
break;
|
|
5620
|
+
case "minor": version.patch = 0;
|
|
5981
5621
|
}
|
|
5982
5622
|
return version.format();
|
|
5983
5623
|
};
|
|
@@ -5988,7 +5628,7 @@ var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5988
5628
|
}));
|
|
5989
5629
|
|
|
5990
5630
|
//#endregion
|
|
5991
|
-
//#region ../../node_modules/
|
|
5631
|
+
//#region ../../node_modules/semver/internal/lrucache.js
|
|
5992
5632
|
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5993
5633
|
var LRUCache = class {
|
|
5994
5634
|
constructor() {
|
|
@@ -6022,14 +5662,16 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6022
5662
|
}));
|
|
6023
5663
|
|
|
6024
5664
|
//#endregion
|
|
6025
|
-
//#region ../../node_modules/
|
|
5665
|
+
//#region ../../node_modules/semver/classes/range.js
|
|
6026
5666
|
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6027
5667
|
const SPACE_CHARACTERS = /\s+/g;
|
|
6028
5668
|
var Range = class Range {
|
|
6029
5669
|
constructor(range, options) {
|
|
6030
5670
|
options = parseOptions(options);
|
|
6031
|
-
if (range instanceof Range)
|
|
6032
|
-
|
|
5671
|
+
if (range instanceof Range) {
|
|
5672
|
+
if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
5673
|
+
else return new Range(range.raw, options);
|
|
5674
|
+
}
|
|
6033
5675
|
if (range instanceof Comparator) {
|
|
6034
5676
|
this.raw = range.value;
|
|
6035
5677
|
this.set = [[range]];
|
|
@@ -6076,6 +5718,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6076
5718
|
return this.range;
|
|
6077
5719
|
}
|
|
6078
5720
|
parseRange(range) {
|
|
5721
|
+
range = range.replace(BUILDSTRIPRE, "");
|
|
6079
5722
|
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
6080
5723
|
const cached = cache.get(memoKey);
|
|
6081
5724
|
if (cached) return cached;
|
|
@@ -6135,8 +5778,9 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6135
5778
|
const Comparator = require_comparator();
|
|
6136
5779
|
const debug = require_debug();
|
|
6137
5780
|
const SemVer = require_semver$1();
|
|
6138
|
-
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
5781
|
+
const { safeRe: re, src, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
6139
5782
|
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
5783
|
+
const BUILDSTRIPRE = new RegExp(src[t.BUILD], "g");
|
|
6140
5784
|
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
6141
5785
|
const isAny = (c) => c.value === "";
|
|
6142
5786
|
const isSatisfiable = (comparators, options) => {
|
|
@@ -6165,17 +5809,19 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6165
5809
|
return comp;
|
|
6166
5810
|
};
|
|
6167
5811
|
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
5812
|
+
const invalidXRangeOrder = (M, m, p) => isX(M) && !isX(m) || isX(m) && p && !isX(p);
|
|
6168
5813
|
const replaceTildes = (comp, options) => {
|
|
6169
5814
|
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
6170
5815
|
};
|
|
6171
5816
|
const replaceTilde = (comp, options) => {
|
|
6172
5817
|
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
5818
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
6173
5819
|
return comp.replace(r, (_, M, m, p, pr) => {
|
|
6174
5820
|
debug("tilde", comp, _, M, m, p, pr);
|
|
6175
5821
|
let ret;
|
|
6176
5822
|
if (isX(M)) ret = "";
|
|
6177
|
-
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
6178
|
-
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
5823
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
5824
|
+
else if (isX(p)) ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
6179
5825
|
else if (pr) {
|
|
6180
5826
|
debug("replaceTilde pr", pr);
|
|
6181
5827
|
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
@@ -6196,18 +5842,21 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6196
5842
|
let ret;
|
|
6197
5843
|
if (isX(M)) ret = "";
|
|
6198
5844
|
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
6199
|
-
else if (isX(p))
|
|
6200
|
-
|
|
6201
|
-
|
|
5845
|
+
else if (isX(p)) {
|
|
5846
|
+
if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
5847
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
5848
|
+
} else if (pr) {
|
|
6202
5849
|
debug("replaceCaret pr", pr);
|
|
6203
|
-
if (M === "0")
|
|
6204
|
-
|
|
6205
|
-
|
|
5850
|
+
if (M === "0") {
|
|
5851
|
+
if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
5852
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
5853
|
+
} else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
6206
5854
|
} else {
|
|
6207
5855
|
debug("no pr");
|
|
6208
|
-
if (M === "0")
|
|
6209
|
-
|
|
6210
|
-
|
|
5856
|
+
if (M === "0") {
|
|
5857
|
+
if (m === "0") ret = `>=${M}.${m}.${p} <${M}.${m}.${+p + 1}-0`;
|
|
5858
|
+
else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
5859
|
+
} else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
6211
5860
|
}
|
|
6212
5861
|
debug("caret return", ret);
|
|
6213
5862
|
return ret;
|
|
@@ -6222,15 +5871,17 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6222
5871
|
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
6223
5872
|
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
6224
5873
|
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
5874
|
+
if (invalidXRangeOrder(M, m, p)) return comp;
|
|
6225
5875
|
const xM = isX(M);
|
|
6226
5876
|
const xm = xM || isX(m);
|
|
6227
5877
|
const xp = xm || isX(p);
|
|
6228
5878
|
const anyX = xp;
|
|
6229
5879
|
if (gtlt === "=" && anyX) gtlt = "";
|
|
6230
5880
|
pr = options.includePrerelease ? "-0" : "";
|
|
6231
|
-
if (xM)
|
|
6232
|
-
|
|
6233
|
-
|
|
5881
|
+
if (xM) {
|
|
5882
|
+
if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
5883
|
+
else ret = "*";
|
|
5884
|
+
} else if (gtlt && anyX) {
|
|
6234
5885
|
if (xm) m = 0;
|
|
6235
5886
|
p = 0;
|
|
6236
5887
|
if (gtlt === ">") {
|
|
@@ -6296,7 +5947,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6296
5947
|
}));
|
|
6297
5948
|
|
|
6298
5949
|
//#endregion
|
|
6299
|
-
//#region ../../node_modules/
|
|
5950
|
+
//#region ../../node_modules/semver/classes/comparator.js
|
|
6300
5951
|
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6301
5952
|
const ANY = Symbol("SemVer ANY");
|
|
6302
5953
|
var Comparator = class Comparator {
|
|
@@ -6305,8 +5956,10 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6305
5956
|
}
|
|
6306
5957
|
constructor(comp, options) {
|
|
6307
5958
|
options = parseOptions(options);
|
|
6308
|
-
if (comp instanceof Comparator)
|
|
6309
|
-
|
|
5959
|
+
if (comp instanceof Comparator) {
|
|
5960
|
+
if (comp.loose === !!options.loose) return comp;
|
|
5961
|
+
else comp = comp.value;
|
|
5962
|
+
}
|
|
6310
5963
|
comp = comp.trim().split(/\s+/).join(" ");
|
|
6311
5964
|
debug("comparator", comp, options);
|
|
6312
5965
|
this.options = options;
|
|
@@ -6368,7 +6021,7 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6368
6021
|
}));
|
|
6369
6022
|
|
|
6370
6023
|
//#endregion
|
|
6371
|
-
//#region ../../node_modules/
|
|
6024
|
+
//#region ../../node_modules/semver/functions/satisfies.js
|
|
6372
6025
|
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6373
6026
|
const Range = require_range();
|
|
6374
6027
|
const satisfies = (version, range, options) => {
|
|
@@ -6383,7 +6036,7 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6383
6036
|
}));
|
|
6384
6037
|
|
|
6385
6038
|
//#endregion
|
|
6386
|
-
//#region ../../node_modules/
|
|
6039
|
+
//#region ../../node_modules/semver/ranges/to-comparators.js
|
|
6387
6040
|
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6388
6041
|
const Range = require_range();
|
|
6389
6042
|
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
@@ -6391,7 +6044,7 @@ var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
6391
6044
|
}));
|
|
6392
6045
|
|
|
6393
6046
|
//#endregion
|
|
6394
|
-
//#region ../../node_modules/
|
|
6047
|
+
//#region ../../node_modules/semver/ranges/max-satisfying.js
|
|
6395
6048
|
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6396
6049
|
const SemVer = require_semver$1();
|
|
6397
6050
|
const Range = require_range();
|
|
@@ -6418,7 +6071,7 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
6418
6071
|
}));
|
|
6419
6072
|
|
|
6420
6073
|
//#endregion
|
|
6421
|
-
//#region ../../node_modules/
|
|
6074
|
+
//#region ../../node_modules/semver/ranges/min-satisfying.js
|
|
6422
6075
|
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6423
6076
|
const SemVer = require_semver$1();
|
|
6424
6077
|
const Range = require_range();
|
|
@@ -6445,7 +6098,7 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
6445
6098
|
}));
|
|
6446
6099
|
|
|
6447
6100
|
//#endregion
|
|
6448
|
-
//#region ../../node_modules/
|
|
6101
|
+
//#region ../../node_modules/semver/ranges/min-version.js
|
|
6449
6102
|
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6450
6103
|
const SemVer = require_semver$1();
|
|
6451
6104
|
const Range = require_range();
|
|
@@ -6486,7 +6139,7 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6486
6139
|
}));
|
|
6487
6140
|
|
|
6488
6141
|
//#endregion
|
|
6489
|
-
//#region ../../node_modules/
|
|
6142
|
+
//#region ../../node_modules/semver/ranges/valid.js
|
|
6490
6143
|
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6491
6144
|
const Range = require_range();
|
|
6492
6145
|
const validRange = (range, options) => {
|
|
@@ -6500,7 +6153,7 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6500
6153
|
}));
|
|
6501
6154
|
|
|
6502
6155
|
//#endregion
|
|
6503
|
-
//#region ../../node_modules/
|
|
6156
|
+
//#region ../../node_modules/semver/ranges/outside.js
|
|
6504
6157
|
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6505
6158
|
const SemVer = require_semver$1();
|
|
6506
6159
|
const Comparator = require_comparator();
|
|
@@ -6554,7 +6207,7 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6554
6207
|
}));
|
|
6555
6208
|
|
|
6556
6209
|
//#endregion
|
|
6557
|
-
//#region ../../node_modules/
|
|
6210
|
+
//#region ../../node_modules/semver/ranges/gtr.js
|
|
6558
6211
|
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6559
6212
|
const outside = require_outside();
|
|
6560
6213
|
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
@@ -6562,7 +6215,7 @@ var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6562
6215
|
}));
|
|
6563
6216
|
|
|
6564
6217
|
//#endregion
|
|
6565
|
-
//#region ../../node_modules/
|
|
6218
|
+
//#region ../../node_modules/semver/ranges/ltr.js
|
|
6566
6219
|
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6567
6220
|
const outside = require_outside();
|
|
6568
6221
|
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
@@ -6570,7 +6223,7 @@ var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6570
6223
|
}));
|
|
6571
6224
|
|
|
6572
6225
|
//#endregion
|
|
6573
|
-
//#region ../../node_modules/
|
|
6226
|
+
//#region ../../node_modules/semver/ranges/intersects.js
|
|
6574
6227
|
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6575
6228
|
const Range = require_range();
|
|
6576
6229
|
const intersects = (r1, r2, options) => {
|
|
@@ -6582,7 +6235,7 @@ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6582
6235
|
}));
|
|
6583
6236
|
|
|
6584
6237
|
//#endregion
|
|
6585
|
-
//#region ../../node_modules/
|
|
6238
|
+
//#region ../../node_modules/semver/ranges/simplify.js
|
|
6586
6239
|
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6587
6240
|
const satisfies = require_satisfies();
|
|
6588
6241
|
const compare = require_compare();
|
|
@@ -6613,7 +6266,7 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6613
6266
|
}));
|
|
6614
6267
|
|
|
6615
6268
|
//#endregion
|
|
6616
|
-
//#region ../../node_modules/
|
|
6269
|
+
//#region ../../node_modules/semver/ranges/subset.js
|
|
6617
6270
|
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6618
6271
|
const Range = require_range();
|
|
6619
6272
|
const Comparator = require_comparator();
|
|
@@ -6639,11 +6292,15 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6639
6292
|
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
6640
6293
|
const simpleSubset = (sub, dom, options) => {
|
|
6641
6294
|
if (sub === dom) return true;
|
|
6642
|
-
if (sub.length === 1 && sub[0].semver === ANY)
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6295
|
+
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
6296
|
+
if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
6297
|
+
else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
|
|
6298
|
+
else sub = minimumVersion;
|
|
6299
|
+
}
|
|
6300
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
6301
|
+
if (options.includePrerelease) return true;
|
|
6302
|
+
else dom = minimumVersion;
|
|
6303
|
+
}
|
|
6647
6304
|
const eqSet = /* @__PURE__ */ new Set();
|
|
6648
6305
|
let gt, lt;
|
|
6649
6306
|
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
@@ -6677,7 +6334,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6677
6334
|
if (c.operator === ">" || c.operator === ">=") {
|
|
6678
6335
|
higher = higherGT(gt, c, options);
|
|
6679
6336
|
if (higher === c && higher !== gt) return false;
|
|
6680
|
-
} else if (gt.operator === ">=" && !
|
|
6337
|
+
} else if (gt.operator === ">=" && !c.test(gt.semver)) return false;
|
|
6681
6338
|
}
|
|
6682
6339
|
if (lt) {
|
|
6683
6340
|
if (needDomLTPre) {
|
|
@@ -6686,7 +6343,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6686
6343
|
if (c.operator === "<" || c.operator === "<=") {
|
|
6687
6344
|
lower = lowerLT(lt, c, options);
|
|
6688
6345
|
if (lower === c && lower !== lt) return false;
|
|
6689
|
-
} else if (lt.operator === "<=" && !
|
|
6346
|
+
} else if (lt.operator === "<=" && !c.test(lt.semver)) return false;
|
|
6690
6347
|
}
|
|
6691
6348
|
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
6692
6349
|
}
|
|
@@ -6709,7 +6366,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6709
6366
|
}));
|
|
6710
6367
|
|
|
6711
6368
|
//#endregion
|
|
6712
|
-
//#region ../../node_modules/
|
|
6369
|
+
//#region ../../node_modules/semver/index.js
|
|
6713
6370
|
var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6714
6371
|
const internalRe = require_re();
|
|
6715
6372
|
const constants = require_constants();
|
|
@@ -7107,7 +6764,7 @@ globalDirectory.yarn.packages = node_path.default.join(yarnPrefix, getYarnWindow
|
|
|
7107
6764
|
globalDirectory.yarn.binaries = node_path.default.join(globalDirectory.yarn.packages, ".bin");
|
|
7108
6765
|
|
|
7109
6766
|
//#endregion
|
|
7110
|
-
//#region ../../node_modules/is-
|
|
6767
|
+
//#region ../../node_modules/is-path-inside/index.js
|
|
7111
6768
|
function isPathInside(childPath, parentPath) {
|
|
7112
6769
|
const relation = node_path.default.relative(parentPath, childPath);
|
|
7113
6770
|
return Boolean(relation && relation !== ".." && !relation.startsWith(`..${node_path.default.sep}`) && relation !== node_path.default.resolve(childPath));
|
|
@@ -7212,7 +6869,7 @@ function pupa(template, data, { ignoreMissing = false, transform = ({ value }) =
|
|
|
7212
6869
|
//#endregion
|
|
7213
6870
|
//#region ../../node_modules/update-notifier/update-notifier.js
|
|
7214
6871
|
const __dirname$1 = node_path.default.dirname((0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href));
|
|
7215
|
-
const ONE_DAY =
|
|
6872
|
+
const ONE_DAY = 864e5;
|
|
7216
6873
|
var UpdateNotifier = class {
|
|
7217
6874
|
config;
|
|
7218
6875
|
update;
|
|
@@ -7365,7 +7022,9 @@ async function run(options) {
|
|
|
7365
7022
|
{
|
|
7366
7023
|
title: "Write baseline data",
|
|
7367
7024
|
task: (ctx, task) => {
|
|
7368
|
-
|
|
7025
|
+
const stats = (0, lodash.get)(ctx, "sources[0]webpack");
|
|
7026
|
+
const filteredWebpackStats = (0, _bundle_stats_plugin_webpack_filter.default)(stats);
|
|
7027
|
+
return (0, _bundle_stats_cli_utils.writeBaseline)(filteredWebpackStats, baselineAbsolutePath).then(() => {
|
|
7369
7028
|
task.title = `${task.title} (${baselinePath})`;
|
|
7370
7029
|
});
|
|
7371
7030
|
},
|
|
@@ -7422,7 +7081,7 @@ async function run(options) {
|
|
|
7422
7081
|
//#endregion
|
|
7423
7082
|
//#region src/cli.ts
|
|
7424
7083
|
const DEFAULT_OUTPUT_DIR = "./dist";
|
|
7425
|
-
const WEEK_IN_MS =
|
|
7084
|
+
const WEEK_IN_MS = 6048e5;
|
|
7426
7085
|
async function cli(pkg) {
|
|
7427
7086
|
const notifier = updateNotifier({
|
|
7428
7087
|
pkg,
|