@vitessce/zarr 3.6.0 → 3.6.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/index.js +291 -774
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -4503,11 +4503,45 @@ const CoordinationType$1 = {
|
|
|
4503
4503
|
CoordinationType$1.EMBEDDING_OBS_SET_LABEL_SIZE,
|
|
4504
4504
|
CoordinationType$1.EMBEDDING_OBS_RADIUS,
|
|
4505
4505
|
CoordinationType$1.EMBEDDING_OBS_OPACITY,
|
|
4506
|
+
CoordinationType$1.SPATIAL_ZOOM,
|
|
4507
|
+
CoordinationType$1.SPATIAL_ROTATION,
|
|
4508
|
+
CoordinationType$1.SPATIAL_ROTATION_X,
|
|
4509
|
+
CoordinationType$1.SPATIAL_ROTATION_Y,
|
|
4510
|
+
CoordinationType$1.SPATIAL_ROTATION_Z,
|
|
4511
|
+
CoordinationType$1.SPATIAL_ROTATION_ORBIT,
|
|
4512
|
+
CoordinationType$1.SPATIAL_TARGET_X,
|
|
4513
|
+
CoordinationType$1.SPATIAL_TARGET_Y,
|
|
4514
|
+
CoordinationType$1.SPATIAL_TARGET_Z,
|
|
4515
|
+
CoordinationType$1.SPATIAL_AXIS_FIXED,
|
|
4516
|
+
CoordinationType$1.SPATIAL_ORBIT_AXIS,
|
|
4506
4517
|
CoordinationType$1.FEATURE_AGGREGATION_STRATEGY
|
|
4507
4518
|
];
|
|
4508
4519
|
({
|
|
4509
4520
|
[ViewType$1.NEUROGLANCER]: [
|
|
4510
|
-
CoordinationType$1.DATASET
|
|
4521
|
+
CoordinationType$1.DATASET,
|
|
4522
|
+
CoordinationType$1.SPATIAL_TARGET_X,
|
|
4523
|
+
CoordinationType$1.SPATIAL_TARGET_Y,
|
|
4524
|
+
CoordinationType$1.SPATIAL_TARGET_Z,
|
|
4525
|
+
CoordinationType$1.SPATIAL_ROTATION_X,
|
|
4526
|
+
CoordinationType$1.SPATIAL_ROTATION_Y,
|
|
4527
|
+
CoordinationType$1.SPATIAL_ROTATION_Z,
|
|
4528
|
+
CoordinationType$1.SPATIAL_AXIS_FIXED,
|
|
4529
|
+
CoordinationType$1.SPATIAL_ORBIT_AXIS,
|
|
4530
|
+
CoordinationType$1.SPATIAL_ZOOM,
|
|
4531
|
+
CoordinationType$1.OBS_FILTER,
|
|
4532
|
+
CoordinationType$1.OBS_HIGHLIGHT,
|
|
4533
|
+
CoordinationType$1.OBS_SET_SELECTION,
|
|
4534
|
+
CoordinationType$1.OBS_SET_FILTER,
|
|
4535
|
+
CoordinationType$1.OBS_SET_HIGHLIGHT,
|
|
4536
|
+
CoordinationType$1.OBS_SET_COLOR,
|
|
4537
|
+
CoordinationType$1.OBS_TYPE,
|
|
4538
|
+
CoordinationType$1.ADDITIONAL_OBS_SETS,
|
|
4539
|
+
CoordinationType$1.OBS_SET_COLOR,
|
|
4540
|
+
CoordinationType$1.OBS_COLOR_ENCODING,
|
|
4541
|
+
CoordinationType$1.OBS_SET_SELECTION,
|
|
4542
|
+
CoordinationType$1.EMBEDDING_TYPE,
|
|
4543
|
+
CoordinationType$1.OBS_COLOR_ENCODING,
|
|
4544
|
+
CoordinationType$1.TOOLTIPS_VISIBLE
|
|
4511
4545
|
],
|
|
4512
4546
|
[ViewType$1.SCATTERPLOT]: [
|
|
4513
4547
|
CoordinationType$1.DATASET,
|
|
@@ -12005,11 +12039,25 @@ function requireConstants() {
|
|
|
12005
12039
|
const MAX_SAFE_INTEGER2 = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
12006
12040
|
9007199254740991;
|
|
12007
12041
|
const MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
12042
|
+
const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
12043
|
+
const RELEASE_TYPES = [
|
|
12044
|
+
"major",
|
|
12045
|
+
"premajor",
|
|
12046
|
+
"minor",
|
|
12047
|
+
"preminor",
|
|
12048
|
+
"patch",
|
|
12049
|
+
"prepatch",
|
|
12050
|
+
"prerelease"
|
|
12051
|
+
];
|
|
12008
12052
|
constants = {
|
|
12009
|
-
SEMVER_SPEC_VERSION,
|
|
12010
12053
|
MAX_LENGTH,
|
|
12054
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
12055
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
12011
12056
|
MAX_SAFE_INTEGER: MAX_SAFE_INTEGER2,
|
|
12012
|
-
|
|
12057
|
+
RELEASE_TYPES,
|
|
12058
|
+
SEMVER_SPEC_VERSION,
|
|
12059
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
12060
|
+
FLAG_LOOSE: 2
|
|
12013
12061
|
};
|
|
12014
12062
|
return constants;
|
|
12015
12063
|
}
|
|
@@ -12028,30 +12076,49 @@ function requireRe() {
|
|
|
12028
12076
|
if (hasRequiredRe) return re.exports;
|
|
12029
12077
|
hasRequiredRe = 1;
|
|
12030
12078
|
(function(module2, exports2) {
|
|
12031
|
-
const {
|
|
12079
|
+
const {
|
|
12080
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
12081
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
12082
|
+
MAX_LENGTH
|
|
12083
|
+
} = requireConstants();
|
|
12032
12084
|
const debug = requireDebug();
|
|
12033
12085
|
exports2 = module2.exports = {};
|
|
12034
12086
|
const re2 = exports2.re = [];
|
|
12087
|
+
const safeRe = exports2.safeRe = [];
|
|
12035
12088
|
const src = exports2.src = [];
|
|
12036
12089
|
const t = exports2.t = {};
|
|
12037
12090
|
let R = 0;
|
|
12091
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
12092
|
+
const safeRegexReplacements = [
|
|
12093
|
+
["\\s", 1],
|
|
12094
|
+
["\\d", MAX_LENGTH],
|
|
12095
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
12096
|
+
];
|
|
12097
|
+
const makeSafeRegex = (value) => {
|
|
12098
|
+
for (const [token, max] of safeRegexReplacements) {
|
|
12099
|
+
value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
12100
|
+
}
|
|
12101
|
+
return value;
|
|
12102
|
+
};
|
|
12038
12103
|
const createToken = (name, value, isGlobal) => {
|
|
12104
|
+
const safe = makeSafeRegex(value);
|
|
12039
12105
|
const index = R++;
|
|
12040
12106
|
debug(name, index, value);
|
|
12041
12107
|
t[name] = index;
|
|
12042
12108
|
src[index] = value;
|
|
12043
12109
|
re2[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
12110
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
12044
12111
|
};
|
|
12045
12112
|
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
12046
|
-
createToken("NUMERICIDENTIFIERLOOSE", "
|
|
12047
|
-
createToken("NONNUMERICIDENTIFIER",
|
|
12113
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
12114
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
12048
12115
|
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
12049
12116
|
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
12050
12117
|
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
12051
12118
|
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
12052
12119
|
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
12053
12120
|
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
12054
|
-
createToken("BUILDIDENTIFIER",
|
|
12121
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
12055
12122
|
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
12056
12123
|
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
12057
12124
|
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
@@ -12064,8 +12131,11 @@ function requireRe() {
|
|
|
12064
12131
|
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
12065
12132
|
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
12066
12133
|
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
12067
|
-
createToken("
|
|
12134
|
+
createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
12135
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
12136
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
12068
12137
|
createToken("COERCERTL", src[t.COERCE], true);
|
|
12138
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
12069
12139
|
createToken("LONETILDE", "(?:~>?)");
|
|
12070
12140
|
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
12071
12141
|
exports2.tildeTrimReplace = "$1~";
|
|
@@ -12093,11 +12163,17 @@ var hasRequiredParseOptions;
|
|
|
12093
12163
|
function requireParseOptions() {
|
|
12094
12164
|
if (hasRequiredParseOptions) return parseOptions_1;
|
|
12095
12165
|
hasRequiredParseOptions = 1;
|
|
12096
|
-
const
|
|
12097
|
-
const
|
|
12098
|
-
|
|
12099
|
-
|
|
12100
|
-
|
|
12166
|
+
const looseOption = Object.freeze({ loose: true });
|
|
12167
|
+
const emptyOpts = Object.freeze({});
|
|
12168
|
+
const parseOptions = (options) => {
|
|
12169
|
+
if (!options) {
|
|
12170
|
+
return emptyOpts;
|
|
12171
|
+
}
|
|
12172
|
+
if (typeof options !== "object") {
|
|
12173
|
+
return looseOption;
|
|
12174
|
+
}
|
|
12175
|
+
return options;
|
|
12176
|
+
};
|
|
12101
12177
|
parseOptions_1 = parseOptions;
|
|
12102
12178
|
return parseOptions_1;
|
|
12103
12179
|
}
|
|
@@ -12130,7 +12206,7 @@ function requireSemver$1() {
|
|
|
12130
12206
|
hasRequiredSemver$1 = 1;
|
|
12131
12207
|
const debug = requireDebug();
|
|
12132
12208
|
const { MAX_LENGTH, MAX_SAFE_INTEGER: MAX_SAFE_INTEGER2 } = requireConstants();
|
|
12133
|
-
const {
|
|
12209
|
+
const { safeRe: re2, t } = requireRe();
|
|
12134
12210
|
const parseOptions = requireParseOptions();
|
|
12135
12211
|
const { compareIdentifiers } = requireIdentifiers();
|
|
12136
12212
|
class SemVer {
|
|
@@ -12143,7 +12219,7 @@ function requireSemver$1() {
|
|
|
12143
12219
|
version = version.version;
|
|
12144
12220
|
}
|
|
12145
12221
|
} else if (typeof version !== "string") {
|
|
12146
|
-
throw new TypeError(`Invalid
|
|
12222
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
12147
12223
|
}
|
|
12148
12224
|
if (version.length > MAX_LENGTH) {
|
|
12149
12225
|
throw new TypeError(
|
|
@@ -12253,7 +12329,7 @@ function requireSemver$1() {
|
|
|
12253
12329
|
do {
|
|
12254
12330
|
const a = this.build[i];
|
|
12255
12331
|
const b = other.build[i];
|
|
12256
|
-
debug("
|
|
12332
|
+
debug("build compare", i, a, b);
|
|
12257
12333
|
if (a === void 0 && b === void 0) {
|
|
12258
12334
|
return 0;
|
|
12259
12335
|
} else if (b === void 0) {
|
|
@@ -12269,33 +12345,33 @@ function requireSemver$1() {
|
|
|
12269
12345
|
}
|
|
12270
12346
|
// preminor will bump the version up to the next minor release, and immediately
|
|
12271
12347
|
// down to pre-release. premajor and prepatch work the same way.
|
|
12272
|
-
inc(release, identifier) {
|
|
12348
|
+
inc(release, identifier, identifierBase) {
|
|
12273
12349
|
switch (release) {
|
|
12274
12350
|
case "premajor":
|
|
12275
12351
|
this.prerelease.length = 0;
|
|
12276
12352
|
this.patch = 0;
|
|
12277
12353
|
this.minor = 0;
|
|
12278
12354
|
this.major++;
|
|
12279
|
-
this.inc("pre", identifier);
|
|
12355
|
+
this.inc("pre", identifier, identifierBase);
|
|
12280
12356
|
break;
|
|
12281
12357
|
case "preminor":
|
|
12282
12358
|
this.prerelease.length = 0;
|
|
12283
12359
|
this.patch = 0;
|
|
12284
12360
|
this.minor++;
|
|
12285
|
-
this.inc("pre", identifier);
|
|
12361
|
+
this.inc("pre", identifier, identifierBase);
|
|
12286
12362
|
break;
|
|
12287
12363
|
case "prepatch":
|
|
12288
12364
|
this.prerelease.length = 0;
|
|
12289
|
-
this.inc("patch", identifier);
|
|
12290
|
-
this.inc("pre", identifier);
|
|
12365
|
+
this.inc("patch", identifier, identifierBase);
|
|
12366
|
+
this.inc("pre", identifier, identifierBase);
|
|
12291
12367
|
break;
|
|
12292
12368
|
// If the input is a non-prerelease version, this acts the same as
|
|
12293
12369
|
// prepatch.
|
|
12294
12370
|
case "prerelease":
|
|
12295
12371
|
if (this.prerelease.length === 0) {
|
|
12296
|
-
this.inc("patch", identifier);
|
|
12372
|
+
this.inc("patch", identifier, identifierBase);
|
|
12297
12373
|
}
|
|
12298
|
-
this.inc("pre", identifier);
|
|
12374
|
+
this.inc("pre", identifier, identifierBase);
|
|
12299
12375
|
break;
|
|
12300
12376
|
case "major":
|
|
12301
12377
|
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
@@ -12320,9 +12396,13 @@ function requireSemver$1() {
|
|
|
12320
12396
|
break;
|
|
12321
12397
|
// This probably shouldn't be used publicly.
|
|
12322
12398
|
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
12323
|
-
case "pre":
|
|
12399
|
+
case "pre": {
|
|
12400
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
12401
|
+
if (!identifier && identifierBase === false) {
|
|
12402
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
12403
|
+
}
|
|
12324
12404
|
if (this.prerelease.length === 0) {
|
|
12325
|
-
this.prerelease = [
|
|
12405
|
+
this.prerelease = [base];
|
|
12326
12406
|
} else {
|
|
12327
12407
|
let i = this.prerelease.length;
|
|
12328
12408
|
while (--i >= 0) {
|
|
@@ -12332,24 +12412,34 @@ function requireSemver$1() {
|
|
|
12332
12412
|
}
|
|
12333
12413
|
}
|
|
12334
12414
|
if (i === -1) {
|
|
12335
|
-
this.prerelease.
|
|
12415
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) {
|
|
12416
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
12417
|
+
}
|
|
12418
|
+
this.prerelease.push(base);
|
|
12336
12419
|
}
|
|
12337
12420
|
}
|
|
12338
12421
|
if (identifier) {
|
|
12422
|
+
let prerelease = [identifier, base];
|
|
12423
|
+
if (identifierBase === false) {
|
|
12424
|
+
prerelease = [identifier];
|
|
12425
|
+
}
|
|
12339
12426
|
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
12340
12427
|
if (isNaN(this.prerelease[1])) {
|
|
12341
|
-
this.prerelease =
|
|
12428
|
+
this.prerelease = prerelease;
|
|
12342
12429
|
}
|
|
12343
12430
|
} else {
|
|
12344
|
-
this.prerelease =
|
|
12431
|
+
this.prerelease = prerelease;
|
|
12345
12432
|
}
|
|
12346
12433
|
}
|
|
12347
12434
|
break;
|
|
12435
|
+
}
|
|
12348
12436
|
default:
|
|
12349
12437
|
throw new Error(`invalid increment argument: ${release}`);
|
|
12350
12438
|
}
|
|
12351
|
-
this.format();
|
|
12352
|
-
this.
|
|
12439
|
+
this.raw = this.format();
|
|
12440
|
+
if (this.build.length) {
|
|
12441
|
+
this.raw += `+${this.build.join(".")}`;
|
|
12442
|
+
}
|
|
12353
12443
|
return this;
|
|
12354
12444
|
}
|
|
12355
12445
|
}
|
|
@@ -12361,29 +12451,18 @@ var hasRequiredParse;
|
|
|
12361
12451
|
function requireParse() {
|
|
12362
12452
|
if (hasRequiredParse) return parse_1;
|
|
12363
12453
|
hasRequiredParse = 1;
|
|
12364
|
-
const { MAX_LENGTH } = requireConstants();
|
|
12365
|
-
const { re: re2, t } = requireRe();
|
|
12366
12454
|
const SemVer = requireSemver$1();
|
|
12367
|
-
const
|
|
12368
|
-
const parse2 = (version, options) => {
|
|
12369
|
-
options = parseOptions(options);
|
|
12455
|
+
const parse2 = (version, options, throwErrors = false) => {
|
|
12370
12456
|
if (version instanceof SemVer) {
|
|
12371
12457
|
return version;
|
|
12372
12458
|
}
|
|
12373
|
-
if (typeof version !== "string") {
|
|
12374
|
-
return null;
|
|
12375
|
-
}
|
|
12376
|
-
if (version.length > MAX_LENGTH) {
|
|
12377
|
-
return null;
|
|
12378
|
-
}
|
|
12379
|
-
const r = options.loose ? re2[t.LOOSE] : re2[t.FULL];
|
|
12380
|
-
if (!r.test(version)) {
|
|
12381
|
-
return null;
|
|
12382
|
-
}
|
|
12383
12459
|
try {
|
|
12384
12460
|
return new SemVer(version, options);
|
|
12385
12461
|
} catch (er) {
|
|
12386
|
-
|
|
12462
|
+
if (!throwErrors) {
|
|
12463
|
+
return null;
|
|
12464
|
+
}
|
|
12465
|
+
throw er;
|
|
12387
12466
|
}
|
|
12388
12467
|
};
|
|
12389
12468
|
parse_1 = parse2;
|
|
@@ -12421,8 +12500,9 @@ function requireInc() {
|
|
|
12421
12500
|
if (hasRequiredInc) return inc_1;
|
|
12422
12501
|
hasRequiredInc = 1;
|
|
12423
12502
|
const SemVer = requireSemver$1();
|
|
12424
|
-
const inc = (version, release, options, identifier) => {
|
|
12503
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
12425
12504
|
if (typeof options === "string") {
|
|
12505
|
+
identifierBase = identifier;
|
|
12426
12506
|
identifier = options;
|
|
12427
12507
|
options = void 0;
|
|
12428
12508
|
}
|
|
@@ -12430,7 +12510,7 @@ function requireInc() {
|
|
|
12430
12510
|
return new SemVer(
|
|
12431
12511
|
version instanceof SemVer ? version.version : version,
|
|
12432
12512
|
options
|
|
12433
|
-
).inc(release, identifier).version;
|
|
12513
|
+
).inc(release, identifier, identifierBase).version;
|
|
12434
12514
|
} catch (er) {
|
|
12435
12515
|
return null;
|
|
12436
12516
|
}
|
|
@@ -12438,51 +12518,47 @@ function requireInc() {
|
|
|
12438
12518
|
inc_1 = inc;
|
|
12439
12519
|
return inc_1;
|
|
12440
12520
|
}
|
|
12441
|
-
var compare_1;
|
|
12442
|
-
var hasRequiredCompare;
|
|
12443
|
-
function requireCompare() {
|
|
12444
|
-
if (hasRequiredCompare) return compare_1;
|
|
12445
|
-
hasRequiredCompare = 1;
|
|
12446
|
-
const SemVer = requireSemver$1();
|
|
12447
|
-
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
12448
|
-
compare_1 = compare;
|
|
12449
|
-
return compare_1;
|
|
12450
|
-
}
|
|
12451
|
-
var eq_1;
|
|
12452
|
-
var hasRequiredEq;
|
|
12453
|
-
function requireEq() {
|
|
12454
|
-
if (hasRequiredEq) return eq_1;
|
|
12455
|
-
hasRequiredEq = 1;
|
|
12456
|
-
const compare = requireCompare();
|
|
12457
|
-
const eq2 = (a, b, loose) => compare(a, b, loose) === 0;
|
|
12458
|
-
eq_1 = eq2;
|
|
12459
|
-
return eq_1;
|
|
12460
|
-
}
|
|
12461
12521
|
var diff_1;
|
|
12462
12522
|
var hasRequiredDiff;
|
|
12463
12523
|
function requireDiff() {
|
|
12464
12524
|
if (hasRequiredDiff) return diff_1;
|
|
12465
12525
|
hasRequiredDiff = 1;
|
|
12466
12526
|
const parse2 = requireParse();
|
|
12467
|
-
const eq2 = requireEq();
|
|
12468
12527
|
const diff = (version1, version2) => {
|
|
12469
|
-
|
|
12528
|
+
const v1 = parse2(version1, null, true);
|
|
12529
|
+
const v2 = parse2(version2, null, true);
|
|
12530
|
+
const comparison = v1.compare(v2);
|
|
12531
|
+
if (comparison === 0) {
|
|
12470
12532
|
return null;
|
|
12471
|
-
}
|
|
12472
|
-
|
|
12473
|
-
|
|
12474
|
-
|
|
12475
|
-
|
|
12476
|
-
|
|
12477
|
-
|
|
12478
|
-
|
|
12479
|
-
|
|
12480
|
-
|
|
12481
|
-
|
|
12482
|
-
|
|
12533
|
+
}
|
|
12534
|
+
const v1Higher = comparison > 0;
|
|
12535
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
12536
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
12537
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
12538
|
+
const lowHasPre = !!lowVersion.prerelease.length;
|
|
12539
|
+
if (lowHasPre && !highHasPre) {
|
|
12540
|
+
if (!lowVersion.patch && !lowVersion.minor) {
|
|
12541
|
+
return "major";
|
|
12542
|
+
}
|
|
12543
|
+
if (highVersion.patch) {
|
|
12544
|
+
return "patch";
|
|
12483
12545
|
}
|
|
12484
|
-
|
|
12546
|
+
if (highVersion.minor) {
|
|
12547
|
+
return "minor";
|
|
12548
|
+
}
|
|
12549
|
+
return "major";
|
|
12550
|
+
}
|
|
12551
|
+
const prefix = highHasPre ? "pre" : "";
|
|
12552
|
+
if (v1.major !== v2.major) {
|
|
12553
|
+
return prefix + "major";
|
|
12554
|
+
}
|
|
12555
|
+
if (v1.minor !== v2.minor) {
|
|
12556
|
+
return prefix + "minor";
|
|
12557
|
+
}
|
|
12558
|
+
if (v1.patch !== v2.patch) {
|
|
12559
|
+
return prefix + "patch";
|
|
12485
12560
|
}
|
|
12561
|
+
return "prerelease";
|
|
12486
12562
|
};
|
|
12487
12563
|
diff_1 = diff;
|
|
12488
12564
|
return diff_1;
|
|
@@ -12530,6 +12606,16 @@ function requirePrerelease() {
|
|
|
12530
12606
|
prerelease_1 = prerelease;
|
|
12531
12607
|
return prerelease_1;
|
|
12532
12608
|
}
|
|
12609
|
+
var compare_1;
|
|
12610
|
+
var hasRequiredCompare;
|
|
12611
|
+
function requireCompare() {
|
|
12612
|
+
if (hasRequiredCompare) return compare_1;
|
|
12613
|
+
hasRequiredCompare = 1;
|
|
12614
|
+
const SemVer = requireSemver$1();
|
|
12615
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
12616
|
+
compare_1 = compare;
|
|
12617
|
+
return compare_1;
|
|
12618
|
+
}
|
|
12533
12619
|
var rcompare_1;
|
|
12534
12620
|
var hasRequiredRcompare;
|
|
12535
12621
|
function requireRcompare() {
|
|
@@ -12604,6 +12690,16 @@ function requireLt() {
|
|
|
12604
12690
|
lt_1 = lt;
|
|
12605
12691
|
return lt_1;
|
|
12606
12692
|
}
|
|
12693
|
+
var eq_1;
|
|
12694
|
+
var hasRequiredEq;
|
|
12695
|
+
function requireEq() {
|
|
12696
|
+
if (hasRequiredEq) return eq_1;
|
|
12697
|
+
hasRequiredEq = 1;
|
|
12698
|
+
const compare = requireCompare();
|
|
12699
|
+
const eq2 = (a, b, loose) => compare(a, b, loose) === 0;
|
|
12700
|
+
eq_1 = eq2;
|
|
12701
|
+
return eq_1;
|
|
12702
|
+
}
|
|
12607
12703
|
var neq_1;
|
|
12608
12704
|
var hasRequiredNeq;
|
|
12609
12705
|
function requireNeq() {
|
|
@@ -12691,7 +12787,7 @@ function requireCoerce() {
|
|
|
12691
12787
|
hasRequiredCoerce = 1;
|
|
12692
12788
|
const SemVer = requireSemver$1();
|
|
12693
12789
|
const parse2 = requireParse();
|
|
12694
|
-
const {
|
|
12790
|
+
const { safeRe: re2, t } = requireRe();
|
|
12695
12791
|
const coerce2 = (version, options) => {
|
|
12696
12792
|
if (version instanceof SemVer) {
|
|
12697
12793
|
return version;
|
|
@@ -12705,682 +12801,75 @@ function requireCoerce() {
|
|
|
12705
12801
|
options = options || {};
|
|
12706
12802
|
let match = null;
|
|
12707
12803
|
if (!options.rtl) {
|
|
12708
|
-
match = version.match(re2[t.COERCE]);
|
|
12804
|
+
match = version.match(options.includePrerelease ? re2[t.COERCEFULL] : re2[t.COERCE]);
|
|
12709
12805
|
} else {
|
|
12806
|
+
const coerceRtlRegex = options.includePrerelease ? re2[t.COERCERTLFULL] : re2[t.COERCERTL];
|
|
12710
12807
|
let next;
|
|
12711
|
-
while ((next =
|
|
12808
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
12712
12809
|
if (!match || next.index + next[0].length !== match.index + match[0].length) {
|
|
12713
12810
|
match = next;
|
|
12714
12811
|
}
|
|
12715
|
-
|
|
12812
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
12716
12813
|
}
|
|
12717
|
-
|
|
12814
|
+
coerceRtlRegex.lastIndex = -1;
|
|
12718
12815
|
}
|
|
12719
12816
|
if (match === null) {
|
|
12720
12817
|
return null;
|
|
12721
12818
|
}
|
|
12722
|
-
|
|
12819
|
+
const major = match[2];
|
|
12820
|
+
const minor = match[3] || "0";
|
|
12821
|
+
const patch = match[4] || "0";
|
|
12822
|
+
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
12823
|
+
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
12824
|
+
return parse2(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
12723
12825
|
};
|
|
12724
12826
|
coerce_1 = coerce2;
|
|
12725
12827
|
return coerce_1;
|
|
12726
12828
|
}
|
|
12727
|
-
var
|
|
12728
|
-
var
|
|
12729
|
-
function
|
|
12730
|
-
if (
|
|
12731
|
-
|
|
12732
|
-
iterator = function(Yallist) {
|
|
12733
|
-
Yallist.prototype[Symbol.iterator] = function* () {
|
|
12734
|
-
for (let walker = this.head; walker; walker = walker.next) {
|
|
12735
|
-
yield walker.value;
|
|
12736
|
-
}
|
|
12737
|
-
};
|
|
12738
|
-
};
|
|
12739
|
-
return iterator;
|
|
12740
|
-
}
|
|
12741
|
-
var yallist;
|
|
12742
|
-
var hasRequiredYallist;
|
|
12743
|
-
function requireYallist() {
|
|
12744
|
-
if (hasRequiredYallist) return yallist;
|
|
12745
|
-
hasRequiredYallist = 1;
|
|
12746
|
-
yallist = Yallist;
|
|
12747
|
-
Yallist.Node = Node;
|
|
12748
|
-
Yallist.create = Yallist;
|
|
12749
|
-
function Yallist(list) {
|
|
12750
|
-
var self2 = this;
|
|
12751
|
-
if (!(self2 instanceof Yallist)) {
|
|
12752
|
-
self2 = new Yallist();
|
|
12753
|
-
}
|
|
12754
|
-
self2.tail = null;
|
|
12755
|
-
self2.head = null;
|
|
12756
|
-
self2.length = 0;
|
|
12757
|
-
if (list && typeof list.forEach === "function") {
|
|
12758
|
-
list.forEach(function(item) {
|
|
12759
|
-
self2.push(item);
|
|
12760
|
-
});
|
|
12761
|
-
} else if (arguments.length > 0) {
|
|
12762
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
12763
|
-
self2.push(arguments[i]);
|
|
12764
|
-
}
|
|
12765
|
-
}
|
|
12766
|
-
return self2;
|
|
12767
|
-
}
|
|
12768
|
-
Yallist.prototype.removeNode = function(node) {
|
|
12769
|
-
if (node.list !== this) {
|
|
12770
|
-
throw new Error("removing node which does not belong to this list");
|
|
12771
|
-
}
|
|
12772
|
-
var next = node.next;
|
|
12773
|
-
var prev = node.prev;
|
|
12774
|
-
if (next) {
|
|
12775
|
-
next.prev = prev;
|
|
12776
|
-
}
|
|
12777
|
-
if (prev) {
|
|
12778
|
-
prev.next = next;
|
|
12779
|
-
}
|
|
12780
|
-
if (node === this.head) {
|
|
12781
|
-
this.head = next;
|
|
12782
|
-
}
|
|
12783
|
-
if (node === this.tail) {
|
|
12784
|
-
this.tail = prev;
|
|
12785
|
-
}
|
|
12786
|
-
node.list.length--;
|
|
12787
|
-
node.next = null;
|
|
12788
|
-
node.prev = null;
|
|
12789
|
-
node.list = null;
|
|
12790
|
-
return next;
|
|
12791
|
-
};
|
|
12792
|
-
Yallist.prototype.unshiftNode = function(node) {
|
|
12793
|
-
if (node === this.head) {
|
|
12794
|
-
return;
|
|
12795
|
-
}
|
|
12796
|
-
if (node.list) {
|
|
12797
|
-
node.list.removeNode(node);
|
|
12798
|
-
}
|
|
12799
|
-
var head = this.head;
|
|
12800
|
-
node.list = this;
|
|
12801
|
-
node.next = head;
|
|
12802
|
-
if (head) {
|
|
12803
|
-
head.prev = node;
|
|
12804
|
-
}
|
|
12805
|
-
this.head = node;
|
|
12806
|
-
if (!this.tail) {
|
|
12807
|
-
this.tail = node;
|
|
12808
|
-
}
|
|
12809
|
-
this.length++;
|
|
12810
|
-
};
|
|
12811
|
-
Yallist.prototype.pushNode = function(node) {
|
|
12812
|
-
if (node === this.tail) {
|
|
12813
|
-
return;
|
|
12814
|
-
}
|
|
12815
|
-
if (node.list) {
|
|
12816
|
-
node.list.removeNode(node);
|
|
12817
|
-
}
|
|
12818
|
-
var tail = this.tail;
|
|
12819
|
-
node.list = this;
|
|
12820
|
-
node.prev = tail;
|
|
12821
|
-
if (tail) {
|
|
12822
|
-
tail.next = node;
|
|
12823
|
-
}
|
|
12824
|
-
this.tail = node;
|
|
12825
|
-
if (!this.head) {
|
|
12826
|
-
this.head = node;
|
|
12827
|
-
}
|
|
12828
|
-
this.length++;
|
|
12829
|
-
};
|
|
12830
|
-
Yallist.prototype.push = function() {
|
|
12831
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
12832
|
-
push(this, arguments[i]);
|
|
12833
|
-
}
|
|
12834
|
-
return this.length;
|
|
12835
|
-
};
|
|
12836
|
-
Yallist.prototype.unshift = function() {
|
|
12837
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
12838
|
-
unshift(this, arguments[i]);
|
|
12839
|
-
}
|
|
12840
|
-
return this.length;
|
|
12841
|
-
};
|
|
12842
|
-
Yallist.prototype.pop = function() {
|
|
12843
|
-
if (!this.tail) {
|
|
12844
|
-
return void 0;
|
|
12845
|
-
}
|
|
12846
|
-
var res = this.tail.value;
|
|
12847
|
-
this.tail = this.tail.prev;
|
|
12848
|
-
if (this.tail) {
|
|
12849
|
-
this.tail.next = null;
|
|
12850
|
-
} else {
|
|
12851
|
-
this.head = null;
|
|
12852
|
-
}
|
|
12853
|
-
this.length--;
|
|
12854
|
-
return res;
|
|
12855
|
-
};
|
|
12856
|
-
Yallist.prototype.shift = function() {
|
|
12857
|
-
if (!this.head) {
|
|
12858
|
-
return void 0;
|
|
12859
|
-
}
|
|
12860
|
-
var res = this.head.value;
|
|
12861
|
-
this.head = this.head.next;
|
|
12862
|
-
if (this.head) {
|
|
12863
|
-
this.head.prev = null;
|
|
12864
|
-
} else {
|
|
12865
|
-
this.tail = null;
|
|
12866
|
-
}
|
|
12867
|
-
this.length--;
|
|
12868
|
-
return res;
|
|
12869
|
-
};
|
|
12870
|
-
Yallist.prototype.forEach = function(fn, thisp) {
|
|
12871
|
-
thisp = thisp || this;
|
|
12872
|
-
for (var walker = this.head, i = 0; walker !== null; i++) {
|
|
12873
|
-
fn.call(thisp, walker.value, i, this);
|
|
12874
|
-
walker = walker.next;
|
|
12875
|
-
}
|
|
12876
|
-
};
|
|
12877
|
-
Yallist.prototype.forEachReverse = function(fn, thisp) {
|
|
12878
|
-
thisp = thisp || this;
|
|
12879
|
-
for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {
|
|
12880
|
-
fn.call(thisp, walker.value, i, this);
|
|
12881
|
-
walker = walker.prev;
|
|
12882
|
-
}
|
|
12883
|
-
};
|
|
12884
|
-
Yallist.prototype.get = function(n) {
|
|
12885
|
-
for (var i = 0, walker = this.head; walker !== null && i < n; i++) {
|
|
12886
|
-
walker = walker.next;
|
|
12887
|
-
}
|
|
12888
|
-
if (i === n && walker !== null) {
|
|
12889
|
-
return walker.value;
|
|
12890
|
-
}
|
|
12891
|
-
};
|
|
12892
|
-
Yallist.prototype.getReverse = function(n) {
|
|
12893
|
-
for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {
|
|
12894
|
-
walker = walker.prev;
|
|
12895
|
-
}
|
|
12896
|
-
if (i === n && walker !== null) {
|
|
12897
|
-
return walker.value;
|
|
12898
|
-
}
|
|
12899
|
-
};
|
|
12900
|
-
Yallist.prototype.map = function(fn, thisp) {
|
|
12901
|
-
thisp = thisp || this;
|
|
12902
|
-
var res = new Yallist();
|
|
12903
|
-
for (var walker = this.head; walker !== null; ) {
|
|
12904
|
-
res.push(fn.call(thisp, walker.value, this));
|
|
12905
|
-
walker = walker.next;
|
|
12906
|
-
}
|
|
12907
|
-
return res;
|
|
12908
|
-
};
|
|
12909
|
-
Yallist.prototype.mapReverse = function(fn, thisp) {
|
|
12910
|
-
thisp = thisp || this;
|
|
12911
|
-
var res = new Yallist();
|
|
12912
|
-
for (var walker = this.tail; walker !== null; ) {
|
|
12913
|
-
res.push(fn.call(thisp, walker.value, this));
|
|
12914
|
-
walker = walker.prev;
|
|
12915
|
-
}
|
|
12916
|
-
return res;
|
|
12917
|
-
};
|
|
12918
|
-
Yallist.prototype.reduce = function(fn, initial) {
|
|
12919
|
-
var acc;
|
|
12920
|
-
var walker = this.head;
|
|
12921
|
-
if (arguments.length > 1) {
|
|
12922
|
-
acc = initial;
|
|
12923
|
-
} else if (this.head) {
|
|
12924
|
-
walker = this.head.next;
|
|
12925
|
-
acc = this.head.value;
|
|
12926
|
-
} else {
|
|
12927
|
-
throw new TypeError("Reduce of empty list with no initial value");
|
|
12928
|
-
}
|
|
12929
|
-
for (var i = 0; walker !== null; i++) {
|
|
12930
|
-
acc = fn(acc, walker.value, i);
|
|
12931
|
-
walker = walker.next;
|
|
12932
|
-
}
|
|
12933
|
-
return acc;
|
|
12934
|
-
};
|
|
12935
|
-
Yallist.prototype.reduceReverse = function(fn, initial) {
|
|
12936
|
-
var acc;
|
|
12937
|
-
var walker = this.tail;
|
|
12938
|
-
if (arguments.length > 1) {
|
|
12939
|
-
acc = initial;
|
|
12940
|
-
} else if (this.tail) {
|
|
12941
|
-
walker = this.tail.prev;
|
|
12942
|
-
acc = this.tail.value;
|
|
12943
|
-
} else {
|
|
12944
|
-
throw new TypeError("Reduce of empty list with no initial value");
|
|
12945
|
-
}
|
|
12946
|
-
for (var i = this.length - 1; walker !== null; i--) {
|
|
12947
|
-
acc = fn(acc, walker.value, i);
|
|
12948
|
-
walker = walker.prev;
|
|
12949
|
-
}
|
|
12950
|
-
return acc;
|
|
12951
|
-
};
|
|
12952
|
-
Yallist.prototype.toArray = function() {
|
|
12953
|
-
var arr = new Array(this.length);
|
|
12954
|
-
for (var i = 0, walker = this.head; walker !== null; i++) {
|
|
12955
|
-
arr[i] = walker.value;
|
|
12956
|
-
walker = walker.next;
|
|
12957
|
-
}
|
|
12958
|
-
return arr;
|
|
12959
|
-
};
|
|
12960
|
-
Yallist.prototype.toArrayReverse = function() {
|
|
12961
|
-
var arr = new Array(this.length);
|
|
12962
|
-
for (var i = 0, walker = this.tail; walker !== null; i++) {
|
|
12963
|
-
arr[i] = walker.value;
|
|
12964
|
-
walker = walker.prev;
|
|
12965
|
-
}
|
|
12966
|
-
return arr;
|
|
12967
|
-
};
|
|
12968
|
-
Yallist.prototype.slice = function(from, to) {
|
|
12969
|
-
to = to || this.length;
|
|
12970
|
-
if (to < 0) {
|
|
12971
|
-
to += this.length;
|
|
12972
|
-
}
|
|
12973
|
-
from = from || 0;
|
|
12974
|
-
if (from < 0) {
|
|
12975
|
-
from += this.length;
|
|
12976
|
-
}
|
|
12977
|
-
var ret = new Yallist();
|
|
12978
|
-
if (to < from || to < 0) {
|
|
12979
|
-
return ret;
|
|
12980
|
-
}
|
|
12981
|
-
if (from < 0) {
|
|
12982
|
-
from = 0;
|
|
12983
|
-
}
|
|
12984
|
-
if (to > this.length) {
|
|
12985
|
-
to = this.length;
|
|
12986
|
-
}
|
|
12987
|
-
for (var i = 0, walker = this.head; walker !== null && i < from; i++) {
|
|
12988
|
-
walker = walker.next;
|
|
12989
|
-
}
|
|
12990
|
-
for (; walker !== null && i < to; i++, walker = walker.next) {
|
|
12991
|
-
ret.push(walker.value);
|
|
12992
|
-
}
|
|
12993
|
-
return ret;
|
|
12994
|
-
};
|
|
12995
|
-
Yallist.prototype.sliceReverse = function(from, to) {
|
|
12996
|
-
to = to || this.length;
|
|
12997
|
-
if (to < 0) {
|
|
12998
|
-
to += this.length;
|
|
12999
|
-
}
|
|
13000
|
-
from = from || 0;
|
|
13001
|
-
if (from < 0) {
|
|
13002
|
-
from += this.length;
|
|
13003
|
-
}
|
|
13004
|
-
var ret = new Yallist();
|
|
13005
|
-
if (to < from || to < 0) {
|
|
13006
|
-
return ret;
|
|
13007
|
-
}
|
|
13008
|
-
if (from < 0) {
|
|
13009
|
-
from = 0;
|
|
13010
|
-
}
|
|
13011
|
-
if (to > this.length) {
|
|
13012
|
-
to = this.length;
|
|
13013
|
-
}
|
|
13014
|
-
for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {
|
|
13015
|
-
walker = walker.prev;
|
|
13016
|
-
}
|
|
13017
|
-
for (; walker !== null && i > from; i--, walker = walker.prev) {
|
|
13018
|
-
ret.push(walker.value);
|
|
13019
|
-
}
|
|
13020
|
-
return ret;
|
|
13021
|
-
};
|
|
13022
|
-
Yallist.prototype.splice = function(start, deleteCount, ...nodes) {
|
|
13023
|
-
if (start > this.length) {
|
|
13024
|
-
start = this.length - 1;
|
|
13025
|
-
}
|
|
13026
|
-
if (start < 0) {
|
|
13027
|
-
start = this.length + start;
|
|
13028
|
-
}
|
|
13029
|
-
for (var i = 0, walker = this.head; walker !== null && i < start; i++) {
|
|
13030
|
-
walker = walker.next;
|
|
13031
|
-
}
|
|
13032
|
-
var ret = [];
|
|
13033
|
-
for (var i = 0; walker && i < deleteCount; i++) {
|
|
13034
|
-
ret.push(walker.value);
|
|
13035
|
-
walker = this.removeNode(walker);
|
|
13036
|
-
}
|
|
13037
|
-
if (walker === null) {
|
|
13038
|
-
walker = this.tail;
|
|
13039
|
-
}
|
|
13040
|
-
if (walker !== this.head && walker !== this.tail) {
|
|
13041
|
-
walker = walker.prev;
|
|
13042
|
-
}
|
|
13043
|
-
for (var i = 0; i < nodes.length; i++) {
|
|
13044
|
-
walker = insert(this, walker, nodes[i]);
|
|
13045
|
-
}
|
|
13046
|
-
return ret;
|
|
13047
|
-
};
|
|
13048
|
-
Yallist.prototype.reverse = function() {
|
|
13049
|
-
var head = this.head;
|
|
13050
|
-
var tail = this.tail;
|
|
13051
|
-
for (var walker = head; walker !== null; walker = walker.prev) {
|
|
13052
|
-
var p = walker.prev;
|
|
13053
|
-
walker.prev = walker.next;
|
|
13054
|
-
walker.next = p;
|
|
13055
|
-
}
|
|
13056
|
-
this.head = tail;
|
|
13057
|
-
this.tail = head;
|
|
13058
|
-
return this;
|
|
13059
|
-
};
|
|
13060
|
-
function insert(self2, node, value) {
|
|
13061
|
-
var inserted = node === self2.head ? new Node(value, null, node, self2) : new Node(value, node, node.next, self2);
|
|
13062
|
-
if (inserted.next === null) {
|
|
13063
|
-
self2.tail = inserted;
|
|
13064
|
-
}
|
|
13065
|
-
if (inserted.prev === null) {
|
|
13066
|
-
self2.head = inserted;
|
|
13067
|
-
}
|
|
13068
|
-
self2.length++;
|
|
13069
|
-
return inserted;
|
|
13070
|
-
}
|
|
13071
|
-
function push(self2, item) {
|
|
13072
|
-
self2.tail = new Node(item, self2.tail, null, self2);
|
|
13073
|
-
if (!self2.head) {
|
|
13074
|
-
self2.head = self2.tail;
|
|
13075
|
-
}
|
|
13076
|
-
self2.length++;
|
|
13077
|
-
}
|
|
13078
|
-
function unshift(self2, item) {
|
|
13079
|
-
self2.head = new Node(item, null, self2.head, self2);
|
|
13080
|
-
if (!self2.tail) {
|
|
13081
|
-
self2.tail = self2.head;
|
|
13082
|
-
}
|
|
13083
|
-
self2.length++;
|
|
13084
|
-
}
|
|
13085
|
-
function Node(value, prev, next, list) {
|
|
13086
|
-
if (!(this instanceof Node)) {
|
|
13087
|
-
return new Node(value, prev, next, list);
|
|
13088
|
-
}
|
|
13089
|
-
this.list = list;
|
|
13090
|
-
this.value = value;
|
|
13091
|
-
if (prev) {
|
|
13092
|
-
prev.next = this;
|
|
13093
|
-
this.prev = prev;
|
|
13094
|
-
} else {
|
|
13095
|
-
this.prev = null;
|
|
13096
|
-
}
|
|
13097
|
-
if (next) {
|
|
13098
|
-
next.prev = this;
|
|
13099
|
-
this.next = next;
|
|
13100
|
-
} else {
|
|
13101
|
-
this.next = null;
|
|
13102
|
-
}
|
|
13103
|
-
}
|
|
13104
|
-
try {
|
|
13105
|
-
requireIterator()(Yallist);
|
|
13106
|
-
} catch (er) {
|
|
13107
|
-
}
|
|
13108
|
-
return yallist;
|
|
13109
|
-
}
|
|
13110
|
-
var lruCache;
|
|
13111
|
-
var hasRequiredLruCache;
|
|
13112
|
-
function requireLruCache() {
|
|
13113
|
-
if (hasRequiredLruCache) return lruCache;
|
|
13114
|
-
hasRequiredLruCache = 1;
|
|
13115
|
-
const Yallist = requireYallist();
|
|
13116
|
-
const MAX = Symbol("max");
|
|
13117
|
-
const LENGTH = Symbol("length");
|
|
13118
|
-
const LENGTH_CALCULATOR = Symbol("lengthCalculator");
|
|
13119
|
-
const ALLOW_STALE = Symbol("allowStale");
|
|
13120
|
-
const MAX_AGE = Symbol("maxAge");
|
|
13121
|
-
const DISPOSE = Symbol("dispose");
|
|
13122
|
-
const NO_DISPOSE_ON_SET = Symbol("noDisposeOnSet");
|
|
13123
|
-
const LRU_LIST = Symbol("lruList");
|
|
13124
|
-
const CACHE = Symbol("cache");
|
|
13125
|
-
const UPDATE_AGE_ON_GET = Symbol("updateAgeOnGet");
|
|
13126
|
-
const naiveLength = () => 1;
|
|
12829
|
+
var lrucache;
|
|
12830
|
+
var hasRequiredLrucache;
|
|
12831
|
+
function requireLrucache() {
|
|
12832
|
+
if (hasRequiredLrucache) return lrucache;
|
|
12833
|
+
hasRequiredLrucache = 1;
|
|
13127
12834
|
class LRUCache {
|
|
13128
|
-
constructor(
|
|
13129
|
-
|
|
13130
|
-
|
|
13131
|
-
if (!options)
|
|
13132
|
-
options = {};
|
|
13133
|
-
if (options.max && (typeof options.max !== "number" || options.max < 0))
|
|
13134
|
-
throw new TypeError("max must be a non-negative number");
|
|
13135
|
-
this[MAX] = options.max || Infinity;
|
|
13136
|
-
const lc = options.length || naiveLength;
|
|
13137
|
-
this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc;
|
|
13138
|
-
this[ALLOW_STALE] = options.stale || false;
|
|
13139
|
-
if (options.maxAge && typeof options.maxAge !== "number")
|
|
13140
|
-
throw new TypeError("maxAge must be a number");
|
|
13141
|
-
this[MAX_AGE] = options.maxAge || 0;
|
|
13142
|
-
this[DISPOSE] = options.dispose;
|
|
13143
|
-
this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;
|
|
13144
|
-
this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;
|
|
13145
|
-
this.reset();
|
|
13146
|
-
}
|
|
13147
|
-
// resize the cache when the max changes.
|
|
13148
|
-
set max(mL) {
|
|
13149
|
-
if (typeof mL !== "number" || mL < 0)
|
|
13150
|
-
throw new TypeError("max must be a non-negative number");
|
|
13151
|
-
this[MAX] = mL || Infinity;
|
|
13152
|
-
trim(this);
|
|
13153
|
-
}
|
|
13154
|
-
get max() {
|
|
13155
|
-
return this[MAX];
|
|
13156
|
-
}
|
|
13157
|
-
set allowStale(allowStale) {
|
|
13158
|
-
this[ALLOW_STALE] = !!allowStale;
|
|
13159
|
-
}
|
|
13160
|
-
get allowStale() {
|
|
13161
|
-
return this[ALLOW_STALE];
|
|
13162
|
-
}
|
|
13163
|
-
set maxAge(mA) {
|
|
13164
|
-
if (typeof mA !== "number")
|
|
13165
|
-
throw new TypeError("maxAge must be a non-negative number");
|
|
13166
|
-
this[MAX_AGE] = mA;
|
|
13167
|
-
trim(this);
|
|
13168
|
-
}
|
|
13169
|
-
get maxAge() {
|
|
13170
|
-
return this[MAX_AGE];
|
|
13171
|
-
}
|
|
13172
|
-
// resize the cache when the lengthCalculator changes.
|
|
13173
|
-
set lengthCalculator(lC) {
|
|
13174
|
-
if (typeof lC !== "function")
|
|
13175
|
-
lC = naiveLength;
|
|
13176
|
-
if (lC !== this[LENGTH_CALCULATOR]) {
|
|
13177
|
-
this[LENGTH_CALCULATOR] = lC;
|
|
13178
|
-
this[LENGTH] = 0;
|
|
13179
|
-
this[LRU_LIST].forEach((hit) => {
|
|
13180
|
-
hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key);
|
|
13181
|
-
this[LENGTH] += hit.length;
|
|
13182
|
-
});
|
|
13183
|
-
}
|
|
13184
|
-
trim(this);
|
|
13185
|
-
}
|
|
13186
|
-
get lengthCalculator() {
|
|
13187
|
-
return this[LENGTH_CALCULATOR];
|
|
13188
|
-
}
|
|
13189
|
-
get length() {
|
|
13190
|
-
return this[LENGTH];
|
|
13191
|
-
}
|
|
13192
|
-
get itemCount() {
|
|
13193
|
-
return this[LRU_LIST].length;
|
|
13194
|
-
}
|
|
13195
|
-
rforEach(fn, thisp) {
|
|
13196
|
-
thisp = thisp || this;
|
|
13197
|
-
for (let walker = this[LRU_LIST].tail; walker !== null; ) {
|
|
13198
|
-
const prev = walker.prev;
|
|
13199
|
-
forEachStep(this, fn, walker, thisp);
|
|
13200
|
-
walker = prev;
|
|
13201
|
-
}
|
|
13202
|
-
}
|
|
13203
|
-
forEach(fn, thisp) {
|
|
13204
|
-
thisp = thisp || this;
|
|
13205
|
-
for (let walker = this[LRU_LIST].head; walker !== null; ) {
|
|
13206
|
-
const next = walker.next;
|
|
13207
|
-
forEachStep(this, fn, walker, thisp);
|
|
13208
|
-
walker = next;
|
|
13209
|
-
}
|
|
13210
|
-
}
|
|
13211
|
-
keys() {
|
|
13212
|
-
return this[LRU_LIST].toArray().map((k) => k.key);
|
|
13213
|
-
}
|
|
13214
|
-
values() {
|
|
13215
|
-
return this[LRU_LIST].toArray().map((k) => k.value);
|
|
13216
|
-
}
|
|
13217
|
-
reset() {
|
|
13218
|
-
if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
|
|
13219
|
-
this[LRU_LIST].forEach((hit) => this[DISPOSE](hit.key, hit.value));
|
|
13220
|
-
}
|
|
13221
|
-
this[CACHE] = /* @__PURE__ */ new Map();
|
|
13222
|
-
this[LRU_LIST] = new Yallist();
|
|
13223
|
-
this[LENGTH] = 0;
|
|
13224
|
-
}
|
|
13225
|
-
dump() {
|
|
13226
|
-
return this[LRU_LIST].map((hit) => isStale(this, hit) ? false : {
|
|
13227
|
-
k: hit.key,
|
|
13228
|
-
v: hit.value,
|
|
13229
|
-
e: hit.now + (hit.maxAge || 0)
|
|
13230
|
-
}).toArray().filter((h) => h);
|
|
13231
|
-
}
|
|
13232
|
-
dumpLru() {
|
|
13233
|
-
return this[LRU_LIST];
|
|
13234
|
-
}
|
|
13235
|
-
set(key, value, maxAge) {
|
|
13236
|
-
maxAge = maxAge || this[MAX_AGE];
|
|
13237
|
-
if (maxAge && typeof maxAge !== "number")
|
|
13238
|
-
throw new TypeError("maxAge must be a number");
|
|
13239
|
-
const now = maxAge ? Date.now() : 0;
|
|
13240
|
-
const len = this[LENGTH_CALCULATOR](value, key);
|
|
13241
|
-
if (this[CACHE].has(key)) {
|
|
13242
|
-
if (len > this[MAX]) {
|
|
13243
|
-
del(this, this[CACHE].get(key));
|
|
13244
|
-
return false;
|
|
13245
|
-
}
|
|
13246
|
-
const node = this[CACHE].get(key);
|
|
13247
|
-
const item = node.value;
|
|
13248
|
-
if (this[DISPOSE]) {
|
|
13249
|
-
if (!this[NO_DISPOSE_ON_SET])
|
|
13250
|
-
this[DISPOSE](key, item.value);
|
|
13251
|
-
}
|
|
13252
|
-
item.now = now;
|
|
13253
|
-
item.maxAge = maxAge;
|
|
13254
|
-
item.value = value;
|
|
13255
|
-
this[LENGTH] += len - item.length;
|
|
13256
|
-
item.length = len;
|
|
13257
|
-
this.get(key);
|
|
13258
|
-
trim(this);
|
|
13259
|
-
return true;
|
|
13260
|
-
}
|
|
13261
|
-
const hit = new Entry(key, value, len, now, maxAge);
|
|
13262
|
-
if (hit.length > this[MAX]) {
|
|
13263
|
-
if (this[DISPOSE])
|
|
13264
|
-
this[DISPOSE](key, value);
|
|
13265
|
-
return false;
|
|
13266
|
-
}
|
|
13267
|
-
this[LENGTH] += hit.length;
|
|
13268
|
-
this[LRU_LIST].unshift(hit);
|
|
13269
|
-
this[CACHE].set(key, this[LRU_LIST].head);
|
|
13270
|
-
trim(this);
|
|
13271
|
-
return true;
|
|
13272
|
-
}
|
|
13273
|
-
has(key) {
|
|
13274
|
-
if (!this[CACHE].has(key)) return false;
|
|
13275
|
-
const hit = this[CACHE].get(key).value;
|
|
13276
|
-
return !isStale(this, hit);
|
|
12835
|
+
constructor() {
|
|
12836
|
+
this.max = 1e3;
|
|
12837
|
+
this.map = /* @__PURE__ */ new Map();
|
|
13277
12838
|
}
|
|
13278
12839
|
get(key) {
|
|
13279
|
-
|
|
13280
|
-
|
|
13281
|
-
|
|
13282
|
-
|
|
13283
|
-
|
|
13284
|
-
|
|
13285
|
-
|
|
13286
|
-
if (!node)
|
|
13287
|
-
return null;
|
|
13288
|
-
del(this, node);
|
|
13289
|
-
return node.value;
|
|
13290
|
-
}
|
|
13291
|
-
del(key) {
|
|
13292
|
-
del(this, this[CACHE].get(key));
|
|
13293
|
-
}
|
|
13294
|
-
load(arr) {
|
|
13295
|
-
this.reset();
|
|
13296
|
-
const now = Date.now();
|
|
13297
|
-
for (let l = arr.length - 1; l >= 0; l--) {
|
|
13298
|
-
const hit = arr[l];
|
|
13299
|
-
const expiresAt = hit.e || 0;
|
|
13300
|
-
if (expiresAt === 0)
|
|
13301
|
-
this.set(hit.k, hit.v);
|
|
13302
|
-
else {
|
|
13303
|
-
const maxAge = expiresAt - now;
|
|
13304
|
-
if (maxAge > 0) {
|
|
13305
|
-
this.set(hit.k, hit.v, maxAge);
|
|
13306
|
-
}
|
|
13307
|
-
}
|
|
12840
|
+
const value = this.map.get(key);
|
|
12841
|
+
if (value === void 0) {
|
|
12842
|
+
return void 0;
|
|
12843
|
+
} else {
|
|
12844
|
+
this.map.delete(key);
|
|
12845
|
+
this.map.set(key, value);
|
|
12846
|
+
return value;
|
|
13308
12847
|
}
|
|
13309
12848
|
}
|
|
13310
|
-
|
|
13311
|
-
this
|
|
12849
|
+
delete(key) {
|
|
12850
|
+
return this.map.delete(key);
|
|
13312
12851
|
}
|
|
13313
|
-
|
|
13314
|
-
|
|
13315
|
-
|
|
13316
|
-
|
|
13317
|
-
|
|
13318
|
-
|
|
13319
|
-
del(self2, node);
|
|
13320
|
-
if (!self2[ALLOW_STALE])
|
|
13321
|
-
return void 0;
|
|
13322
|
-
} else {
|
|
13323
|
-
if (doUse) {
|
|
13324
|
-
if (self2[UPDATE_AGE_ON_GET])
|
|
13325
|
-
node.value.now = Date.now();
|
|
13326
|
-
self2[LRU_LIST].unshiftNode(node);
|
|
12852
|
+
set(key, value) {
|
|
12853
|
+
const deleted = this.delete(key);
|
|
12854
|
+
if (!deleted && value !== void 0) {
|
|
12855
|
+
if (this.map.size >= this.max) {
|
|
12856
|
+
const firstKey = this.map.keys().next().value;
|
|
12857
|
+
this.delete(firstKey);
|
|
13327
12858
|
}
|
|
12859
|
+
this.map.set(key, value);
|
|
13328
12860
|
}
|
|
13329
|
-
return
|
|
13330
|
-
}
|
|
13331
|
-
};
|
|
13332
|
-
const isStale = (self2, hit) => {
|
|
13333
|
-
if (!hit || !hit.maxAge && !self2[MAX_AGE])
|
|
13334
|
-
return false;
|
|
13335
|
-
const diff = Date.now() - hit.now;
|
|
13336
|
-
return hit.maxAge ? diff > hit.maxAge : self2[MAX_AGE] && diff > self2[MAX_AGE];
|
|
13337
|
-
};
|
|
13338
|
-
const trim = (self2) => {
|
|
13339
|
-
if (self2[LENGTH] > self2[MAX]) {
|
|
13340
|
-
for (let walker = self2[LRU_LIST].tail; self2[LENGTH] > self2[MAX] && walker !== null; ) {
|
|
13341
|
-
const prev = walker.prev;
|
|
13342
|
-
del(self2, walker);
|
|
13343
|
-
walker = prev;
|
|
13344
|
-
}
|
|
13345
|
-
}
|
|
13346
|
-
};
|
|
13347
|
-
const del = (self2, node) => {
|
|
13348
|
-
if (node) {
|
|
13349
|
-
const hit = node.value;
|
|
13350
|
-
if (self2[DISPOSE])
|
|
13351
|
-
self2[DISPOSE](hit.key, hit.value);
|
|
13352
|
-
self2[LENGTH] -= hit.length;
|
|
13353
|
-
self2[CACHE].delete(hit.key);
|
|
13354
|
-
self2[LRU_LIST].removeNode(node);
|
|
12861
|
+
return this;
|
|
13355
12862
|
}
|
|
13356
|
-
}
|
|
13357
|
-
|
|
13358
|
-
|
|
13359
|
-
this.key = key;
|
|
13360
|
-
this.value = value;
|
|
13361
|
-
this.length = length;
|
|
13362
|
-
this.now = now;
|
|
13363
|
-
this.maxAge = maxAge || 0;
|
|
13364
|
-
}
|
|
13365
|
-
}
|
|
13366
|
-
const forEachStep = (self2, fn, node, thisp) => {
|
|
13367
|
-
let hit = node.value;
|
|
13368
|
-
if (isStale(self2, hit)) {
|
|
13369
|
-
del(self2, node);
|
|
13370
|
-
if (!self2[ALLOW_STALE])
|
|
13371
|
-
hit = void 0;
|
|
13372
|
-
}
|
|
13373
|
-
if (hit)
|
|
13374
|
-
fn.call(thisp, hit.value, hit.key, self2);
|
|
13375
|
-
};
|
|
13376
|
-
lruCache = LRUCache;
|
|
13377
|
-
return lruCache;
|
|
12863
|
+
}
|
|
12864
|
+
lrucache = LRUCache;
|
|
12865
|
+
return lrucache;
|
|
13378
12866
|
}
|
|
13379
12867
|
var range;
|
|
13380
12868
|
var hasRequiredRange;
|
|
13381
12869
|
function requireRange() {
|
|
13382
12870
|
if (hasRequiredRange) return range;
|
|
13383
12871
|
hasRequiredRange = 1;
|
|
12872
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
13384
12873
|
class Range {
|
|
13385
12874
|
constructor(range2, options) {
|
|
13386
12875
|
options = parseOptions(options);
|
|
@@ -13394,16 +12883,16 @@ function requireRange() {
|
|
|
13394
12883
|
if (range2 instanceof Comparator) {
|
|
13395
12884
|
this.raw = range2.value;
|
|
13396
12885
|
this.set = [[range2]];
|
|
13397
|
-
this.
|
|
12886
|
+
this.formatted = void 0;
|
|
13398
12887
|
return this;
|
|
13399
12888
|
}
|
|
13400
12889
|
this.options = options;
|
|
13401
12890
|
this.loose = !!options.loose;
|
|
13402
12891
|
this.includePrerelease = !!options.includePrerelease;
|
|
13403
|
-
this.raw = range2;
|
|
13404
|
-
this.set =
|
|
12892
|
+
this.raw = range2.trim().replace(SPACE_CHARACTERS, " ");
|
|
12893
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
13405
12894
|
if (!this.set.length) {
|
|
13406
|
-
throw new TypeError(`Invalid SemVer Range: ${
|
|
12895
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
13407
12896
|
}
|
|
13408
12897
|
if (this.set.length > 1) {
|
|
13409
12898
|
const first = this.set[0];
|
|
@@ -13419,21 +12908,35 @@ function requireRange() {
|
|
|
13419
12908
|
}
|
|
13420
12909
|
}
|
|
13421
12910
|
}
|
|
13422
|
-
this.
|
|
12911
|
+
this.formatted = void 0;
|
|
12912
|
+
}
|
|
12913
|
+
get range() {
|
|
12914
|
+
if (this.formatted === void 0) {
|
|
12915
|
+
this.formatted = "";
|
|
12916
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
12917
|
+
if (i > 0) {
|
|
12918
|
+
this.formatted += "||";
|
|
12919
|
+
}
|
|
12920
|
+
const comps = this.set[i];
|
|
12921
|
+
for (let k = 0; k < comps.length; k++) {
|
|
12922
|
+
if (k > 0) {
|
|
12923
|
+
this.formatted += " ";
|
|
12924
|
+
}
|
|
12925
|
+
this.formatted += comps[k].toString().trim();
|
|
12926
|
+
}
|
|
12927
|
+
}
|
|
12928
|
+
}
|
|
12929
|
+
return this.formatted;
|
|
13423
12930
|
}
|
|
13424
12931
|
format() {
|
|
13425
|
-
this.range = this.set.map((comps) => {
|
|
13426
|
-
return comps.join(" ").trim();
|
|
13427
|
-
}).join("||").trim();
|
|
13428
12932
|
return this.range;
|
|
13429
12933
|
}
|
|
13430
12934
|
toString() {
|
|
13431
12935
|
return this.range;
|
|
13432
12936
|
}
|
|
13433
12937
|
parseRange(range2) {
|
|
13434
|
-
|
|
13435
|
-
const
|
|
13436
|
-
const memoKey = `parseRange:${memoOpts}:${range2}`;
|
|
12938
|
+
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
12939
|
+
const memoKey = memoOpts + ":" + range2;
|
|
13437
12940
|
const cached = cache.get(memoKey);
|
|
13438
12941
|
if (cached) {
|
|
13439
12942
|
return cached;
|
|
@@ -13445,8 +12948,9 @@ function requireRange() {
|
|
|
13445
12948
|
range2 = range2.replace(re2[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
13446
12949
|
debug("comparator trim", range2);
|
|
13447
12950
|
range2 = range2.replace(re2[t.TILDETRIM], tildeTrimReplace);
|
|
12951
|
+
debug("tilde trim", range2);
|
|
13448
12952
|
range2 = range2.replace(re2[t.CARETTRIM], caretTrimReplace);
|
|
13449
|
-
|
|
12953
|
+
debug("caret trim", range2);
|
|
13450
12954
|
let rangeList = range2.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
13451
12955
|
if (loose) {
|
|
13452
12956
|
rangeList = rangeList.filter((comp) => {
|
|
@@ -13505,19 +13009,20 @@ function requireRange() {
|
|
|
13505
13009
|
}
|
|
13506
13010
|
}
|
|
13507
13011
|
range = Range;
|
|
13508
|
-
const LRU =
|
|
13509
|
-
const cache = new LRU(
|
|
13012
|
+
const LRU = requireLrucache();
|
|
13013
|
+
const cache = new LRU();
|
|
13510
13014
|
const parseOptions = requireParseOptions();
|
|
13511
13015
|
const Comparator = requireComparator();
|
|
13512
13016
|
const debug = requireDebug();
|
|
13513
13017
|
const SemVer = requireSemver$1();
|
|
13514
13018
|
const {
|
|
13515
|
-
|
|
13019
|
+
safeRe: re2,
|
|
13516
13020
|
t,
|
|
13517
13021
|
comparatorTrimReplace,
|
|
13518
13022
|
tildeTrimReplace,
|
|
13519
13023
|
caretTrimReplace
|
|
13520
13024
|
} = requireRe();
|
|
13025
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = requireConstants();
|
|
13521
13026
|
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
13522
13027
|
const isAny = (c) => c.value === "";
|
|
13523
13028
|
const isSatisfiable = (comparators, options) => {
|
|
@@ -13545,9 +13050,9 @@ function requireRange() {
|
|
|
13545
13050
|
return comp;
|
|
13546
13051
|
};
|
|
13547
13052
|
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
13548
|
-
const replaceTildes = (comp, options) =>
|
|
13549
|
-
return replaceTilde(c, options);
|
|
13550
|
-
}
|
|
13053
|
+
const replaceTildes = (comp, options) => {
|
|
13054
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
13055
|
+
};
|
|
13551
13056
|
const replaceTilde = (comp, options) => {
|
|
13552
13057
|
const r = options.loose ? re2[t.TILDELOOSE] : re2[t.TILDE];
|
|
13553
13058
|
return comp.replace(r, (_, M, m, p, pr) => {
|
|
@@ -13569,9 +13074,9 @@ function requireRange() {
|
|
|
13569
13074
|
return ret;
|
|
13570
13075
|
});
|
|
13571
13076
|
};
|
|
13572
|
-
const replaceCarets = (comp, options) =>
|
|
13573
|
-
return replaceCaret(c, options);
|
|
13574
|
-
}
|
|
13077
|
+
const replaceCarets = (comp, options) => {
|
|
13078
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
13079
|
+
};
|
|
13575
13080
|
const replaceCaret = (comp, options) => {
|
|
13576
13081
|
debug("caret", comp, options);
|
|
13577
13082
|
const r = options.loose ? re2[t.CARETLOOSE] : re2[t.CARET];
|
|
@@ -13618,9 +13123,7 @@ function requireRange() {
|
|
|
13618
13123
|
};
|
|
13619
13124
|
const replaceXRanges = (comp, options) => {
|
|
13620
13125
|
debug("replaceXRanges", comp, options);
|
|
13621
|
-
return comp.split(/\s+/).map((c) =>
|
|
13622
|
-
return replaceXRange(c, options);
|
|
13623
|
-
}).join(" ");
|
|
13126
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
13624
13127
|
};
|
|
13625
13128
|
const replaceXRange = (comp, options) => {
|
|
13626
13129
|
comp = comp.trim();
|
|
@@ -13685,7 +13188,7 @@ function requireRange() {
|
|
|
13685
13188
|
debug("replaceGTE0", comp, options);
|
|
13686
13189
|
return comp.trim().replace(re2[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
13687
13190
|
};
|
|
13688
|
-
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr
|
|
13191
|
+
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
13689
13192
|
if (isX(fM)) {
|
|
13690
13193
|
from = "";
|
|
13691
13194
|
} else if (isX(fm)) {
|
|
@@ -13756,6 +13259,7 @@ function requireComparator() {
|
|
|
13756
13259
|
comp = comp.value;
|
|
13757
13260
|
}
|
|
13758
13261
|
}
|
|
13262
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
13759
13263
|
debug("comparator", comp, options);
|
|
13760
13264
|
this.options = options;
|
|
13761
13265
|
this.loose = !!options.loose;
|
|
@@ -13804,12 +13308,6 @@ function requireComparator() {
|
|
|
13804
13308
|
if (!(comp instanceof Comparator)) {
|
|
13805
13309
|
throw new TypeError("a Comparator is required");
|
|
13806
13310
|
}
|
|
13807
|
-
if (!options || typeof options !== "object") {
|
|
13808
|
-
options = {
|
|
13809
|
-
loose: !!options,
|
|
13810
|
-
includePrerelease: false
|
|
13811
|
-
};
|
|
13812
|
-
}
|
|
13813
13311
|
if (this.operator === "") {
|
|
13814
13312
|
if (this.value === "") {
|
|
13815
13313
|
return true;
|
|
@@ -13821,18 +13319,34 @@ function requireComparator() {
|
|
|
13821
13319
|
}
|
|
13822
13320
|
return new Range(this.value, options).test(comp.semver);
|
|
13823
13321
|
}
|
|
13824
|
-
|
|
13825
|
-
|
|
13826
|
-
|
|
13827
|
-
|
|
13828
|
-
|
|
13829
|
-
|
|
13830
|
-
|
|
13322
|
+
options = parseOptions(options);
|
|
13323
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
|
|
13324
|
+
return false;
|
|
13325
|
+
}
|
|
13326
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
|
|
13327
|
+
return false;
|
|
13328
|
+
}
|
|
13329
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
|
|
13330
|
+
return true;
|
|
13331
|
+
}
|
|
13332
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
|
|
13333
|
+
return true;
|
|
13334
|
+
}
|
|
13335
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
|
|
13336
|
+
return true;
|
|
13337
|
+
}
|
|
13338
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
|
|
13339
|
+
return true;
|
|
13340
|
+
}
|
|
13341
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
|
|
13342
|
+
return true;
|
|
13343
|
+
}
|
|
13344
|
+
return false;
|
|
13831
13345
|
}
|
|
13832
13346
|
}
|
|
13833
13347
|
comparator = Comparator;
|
|
13834
13348
|
const parseOptions = requireParseOptions();
|
|
13835
|
-
const {
|
|
13349
|
+
const { safeRe: re2, t } = requireRe();
|
|
13836
13350
|
const cmp = requireCmp();
|
|
13837
13351
|
const debug = requireDebug();
|
|
13838
13352
|
const SemVer = requireSemver$1();
|
|
@@ -14097,7 +13611,7 @@ function requireIntersects() {
|
|
|
14097
13611
|
const intersects = (r1, r2, options) => {
|
|
14098
13612
|
r1 = new Range(r1, options);
|
|
14099
13613
|
r2 = new Range(r2, options);
|
|
14100
|
-
return r1.intersects(r2);
|
|
13614
|
+
return r1.intersects(r2, options);
|
|
14101
13615
|
};
|
|
14102
13616
|
intersects_1 = intersects;
|
|
14103
13617
|
return intersects_1;
|
|
@@ -14183,6 +13697,8 @@ function requireSubset() {
|
|
|
14183
13697
|
}
|
|
14184
13698
|
return true;
|
|
14185
13699
|
};
|
|
13700
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
13701
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
14186
13702
|
const simpleSubset = (sub, dom, options) => {
|
|
14187
13703
|
if (sub === dom) {
|
|
14188
13704
|
return true;
|
|
@@ -14191,16 +13707,16 @@ function requireSubset() {
|
|
|
14191
13707
|
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
14192
13708
|
return true;
|
|
14193
13709
|
} else if (options.includePrerelease) {
|
|
14194
|
-
sub =
|
|
13710
|
+
sub = minimumVersionWithPreRelease;
|
|
14195
13711
|
} else {
|
|
14196
|
-
sub =
|
|
13712
|
+
sub = minimumVersion;
|
|
14197
13713
|
}
|
|
14198
13714
|
}
|
|
14199
13715
|
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
14200
13716
|
if (options.includePrerelease) {
|
|
14201
13717
|
return true;
|
|
14202
13718
|
} else {
|
|
14203
|
-
dom =
|
|
13719
|
+
dom = minimumVersion;
|
|
14204
13720
|
}
|
|
14205
13721
|
}
|
|
14206
13722
|
const eqSet = /* @__PURE__ */ new Set();
|
|
@@ -14401,6 +13917,7 @@ function requireSemver() {
|
|
|
14401
13917
|
src: internalRe.src,
|
|
14402
13918
|
tokens: internalRe.t,
|
|
14403
13919
|
SEMVER_SPEC_VERSION: constants2.SEMVER_SPEC_VERSION,
|
|
13920
|
+
RELEASE_TYPES: constants2.RELEASE_TYPES,
|
|
14404
13921
|
compareIdentifiers: identifiers2.compareIdentifiers,
|
|
14405
13922
|
rcompareIdentifiers: identifiers2.rcompareIdentifiers
|
|
14406
13923
|
};
|