@pipelab/plugin-minify 1.0.0-beta.11 → 1.0.0-beta.13
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.cjs +3988 -873
- package/dist/index.mjs +3446 -334
- package/dist/index.mjs.map +1 -1
- package/package.json +25 -3
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { fileURLToPath } from "node:url";
|
|
|
5
5
|
import { hostname } from "os";
|
|
6
6
|
import { normalize } from "path";
|
|
7
7
|
import { formatWithOptions, types } from "util";
|
|
8
|
-
import { existsSync } from "node:fs";
|
|
8
|
+
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
9
9
|
import http from "node:http";
|
|
10
10
|
import { webcrypto } from "node:crypto";
|
|
11
11
|
//#region ../../node_modules/tsdown/esm-shims.js
|
|
@@ -199,7 +199,7 @@ esbuild in this environment because esbuild relies on this invariant. This
|
|
|
199
199
|
is not a problem with esbuild. You need to fix your environment instead.
|
|
200
200
|
`);
|
|
201
201
|
function readUInt32LE(buffer, offset) {
|
|
202
|
-
return buffer[offset++] | buffer[offset++] << 8 | buffer[offset++] << 16 | buffer[offset++] << 24;
|
|
202
|
+
return (buffer[offset++] | buffer[offset++] << 8 | buffer[offset++] << 16 | buffer[offset++] << 24) >>> 0;
|
|
203
203
|
}
|
|
204
204
|
function writeUInt32LE(buffer, value, offset) {
|
|
205
205
|
buffer[offset++] = value;
|
|
@@ -207,6 +207,220 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
207
207
|
buffer[offset++] = value >> 16;
|
|
208
208
|
buffer[offset++] = value >> 24;
|
|
209
209
|
}
|
|
210
|
+
var fromCharCode = String.fromCharCode;
|
|
211
|
+
function throwSyntaxError(bytes, index, message) {
|
|
212
|
+
const c = bytes[index];
|
|
213
|
+
let line = 1;
|
|
214
|
+
let column = 0;
|
|
215
|
+
for (let i = 0; i < index; i++) if (bytes[i] === 10) {
|
|
216
|
+
line++;
|
|
217
|
+
column = 0;
|
|
218
|
+
} else column++;
|
|
219
|
+
throw new SyntaxError(message ? message : index === bytes.length ? "Unexpected end of input while parsing JSON" : c >= 32 && c <= 126 ? `Unexpected character ${fromCharCode(c)} in JSON at position ${index} (line ${line}, column ${column})` : `Unexpected byte 0x${c.toString(16)} in JSON at position ${index} (line ${line}, column ${column})`);
|
|
220
|
+
}
|
|
221
|
+
function JSON_parse(bytes) {
|
|
222
|
+
if (!(bytes instanceof Uint8Array)) throw new Error(`JSON input must be a Uint8Array`);
|
|
223
|
+
const propertyStack = [];
|
|
224
|
+
const objectStack = [];
|
|
225
|
+
const stateStack = [];
|
|
226
|
+
const length = bytes.length;
|
|
227
|
+
let property = null;
|
|
228
|
+
let state = 0;
|
|
229
|
+
let object;
|
|
230
|
+
let i = 0;
|
|
231
|
+
while (i < length) {
|
|
232
|
+
let c = bytes[i++];
|
|
233
|
+
if (c <= 32) continue;
|
|
234
|
+
let value;
|
|
235
|
+
if (state === 2 && property === null && c !== 34 && c !== 125) throwSyntaxError(bytes, --i);
|
|
236
|
+
switch (c) {
|
|
237
|
+
case 116:
|
|
238
|
+
if (bytes[i++] !== 114 || bytes[i++] !== 117 || bytes[i++] !== 101) throwSyntaxError(bytes, --i);
|
|
239
|
+
value = true;
|
|
240
|
+
break;
|
|
241
|
+
case 102:
|
|
242
|
+
if (bytes[i++] !== 97 || bytes[i++] !== 108 || bytes[i++] !== 115 || bytes[i++] !== 101) throwSyntaxError(bytes, --i);
|
|
243
|
+
value = false;
|
|
244
|
+
break;
|
|
245
|
+
case 110:
|
|
246
|
+
if (bytes[i++] !== 117 || bytes[i++] !== 108 || bytes[i++] !== 108) throwSyntaxError(bytes, --i);
|
|
247
|
+
value = null;
|
|
248
|
+
break;
|
|
249
|
+
case 45:
|
|
250
|
+
case 46:
|
|
251
|
+
case 48:
|
|
252
|
+
case 49:
|
|
253
|
+
case 50:
|
|
254
|
+
case 51:
|
|
255
|
+
case 52:
|
|
256
|
+
case 53:
|
|
257
|
+
case 54:
|
|
258
|
+
case 55:
|
|
259
|
+
case 56:
|
|
260
|
+
case 57: {
|
|
261
|
+
let index = i;
|
|
262
|
+
value = fromCharCode(c);
|
|
263
|
+
c = bytes[i];
|
|
264
|
+
while (true) {
|
|
265
|
+
switch (c) {
|
|
266
|
+
case 43:
|
|
267
|
+
case 45:
|
|
268
|
+
case 46:
|
|
269
|
+
case 48:
|
|
270
|
+
case 49:
|
|
271
|
+
case 50:
|
|
272
|
+
case 51:
|
|
273
|
+
case 52:
|
|
274
|
+
case 53:
|
|
275
|
+
case 54:
|
|
276
|
+
case 55:
|
|
277
|
+
case 56:
|
|
278
|
+
case 57:
|
|
279
|
+
case 101:
|
|
280
|
+
case 69:
|
|
281
|
+
value += fromCharCode(c);
|
|
282
|
+
c = bytes[++i];
|
|
283
|
+
continue;
|
|
284
|
+
}
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
value = +value;
|
|
288
|
+
if (isNaN(value)) throwSyntaxError(bytes, --index, "Invalid number");
|
|
289
|
+
break;
|
|
290
|
+
}
|
|
291
|
+
case 34:
|
|
292
|
+
value = "";
|
|
293
|
+
while (true) {
|
|
294
|
+
if (i >= length) throwSyntaxError(bytes, length);
|
|
295
|
+
c = bytes[i++];
|
|
296
|
+
if (c === 34) break;
|
|
297
|
+
else if (c === 92) switch (bytes[i++]) {
|
|
298
|
+
case 34:
|
|
299
|
+
value += "\"";
|
|
300
|
+
break;
|
|
301
|
+
case 47:
|
|
302
|
+
value += "/";
|
|
303
|
+
break;
|
|
304
|
+
case 92:
|
|
305
|
+
value += "\\";
|
|
306
|
+
break;
|
|
307
|
+
case 98:
|
|
308
|
+
value += "\b";
|
|
309
|
+
break;
|
|
310
|
+
case 102:
|
|
311
|
+
value += "\f";
|
|
312
|
+
break;
|
|
313
|
+
case 110:
|
|
314
|
+
value += "\n";
|
|
315
|
+
break;
|
|
316
|
+
case 114:
|
|
317
|
+
value += "\r";
|
|
318
|
+
break;
|
|
319
|
+
case 116:
|
|
320
|
+
value += " ";
|
|
321
|
+
break;
|
|
322
|
+
case 117: {
|
|
323
|
+
let code = 0;
|
|
324
|
+
for (let j = 0; j < 4; j++) {
|
|
325
|
+
c = bytes[i++];
|
|
326
|
+
code <<= 4;
|
|
327
|
+
if (c >= 48 && c <= 57) code |= c - 48;
|
|
328
|
+
else if (c >= 97 && c <= 102) code |= c + -87;
|
|
329
|
+
else if (c >= 65 && c <= 70) code |= c + -55;
|
|
330
|
+
else throwSyntaxError(bytes, --i);
|
|
331
|
+
}
|
|
332
|
+
value += fromCharCode(code);
|
|
333
|
+
break;
|
|
334
|
+
}
|
|
335
|
+
default:
|
|
336
|
+
throwSyntaxError(bytes, --i);
|
|
337
|
+
break;
|
|
338
|
+
}
|
|
339
|
+
else if (c <= 127) value += fromCharCode(c);
|
|
340
|
+
else if ((c & 224) === 192) value += fromCharCode((c & 31) << 6 | bytes[i++] & 63);
|
|
341
|
+
else if ((c & 240) === 224) value += fromCharCode((c & 15) << 12 | (bytes[i++] & 63) << 6 | bytes[i++] & 63);
|
|
342
|
+
else if ((c & 248) == 240) {
|
|
343
|
+
let codePoint = (c & 7) << 18 | (bytes[i++] & 63) << 12 | (bytes[i++] & 63) << 6 | bytes[i++] & 63;
|
|
344
|
+
if (codePoint > 65535) {
|
|
345
|
+
codePoint -= 65536;
|
|
346
|
+
value += fromCharCode(codePoint >> 10 & 1023 | 55296);
|
|
347
|
+
codePoint = 56320 | codePoint & 1023;
|
|
348
|
+
}
|
|
349
|
+
value += fromCharCode(codePoint);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
value[0];
|
|
353
|
+
break;
|
|
354
|
+
case 91:
|
|
355
|
+
value = [];
|
|
356
|
+
propertyStack.push(property);
|
|
357
|
+
objectStack.push(object);
|
|
358
|
+
stateStack.push(state);
|
|
359
|
+
property = null;
|
|
360
|
+
object = value;
|
|
361
|
+
state = 1;
|
|
362
|
+
continue;
|
|
363
|
+
case 123:
|
|
364
|
+
value = {};
|
|
365
|
+
propertyStack.push(property);
|
|
366
|
+
objectStack.push(object);
|
|
367
|
+
stateStack.push(state);
|
|
368
|
+
property = null;
|
|
369
|
+
object = value;
|
|
370
|
+
state = 2;
|
|
371
|
+
continue;
|
|
372
|
+
case 93:
|
|
373
|
+
if (state !== 1) throwSyntaxError(bytes, --i);
|
|
374
|
+
value = object;
|
|
375
|
+
property = propertyStack.pop();
|
|
376
|
+
object = objectStack.pop();
|
|
377
|
+
state = stateStack.pop();
|
|
378
|
+
break;
|
|
379
|
+
case 125:
|
|
380
|
+
if (state !== 2) throwSyntaxError(bytes, --i);
|
|
381
|
+
value = object;
|
|
382
|
+
property = propertyStack.pop();
|
|
383
|
+
object = objectStack.pop();
|
|
384
|
+
state = stateStack.pop();
|
|
385
|
+
break;
|
|
386
|
+
default: throwSyntaxError(bytes, --i);
|
|
387
|
+
}
|
|
388
|
+
c = bytes[i];
|
|
389
|
+
while (c <= 32) c = bytes[++i];
|
|
390
|
+
switch (state) {
|
|
391
|
+
case 0:
|
|
392
|
+
if (i === length) return value;
|
|
393
|
+
break;
|
|
394
|
+
case 1:
|
|
395
|
+
object.push(value);
|
|
396
|
+
if (c === 44) {
|
|
397
|
+
i++;
|
|
398
|
+
continue;
|
|
399
|
+
}
|
|
400
|
+
if (c === 93) continue;
|
|
401
|
+
break;
|
|
402
|
+
case 2:
|
|
403
|
+
if (property === null) {
|
|
404
|
+
property = value;
|
|
405
|
+
if (c === 58) {
|
|
406
|
+
i++;
|
|
407
|
+
continue;
|
|
408
|
+
}
|
|
409
|
+
} else {
|
|
410
|
+
object[property] = value;
|
|
411
|
+
property = null;
|
|
412
|
+
if (c === 44) {
|
|
413
|
+
i++;
|
|
414
|
+
continue;
|
|
415
|
+
}
|
|
416
|
+
if (c === 125) continue;
|
|
417
|
+
}
|
|
418
|
+
break;
|
|
419
|
+
}
|
|
420
|
+
break;
|
|
421
|
+
}
|
|
422
|
+
throwSyntaxError(bytes, i);
|
|
423
|
+
}
|
|
210
424
|
var quote = JSON.stringify;
|
|
211
425
|
var buildLogLevelDefault = "warning";
|
|
212
426
|
var transformLogLevelDefault = "silent";
|
|
@@ -603,7 +817,7 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
603
817
|
if (isFirstPacket) {
|
|
604
818
|
isFirstPacket = false;
|
|
605
819
|
let binaryVersion = String.fromCharCode(...bytes);
|
|
606
|
-
if (binaryVersion !== "0.
|
|
820
|
+
if (binaryVersion !== "0.27.7") throw new Error(`Cannot start service: Host version "0.27.7" does not match binary version ${quote(binaryVersion)}`);
|
|
607
821
|
return;
|
|
608
822
|
}
|
|
609
823
|
let packet = decodePacket(bytes);
|
|
@@ -840,7 +1054,7 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
840
1054
|
const originalErrors = result.errors.slice();
|
|
841
1055
|
const originalWarnings = result.warnings.slice();
|
|
842
1056
|
if (response.outputFiles) result.outputFiles = response.outputFiles.map(convertOutputFiles);
|
|
843
|
-
if (response.metafile) result.metafile =
|
|
1057
|
+
if (response.metafile && response.metafile.length) result.metafile = parseJSON(response.metafile);
|
|
844
1058
|
if (response.mangleCache) result.mangleCache = response.mangleCache;
|
|
845
1059
|
if (response.writeToStdout !== void 0) console.log(decodeUTF8(response.writeToStdout).replace(/\n$/, ""));
|
|
846
1060
|
runOnEndCallbacks(result, (onEndErrors, onEndWarnings) => {
|
|
@@ -1512,6 +1726,15 @@ ${file}:${line}:${column}: ERROR: ${e.pluginName ? `[plugin: ${e.pluginName}] `
|
|
|
1512
1726
|
if (regexp.flags) result = `(?${regexp.flags})${result}`;
|
|
1513
1727
|
return result;
|
|
1514
1728
|
}
|
|
1729
|
+
function parseJSON(bytes) {
|
|
1730
|
+
let text;
|
|
1731
|
+
try {
|
|
1732
|
+
text = decodeUTF8(bytes);
|
|
1733
|
+
} catch {
|
|
1734
|
+
return JSON_parse(bytes);
|
|
1735
|
+
}
|
|
1736
|
+
return JSON.parse(text);
|
|
1737
|
+
}
|
|
1515
1738
|
var fs$33 = __require("fs");
|
|
1516
1739
|
var os$3 = __require("os");
|
|
1517
1740
|
var path$32 = __require("path");
|
|
@@ -1675,7 +1898,7 @@ for your current platform.`);
|
|
|
1675
1898
|
} catch (e) {}
|
|
1676
1899
|
if (pnpapi) {
|
|
1677
1900
|
const root = pnpapi.getPackageInformation(pnpapi.topLevel).packageLocation;
|
|
1678
|
-
const binTargetPath = path$32.join(root, "node_modules", ".cache", "esbuild", `pnpapi-${pkg.replace("/", "-")}-0.
|
|
1901
|
+
const binTargetPath = path$32.join(root, "node_modules", ".cache", "esbuild", `pnpapi-${pkg.replace("/", "-")}-0.27.7-${path$32.basename(subpath)}`);
|
|
1679
1902
|
if (!fs$33.existsSync(binTargetPath)) {
|
|
1680
1903
|
fs$33.mkdirSync(path$32.dirname(binTargetPath), { recursive: true });
|
|
1681
1904
|
fs$33.copyFileSync(binPath, binTargetPath);
|
|
@@ -1707,7 +1930,7 @@ for your current platform.`);
|
|
|
1707
1930
|
if (+major < 12 || +major === 12 && +minor < 17 || +major === 13 && +minor < 13) worker_threads = void 0;
|
|
1708
1931
|
}
|
|
1709
1932
|
var _a;
|
|
1710
|
-
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.
|
|
1933
|
+
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.27.7";
|
|
1711
1934
|
var esbuildCommandAndArgs = () => {
|
|
1712
1935
|
if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) throw new Error(`The esbuild JavaScript API cannot be bundled. Please mark the "esbuild" package as external so it's not included in the bundle.
|
|
1713
1936
|
|
|
@@ -1764,7 +1987,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
1764
1987
|
}
|
|
1765
1988
|
}
|
|
1766
1989
|
};
|
|
1767
|
-
var version = "0.
|
|
1990
|
+
var version = "0.27.7";
|
|
1768
1991
|
var build = (options) => ensureServiceIsRunning().build(options);
|
|
1769
1992
|
var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
|
|
1770
1993
|
var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
|
|
@@ -1867,7 +2090,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
1867
2090
|
var ensureServiceIsRunning = () => {
|
|
1868
2091
|
if (longLivedService) return longLivedService;
|
|
1869
2092
|
let [command, args] = esbuildCommandAndArgs();
|
|
1870
|
-
let child = child_process.spawn(command, args.concat(`--service=0.
|
|
2093
|
+
let child = child_process.spawn(command, args.concat(`--service=0.27.7`, "--ping"), {
|
|
1871
2094
|
windowsHide: true,
|
|
1872
2095
|
stdio: [
|
|
1873
2096
|
"pipe",
|
|
@@ -1971,7 +2194,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
1971
2194
|
esbuild: node_exports
|
|
1972
2195
|
});
|
|
1973
2196
|
callback(service);
|
|
1974
|
-
readFromStdout(child_process.execFileSync(command, args.concat(`--service=0.
|
|
2197
|
+
readFromStdout(child_process.execFileSync(command, args.concat(`--service=0.27.7`), {
|
|
1975
2198
|
cwd: defaultWD,
|
|
1976
2199
|
windowsHide: true,
|
|
1977
2200
|
input: stdin,
|
|
@@ -1989,7 +2212,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
1989
2212
|
workerData: {
|
|
1990
2213
|
workerPort,
|
|
1991
2214
|
defaultWD,
|
|
1992
|
-
esbuildVersion: "0.
|
|
2215
|
+
esbuildVersion: "0.27.7"
|
|
1993
2216
|
},
|
|
1994
2217
|
transferList: [workerPort],
|
|
1995
2218
|
execArgv: []
|
|
@@ -2144,8 +2367,8 @@ const finalVersion = () => {
|
|
|
2144
2367
|
throw new Error("Unable to go up on the final version!");
|
|
2145
2368
|
};
|
|
2146
2369
|
//#endregion
|
|
2147
|
-
//#region ../../node_modules/semver/internal/constants.js
|
|
2148
|
-
var require_constants$
|
|
2370
|
+
//#region ../../packages/migration/node_modules/semver/internal/constants.js
|
|
2371
|
+
var require_constants$10 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2149
2372
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
2150
2373
|
const MAX_LENGTH = 256;
|
|
2151
2374
|
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
@@ -2169,15 +2392,15 @@ var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2169
2392
|
};
|
|
2170
2393
|
}));
|
|
2171
2394
|
//#endregion
|
|
2172
|
-
//#region ../../node_modules/semver/internal/debug.js
|
|
2173
|
-
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2395
|
+
//#region ../../packages/migration/node_modules/semver/internal/debug.js
|
|
2396
|
+
var require_debug$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2174
2397
|
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
2175
2398
|
}));
|
|
2176
2399
|
//#endregion
|
|
2177
|
-
//#region ../../node_modules/semver/internal/re.js
|
|
2178
|
-
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2179
|
-
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$
|
|
2180
|
-
const debug = require_debug();
|
|
2400
|
+
//#region ../../packages/migration/node_modules/semver/internal/re.js
|
|
2401
|
+
var require_re$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2402
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$10();
|
|
2403
|
+
const debug = require_debug$2();
|
|
2181
2404
|
exports = module.exports = {};
|
|
2182
2405
|
const re = exports.re = [];
|
|
2183
2406
|
const safeRe = exports.safeRe = [];
|
|
@@ -2253,8 +2476,8 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2253
2476
|
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
2254
2477
|
}));
|
|
2255
2478
|
//#endregion
|
|
2256
|
-
//#region ../../node_modules/semver/internal/parse-options.js
|
|
2257
|
-
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2479
|
+
//#region ../../packages/migration/node_modules/semver/internal/parse-options.js
|
|
2480
|
+
var require_parse_options$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2258
2481
|
const looseOption = Object.freeze({ loose: true });
|
|
2259
2482
|
const emptyOpts = Object.freeze({});
|
|
2260
2483
|
const parseOptions = (options) => {
|
|
@@ -2265,8 +2488,8 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
2265
2488
|
module.exports = parseOptions;
|
|
2266
2489
|
}));
|
|
2267
2490
|
//#endregion
|
|
2268
|
-
//#region ../../node_modules/semver/internal/identifiers.js
|
|
2269
|
-
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2491
|
+
//#region ../../packages/migration/node_modules/semver/internal/identifiers.js
|
|
2492
|
+
var require_identifiers$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2270
2493
|
const numeric = /^[0-9]+$/;
|
|
2271
2494
|
const compareIdentifiers = (a, b) => {
|
|
2272
2495
|
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
@@ -2285,13 +2508,13 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2285
2508
|
};
|
|
2286
2509
|
}));
|
|
2287
2510
|
//#endregion
|
|
2288
|
-
//#region ../../node_modules/semver/classes/semver.js
|
|
2289
|
-
var require_semver$
|
|
2290
|
-
const debug = require_debug();
|
|
2291
|
-
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$
|
|
2292
|
-
const { safeRe: re, t } = require_re();
|
|
2293
|
-
const parseOptions = require_parse_options();
|
|
2294
|
-
const { compareIdentifiers } = require_identifiers();
|
|
2511
|
+
//#region ../../packages/migration/node_modules/semver/classes/semver.js
|
|
2512
|
+
var require_semver$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2513
|
+
const debug = require_debug$2();
|
|
2514
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$10();
|
|
2515
|
+
const { safeRe: re, t } = require_re$2();
|
|
2516
|
+
const parseOptions = require_parse_options$2();
|
|
2517
|
+
const { compareIdentifiers } = require_identifiers$2();
|
|
2295
2518
|
module.exports = class SemVer {
|
|
2296
2519
|
constructor(version, options) {
|
|
2297
2520
|
options = parseOptions(options);
|
|
@@ -2463,9 +2686,9 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2463
2686
|
};
|
|
2464
2687
|
}));
|
|
2465
2688
|
//#endregion
|
|
2466
|
-
//#region ../../node_modules/semver/functions/parse.js
|
|
2467
|
-
var require_parse$
|
|
2468
|
-
const SemVer = require_semver$
|
|
2689
|
+
//#region ../../packages/migration/node_modules/semver/functions/parse.js
|
|
2690
|
+
var require_parse$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2691
|
+
const SemVer = require_semver$5();
|
|
2469
2692
|
const parse = (version, options, throwErrors = false) => {
|
|
2470
2693
|
if (version instanceof SemVer) return version;
|
|
2471
2694
|
try {
|
|
@@ -2478,9 +2701,9 @@ var require_parse$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2478
2701
|
module.exports = parse;
|
|
2479
2702
|
}));
|
|
2480
2703
|
//#endregion
|
|
2481
|
-
//#region ../../node_modules/semver/functions/valid.js
|
|
2482
|
-
var require_valid$
|
|
2483
|
-
const parse = require_parse$
|
|
2704
|
+
//#region ../../packages/migration/node_modules/semver/functions/valid.js
|
|
2705
|
+
var require_valid$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2706
|
+
const parse = require_parse$5();
|
|
2484
2707
|
const valid = (version, options) => {
|
|
2485
2708
|
const v = parse(version, options);
|
|
2486
2709
|
return v ? v.version : null;
|
|
@@ -2488,9 +2711,9 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2488
2711
|
module.exports = valid;
|
|
2489
2712
|
}));
|
|
2490
2713
|
//#endregion
|
|
2491
|
-
//#region ../../node_modules/semver/functions/clean.js
|
|
2492
|
-
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2493
|
-
const parse = require_parse$
|
|
2714
|
+
//#region ../../packages/migration/node_modules/semver/functions/clean.js
|
|
2715
|
+
var require_clean$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2716
|
+
const parse = require_parse$5();
|
|
2494
2717
|
const clean = (version, options) => {
|
|
2495
2718
|
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
2496
2719
|
return s ? s.version : null;
|
|
@@ -2498,9 +2721,9 @@ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2498
2721
|
module.exports = clean;
|
|
2499
2722
|
}));
|
|
2500
2723
|
//#endregion
|
|
2501
|
-
//#region ../../node_modules/semver/functions/inc.js
|
|
2502
|
-
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2503
|
-
const SemVer = require_semver$
|
|
2724
|
+
//#region ../../packages/migration/node_modules/semver/functions/inc.js
|
|
2725
|
+
var require_inc$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2726
|
+
const SemVer = require_semver$5();
|
|
2504
2727
|
const inc = (version, release, options, identifier, identifierBase) => {
|
|
2505
2728
|
if (typeof options === "string") {
|
|
2506
2729
|
identifierBase = identifier;
|
|
@@ -2516,9 +2739,9 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2516
2739
|
module.exports = inc;
|
|
2517
2740
|
}));
|
|
2518
2741
|
//#endregion
|
|
2519
|
-
//#region ../../node_modules/semver/functions/diff.js
|
|
2520
|
-
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2521
|
-
const parse = require_parse$
|
|
2742
|
+
//#region ../../packages/migration/node_modules/semver/functions/diff.js
|
|
2743
|
+
var require_diff$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2744
|
+
const parse = require_parse$5();
|
|
2522
2745
|
const diff = (version1, version2) => {
|
|
2523
2746
|
const v1 = parse(version1, null, true);
|
|
2524
2747
|
const v2 = parse(version2, null, true);
|
|
@@ -2544,30 +2767,30 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2544
2767
|
module.exports = diff;
|
|
2545
2768
|
}));
|
|
2546
2769
|
//#endregion
|
|
2547
|
-
//#region ../../node_modules/semver/functions/major.js
|
|
2548
|
-
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2549
|
-
const SemVer = require_semver$
|
|
2770
|
+
//#region ../../packages/migration/node_modules/semver/functions/major.js
|
|
2771
|
+
var require_major$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2772
|
+
const SemVer = require_semver$5();
|
|
2550
2773
|
const major = (a, loose) => new SemVer(a, loose).major;
|
|
2551
2774
|
module.exports = major;
|
|
2552
2775
|
}));
|
|
2553
2776
|
//#endregion
|
|
2554
|
-
//#region ../../node_modules/semver/functions/minor.js
|
|
2555
|
-
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2556
|
-
const SemVer = require_semver$
|
|
2777
|
+
//#region ../../packages/migration/node_modules/semver/functions/minor.js
|
|
2778
|
+
var require_minor$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2779
|
+
const SemVer = require_semver$5();
|
|
2557
2780
|
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
2558
2781
|
module.exports = minor;
|
|
2559
2782
|
}));
|
|
2560
2783
|
//#endregion
|
|
2561
|
-
//#region ../../node_modules/semver/functions/patch.js
|
|
2562
|
-
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2563
|
-
const SemVer = require_semver$
|
|
2784
|
+
//#region ../../packages/migration/node_modules/semver/functions/patch.js
|
|
2785
|
+
var require_patch$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2786
|
+
const SemVer = require_semver$5();
|
|
2564
2787
|
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
2565
2788
|
module.exports = patch;
|
|
2566
2789
|
}));
|
|
2567
2790
|
//#endregion
|
|
2568
|
-
//#region ../../node_modules/semver/functions/prerelease.js
|
|
2569
|
-
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2570
|
-
const parse = require_parse$
|
|
2791
|
+
//#region ../../packages/migration/node_modules/semver/functions/prerelease.js
|
|
2792
|
+
var require_prerelease$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2793
|
+
const parse = require_parse$5();
|
|
2571
2794
|
const prerelease = (version, options) => {
|
|
2572
2795
|
const parsed = parse(version, options);
|
|
2573
2796
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
@@ -2575,30 +2798,30 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2575
2798
|
module.exports = prerelease;
|
|
2576
2799
|
}));
|
|
2577
2800
|
//#endregion
|
|
2578
|
-
//#region ../../node_modules/semver/functions/compare.js
|
|
2579
|
-
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2580
|
-
const SemVer = require_semver$
|
|
2801
|
+
//#region ../../packages/migration/node_modules/semver/functions/compare.js
|
|
2802
|
+
var require_compare$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2803
|
+
const SemVer = require_semver$5();
|
|
2581
2804
|
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
2582
2805
|
module.exports = compare;
|
|
2583
2806
|
}));
|
|
2584
2807
|
//#endregion
|
|
2585
|
-
//#region ../../node_modules/semver/functions/rcompare.js
|
|
2586
|
-
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2587
|
-
const compare = require_compare();
|
|
2808
|
+
//#region ../../packages/migration/node_modules/semver/functions/rcompare.js
|
|
2809
|
+
var require_rcompare$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2810
|
+
const compare = require_compare$2();
|
|
2588
2811
|
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
2589
2812
|
module.exports = rcompare;
|
|
2590
2813
|
}));
|
|
2591
2814
|
//#endregion
|
|
2592
|
-
//#region ../../node_modules/semver/functions/compare-loose.js
|
|
2593
|
-
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2594
|
-
const compare = require_compare();
|
|
2815
|
+
//#region ../../packages/migration/node_modules/semver/functions/compare-loose.js
|
|
2816
|
+
var require_compare_loose$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2817
|
+
const compare = require_compare$2();
|
|
2595
2818
|
const compareLoose = (a, b) => compare(a, b, true);
|
|
2596
2819
|
module.exports = compareLoose;
|
|
2597
2820
|
}));
|
|
2598
2821
|
//#endregion
|
|
2599
|
-
//#region ../../node_modules/semver/functions/compare-build.js
|
|
2600
|
-
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2601
|
-
const SemVer = require_semver$
|
|
2822
|
+
//#region ../../packages/migration/node_modules/semver/functions/compare-build.js
|
|
2823
|
+
var require_compare_build$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2824
|
+
const SemVer = require_semver$5();
|
|
2602
2825
|
const compareBuild = (a, b, loose) => {
|
|
2603
2826
|
const versionA = new SemVer(a, loose);
|
|
2604
2827
|
const versionB = new SemVer(b, loose);
|
|
@@ -2607,70 +2830,70 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
2607
2830
|
module.exports = compareBuild;
|
|
2608
2831
|
}));
|
|
2609
2832
|
//#endregion
|
|
2610
|
-
//#region ../../node_modules/semver/functions/sort.js
|
|
2611
|
-
var require_sort$
|
|
2612
|
-
const compareBuild = require_compare_build();
|
|
2833
|
+
//#region ../../packages/migration/node_modules/semver/functions/sort.js
|
|
2834
|
+
var require_sort$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2835
|
+
const compareBuild = require_compare_build$2();
|
|
2613
2836
|
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
2614
2837
|
module.exports = sort;
|
|
2615
2838
|
}));
|
|
2616
2839
|
//#endregion
|
|
2617
|
-
//#region ../../node_modules/semver/functions/rsort.js
|
|
2618
|
-
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2619
|
-
const compareBuild = require_compare_build();
|
|
2840
|
+
//#region ../../packages/migration/node_modules/semver/functions/rsort.js
|
|
2841
|
+
var require_rsort$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2842
|
+
const compareBuild = require_compare_build$2();
|
|
2620
2843
|
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
2621
2844
|
module.exports = rsort;
|
|
2622
2845
|
}));
|
|
2623
2846
|
//#endregion
|
|
2624
|
-
//#region ../../node_modules/semver/functions/gt.js
|
|
2625
|
-
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2626
|
-
const compare = require_compare();
|
|
2847
|
+
//#region ../../packages/migration/node_modules/semver/functions/gt.js
|
|
2848
|
+
var require_gt$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2849
|
+
const compare = require_compare$2();
|
|
2627
2850
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
2628
2851
|
module.exports = gt;
|
|
2629
2852
|
}));
|
|
2630
2853
|
//#endregion
|
|
2631
|
-
//#region ../../node_modules/semver/functions/lt.js
|
|
2632
|
-
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2633
|
-
const compare = require_compare();
|
|
2854
|
+
//#region ../../packages/migration/node_modules/semver/functions/lt.js
|
|
2855
|
+
var require_lt$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2856
|
+
const compare = require_compare$2();
|
|
2634
2857
|
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
2635
2858
|
module.exports = lt;
|
|
2636
2859
|
}));
|
|
2637
2860
|
//#endregion
|
|
2638
|
-
//#region ../../node_modules/semver/functions/eq.js
|
|
2639
|
-
var require_eq$
|
|
2640
|
-
const compare = require_compare();
|
|
2861
|
+
//#region ../../packages/migration/node_modules/semver/functions/eq.js
|
|
2862
|
+
var require_eq$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2863
|
+
const compare = require_compare$2();
|
|
2641
2864
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
2642
2865
|
module.exports = eq;
|
|
2643
2866
|
}));
|
|
2644
2867
|
//#endregion
|
|
2645
|
-
//#region ../../node_modules/semver/functions/neq.js
|
|
2646
|
-
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2647
|
-
const compare = require_compare();
|
|
2868
|
+
//#region ../../packages/migration/node_modules/semver/functions/neq.js
|
|
2869
|
+
var require_neq$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2870
|
+
const compare = require_compare$2();
|
|
2648
2871
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
2649
2872
|
module.exports = neq;
|
|
2650
2873
|
}));
|
|
2651
2874
|
//#endregion
|
|
2652
|
-
//#region ../../node_modules/semver/functions/gte.js
|
|
2653
|
-
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2654
|
-
const compare = require_compare();
|
|
2875
|
+
//#region ../../packages/migration/node_modules/semver/functions/gte.js
|
|
2876
|
+
var require_gte$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2877
|
+
const compare = require_compare$2();
|
|
2655
2878
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
2656
2879
|
module.exports = gte;
|
|
2657
2880
|
}));
|
|
2658
2881
|
//#endregion
|
|
2659
|
-
//#region ../../node_modules/semver/functions/lte.js
|
|
2660
|
-
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2661
|
-
const compare = require_compare();
|
|
2882
|
+
//#region ../../packages/migration/node_modules/semver/functions/lte.js
|
|
2883
|
+
var require_lte$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2884
|
+
const compare = require_compare$2();
|
|
2662
2885
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
2663
2886
|
module.exports = lte;
|
|
2664
2887
|
}));
|
|
2665
2888
|
//#endregion
|
|
2666
|
-
//#region ../../node_modules/semver/functions/cmp.js
|
|
2667
|
-
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2668
|
-
const eq = require_eq$
|
|
2669
|
-
const neq = require_neq();
|
|
2670
|
-
const gt = require_gt();
|
|
2671
|
-
const gte = require_gte();
|
|
2672
|
-
const lt = require_lt();
|
|
2673
|
-
const lte = require_lte();
|
|
2889
|
+
//#region ../../packages/migration/node_modules/semver/functions/cmp.js
|
|
2890
|
+
var require_cmp$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2891
|
+
const eq = require_eq$3();
|
|
2892
|
+
const neq = require_neq$2();
|
|
2893
|
+
const gt = require_gt$2();
|
|
2894
|
+
const gte = require_gte$2();
|
|
2895
|
+
const lt = require_lt$2();
|
|
2896
|
+
const lte = require_lte$2();
|
|
2674
2897
|
const cmp = (a, op, b, loose) => {
|
|
2675
2898
|
switch (op) {
|
|
2676
2899
|
case "===":
|
|
@@ -2695,11 +2918,11 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2695
2918
|
module.exports = cmp;
|
|
2696
2919
|
}));
|
|
2697
2920
|
//#endregion
|
|
2698
|
-
//#region ../../node_modules/semver/functions/coerce.js
|
|
2699
|
-
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2700
|
-
const SemVer = require_semver$
|
|
2701
|
-
const parse = require_parse$
|
|
2702
|
-
const { safeRe: re, t } = require_re();
|
|
2921
|
+
//#region ../../packages/migration/node_modules/semver/functions/coerce.js
|
|
2922
|
+
var require_coerce$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2923
|
+
const SemVer = require_semver$5();
|
|
2924
|
+
const parse = require_parse$5();
|
|
2925
|
+
const { safeRe: re, t } = require_re$2();
|
|
2703
2926
|
const coerce = (version, options) => {
|
|
2704
2927
|
if (version instanceof SemVer) return version;
|
|
2705
2928
|
if (typeof version === "number") version = String(version);
|
|
@@ -2723,8 +2946,8 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2723
2946
|
module.exports = coerce;
|
|
2724
2947
|
}));
|
|
2725
2948
|
//#endregion
|
|
2726
|
-
//#region ../../node_modules/semver/internal/lrucache.js
|
|
2727
|
-
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2949
|
+
//#region ../../packages/migration/node_modules/semver/internal/lrucache.js
|
|
2950
|
+
var require_lrucache$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2728
2951
|
var LRUCache = class {
|
|
2729
2952
|
constructor() {
|
|
2730
2953
|
this.max = 1e3;
|
|
@@ -2756,8 +2979,8 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2756
2979
|
module.exports = LRUCache;
|
|
2757
2980
|
}));
|
|
2758
2981
|
//#endregion
|
|
2759
|
-
//#region ../../node_modules/semver/classes/range.js
|
|
2760
|
-
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2982
|
+
//#region ../../packages/migration/node_modules/semver/classes/range.js
|
|
2983
|
+
var require_range$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2761
2984
|
const SPACE_CHARACTERS = /\s+/g;
|
|
2762
2985
|
module.exports = class Range {
|
|
2763
2986
|
constructor(range, options) {
|
|
@@ -2863,13 +3086,13 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2863
3086
|
return false;
|
|
2864
3087
|
}
|
|
2865
3088
|
};
|
|
2866
|
-
const cache = new (require_lrucache())();
|
|
2867
|
-
const parseOptions = require_parse_options();
|
|
2868
|
-
const Comparator = require_comparator();
|
|
2869
|
-
const debug = require_debug();
|
|
2870
|
-
const SemVer = require_semver$
|
|
2871
|
-
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
2872
|
-
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$
|
|
3089
|
+
const cache = new (require_lrucache$2())();
|
|
3090
|
+
const parseOptions = require_parse_options$2();
|
|
3091
|
+
const Comparator = require_comparator$2();
|
|
3092
|
+
const debug = require_debug$2();
|
|
3093
|
+
const SemVer = require_semver$5();
|
|
3094
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re$2();
|
|
3095
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$10();
|
|
2873
3096
|
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
2874
3097
|
const isAny = (c) => c.value === "";
|
|
2875
3098
|
const isSatisfiable = (comparators, options) => {
|
|
@@ -3028,8 +3251,8 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3028
3251
|
};
|
|
3029
3252
|
}));
|
|
3030
3253
|
//#endregion
|
|
3031
|
-
//#region ../../node_modules/semver/classes/comparator.js
|
|
3032
|
-
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3254
|
+
//#region ../../packages/migration/node_modules/semver/classes/comparator.js
|
|
3255
|
+
var require_comparator$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3033
3256
|
const ANY = Symbol("SemVer ANY");
|
|
3034
3257
|
module.exports = class Comparator {
|
|
3035
3258
|
static get ANY() {
|
|
@@ -3090,17 +3313,17 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3090
3313
|
return false;
|
|
3091
3314
|
}
|
|
3092
3315
|
};
|
|
3093
|
-
const parseOptions = require_parse_options();
|
|
3094
|
-
const { safeRe: re, t } = require_re();
|
|
3095
|
-
const cmp = require_cmp();
|
|
3096
|
-
const debug = require_debug();
|
|
3097
|
-
const SemVer = require_semver$
|
|
3098
|
-
const Range = require_range();
|
|
3316
|
+
const parseOptions = require_parse_options$2();
|
|
3317
|
+
const { safeRe: re, t } = require_re$2();
|
|
3318
|
+
const cmp = require_cmp$2();
|
|
3319
|
+
const debug = require_debug$2();
|
|
3320
|
+
const SemVer = require_semver$5();
|
|
3321
|
+
const Range = require_range$2();
|
|
3099
3322
|
}));
|
|
3100
3323
|
//#endregion
|
|
3101
|
-
//#region ../../node_modules/semver/functions/satisfies.js
|
|
3102
|
-
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3103
|
-
const Range = require_range();
|
|
3324
|
+
//#region ../../packages/migration/node_modules/semver/functions/satisfies.js
|
|
3325
|
+
var require_satisfies$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3326
|
+
const Range = require_range$2();
|
|
3104
3327
|
const satisfies = (version, range, options) => {
|
|
3105
3328
|
try {
|
|
3106
3329
|
range = new Range(range, options);
|
|
@@ -3112,17 +3335,17 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3112
3335
|
module.exports = satisfies;
|
|
3113
3336
|
}));
|
|
3114
3337
|
//#endregion
|
|
3115
|
-
//#region ../../node_modules/semver/ranges/to-comparators.js
|
|
3116
|
-
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3117
|
-
const Range = require_range();
|
|
3338
|
+
//#region ../../packages/migration/node_modules/semver/ranges/to-comparators.js
|
|
3339
|
+
var require_to_comparators$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3340
|
+
const Range = require_range$2();
|
|
3118
3341
|
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
3119
3342
|
module.exports = toComparators;
|
|
3120
3343
|
}));
|
|
3121
3344
|
//#endregion
|
|
3122
|
-
//#region ../../node_modules/semver/ranges/max-satisfying.js
|
|
3123
|
-
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3124
|
-
const SemVer = require_semver$
|
|
3125
|
-
const Range = require_range();
|
|
3345
|
+
//#region ../../packages/migration/node_modules/semver/ranges/max-satisfying.js
|
|
3346
|
+
var require_max_satisfying$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3347
|
+
const SemVer = require_semver$5();
|
|
3348
|
+
const Range = require_range$2();
|
|
3126
3349
|
const maxSatisfying = (versions, range, options) => {
|
|
3127
3350
|
let max = null;
|
|
3128
3351
|
let maxSV = null;
|
|
@@ -3145,10 +3368,10 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
3145
3368
|
module.exports = maxSatisfying;
|
|
3146
3369
|
}));
|
|
3147
3370
|
//#endregion
|
|
3148
|
-
//#region ../../node_modules/semver/ranges/min-satisfying.js
|
|
3149
|
-
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3150
|
-
const SemVer = require_semver$
|
|
3151
|
-
const Range = require_range();
|
|
3371
|
+
//#region ../../packages/migration/node_modules/semver/ranges/min-satisfying.js
|
|
3372
|
+
var require_min_satisfying$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3373
|
+
const SemVer = require_semver$5();
|
|
3374
|
+
const Range = require_range$2();
|
|
3152
3375
|
const minSatisfying = (versions, range, options) => {
|
|
3153
3376
|
let min = null;
|
|
3154
3377
|
let minSV = null;
|
|
@@ -3171,11 +3394,11 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
3171
3394
|
module.exports = minSatisfying;
|
|
3172
3395
|
}));
|
|
3173
3396
|
//#endregion
|
|
3174
|
-
//#region ../../node_modules/semver/ranges/min-version.js
|
|
3175
|
-
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3176
|
-
const SemVer = require_semver$
|
|
3177
|
-
const Range = require_range();
|
|
3178
|
-
const gt = require_gt();
|
|
3397
|
+
//#region ../../packages/migration/node_modules/semver/ranges/min-version.js
|
|
3398
|
+
var require_min_version$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3399
|
+
const SemVer = require_semver$5();
|
|
3400
|
+
const Range = require_range$2();
|
|
3401
|
+
const gt = require_gt$2();
|
|
3179
3402
|
const minVersion = (range, loose) => {
|
|
3180
3403
|
range = new Range(range, loose);
|
|
3181
3404
|
let minver = new SemVer("0.0.0");
|
|
@@ -3210,9 +3433,9 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3210
3433
|
module.exports = minVersion;
|
|
3211
3434
|
}));
|
|
3212
3435
|
//#endregion
|
|
3213
|
-
//#region ../../node_modules/semver/ranges/valid.js
|
|
3214
|
-
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3215
|
-
const Range = require_range();
|
|
3436
|
+
//#region ../../packages/migration/node_modules/semver/ranges/valid.js
|
|
3437
|
+
var require_valid$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3438
|
+
const Range = require_range$2();
|
|
3216
3439
|
const validRange = (range, options) => {
|
|
3217
3440
|
try {
|
|
3218
3441
|
return new Range(range, options).range || "*";
|
|
@@ -3223,17 +3446,17 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3223
3446
|
module.exports = validRange;
|
|
3224
3447
|
}));
|
|
3225
3448
|
//#endregion
|
|
3226
|
-
//#region ../../node_modules/semver/ranges/outside.js
|
|
3227
|
-
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3228
|
-
const SemVer = require_semver$
|
|
3229
|
-
const Comparator = require_comparator();
|
|
3449
|
+
//#region ../../packages/migration/node_modules/semver/ranges/outside.js
|
|
3450
|
+
var require_outside$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3451
|
+
const SemVer = require_semver$5();
|
|
3452
|
+
const Comparator = require_comparator$2();
|
|
3230
3453
|
const { ANY } = Comparator;
|
|
3231
|
-
const Range = require_range();
|
|
3232
|
-
const satisfies = require_satisfies();
|
|
3233
|
-
const gt = require_gt();
|
|
3234
|
-
const lt = require_lt();
|
|
3235
|
-
const lte = require_lte();
|
|
3236
|
-
const gte = require_gte();
|
|
3454
|
+
const Range = require_range$2();
|
|
3455
|
+
const satisfies = require_satisfies$2();
|
|
3456
|
+
const gt = require_gt$2();
|
|
3457
|
+
const lt = require_lt$2();
|
|
3458
|
+
const lte = require_lte$2();
|
|
3459
|
+
const gte = require_gte$2();
|
|
3237
3460
|
const outside = (version, range, hilo, options) => {
|
|
3238
3461
|
version = new SemVer(version, options);
|
|
3239
3462
|
range = new Range(range, options);
|
|
@@ -3276,23 +3499,23 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3276
3499
|
module.exports = outside;
|
|
3277
3500
|
}));
|
|
3278
3501
|
//#endregion
|
|
3279
|
-
//#region ../../node_modules/semver/ranges/gtr.js
|
|
3280
|
-
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3281
|
-
const outside = require_outside();
|
|
3502
|
+
//#region ../../packages/migration/node_modules/semver/ranges/gtr.js
|
|
3503
|
+
var require_gtr$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3504
|
+
const outside = require_outside$2();
|
|
3282
3505
|
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
3283
3506
|
module.exports = gtr;
|
|
3284
3507
|
}));
|
|
3285
3508
|
//#endregion
|
|
3286
|
-
//#region ../../node_modules/semver/ranges/ltr.js
|
|
3287
|
-
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3288
|
-
const outside = require_outside();
|
|
3509
|
+
//#region ../../packages/migration/node_modules/semver/ranges/ltr.js
|
|
3510
|
+
var require_ltr$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3511
|
+
const outside = require_outside$2();
|
|
3289
3512
|
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
3290
3513
|
module.exports = ltr;
|
|
3291
3514
|
}));
|
|
3292
3515
|
//#endregion
|
|
3293
|
-
//#region ../../node_modules/semver/ranges/intersects.js
|
|
3294
|
-
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3295
|
-
const Range = require_range();
|
|
3516
|
+
//#region ../../packages/migration/node_modules/semver/ranges/intersects.js
|
|
3517
|
+
var require_intersects$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3518
|
+
const Range = require_range$2();
|
|
3296
3519
|
const intersects = (r1, r2, options) => {
|
|
3297
3520
|
r1 = new Range(r1, options);
|
|
3298
3521
|
r2 = new Range(r2, options);
|
|
@@ -3301,10 +3524,10 @@ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3301
3524
|
module.exports = intersects;
|
|
3302
3525
|
}));
|
|
3303
3526
|
//#endregion
|
|
3304
|
-
//#region ../../node_modules/semver/ranges/simplify.js
|
|
3305
|
-
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3306
|
-
const satisfies = require_satisfies();
|
|
3307
|
-
const compare = require_compare();
|
|
3527
|
+
//#region ../../packages/migration/node_modules/semver/ranges/simplify.js
|
|
3528
|
+
var require_simplify$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3529
|
+
const satisfies = require_satisfies$2();
|
|
3530
|
+
const compare = require_compare$2();
|
|
3308
3531
|
module.exports = (versions, range, options) => {
|
|
3309
3532
|
const set = [];
|
|
3310
3533
|
let first = null;
|
|
@@ -3331,13 +3554,13 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3331
3554
|
};
|
|
3332
3555
|
}));
|
|
3333
3556
|
//#endregion
|
|
3334
|
-
//#region ../../node_modules/semver/ranges/subset.js
|
|
3335
|
-
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3336
|
-
const Range = require_range();
|
|
3337
|
-
const Comparator = require_comparator();
|
|
3557
|
+
//#region ../../packages/migration/node_modules/semver/ranges/subset.js
|
|
3558
|
+
var require_subset$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3559
|
+
const Range = require_range$2();
|
|
3560
|
+
const Comparator = require_comparator$2();
|
|
3338
3561
|
const { ANY } = Comparator;
|
|
3339
|
-
const satisfies = require_satisfies();
|
|
3340
|
-
const compare = require_compare();
|
|
3562
|
+
const satisfies = require_satisfies$2();
|
|
3563
|
+
const compare = require_compare$2();
|
|
3341
3564
|
const subset = (sub, dom, options = {}) => {
|
|
3342
3565
|
if (sub === dom) return true;
|
|
3343
3566
|
sub = new Range(sub, options);
|
|
@@ -3426,50 +3649,50 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3426
3649
|
module.exports = subset;
|
|
3427
3650
|
}));
|
|
3428
3651
|
//#endregion
|
|
3429
|
-
//#region ../../
|
|
3430
|
-
var
|
|
3431
|
-
const internalRe = require_re();
|
|
3432
|
-
const constants = require_constants$
|
|
3433
|
-
const SemVer = require_semver$
|
|
3434
|
-
const identifiers = require_identifiers();
|
|
3652
|
+
//#region ../../packages/migration/src/utils/object-keys.ts
|
|
3653
|
+
var import_semver$1 = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3654
|
+
const internalRe = require_re$2();
|
|
3655
|
+
const constants = require_constants$10();
|
|
3656
|
+
const SemVer = require_semver$5();
|
|
3657
|
+
const identifiers = require_identifiers$2();
|
|
3435
3658
|
module.exports = {
|
|
3436
|
-
parse: require_parse$
|
|
3437
|
-
valid: require_valid$
|
|
3438
|
-
clean: require_clean(),
|
|
3439
|
-
inc: require_inc(),
|
|
3440
|
-
diff: require_diff(),
|
|
3441
|
-
major: require_major(),
|
|
3442
|
-
minor: require_minor(),
|
|
3443
|
-
patch: require_patch(),
|
|
3444
|
-
prerelease: require_prerelease(),
|
|
3445
|
-
compare: require_compare(),
|
|
3446
|
-
rcompare: require_rcompare(),
|
|
3447
|
-
compareLoose: require_compare_loose(),
|
|
3448
|
-
compareBuild: require_compare_build(),
|
|
3449
|
-
sort: require_sort$
|
|
3450
|
-
rsort: require_rsort(),
|
|
3451
|
-
gt: require_gt(),
|
|
3452
|
-
lt: require_lt(),
|
|
3453
|
-
eq: require_eq$
|
|
3454
|
-
neq: require_neq(),
|
|
3455
|
-
gte: require_gte(),
|
|
3456
|
-
lte: require_lte(),
|
|
3457
|
-
cmp: require_cmp(),
|
|
3458
|
-
coerce: require_coerce(),
|
|
3459
|
-
Comparator: require_comparator(),
|
|
3460
|
-
Range: require_range(),
|
|
3461
|
-
satisfies: require_satisfies(),
|
|
3462
|
-
toComparators: require_to_comparators(),
|
|
3463
|
-
maxSatisfying: require_max_satisfying(),
|
|
3464
|
-
minSatisfying: require_min_satisfying(),
|
|
3465
|
-
minVersion: require_min_version(),
|
|
3466
|
-
validRange: require_valid(),
|
|
3467
|
-
outside: require_outside(),
|
|
3468
|
-
gtr: require_gtr(),
|
|
3469
|
-
ltr: require_ltr(),
|
|
3470
|
-
intersects: require_intersects(),
|
|
3471
|
-
simplifyRange: require_simplify(),
|
|
3472
|
-
subset: require_subset(),
|
|
3659
|
+
parse: require_parse$5(),
|
|
3660
|
+
valid: require_valid$5(),
|
|
3661
|
+
clean: require_clean$2(),
|
|
3662
|
+
inc: require_inc$2(),
|
|
3663
|
+
diff: require_diff$2(),
|
|
3664
|
+
major: require_major$2(),
|
|
3665
|
+
minor: require_minor$2(),
|
|
3666
|
+
patch: require_patch$2(),
|
|
3667
|
+
prerelease: require_prerelease$2(),
|
|
3668
|
+
compare: require_compare$2(),
|
|
3669
|
+
rcompare: require_rcompare$2(),
|
|
3670
|
+
compareLoose: require_compare_loose$2(),
|
|
3671
|
+
compareBuild: require_compare_build$2(),
|
|
3672
|
+
sort: require_sort$3(),
|
|
3673
|
+
rsort: require_rsort$2(),
|
|
3674
|
+
gt: require_gt$2(),
|
|
3675
|
+
lt: require_lt$2(),
|
|
3676
|
+
eq: require_eq$3(),
|
|
3677
|
+
neq: require_neq$2(),
|
|
3678
|
+
gte: require_gte$2(),
|
|
3679
|
+
lte: require_lte$2(),
|
|
3680
|
+
cmp: require_cmp$2(),
|
|
3681
|
+
coerce: require_coerce$2(),
|
|
3682
|
+
Comparator: require_comparator$2(),
|
|
3683
|
+
Range: require_range$2(),
|
|
3684
|
+
satisfies: require_satisfies$2(),
|
|
3685
|
+
toComparators: require_to_comparators$2(),
|
|
3686
|
+
maxSatisfying: require_max_satisfying$2(),
|
|
3687
|
+
minSatisfying: require_min_satisfying$2(),
|
|
3688
|
+
minVersion: require_min_version$2(),
|
|
3689
|
+
validRange: require_valid$4(),
|
|
3690
|
+
outside: require_outside$2(),
|
|
3691
|
+
gtr: require_gtr$2(),
|
|
3692
|
+
ltr: require_ltr$2(),
|
|
3693
|
+
intersects: require_intersects$2(),
|
|
3694
|
+
simplifyRange: require_simplify$2(),
|
|
3695
|
+
subset: require_subset$2(),
|
|
3473
3696
|
SemVer,
|
|
3474
3697
|
re: internalRe.re,
|
|
3475
3698
|
src: internalRe.src,
|
|
@@ -3479,10 +3702,7 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3479
3702
|
compareIdentifiers: identifiers.compareIdentifiers,
|
|
3480
3703
|
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
3481
3704
|
};
|
|
3482
|
-
}));
|
|
3483
|
-
//#endregion
|
|
3484
|
-
//#region ../../packages/migration/src/utils/object-keys.ts
|
|
3485
|
-
var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
|
|
3705
|
+
})))(), 1);
|
|
3486
3706
|
const objectKeys = Object.keys;
|
|
3487
3707
|
//#endregion
|
|
3488
3708
|
//#region ../../node_modules/klona/dist/index.mjs
|
|
@@ -3691,19 +3911,6 @@ function custom(check2, message) {
|
|
|
3691
3911
|
}
|
|
3692
3912
|
};
|
|
3693
3913
|
}
|
|
3694
|
-
function lazy(getter) {
|
|
3695
|
-
return {
|
|
3696
|
-
kind: "schema",
|
|
3697
|
-
type: "lazy",
|
|
3698
|
-
reference: lazy,
|
|
3699
|
-
expects: "unknown",
|
|
3700
|
-
async: false,
|
|
3701
|
-
getter,
|
|
3702
|
-
_run(dataset, config2) {
|
|
3703
|
-
return this.getter(dataset.value)._run(dataset, config2);
|
|
3704
|
-
}
|
|
3705
|
-
};
|
|
3706
|
-
}
|
|
3707
3914
|
function literal(literal_, message) {
|
|
3708
3915
|
return {
|
|
3709
3916
|
kind: "schema",
|
|
@@ -4047,7 +4254,7 @@ var Migrator = class {
|
|
|
4047
4254
|
}
|
|
4048
4255
|
getVersions() {
|
|
4049
4256
|
const keys = objectKeys(this.migrations);
|
|
4050
|
-
return import_semver.sort(keys);
|
|
4257
|
+
return import_semver$1.sort(keys);
|
|
4051
4258
|
}
|
|
4052
4259
|
async migrate(_state, options) {
|
|
4053
4260
|
const state = _state ?? this.defaultValue;
|
|
@@ -4079,11 +4286,11 @@ var Migrator = class {
|
|
|
4079
4286
|
return finalState;
|
|
4080
4287
|
}
|
|
4081
4288
|
tryCoerce(version) {
|
|
4082
|
-
return this.coerce ? (0, import_semver.coerce)(version)?.version ?? version : version;
|
|
4289
|
+
return this.coerce ? (0, import_semver$1.coerce)(version)?.version ?? version : version;
|
|
4083
4290
|
}
|
|
4084
4291
|
needMigration(version) {
|
|
4085
4292
|
const newVersion = this.tryCoerce(version);
|
|
4086
|
-
return import_semver.lt(newVersion, this.current);
|
|
4293
|
+
return import_semver$1.lt(newVersion, this.current);
|
|
4087
4294
|
}
|
|
4088
4295
|
};
|
|
4089
4296
|
//#endregion
|
|
@@ -4100,12 +4307,74 @@ const createMigrator = () => {
|
|
|
4100
4307
|
};
|
|
4101
4308
|
//#endregion
|
|
4102
4309
|
//#region ../../packages/shared/src/config/migrators.ts
|
|
4310
|
+
const DEFAULT_PLUGINS = [
|
|
4311
|
+
{
|
|
4312
|
+
name: "@pipelab/plugin-construct",
|
|
4313
|
+
enabled: true,
|
|
4314
|
+
description: "Construct 3 export & packaging"
|
|
4315
|
+
},
|
|
4316
|
+
{
|
|
4317
|
+
name: "@pipelab/plugin-filesystem",
|
|
4318
|
+
enabled: true,
|
|
4319
|
+
description: "Filesystem utilities"
|
|
4320
|
+
},
|
|
4321
|
+
{
|
|
4322
|
+
name: "@pipelab/plugin-system",
|
|
4323
|
+
enabled: true,
|
|
4324
|
+
description: "System & shell commands"
|
|
4325
|
+
},
|
|
4326
|
+
{
|
|
4327
|
+
name: "@pipelab/plugin-steam",
|
|
4328
|
+
enabled: true,
|
|
4329
|
+
description: "Steam publishing"
|
|
4330
|
+
},
|
|
4331
|
+
{
|
|
4332
|
+
name: "@pipelab/plugin-itch",
|
|
4333
|
+
enabled: true,
|
|
4334
|
+
description: "Itch.io publishing"
|
|
4335
|
+
},
|
|
4336
|
+
{
|
|
4337
|
+
name: "@pipelab/plugin-electron",
|
|
4338
|
+
enabled: true,
|
|
4339
|
+
description: "Electron packaging"
|
|
4340
|
+
},
|
|
4341
|
+
{
|
|
4342
|
+
name: "@pipelab/plugin-discord",
|
|
4343
|
+
enabled: true,
|
|
4344
|
+
description: "Discord Rich Presence"
|
|
4345
|
+
},
|
|
4346
|
+
{
|
|
4347
|
+
name: "@pipelab/plugin-poki",
|
|
4348
|
+
enabled: true,
|
|
4349
|
+
description: "Poki publishing"
|
|
4350
|
+
},
|
|
4351
|
+
{
|
|
4352
|
+
name: "@pipelab/plugin-nvpatch",
|
|
4353
|
+
enabled: true,
|
|
4354
|
+
description: "NW.js patching"
|
|
4355
|
+
},
|
|
4356
|
+
{
|
|
4357
|
+
name: "@pipelab/plugin-tauri",
|
|
4358
|
+
enabled: true,
|
|
4359
|
+
description: "Tauri packaging"
|
|
4360
|
+
},
|
|
4361
|
+
{
|
|
4362
|
+
name: "@pipelab/plugin-minify",
|
|
4363
|
+
enabled: true,
|
|
4364
|
+
description: "Asset minification"
|
|
4365
|
+
},
|
|
4366
|
+
{
|
|
4367
|
+
name: "@pipelab/plugin-netlify",
|
|
4368
|
+
enabled: true,
|
|
4369
|
+
description: "Netlify deployment"
|
|
4370
|
+
}
|
|
4371
|
+
];
|
|
4103
4372
|
const createMigration = (config) => createMigration$1(config);
|
|
4104
4373
|
const settingsMigratorInternal = createMigrator();
|
|
4105
4374
|
const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
4106
4375
|
locale: "en-US",
|
|
4107
4376
|
theme: "light",
|
|
4108
|
-
version: "
|
|
4377
|
+
version: "8.0.0",
|
|
4109
4378
|
autosave: true,
|
|
4110
4379
|
agents: [],
|
|
4111
4380
|
tours: {
|
|
@@ -4122,7 +4391,9 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
4122
4391
|
enabled: false,
|
|
4123
4392
|
maxEntries: 50,
|
|
4124
4393
|
maxAge: 30
|
|
4125
|
-
} }
|
|
4394
|
+
} },
|
|
4395
|
+
plugins: DEFAULT_PLUGINS,
|
|
4396
|
+
isInternalMigrationBannerClosed: false
|
|
4126
4397
|
});
|
|
4127
4398
|
settingsMigratorInternal.createMigrations({
|
|
4128
4399
|
defaultValue: defaultAppSettings,
|
|
@@ -4173,19 +4444,22 @@ settingsMigratorInternal.createMigrations({
|
|
|
4173
4444
|
createMigration({
|
|
4174
4445
|
version: "6.0.0",
|
|
4175
4446
|
up: (state) => {
|
|
4447
|
+
const { cacheFolder: _, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
|
|
4176
4448
|
return {
|
|
4177
|
-
...
|
|
4449
|
+
...rest,
|
|
4178
4450
|
agents: [],
|
|
4179
4451
|
buildHistory: { retentionPolicy: {
|
|
4180
4452
|
enabled: false,
|
|
4181
4453
|
maxEntries: 50,
|
|
4182
4454
|
maxAge: 30
|
|
4183
|
-
} }
|
|
4455
|
+
} },
|
|
4456
|
+
plugins: DEFAULT_PLUGINS,
|
|
4457
|
+
isInternalMigrationBannerClosed: false
|
|
4184
4458
|
};
|
|
4185
4459
|
}
|
|
4186
4460
|
}),
|
|
4187
4461
|
createMigration({
|
|
4188
|
-
version: "
|
|
4462
|
+
version: "8.0.0",
|
|
4189
4463
|
up: finalVersion
|
|
4190
4464
|
})
|
|
4191
4465
|
]
|
|
@@ -4236,8 +4510,7 @@ const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
|
|
|
4236
4510
|
description: "",
|
|
4237
4511
|
name: "",
|
|
4238
4512
|
variables: [],
|
|
4239
|
-
|
|
4240
|
-
version: "4.0.0"
|
|
4513
|
+
version: "5.0.0"
|
|
4241
4514
|
});
|
|
4242
4515
|
savedFileMigratorInternal.createMigrations({
|
|
4243
4516
|
defaultValue: savedFileDefaultValue,
|
|
@@ -4300,10 +4573,63 @@ savedFileMigratorInternal.createMigrations({
|
|
|
4300
4573
|
}),
|
|
4301
4574
|
createMigration({
|
|
4302
4575
|
version: "4.0.0",
|
|
4576
|
+
up: (_state) => {
|
|
4577
|
+
const state = _state;
|
|
4578
|
+
if (state.type === "simple") return {
|
|
4579
|
+
name: state.name,
|
|
4580
|
+
description: state.description,
|
|
4581
|
+
canvas: {
|
|
4582
|
+
blocks: [],
|
|
4583
|
+
triggers: []
|
|
4584
|
+
},
|
|
4585
|
+
variables: []
|
|
4586
|
+
};
|
|
4587
|
+
const migrateBlock = (block, pluginsMap) => {
|
|
4588
|
+
if (!block) return;
|
|
4589
|
+
if (block.origin?.pluginId) {
|
|
4590
|
+
block.origin.pluginId = getStrictPluginId(block.origin.pluginId);
|
|
4591
|
+
block.origin.version = pluginsMap[block.origin.pluginId] ?? "latest";
|
|
4592
|
+
}
|
|
4593
|
+
};
|
|
4594
|
+
const normalizedPlugins = {};
|
|
4595
|
+
if (state.plugins) for (const [key, val] of Object.entries(state.plugins)) normalizedPlugins[getStrictPluginId(key)] = val;
|
|
4596
|
+
if (state.canvas) {
|
|
4597
|
+
for (const block of state.canvas.blocks ?? []) migrateBlock(block, normalizedPlugins);
|
|
4598
|
+
for (const trigger of state.canvas.triggers ?? []) migrateBlock(trigger, normalizedPlugins);
|
|
4599
|
+
}
|
|
4600
|
+
const { plugins: _dropped, type: _type, ...rest } = state;
|
|
4601
|
+
return rest;
|
|
4602
|
+
}
|
|
4603
|
+
}),
|
|
4604
|
+
createMigration({
|
|
4605
|
+
version: "5.0.0",
|
|
4303
4606
|
up: finalVersion
|
|
4304
4607
|
})
|
|
4305
4608
|
]
|
|
4306
4609
|
});
|
|
4610
|
+
const LEGACY_ID_MAP = {
|
|
4611
|
+
construct: "@pipelab/plugin-construct",
|
|
4612
|
+
filesystem: "@pipelab/plugin-filesystem",
|
|
4613
|
+
system: "@pipelab/plugin-system",
|
|
4614
|
+
steam: "@pipelab/plugin-steam",
|
|
4615
|
+
itch: "@pipelab/plugin-itch",
|
|
4616
|
+
electron: "@pipelab/plugin-electron",
|
|
4617
|
+
discord: "@pipelab/plugin-discord",
|
|
4618
|
+
dicord: "@pipelab/plugin-discord",
|
|
4619
|
+
"@pipelab/plugin-dicord": "@pipelab/plugin-discord",
|
|
4620
|
+
poki: "@pipelab/plugin-poki",
|
|
4621
|
+
nvpatch: "@pipelab/plugin-nvpatch",
|
|
4622
|
+
tauri: "@pipelab/plugin-tauri",
|
|
4623
|
+
minify: "@pipelab/plugin-minify",
|
|
4624
|
+
netlify: "@pipelab/plugin-netlify"
|
|
4625
|
+
};
|
|
4626
|
+
const getStrictPluginId = (pluginId) => {
|
|
4627
|
+
if (!pluginId) return pluginId;
|
|
4628
|
+
if (LEGACY_ID_MAP[pluginId]) return LEGACY_ID_MAP[pluginId];
|
|
4629
|
+
if (pluginId.startsWith("@") || pluginId.includes("/") || pluginId.startsWith("pipelab-plugin-")) return pluginId;
|
|
4630
|
+
const prefixed = `@pipelab/plugin-${pluginId}`;
|
|
4631
|
+
return LEGACY_ID_MAP[prefixed] || prefixed;
|
|
4632
|
+
};
|
|
4307
4633
|
object({
|
|
4308
4634
|
cacheFolder: string(),
|
|
4309
4635
|
theme: union([literal("light"), literal("dark")]),
|
|
@@ -4416,6 +4742,45 @@ object({
|
|
|
4416
4742
|
maxAge: number()
|
|
4417
4743
|
}) })
|
|
4418
4744
|
});
|
|
4745
|
+
object({
|
|
4746
|
+
theme: union([literal("light"), literal("dark")]),
|
|
4747
|
+
version: literal("8.0.0"),
|
|
4748
|
+
locale: union([
|
|
4749
|
+
literal("en-US"),
|
|
4750
|
+
literal("fr-FR"),
|
|
4751
|
+
literal("pt-BR"),
|
|
4752
|
+
literal("zh-CN"),
|
|
4753
|
+
literal("es-ES"),
|
|
4754
|
+
literal("de-DE")
|
|
4755
|
+
]),
|
|
4756
|
+
tours: object({
|
|
4757
|
+
dashboard: object({
|
|
4758
|
+
step: number(),
|
|
4759
|
+
completed: boolean()
|
|
4760
|
+
}),
|
|
4761
|
+
editor: object({
|
|
4762
|
+
step: number(),
|
|
4763
|
+
completed: boolean()
|
|
4764
|
+
})
|
|
4765
|
+
}),
|
|
4766
|
+
autosave: boolean(),
|
|
4767
|
+
agents: array(object({
|
|
4768
|
+
id: string(),
|
|
4769
|
+
name: string(),
|
|
4770
|
+
url: string()
|
|
4771
|
+
})),
|
|
4772
|
+
buildHistory: object({ retentionPolicy: object({
|
|
4773
|
+
enabled: boolean(),
|
|
4774
|
+
maxEntries: number(),
|
|
4775
|
+
maxAge: number()
|
|
4776
|
+
}) }),
|
|
4777
|
+
plugins: array(object({
|
|
4778
|
+
name: string(),
|
|
4779
|
+
enabled: boolean(),
|
|
4780
|
+
description: string()
|
|
4781
|
+
})),
|
|
4782
|
+
isInternalMigrationBannerClosed: optional(boolean(), false)
|
|
4783
|
+
});
|
|
4419
4784
|
//#endregion
|
|
4420
4785
|
//#region ../../node_modules/tslog/dist/esm/prettyLogStyles.js
|
|
4421
4786
|
const prettyLogStyles = {
|
|
@@ -4935,7 +5300,8 @@ const useLogger = () => {
|
|
|
4935
5300
|
//#region ../../packages/shared/src/model.ts
|
|
4936
5301
|
const OriginValidator = object({
|
|
4937
5302
|
pluginId: string(),
|
|
4938
|
-
nodeId: string()
|
|
5303
|
+
nodeId: string(),
|
|
5304
|
+
version: pipe(optional(string()), description("Pinned version of the plugin for this block. Falls back to \"latest\" when absent."))
|
|
4939
5305
|
});
|
|
4940
5306
|
const BlockActionValidatorV1 = object({
|
|
4941
5307
|
type: literal("action"),
|
|
@@ -4956,21 +5322,6 @@ const BlockActionValidatorV3 = object({
|
|
|
4956
5322
|
})),
|
|
4957
5323
|
origin: OriginValidator
|
|
4958
5324
|
});
|
|
4959
|
-
object({
|
|
4960
|
-
type: literal("condition"),
|
|
4961
|
-
uid: string(),
|
|
4962
|
-
origin: OriginValidator,
|
|
4963
|
-
params: record(string(), any()),
|
|
4964
|
-
branchTrue: lazy(() => array(BlockValidator)),
|
|
4965
|
-
branchFalse: lazy(() => array(BlockValidator))
|
|
4966
|
-
});
|
|
4967
|
-
object({
|
|
4968
|
-
type: literal("loop"),
|
|
4969
|
-
uid: string(),
|
|
4970
|
-
origin: OriginValidator,
|
|
4971
|
-
params: record(string(), any()),
|
|
4972
|
-
children: lazy(() => array(BlockValidator))
|
|
4973
|
-
});
|
|
4974
5325
|
const BlockEventValidator = object({
|
|
4975
5326
|
type: literal("event"),
|
|
4976
5327
|
uid: string(),
|
|
@@ -4986,7 +5337,6 @@ object({
|
|
|
4986
5337
|
const BlockValidatorV1 = variant("type", [BlockActionValidatorV1, BlockEventValidator]);
|
|
4987
5338
|
const BlockValidatorV2 = variant("type", [BlockActionValidatorV1]);
|
|
4988
5339
|
const BlockValidatorV3 = variant("type", [BlockActionValidatorV3]);
|
|
4989
|
-
const BlockValidator = BlockValidatorV3;
|
|
4990
5340
|
const CanvasValidatorV1 = object({ blocks: array(BlockValidatorV1) });
|
|
4991
5341
|
const CanvasValidatorV2 = object({
|
|
4992
5342
|
blocks: array(BlockValidatorV2),
|
|
@@ -5018,18 +5368,59 @@ object({
|
|
|
5018
5368
|
canvas: CanvasValidatorV3,
|
|
5019
5369
|
variables: array(VariableValidatorV1)
|
|
5020
5370
|
});
|
|
5021
|
-
|
|
5371
|
+
const SavedFileDefaultValidatorV4 = object({
|
|
5022
5372
|
version: literal("4.0.0"),
|
|
5023
5373
|
type: literal("default"),
|
|
5024
5374
|
name: string(),
|
|
5025
5375
|
description: string(),
|
|
5376
|
+
plugins: optional(record(string(), string())),
|
|
5026
5377
|
canvas: CanvasValidatorV3,
|
|
5027
5378
|
variables: array(VariableValidatorV1)
|
|
5028
|
-
})
|
|
5379
|
+
});
|
|
5380
|
+
const SavedFileSimpleValidatorV4 = object({
|
|
5029
5381
|
version: literal("4.0.0"),
|
|
5030
5382
|
type: literal("simple"),
|
|
5031
5383
|
name: string(),
|
|
5032
5384
|
description: string(),
|
|
5385
|
+
plugins: optional(record(string(), string())),
|
|
5386
|
+
source: object({
|
|
5387
|
+
type: union([
|
|
5388
|
+
literal("c3-html"),
|
|
5389
|
+
literal("c3-nwjs"),
|
|
5390
|
+
literal("godot"),
|
|
5391
|
+
literal("html")
|
|
5392
|
+
]),
|
|
5393
|
+
path: string()
|
|
5394
|
+
}),
|
|
5395
|
+
packaging: object({ enabled: boolean() }),
|
|
5396
|
+
publishing: object({
|
|
5397
|
+
steam: object({
|
|
5398
|
+
enabled: boolean(),
|
|
5399
|
+
appId: optional(string())
|
|
5400
|
+
}),
|
|
5401
|
+
itch: object({
|
|
5402
|
+
enabled: boolean(),
|
|
5403
|
+
project: optional(string())
|
|
5404
|
+
}),
|
|
5405
|
+
poki: object({
|
|
5406
|
+
enabled: boolean(),
|
|
5407
|
+
gameId: optional(string())
|
|
5408
|
+
})
|
|
5409
|
+
})
|
|
5410
|
+
});
|
|
5411
|
+
object({
|
|
5412
|
+
version: literal("5.0.0"),
|
|
5413
|
+
name: string(),
|
|
5414
|
+
description: string(),
|
|
5415
|
+
canvas: CanvasValidatorV3,
|
|
5416
|
+
variables: array(VariableValidatorV1)
|
|
5417
|
+
});
|
|
5418
|
+
object({
|
|
5419
|
+
version: literal("5.0.0"),
|
|
5420
|
+
type: literal("simple"),
|
|
5421
|
+
name: string(),
|
|
5422
|
+
description: string(),
|
|
5423
|
+
plugins: record(string(), string()),
|
|
5033
5424
|
source: object({
|
|
5034
5425
|
type: union([
|
|
5035
5426
|
literal("c3-html"),
|
|
@@ -5054,7 +5445,8 @@ union([object({
|
|
|
5054
5445
|
gameId: optional(string())
|
|
5055
5446
|
})
|
|
5056
5447
|
})
|
|
5057
|
-
})
|
|
5448
|
+
});
|
|
5449
|
+
union([SavedFileDefaultValidatorV4, SavedFileSimpleValidatorV4]);
|
|
5058
5450
|
//#endregion
|
|
5059
5451
|
//#region ../../node_modules/vue/node_modules/@vue/shared/dist/shared.cjs.prod.js
|
|
5060
5452
|
/**
|
|
@@ -47285,7 +47677,7 @@ object({
|
|
|
47285
47677
|
//#region ../../packages/core-node/src/context.ts
|
|
47286
47678
|
init_esm_shims();
|
|
47287
47679
|
const _dirname = typeof __dirname !== "undefined" ? __dirname : typeof import.meta !== "undefined" && import.meta.url ? dirname(fileURLToPath(import.meta.url)) : process.cwd();
|
|
47288
|
-
process.env.NODE_ENV;
|
|
47680
|
+
const isDev = process.env.NODE_ENV === "development";
|
|
47289
47681
|
/**
|
|
47290
47682
|
* Finds the monorepo root by looking for pnpm-workspace.yaml.
|
|
47291
47683
|
*/
|
|
@@ -47297,10 +47689,10 @@ function findProjectRoot(startDir) {
|
|
|
47297
47689
|
}
|
|
47298
47690
|
return null;
|
|
47299
47691
|
}
|
|
47300
|
-
findProjectRoot(_dirname);
|
|
47692
|
+
const projectRoot = findProjectRoot(_dirname);
|
|
47301
47693
|
//#endregion
|
|
47302
47694
|
//#region ../../packages/core-node/node_modules/ws/lib/constants.js
|
|
47303
|
-
var require_constants$
|
|
47695
|
+
var require_constants$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
47304
47696
|
const BINARY_TYPES = [
|
|
47305
47697
|
"nodebuffer",
|
|
47306
47698
|
"arraybuffer",
|
|
@@ -47323,7 +47715,7 @@ var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
47323
47715
|
//#endregion
|
|
47324
47716
|
//#region ../../packages/core-node/node_modules/ws/lib/buffer-util.js
|
|
47325
47717
|
var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
47326
|
-
const { EMPTY_BUFFER } = require_constants$
|
|
47718
|
+
const { EMPTY_BUFFER } = require_constants$9();
|
|
47327
47719
|
const FastBuffer = Buffer[Symbol.species];
|
|
47328
47720
|
/**
|
|
47329
47721
|
* Merges an array of buffers into a new buffer.
|
|
@@ -47477,7 +47869,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
47477
47869
|
const zlib$2 = __require("zlib");
|
|
47478
47870
|
const bufferUtil = require_buffer_util();
|
|
47479
47871
|
const Limiter = require_limiter();
|
|
47480
|
-
const { kStatusCode } = require_constants$
|
|
47872
|
+
const { kStatusCode } = require_constants$9();
|
|
47481
47873
|
const FastBuffer = Buffer[Symbol.species];
|
|
47482
47874
|
const TRAILER = Buffer.from([
|
|
47483
47875
|
0,
|
|
@@ -47808,7 +48200,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
47808
48200
|
//#region ../../packages/core-node/node_modules/ws/lib/validation.js
|
|
47809
48201
|
var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
47810
48202
|
const { isUtf8 } = __require("buffer");
|
|
47811
|
-
const { hasBlob } = require_constants$
|
|
48203
|
+
const { hasBlob } = require_constants$9();
|
|
47812
48204
|
const tokenChars = [
|
|
47813
48205
|
0,
|
|
47814
48206
|
0,
|
|
@@ -48005,7 +48397,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
48005
48397
|
var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
48006
48398
|
const { Writable: Writable$1 } = __require("stream");
|
|
48007
48399
|
const PerMessageDeflate = require_permessage_deflate();
|
|
48008
|
-
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = require_constants$
|
|
48400
|
+
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = require_constants$9();
|
|
48009
48401
|
const { concat, toArrayBuffer, unmask } = require_buffer_util();
|
|
48010
48402
|
const { isValidStatusCode, isValidUTF8 } = require_validation();
|
|
48011
48403
|
const FastBuffer = Buffer[Symbol.species];
|
|
@@ -48453,7 +48845,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
48453
48845
|
const { Duplex: Duplex$3 } = __require("stream");
|
|
48454
48846
|
const { randomFillSync } = __require("crypto");
|
|
48455
48847
|
const PerMessageDeflate = require_permessage_deflate();
|
|
48456
|
-
const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants$
|
|
48848
|
+
const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants$9();
|
|
48457
48849
|
const { isBlob, isValidStatusCode } = require_validation();
|
|
48458
48850
|
const { mask: applyMask, toBuffer } = require_buffer_util();
|
|
48459
48851
|
const kByteLength = Symbol("kByteLength");
|
|
@@ -48941,7 +49333,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
48941
49333
|
//#endregion
|
|
48942
49334
|
//#region ../../packages/core-node/node_modules/ws/lib/event-target.js
|
|
48943
49335
|
var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
48944
|
-
const { kForOnEventAttribute, kListener } = require_constants$
|
|
49336
|
+
const { kForOnEventAttribute, kListener } = require_constants$9();
|
|
48945
49337
|
const kCode = Symbol("kCode");
|
|
48946
49338
|
const kData = Symbol("kData");
|
|
48947
49339
|
const kError = Symbol("kError");
|
|
@@ -49308,7 +49700,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
49308
49700
|
const Receiver = require_receiver();
|
|
49309
49701
|
const Sender = require_sender();
|
|
49310
49702
|
const { isBlob } = require_validation();
|
|
49311
|
-
const { BINARY_TYPES, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = require_constants$
|
|
49703
|
+
const { BINARY_TYPES, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = require_constants$9();
|
|
49312
49704
|
const { EventTarget: { addEventListener, removeEventListener } } = require_event_target();
|
|
49313
49705
|
const { format, parse } = require_extension();
|
|
49314
49706
|
const { toBuffer } = require_buffer_util();
|
|
@@ -50424,7 +50816,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
50424
50816
|
const PerMessageDeflate = require_permessage_deflate();
|
|
50425
50817
|
const subprotocol = require_subprotocol();
|
|
50426
50818
|
const WebSocket = require_websocket();
|
|
50427
|
-
const { GUID, kWebSocket } = require_constants$
|
|
50819
|
+
const { GUID, kWebSocket } = require_constants$9();
|
|
50428
50820
|
const keyRegex = /^[+/0-9A-Za-z]{22}==$/;
|
|
50429
50821
|
const RUNNING = 0;
|
|
50430
50822
|
const CLOSING = 1;
|
|
@@ -51569,7 +51961,7 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length);
|
|
|
51569
51961
|
}));
|
|
51570
51962
|
//#endregion
|
|
51571
51963
|
//#region ../../node_modules/tar/node_modules/minizlib/constants.js
|
|
51572
|
-
var require_constants$
|
|
51964
|
+
var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51573
51965
|
const realZlibConstants$1 = __require("zlib").constants || (
|
|
51574
51966
|
/* istanbul ignore next */ { ZLIB_VERNUM: 4736 });
|
|
51575
51967
|
module.exports = Object.freeze(Object.assign(Object.create(null), {
|
|
@@ -52117,7 +52509,7 @@ var require_minizlib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
52117
52509
|
const assert$2 = __require("assert");
|
|
52118
52510
|
const Buffer$7 = __require("buffer").Buffer;
|
|
52119
52511
|
const realZlib$1 = __require("zlib");
|
|
52120
|
-
const constants = exports.constants = require_constants$
|
|
52512
|
+
const constants = exports.constants = require_constants$8();
|
|
52121
52513
|
const Minipass = require_minipass$3();
|
|
52122
52514
|
const OriginalBufferConcat = Buffer$7.concat;
|
|
52123
52515
|
const _superWrite = Symbol("_superWrite");
|
|
@@ -54574,7 +54966,7 @@ var require_fs_minipass = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
54574
54966
|
}));
|
|
54575
54967
|
//#endregion
|
|
54576
54968
|
//#region ../../node_modules/tar/lib/parse.js
|
|
54577
|
-
var require_parse$
|
|
54969
|
+
var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
54578
54970
|
const warner = require_warn_mixin();
|
|
54579
54971
|
const Header = require_header();
|
|
54580
54972
|
const EE$10 = __require("events");
|
|
@@ -54922,7 +55314,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
54922
55314
|
//#region ../../node_modules/tar/lib/list.js
|
|
54923
55315
|
var require_list = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
54924
55316
|
const hlo = require_high_level_opt();
|
|
54925
|
-
const Parser = require_parse$
|
|
55317
|
+
const Parser = require_parse$4();
|
|
54926
55318
|
const fs$29 = __require("fs");
|
|
54927
55319
|
const fsm = require_fs_minipass();
|
|
54928
55320
|
const path$28 = __require("path");
|
|
@@ -55807,7 +56199,7 @@ var require_get_write_flag = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
55807
56199
|
//#region ../../node_modules/tar/lib/unpack.js
|
|
55808
56200
|
var require_unpack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
55809
56201
|
const assert = __require("assert");
|
|
55810
|
-
const Parser = require_parse$
|
|
56202
|
+
const Parser = require_parse$4();
|
|
55811
56203
|
const fs$23 = __require("fs");
|
|
55812
56204
|
const fsm = require_fs_minipass();
|
|
55813
56205
|
const path$23 = __require("path");
|
|
@@ -56465,7 +56857,7 @@ var require_tar$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
56465
56857
|
exports.x = exports.extract = require_extract$1();
|
|
56466
56858
|
exports.Pack = require_pack$1();
|
|
56467
56859
|
exports.Unpack = require_unpack();
|
|
56468
|
-
exports.Parse = require_parse$
|
|
56860
|
+
exports.Parse = require_parse$4();
|
|
56469
56861
|
exports.ReadEntry = require_read_entry();
|
|
56470
56862
|
exports.WriteEntry = require_write_entry();
|
|
56471
56863
|
exports.Header = require_header();
|
|
@@ -66965,7 +67357,7 @@ var require__baseRest = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
66965
67357
|
}));
|
|
66966
67358
|
//#endregion
|
|
66967
67359
|
//#region ../../node_modules/lodash/eq.js
|
|
66968
|
-
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
67360
|
+
var require_eq$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
66969
67361
|
/**
|
|
66970
67362
|
* Performs a
|
|
66971
67363
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -67098,7 +67490,7 @@ var require__isIndex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
67098
67490
|
//#endregion
|
|
67099
67491
|
//#region ../../node_modules/lodash/_isIterateeCall.js
|
|
67100
67492
|
var require__isIterateeCall = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
67101
|
-
var eq = require_eq(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
|
|
67493
|
+
var eq = require_eq$2(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
|
|
67102
67494
|
/**
|
|
67103
67495
|
* Checks if the given arguments are from an iteratee call.
|
|
67104
67496
|
*
|
|
@@ -67419,7 +67811,7 @@ var require_keysIn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
67419
67811
|
//#endregion
|
|
67420
67812
|
//#region ../../node_modules/lodash/defaults.js
|
|
67421
67813
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
67422
|
-
var baseRest = require__baseRest(), eq = require_eq(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
|
|
67814
|
+
var baseRest = require__baseRest(), eq = require_eq$2(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
|
|
67423
67815
|
/** Used for built-in method references. */
|
|
67424
67816
|
var objectProto = Object.prototype;
|
|
67425
67817
|
/** Used to check objects for own properties. */
|
|
@@ -73041,7 +73433,7 @@ var require__listCacheClear = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
73041
73433
|
//#endregion
|
|
73042
73434
|
//#region ../../node_modules/lodash/_assocIndexOf.js
|
|
73043
73435
|
var require__assocIndexOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
73044
|
-
var eq = require_eq();
|
|
73436
|
+
var eq = require_eq$2();
|
|
73045
73437
|
/**
|
|
73046
73438
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
73047
73439
|
*
|
|
@@ -80973,7 +81365,7 @@ var require_unix_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
80973
81365
|
}));
|
|
80974
81366
|
//#endregion
|
|
80975
81367
|
//#region ../../node_modules/compress-commons/lib/archivers/zip/constants.js
|
|
80976
|
-
var require_constants$
|
|
81368
|
+
var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
80977
81369
|
/**
|
|
80978
81370
|
* node-compress-commons
|
|
80979
81371
|
*
|
|
@@ -81048,7 +81440,7 @@ var require_zip_archive_entry = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
81048
81440
|
var ArchiveEntry = require_archive_entry();
|
|
81049
81441
|
var GeneralPurposeBit = require_general_purpose_bit();
|
|
81050
81442
|
var UnixStat = require_unix_stat();
|
|
81051
|
-
var constants = require_constants$
|
|
81443
|
+
var constants = require_constants$7();
|
|
81052
81444
|
var zipUtil = require_util$3();
|
|
81053
81445
|
var ZipArchiveEntry = module.exports = function(name) {
|
|
81054
81446
|
if (!(this instanceof ZipArchiveEntry)) return new ZipArchiveEntry(name);
|
|
@@ -81682,7 +82074,7 @@ var require_zip_archive_output_stream = /* @__PURE__ */ __commonJSMin(((exports,
|
|
|
81682
82074
|
var ArchiveOutputStream = require_archive_output_stream();
|
|
81683
82075
|
require_zip_archive_entry();
|
|
81684
82076
|
require_general_purpose_bit();
|
|
81685
|
-
var constants = require_constants$
|
|
82077
|
+
var constants = require_constants$7();
|
|
81686
82078
|
require_util$2();
|
|
81687
82079
|
var zipUtil = require_util$3();
|
|
81688
82080
|
var ZipArchiveOutputStream = module.exports = function(options) {
|
|
@@ -84179,7 +84571,7 @@ var require_extract = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
84179
84571
|
}));
|
|
84180
84572
|
//#endregion
|
|
84181
84573
|
//#region ../../node_modules/tar-stream/constants.js
|
|
84182
|
-
var require_constants$
|
|
84574
|
+
var require_constants$6 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
84183
84575
|
const constants = {
|
|
84184
84576
|
S_IFMT: 61440,
|
|
84185
84577
|
S_IFDIR: 16384,
|
|
@@ -84199,7 +84591,7 @@ var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
84199
84591
|
var require_pack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
84200
84592
|
const { Readable, Writable, getStreamError } = require_streamx();
|
|
84201
84593
|
const b4a = require_b4a();
|
|
84202
|
-
const constants = require_constants$
|
|
84594
|
+
const constants = require_constants$6();
|
|
84203
84595
|
const headers = require_headers$1();
|
|
84204
84596
|
const DMODE = 493;
|
|
84205
84597
|
const FMODE = 420;
|
|
@@ -85164,6 +85556,360 @@ var require_update_workspaces = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
85164
85556
|
module.exports = updateWorkspaces;
|
|
85165
85557
|
}));
|
|
85166
85558
|
//#endregion
|
|
85559
|
+
//#region ../../node_modules/semver/internal/debug.js
|
|
85560
|
+
var require_debug$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
85561
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
85562
|
+
}));
|
|
85563
|
+
//#endregion
|
|
85564
|
+
//#region ../../node_modules/semver/internal/constants.js
|
|
85565
|
+
var require_constants$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
85566
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
85567
|
+
const MAX_LENGTH = 256;
|
|
85568
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
85569
|
+
module.exports = {
|
|
85570
|
+
MAX_LENGTH,
|
|
85571
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
85572
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
85573
|
+
MAX_SAFE_INTEGER,
|
|
85574
|
+
RELEASE_TYPES: [
|
|
85575
|
+
"major",
|
|
85576
|
+
"premajor",
|
|
85577
|
+
"minor",
|
|
85578
|
+
"preminor",
|
|
85579
|
+
"patch",
|
|
85580
|
+
"prepatch",
|
|
85581
|
+
"prerelease"
|
|
85582
|
+
],
|
|
85583
|
+
SEMVER_SPEC_VERSION,
|
|
85584
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
85585
|
+
FLAG_LOOSE: 2
|
|
85586
|
+
};
|
|
85587
|
+
}));
|
|
85588
|
+
//#endregion
|
|
85589
|
+
//#region ../../node_modules/semver/internal/re.js
|
|
85590
|
+
var require_re$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
85591
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$5();
|
|
85592
|
+
const debug = require_debug$1();
|
|
85593
|
+
exports = module.exports = {};
|
|
85594
|
+
const re = exports.re = [];
|
|
85595
|
+
const safeRe = exports.safeRe = [];
|
|
85596
|
+
const src = exports.src = [];
|
|
85597
|
+
const safeSrc = exports.safeSrc = [];
|
|
85598
|
+
const t = exports.t = {};
|
|
85599
|
+
let R = 0;
|
|
85600
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
85601
|
+
const safeRegexReplacements = [
|
|
85602
|
+
["\\s", 1],
|
|
85603
|
+
["\\d", MAX_LENGTH],
|
|
85604
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
85605
|
+
];
|
|
85606
|
+
const makeSafeRegex = (value) => {
|
|
85607
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
85608
|
+
return value;
|
|
85609
|
+
};
|
|
85610
|
+
const createToken = (name, value, isGlobal) => {
|
|
85611
|
+
const safe = makeSafeRegex(value);
|
|
85612
|
+
const index = R++;
|
|
85613
|
+
debug(name, index, value);
|
|
85614
|
+
t[name] = index;
|
|
85615
|
+
src[index] = value;
|
|
85616
|
+
safeSrc[index] = safe;
|
|
85617
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
85618
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
85619
|
+
};
|
|
85620
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
85621
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
85622
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
85623
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
85624
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
85625
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
85626
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
85627
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
85628
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
85629
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
85630
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
85631
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
85632
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
85633
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
85634
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
85635
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
85636
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
85637
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
85638
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
85639
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
85640
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
85641
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
85642
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
85643
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
85644
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
85645
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
85646
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
85647
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
85648
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
85649
|
+
exports.tildeTrimReplace = "$1~";
|
|
85650
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
85651
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
85652
|
+
createToken("LONECARET", "(?:\\^)");
|
|
85653
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
85654
|
+
exports.caretTrimReplace = "$1^";
|
|
85655
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
85656
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
85657
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
85658
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
85659
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
85660
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
85661
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
85662
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
85663
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
85664
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
85665
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
85666
|
+
}));
|
|
85667
|
+
//#endregion
|
|
85668
|
+
//#region ../../node_modules/semver/internal/parse-options.js
|
|
85669
|
+
var require_parse_options$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
85670
|
+
const looseOption = Object.freeze({ loose: true });
|
|
85671
|
+
const emptyOpts = Object.freeze({});
|
|
85672
|
+
const parseOptions = (options) => {
|
|
85673
|
+
if (!options) return emptyOpts;
|
|
85674
|
+
if (typeof options !== "object") return looseOption;
|
|
85675
|
+
return options;
|
|
85676
|
+
};
|
|
85677
|
+
module.exports = parseOptions;
|
|
85678
|
+
}));
|
|
85679
|
+
//#endregion
|
|
85680
|
+
//#region ../../node_modules/semver/internal/identifiers.js
|
|
85681
|
+
var require_identifiers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
85682
|
+
const numeric = /^[0-9]+$/;
|
|
85683
|
+
const compareIdentifiers = (a, b) => {
|
|
85684
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
85685
|
+
const anum = numeric.test(a);
|
|
85686
|
+
const bnum = numeric.test(b);
|
|
85687
|
+
if (anum && bnum) {
|
|
85688
|
+
a = +a;
|
|
85689
|
+
b = +b;
|
|
85690
|
+
}
|
|
85691
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
85692
|
+
};
|
|
85693
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
85694
|
+
module.exports = {
|
|
85695
|
+
compareIdentifiers,
|
|
85696
|
+
rcompareIdentifiers
|
|
85697
|
+
};
|
|
85698
|
+
}));
|
|
85699
|
+
//#endregion
|
|
85700
|
+
//#region ../../node_modules/semver/classes/semver.js
|
|
85701
|
+
var require_semver$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
85702
|
+
const debug = require_debug$1();
|
|
85703
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$5();
|
|
85704
|
+
const { safeRe: re, t } = require_re$1();
|
|
85705
|
+
const parseOptions = require_parse_options$1();
|
|
85706
|
+
const { compareIdentifiers } = require_identifiers$1();
|
|
85707
|
+
module.exports = class SemVer {
|
|
85708
|
+
constructor(version, options) {
|
|
85709
|
+
options = parseOptions(options);
|
|
85710
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
85711
|
+
else version = version.version;
|
|
85712
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
85713
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
85714
|
+
debug("SemVer", version, options);
|
|
85715
|
+
this.options = options;
|
|
85716
|
+
this.loose = !!options.loose;
|
|
85717
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
85718
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
85719
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
85720
|
+
this.raw = version;
|
|
85721
|
+
this.major = +m[1];
|
|
85722
|
+
this.minor = +m[2];
|
|
85723
|
+
this.patch = +m[3];
|
|
85724
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
85725
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
85726
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
85727
|
+
if (!m[4]) this.prerelease = [];
|
|
85728
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
85729
|
+
if (/^[0-9]+$/.test(id)) {
|
|
85730
|
+
const num = +id;
|
|
85731
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
85732
|
+
}
|
|
85733
|
+
return id;
|
|
85734
|
+
});
|
|
85735
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
85736
|
+
this.format();
|
|
85737
|
+
}
|
|
85738
|
+
format() {
|
|
85739
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
85740
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
85741
|
+
return this.version;
|
|
85742
|
+
}
|
|
85743
|
+
toString() {
|
|
85744
|
+
return this.version;
|
|
85745
|
+
}
|
|
85746
|
+
compare(other) {
|
|
85747
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
85748
|
+
if (!(other instanceof SemVer)) {
|
|
85749
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
85750
|
+
other = new SemVer(other, this.options);
|
|
85751
|
+
}
|
|
85752
|
+
if (other.version === this.version) return 0;
|
|
85753
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
85754
|
+
}
|
|
85755
|
+
compareMain(other) {
|
|
85756
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
85757
|
+
if (this.major < other.major) return -1;
|
|
85758
|
+
if (this.major > other.major) return 1;
|
|
85759
|
+
if (this.minor < other.minor) return -1;
|
|
85760
|
+
if (this.minor > other.minor) return 1;
|
|
85761
|
+
if (this.patch < other.patch) return -1;
|
|
85762
|
+
if (this.patch > other.patch) return 1;
|
|
85763
|
+
return 0;
|
|
85764
|
+
}
|
|
85765
|
+
comparePre(other) {
|
|
85766
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
85767
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
85768
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
85769
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
85770
|
+
let i = 0;
|
|
85771
|
+
do {
|
|
85772
|
+
const a = this.prerelease[i];
|
|
85773
|
+
const b = other.prerelease[i];
|
|
85774
|
+
debug("prerelease compare", i, a, b);
|
|
85775
|
+
if (a === void 0 && b === void 0) return 0;
|
|
85776
|
+
else if (b === void 0) return 1;
|
|
85777
|
+
else if (a === void 0) return -1;
|
|
85778
|
+
else if (a === b) continue;
|
|
85779
|
+
else return compareIdentifiers(a, b);
|
|
85780
|
+
} while (++i);
|
|
85781
|
+
}
|
|
85782
|
+
compareBuild(other) {
|
|
85783
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
85784
|
+
let i = 0;
|
|
85785
|
+
do {
|
|
85786
|
+
const a = this.build[i];
|
|
85787
|
+
const b = other.build[i];
|
|
85788
|
+
debug("build compare", i, a, b);
|
|
85789
|
+
if (a === void 0 && b === void 0) return 0;
|
|
85790
|
+
else if (b === void 0) return 1;
|
|
85791
|
+
else if (a === void 0) return -1;
|
|
85792
|
+
else if (a === b) continue;
|
|
85793
|
+
else return compareIdentifiers(a, b);
|
|
85794
|
+
} while (++i);
|
|
85795
|
+
}
|
|
85796
|
+
inc(release, identifier, identifierBase) {
|
|
85797
|
+
if (release.startsWith("pre")) {
|
|
85798
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
85799
|
+
if (identifier) {
|
|
85800
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
85801
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
85802
|
+
}
|
|
85803
|
+
}
|
|
85804
|
+
switch (release) {
|
|
85805
|
+
case "premajor":
|
|
85806
|
+
this.prerelease.length = 0;
|
|
85807
|
+
this.patch = 0;
|
|
85808
|
+
this.minor = 0;
|
|
85809
|
+
this.major++;
|
|
85810
|
+
this.inc("pre", identifier, identifierBase);
|
|
85811
|
+
break;
|
|
85812
|
+
case "preminor":
|
|
85813
|
+
this.prerelease.length = 0;
|
|
85814
|
+
this.patch = 0;
|
|
85815
|
+
this.minor++;
|
|
85816
|
+
this.inc("pre", identifier, identifierBase);
|
|
85817
|
+
break;
|
|
85818
|
+
case "prepatch":
|
|
85819
|
+
this.prerelease.length = 0;
|
|
85820
|
+
this.inc("patch", identifier, identifierBase);
|
|
85821
|
+
this.inc("pre", identifier, identifierBase);
|
|
85822
|
+
break;
|
|
85823
|
+
case "prerelease":
|
|
85824
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
85825
|
+
this.inc("pre", identifier, identifierBase);
|
|
85826
|
+
break;
|
|
85827
|
+
case "release":
|
|
85828
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
85829
|
+
this.prerelease.length = 0;
|
|
85830
|
+
break;
|
|
85831
|
+
case "major":
|
|
85832
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
85833
|
+
this.minor = 0;
|
|
85834
|
+
this.patch = 0;
|
|
85835
|
+
this.prerelease = [];
|
|
85836
|
+
break;
|
|
85837
|
+
case "minor":
|
|
85838
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
85839
|
+
this.patch = 0;
|
|
85840
|
+
this.prerelease = [];
|
|
85841
|
+
break;
|
|
85842
|
+
case "patch":
|
|
85843
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
85844
|
+
this.prerelease = [];
|
|
85845
|
+
break;
|
|
85846
|
+
case "pre": {
|
|
85847
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
85848
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
85849
|
+
else {
|
|
85850
|
+
let i = this.prerelease.length;
|
|
85851
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
85852
|
+
this.prerelease[i]++;
|
|
85853
|
+
i = -2;
|
|
85854
|
+
}
|
|
85855
|
+
if (i === -1) {
|
|
85856
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
85857
|
+
this.prerelease.push(base);
|
|
85858
|
+
}
|
|
85859
|
+
}
|
|
85860
|
+
if (identifier) {
|
|
85861
|
+
let prerelease = [identifier, base];
|
|
85862
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
85863
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
85864
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
85865
|
+
} else this.prerelease = prerelease;
|
|
85866
|
+
}
|
|
85867
|
+
break;
|
|
85868
|
+
}
|
|
85869
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
85870
|
+
}
|
|
85871
|
+
this.raw = this.format();
|
|
85872
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
85873
|
+
return this;
|
|
85874
|
+
}
|
|
85875
|
+
};
|
|
85876
|
+
}));
|
|
85877
|
+
//#endregion
|
|
85878
|
+
//#region ../../node_modules/semver/functions/parse.js
|
|
85879
|
+
var require_parse$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
85880
|
+
const SemVer = require_semver$3();
|
|
85881
|
+
const parse = (version, options, throwErrors = false) => {
|
|
85882
|
+
if (version instanceof SemVer) return version;
|
|
85883
|
+
try {
|
|
85884
|
+
return new SemVer(version, options);
|
|
85885
|
+
} catch (er) {
|
|
85886
|
+
if (!throwErrors) return null;
|
|
85887
|
+
throw er;
|
|
85888
|
+
}
|
|
85889
|
+
};
|
|
85890
|
+
module.exports = parse;
|
|
85891
|
+
}));
|
|
85892
|
+
//#endregion
|
|
85893
|
+
//#region ../../node_modules/semver/functions/valid.js
|
|
85894
|
+
var require_valid$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
85895
|
+
const parse = require_parse$3();
|
|
85896
|
+
const valid = (version, options) => {
|
|
85897
|
+
const v = parse(version, options);
|
|
85898
|
+
return v ? v.version : null;
|
|
85899
|
+
};
|
|
85900
|
+
module.exports = valid;
|
|
85901
|
+
}));
|
|
85902
|
+
//#endregion
|
|
85903
|
+
//#region ../../node_modules/semver/functions/clean.js
|
|
85904
|
+
var require_clean$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
85905
|
+
const parse = require_parse$3();
|
|
85906
|
+
const clean = (version, options) => {
|
|
85907
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
85908
|
+
return s ? s.version : null;
|
|
85909
|
+
};
|
|
85910
|
+
module.exports = clean;
|
|
85911
|
+
}));
|
|
85912
|
+
//#endregion
|
|
85167
85913
|
//#region ../../node_modules/proc-log/lib/index.js
|
|
85168
85914
|
var require_lib$29 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
85169
85915
|
module.exports = {
|
|
@@ -90662,7 +91408,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
90662
91408
|
}));
|
|
90663
91409
|
//#endregion
|
|
90664
91410
|
//#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/parse.js
|
|
90665
|
-
var require_parse$
|
|
91411
|
+
var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
90666
91412
|
module.exports = function(tokens) {
|
|
90667
91413
|
var index = 0;
|
|
90668
91414
|
function hasMore() {
|
|
@@ -90753,7 +91499,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
90753
91499
|
//#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/index.js
|
|
90754
91500
|
var require_spdx_expression_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
90755
91501
|
var scan = require_scan();
|
|
90756
|
-
var parse = require_parse$
|
|
91502
|
+
var parse = require_parse$2();
|
|
90757
91503
|
module.exports = function(source) {
|
|
90758
91504
|
return parse(scan(source));
|
|
90759
91505
|
};
|
|
@@ -91961,9 +92707,1026 @@ var require_spawn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
91961
92707
|
};
|
|
91962
92708
|
}));
|
|
91963
92709
|
//#endregion
|
|
92710
|
+
//#region ../../node_modules/semver/functions/inc.js
|
|
92711
|
+
var require_inc$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92712
|
+
const SemVer = require_semver$3();
|
|
92713
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
92714
|
+
if (typeof options === "string") {
|
|
92715
|
+
identifierBase = identifier;
|
|
92716
|
+
identifier = options;
|
|
92717
|
+
options = void 0;
|
|
92718
|
+
}
|
|
92719
|
+
try {
|
|
92720
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
92721
|
+
} catch (er) {
|
|
92722
|
+
return null;
|
|
92723
|
+
}
|
|
92724
|
+
};
|
|
92725
|
+
module.exports = inc;
|
|
92726
|
+
}));
|
|
92727
|
+
//#endregion
|
|
92728
|
+
//#region ../../node_modules/semver/functions/diff.js
|
|
92729
|
+
var require_diff$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92730
|
+
const parse = require_parse$3();
|
|
92731
|
+
const diff = (version1, version2) => {
|
|
92732
|
+
const v1 = parse(version1, null, true);
|
|
92733
|
+
const v2 = parse(version2, null, true);
|
|
92734
|
+
const comparison = v1.compare(v2);
|
|
92735
|
+
if (comparison === 0) return null;
|
|
92736
|
+
const v1Higher = comparison > 0;
|
|
92737
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
92738
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
92739
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
92740
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
92741
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
92742
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
92743
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
92744
|
+
return "patch";
|
|
92745
|
+
}
|
|
92746
|
+
}
|
|
92747
|
+
const prefix = highHasPre ? "pre" : "";
|
|
92748
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
92749
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
92750
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
92751
|
+
return "prerelease";
|
|
92752
|
+
};
|
|
92753
|
+
module.exports = diff;
|
|
92754
|
+
}));
|
|
92755
|
+
//#endregion
|
|
92756
|
+
//#region ../../node_modules/semver/functions/major.js
|
|
92757
|
+
var require_major$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92758
|
+
const SemVer = require_semver$3();
|
|
92759
|
+
const major = (a, loose) => new SemVer(a, loose).major;
|
|
92760
|
+
module.exports = major;
|
|
92761
|
+
}));
|
|
92762
|
+
//#endregion
|
|
92763
|
+
//#region ../../node_modules/semver/functions/minor.js
|
|
92764
|
+
var require_minor$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92765
|
+
const SemVer = require_semver$3();
|
|
92766
|
+
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
92767
|
+
module.exports = minor;
|
|
92768
|
+
}));
|
|
92769
|
+
//#endregion
|
|
92770
|
+
//#region ../../node_modules/semver/functions/patch.js
|
|
92771
|
+
var require_patch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92772
|
+
const SemVer = require_semver$3();
|
|
92773
|
+
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
92774
|
+
module.exports = patch;
|
|
92775
|
+
}));
|
|
92776
|
+
//#endregion
|
|
92777
|
+
//#region ../../node_modules/semver/functions/prerelease.js
|
|
92778
|
+
var require_prerelease$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92779
|
+
const parse = require_parse$3();
|
|
92780
|
+
const prerelease = (version, options) => {
|
|
92781
|
+
const parsed = parse(version, options);
|
|
92782
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
92783
|
+
};
|
|
92784
|
+
module.exports = prerelease;
|
|
92785
|
+
}));
|
|
92786
|
+
//#endregion
|
|
92787
|
+
//#region ../../node_modules/semver/functions/compare.js
|
|
92788
|
+
var require_compare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92789
|
+
const SemVer = require_semver$3();
|
|
92790
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
92791
|
+
module.exports = compare;
|
|
92792
|
+
}));
|
|
92793
|
+
//#endregion
|
|
92794
|
+
//#region ../../node_modules/semver/functions/rcompare.js
|
|
92795
|
+
var require_rcompare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92796
|
+
const compare = require_compare$1();
|
|
92797
|
+
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
92798
|
+
module.exports = rcompare;
|
|
92799
|
+
}));
|
|
92800
|
+
//#endregion
|
|
92801
|
+
//#region ../../node_modules/semver/functions/compare-loose.js
|
|
92802
|
+
var require_compare_loose$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92803
|
+
const compare = require_compare$1();
|
|
92804
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
92805
|
+
module.exports = compareLoose;
|
|
92806
|
+
}));
|
|
92807
|
+
//#endregion
|
|
92808
|
+
//#region ../../node_modules/semver/functions/compare-build.js
|
|
92809
|
+
var require_compare_build$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92810
|
+
const SemVer = require_semver$3();
|
|
92811
|
+
const compareBuild = (a, b, loose) => {
|
|
92812
|
+
const versionA = new SemVer(a, loose);
|
|
92813
|
+
const versionB = new SemVer(b, loose);
|
|
92814
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
92815
|
+
};
|
|
92816
|
+
module.exports = compareBuild;
|
|
92817
|
+
}));
|
|
92818
|
+
//#endregion
|
|
92819
|
+
//#region ../../node_modules/semver/functions/sort.js
|
|
92820
|
+
var require_sort$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92821
|
+
const compareBuild = require_compare_build$1();
|
|
92822
|
+
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
92823
|
+
module.exports = sort;
|
|
92824
|
+
}));
|
|
92825
|
+
//#endregion
|
|
92826
|
+
//#region ../../node_modules/semver/functions/rsort.js
|
|
92827
|
+
var require_rsort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92828
|
+
const compareBuild = require_compare_build$1();
|
|
92829
|
+
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
92830
|
+
module.exports = rsort;
|
|
92831
|
+
}));
|
|
92832
|
+
//#endregion
|
|
92833
|
+
//#region ../../node_modules/semver/functions/gt.js
|
|
92834
|
+
var require_gt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92835
|
+
const compare = require_compare$1();
|
|
92836
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
92837
|
+
module.exports = gt;
|
|
92838
|
+
}));
|
|
92839
|
+
//#endregion
|
|
92840
|
+
//#region ../../node_modules/semver/functions/lt.js
|
|
92841
|
+
var require_lt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92842
|
+
const compare = require_compare$1();
|
|
92843
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
92844
|
+
module.exports = lt;
|
|
92845
|
+
}));
|
|
92846
|
+
//#endregion
|
|
92847
|
+
//#region ../../node_modules/semver/functions/eq.js
|
|
92848
|
+
var require_eq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92849
|
+
const compare = require_compare$1();
|
|
92850
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
92851
|
+
module.exports = eq;
|
|
92852
|
+
}));
|
|
92853
|
+
//#endregion
|
|
92854
|
+
//#region ../../node_modules/semver/functions/neq.js
|
|
92855
|
+
var require_neq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92856
|
+
const compare = require_compare$1();
|
|
92857
|
+
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
92858
|
+
module.exports = neq;
|
|
92859
|
+
}));
|
|
92860
|
+
//#endregion
|
|
92861
|
+
//#region ../../node_modules/semver/functions/gte.js
|
|
92862
|
+
var require_gte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92863
|
+
const compare = require_compare$1();
|
|
92864
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
92865
|
+
module.exports = gte;
|
|
92866
|
+
}));
|
|
92867
|
+
//#endregion
|
|
92868
|
+
//#region ../../node_modules/semver/functions/lte.js
|
|
92869
|
+
var require_lte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92870
|
+
const compare = require_compare$1();
|
|
92871
|
+
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
92872
|
+
module.exports = lte;
|
|
92873
|
+
}));
|
|
92874
|
+
//#endregion
|
|
92875
|
+
//#region ../../node_modules/semver/functions/cmp.js
|
|
92876
|
+
var require_cmp$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92877
|
+
const eq = require_eq$1();
|
|
92878
|
+
const neq = require_neq$1();
|
|
92879
|
+
const gt = require_gt$1();
|
|
92880
|
+
const gte = require_gte$1();
|
|
92881
|
+
const lt = require_lt$1();
|
|
92882
|
+
const lte = require_lte$1();
|
|
92883
|
+
const cmp = (a, op, b, loose) => {
|
|
92884
|
+
switch (op) {
|
|
92885
|
+
case "===":
|
|
92886
|
+
if (typeof a === "object") a = a.version;
|
|
92887
|
+
if (typeof b === "object") b = b.version;
|
|
92888
|
+
return a === b;
|
|
92889
|
+
case "!==":
|
|
92890
|
+
if (typeof a === "object") a = a.version;
|
|
92891
|
+
if (typeof b === "object") b = b.version;
|
|
92892
|
+
return a !== b;
|
|
92893
|
+
case "":
|
|
92894
|
+
case "=":
|
|
92895
|
+
case "==": return eq(a, b, loose);
|
|
92896
|
+
case "!=": return neq(a, b, loose);
|
|
92897
|
+
case ">": return gt(a, b, loose);
|
|
92898
|
+
case ">=": return gte(a, b, loose);
|
|
92899
|
+
case "<": return lt(a, b, loose);
|
|
92900
|
+
case "<=": return lte(a, b, loose);
|
|
92901
|
+
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
92902
|
+
}
|
|
92903
|
+
};
|
|
92904
|
+
module.exports = cmp;
|
|
92905
|
+
}));
|
|
92906
|
+
//#endregion
|
|
92907
|
+
//#region ../../node_modules/semver/functions/coerce.js
|
|
92908
|
+
var require_coerce$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92909
|
+
const SemVer = require_semver$3();
|
|
92910
|
+
const parse = require_parse$3();
|
|
92911
|
+
const { safeRe: re, t } = require_re$1();
|
|
92912
|
+
const coerce = (version, options) => {
|
|
92913
|
+
if (version instanceof SemVer) return version;
|
|
92914
|
+
if (typeof version === "number") version = String(version);
|
|
92915
|
+
if (typeof version !== "string") return null;
|
|
92916
|
+
options = options || {};
|
|
92917
|
+
let match = null;
|
|
92918
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
92919
|
+
else {
|
|
92920
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
92921
|
+
let next;
|
|
92922
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
92923
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
92924
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
92925
|
+
}
|
|
92926
|
+
coerceRtlRegex.lastIndex = -1;
|
|
92927
|
+
}
|
|
92928
|
+
if (match === null) return null;
|
|
92929
|
+
const major = match[2];
|
|
92930
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
92931
|
+
};
|
|
92932
|
+
module.exports = coerce;
|
|
92933
|
+
}));
|
|
92934
|
+
//#endregion
|
|
92935
|
+
//#region ../../node_modules/semver/functions/truncate.js
|
|
92936
|
+
var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92937
|
+
const parse = require_parse$3();
|
|
92938
|
+
const constants = require_constants$5();
|
|
92939
|
+
const SemVer = require_semver$3();
|
|
92940
|
+
const truncate = (version, truncation, options) => {
|
|
92941
|
+
if (!constants.RELEASE_TYPES.includes(truncation)) return null;
|
|
92942
|
+
const clonedVersion = cloneInputVersion(version, options);
|
|
92943
|
+
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
92944
|
+
};
|
|
92945
|
+
const cloneInputVersion = (version, options) => {
|
|
92946
|
+
return parse(version instanceof SemVer ? version.version : version, options);
|
|
92947
|
+
};
|
|
92948
|
+
const doTruncation = (version, truncation) => {
|
|
92949
|
+
if (isPrerelease(truncation)) return version.version;
|
|
92950
|
+
version.prerelease = [];
|
|
92951
|
+
switch (truncation) {
|
|
92952
|
+
case "major":
|
|
92953
|
+
version.minor = 0;
|
|
92954
|
+
version.patch = 0;
|
|
92955
|
+
break;
|
|
92956
|
+
case "minor":
|
|
92957
|
+
version.patch = 0;
|
|
92958
|
+
break;
|
|
92959
|
+
}
|
|
92960
|
+
return version.format();
|
|
92961
|
+
};
|
|
92962
|
+
const isPrerelease = (type) => {
|
|
92963
|
+
return type.startsWith("pre");
|
|
92964
|
+
};
|
|
92965
|
+
module.exports = truncate;
|
|
92966
|
+
}));
|
|
92967
|
+
//#endregion
|
|
92968
|
+
//#region ../../node_modules/semver/internal/lrucache.js
|
|
92969
|
+
var require_lrucache$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92970
|
+
var LRUCache = class {
|
|
92971
|
+
constructor() {
|
|
92972
|
+
this.max = 1e3;
|
|
92973
|
+
this.map = /* @__PURE__ */ new Map();
|
|
92974
|
+
}
|
|
92975
|
+
get(key) {
|
|
92976
|
+
const value = this.map.get(key);
|
|
92977
|
+
if (value === void 0) return;
|
|
92978
|
+
else {
|
|
92979
|
+
this.map.delete(key);
|
|
92980
|
+
this.map.set(key, value);
|
|
92981
|
+
return value;
|
|
92982
|
+
}
|
|
92983
|
+
}
|
|
92984
|
+
delete(key) {
|
|
92985
|
+
return this.map.delete(key);
|
|
92986
|
+
}
|
|
92987
|
+
set(key, value) {
|
|
92988
|
+
if (!this.delete(key) && value !== void 0) {
|
|
92989
|
+
if (this.map.size >= this.max) {
|
|
92990
|
+
const firstKey = this.map.keys().next().value;
|
|
92991
|
+
this.delete(firstKey);
|
|
92992
|
+
}
|
|
92993
|
+
this.map.set(key, value);
|
|
92994
|
+
}
|
|
92995
|
+
return this;
|
|
92996
|
+
}
|
|
92997
|
+
};
|
|
92998
|
+
module.exports = LRUCache;
|
|
92999
|
+
}));
|
|
93000
|
+
//#endregion
|
|
93001
|
+
//#region ../../node_modules/semver/classes/range.js
|
|
93002
|
+
var require_range$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
93003
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
93004
|
+
module.exports = class Range {
|
|
93005
|
+
constructor(range, options) {
|
|
93006
|
+
options = parseOptions(options);
|
|
93007
|
+
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
93008
|
+
else return new Range(range.raw, options);
|
|
93009
|
+
if (range instanceof Comparator) {
|
|
93010
|
+
this.raw = range.value;
|
|
93011
|
+
this.set = [[range]];
|
|
93012
|
+
this.formatted = void 0;
|
|
93013
|
+
return this;
|
|
93014
|
+
}
|
|
93015
|
+
this.options = options;
|
|
93016
|
+
this.loose = !!options.loose;
|
|
93017
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
93018
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
93019
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
93020
|
+
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
93021
|
+
if (this.set.length > 1) {
|
|
93022
|
+
const first = this.set[0];
|
|
93023
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
93024
|
+
if (this.set.length === 0) this.set = [first];
|
|
93025
|
+
else if (this.set.length > 1) {
|
|
93026
|
+
for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
|
|
93027
|
+
this.set = [c];
|
|
93028
|
+
break;
|
|
93029
|
+
}
|
|
93030
|
+
}
|
|
93031
|
+
}
|
|
93032
|
+
this.formatted = void 0;
|
|
93033
|
+
}
|
|
93034
|
+
get range() {
|
|
93035
|
+
if (this.formatted === void 0) {
|
|
93036
|
+
this.formatted = "";
|
|
93037
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
93038
|
+
if (i > 0) this.formatted += "||";
|
|
93039
|
+
const comps = this.set[i];
|
|
93040
|
+
for (let k = 0; k < comps.length; k++) {
|
|
93041
|
+
if (k > 0) this.formatted += " ";
|
|
93042
|
+
this.formatted += comps[k].toString().trim();
|
|
93043
|
+
}
|
|
93044
|
+
}
|
|
93045
|
+
}
|
|
93046
|
+
return this.formatted;
|
|
93047
|
+
}
|
|
93048
|
+
format() {
|
|
93049
|
+
return this.range;
|
|
93050
|
+
}
|
|
93051
|
+
toString() {
|
|
93052
|
+
return this.range;
|
|
93053
|
+
}
|
|
93054
|
+
parseRange(range) {
|
|
93055
|
+
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
93056
|
+
const cached = cache.get(memoKey);
|
|
93057
|
+
if (cached) return cached;
|
|
93058
|
+
const loose = this.options.loose;
|
|
93059
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
93060
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
93061
|
+
debug("hyphen replace", range);
|
|
93062
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
93063
|
+
debug("comparator trim", range);
|
|
93064
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
93065
|
+
debug("tilde trim", range);
|
|
93066
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
93067
|
+
debug("caret trim", range);
|
|
93068
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
93069
|
+
if (loose) rangeList = rangeList.filter((comp) => {
|
|
93070
|
+
debug("loose invalid filter", comp, this.options);
|
|
93071
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
93072
|
+
});
|
|
93073
|
+
debug("range list", rangeList);
|
|
93074
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
93075
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
93076
|
+
for (const comp of comparators) {
|
|
93077
|
+
if (isNullSet(comp)) return [comp];
|
|
93078
|
+
rangeMap.set(comp.value, comp);
|
|
93079
|
+
}
|
|
93080
|
+
if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
|
|
93081
|
+
const result = [...rangeMap.values()];
|
|
93082
|
+
cache.set(memoKey, result);
|
|
93083
|
+
return result;
|
|
93084
|
+
}
|
|
93085
|
+
intersects(range, options) {
|
|
93086
|
+
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
93087
|
+
return this.set.some((thisComparators) => {
|
|
93088
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
93089
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
93090
|
+
return rangeComparators.every((rangeComparator) => {
|
|
93091
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
93092
|
+
});
|
|
93093
|
+
});
|
|
93094
|
+
});
|
|
93095
|
+
});
|
|
93096
|
+
}
|
|
93097
|
+
test(version) {
|
|
93098
|
+
if (!version) return false;
|
|
93099
|
+
if (typeof version === "string") try {
|
|
93100
|
+
version = new SemVer(version, this.options);
|
|
93101
|
+
} catch (er) {
|
|
93102
|
+
return false;
|
|
93103
|
+
}
|
|
93104
|
+
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
|
|
93105
|
+
return false;
|
|
93106
|
+
}
|
|
93107
|
+
};
|
|
93108
|
+
const cache = new (require_lrucache$1())();
|
|
93109
|
+
const parseOptions = require_parse_options$1();
|
|
93110
|
+
const Comparator = require_comparator$1();
|
|
93111
|
+
const debug = require_debug$1();
|
|
93112
|
+
const SemVer = require_semver$3();
|
|
93113
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re$1();
|
|
93114
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$5();
|
|
93115
|
+
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
93116
|
+
const isAny = (c) => c.value === "";
|
|
93117
|
+
const isSatisfiable = (comparators, options) => {
|
|
93118
|
+
let result = true;
|
|
93119
|
+
const remainingComparators = comparators.slice();
|
|
93120
|
+
let testComparator = remainingComparators.pop();
|
|
93121
|
+
while (result && remainingComparators.length) {
|
|
93122
|
+
result = remainingComparators.every((otherComparator) => {
|
|
93123
|
+
return testComparator.intersects(otherComparator, options);
|
|
93124
|
+
});
|
|
93125
|
+
testComparator = remainingComparators.pop();
|
|
93126
|
+
}
|
|
93127
|
+
return result;
|
|
93128
|
+
};
|
|
93129
|
+
const parseComparator = (comp, options) => {
|
|
93130
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
93131
|
+
debug("comp", comp, options);
|
|
93132
|
+
comp = replaceCarets(comp, options);
|
|
93133
|
+
debug("caret", comp);
|
|
93134
|
+
comp = replaceTildes(comp, options);
|
|
93135
|
+
debug("tildes", comp);
|
|
93136
|
+
comp = replaceXRanges(comp, options);
|
|
93137
|
+
debug("xrange", comp);
|
|
93138
|
+
comp = replaceStars(comp, options);
|
|
93139
|
+
debug("stars", comp);
|
|
93140
|
+
return comp;
|
|
93141
|
+
};
|
|
93142
|
+
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
93143
|
+
const replaceTildes = (comp, options) => {
|
|
93144
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
93145
|
+
};
|
|
93146
|
+
const replaceTilde = (comp, options) => {
|
|
93147
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
93148
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
93149
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
93150
|
+
let ret;
|
|
93151
|
+
if (isX(M)) ret = "";
|
|
93152
|
+
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
93153
|
+
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
93154
|
+
else if (pr) {
|
|
93155
|
+
debug("replaceTilde pr", pr);
|
|
93156
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
93157
|
+
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
93158
|
+
debug("tilde return", ret);
|
|
93159
|
+
return ret;
|
|
93160
|
+
});
|
|
93161
|
+
};
|
|
93162
|
+
const replaceCarets = (comp, options) => {
|
|
93163
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
93164
|
+
};
|
|
93165
|
+
const replaceCaret = (comp, options) => {
|
|
93166
|
+
debug("caret", comp, options);
|
|
93167
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
93168
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
93169
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
93170
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
93171
|
+
let ret;
|
|
93172
|
+
if (isX(M)) ret = "";
|
|
93173
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
93174
|
+
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
93175
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
93176
|
+
else if (pr) {
|
|
93177
|
+
debug("replaceCaret pr", pr);
|
|
93178
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
93179
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
93180
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
93181
|
+
} else {
|
|
93182
|
+
debug("no pr");
|
|
93183
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
93184
|
+
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
93185
|
+
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
93186
|
+
}
|
|
93187
|
+
debug("caret return", ret);
|
|
93188
|
+
return ret;
|
|
93189
|
+
});
|
|
93190
|
+
};
|
|
93191
|
+
const replaceXRanges = (comp, options) => {
|
|
93192
|
+
debug("replaceXRanges", comp, options);
|
|
93193
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
93194
|
+
};
|
|
93195
|
+
const replaceXRange = (comp, options) => {
|
|
93196
|
+
comp = comp.trim();
|
|
93197
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
93198
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
93199
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
93200
|
+
const xM = isX(M);
|
|
93201
|
+
const xm = xM || isX(m);
|
|
93202
|
+
const xp = xm || isX(p);
|
|
93203
|
+
const anyX = xp;
|
|
93204
|
+
if (gtlt === "=" && anyX) gtlt = "";
|
|
93205
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
93206
|
+
if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
93207
|
+
else ret = "*";
|
|
93208
|
+
else if (gtlt && anyX) {
|
|
93209
|
+
if (xm) m = 0;
|
|
93210
|
+
p = 0;
|
|
93211
|
+
if (gtlt === ">") {
|
|
93212
|
+
gtlt = ">=";
|
|
93213
|
+
if (xm) {
|
|
93214
|
+
M = +M + 1;
|
|
93215
|
+
m = 0;
|
|
93216
|
+
p = 0;
|
|
93217
|
+
} else {
|
|
93218
|
+
m = +m + 1;
|
|
93219
|
+
p = 0;
|
|
93220
|
+
}
|
|
93221
|
+
} else if (gtlt === "<=") {
|
|
93222
|
+
gtlt = "<";
|
|
93223
|
+
if (xm) M = +M + 1;
|
|
93224
|
+
else m = +m + 1;
|
|
93225
|
+
}
|
|
93226
|
+
if (gtlt === "<") pr = "-0";
|
|
93227
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
93228
|
+
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
93229
|
+
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
93230
|
+
debug("xRange return", ret);
|
|
93231
|
+
return ret;
|
|
93232
|
+
});
|
|
93233
|
+
};
|
|
93234
|
+
const replaceStars = (comp, options) => {
|
|
93235
|
+
debug("replaceStars", comp, options);
|
|
93236
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
93237
|
+
};
|
|
93238
|
+
const replaceGTE0 = (comp, options) => {
|
|
93239
|
+
debug("replaceGTE0", comp, options);
|
|
93240
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
93241
|
+
};
|
|
93242
|
+
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
93243
|
+
if (isX(fM)) from = "";
|
|
93244
|
+
else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
93245
|
+
else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
93246
|
+
else if (fpr) from = `>=${from}`;
|
|
93247
|
+
else from = `>=${from}${incPr ? "-0" : ""}`;
|
|
93248
|
+
if (isX(tM)) to = "";
|
|
93249
|
+
else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
|
|
93250
|
+
else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
|
|
93251
|
+
else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
93252
|
+
else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
93253
|
+
else to = `<=${to}`;
|
|
93254
|
+
return `${from} ${to}`.trim();
|
|
93255
|
+
};
|
|
93256
|
+
const testSet = (set, version, options) => {
|
|
93257
|
+
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
93258
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
93259
|
+
for (let i = 0; i < set.length; i++) {
|
|
93260
|
+
debug(set[i].semver);
|
|
93261
|
+
if (set[i].semver === Comparator.ANY) continue;
|
|
93262
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
93263
|
+
const allowed = set[i].semver;
|
|
93264
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
93265
|
+
}
|
|
93266
|
+
}
|
|
93267
|
+
return false;
|
|
93268
|
+
}
|
|
93269
|
+
return true;
|
|
93270
|
+
};
|
|
93271
|
+
}));
|
|
93272
|
+
//#endregion
|
|
93273
|
+
//#region ../../node_modules/semver/classes/comparator.js
|
|
93274
|
+
var require_comparator$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
93275
|
+
const ANY = Symbol("SemVer ANY");
|
|
93276
|
+
module.exports = class Comparator {
|
|
93277
|
+
static get ANY() {
|
|
93278
|
+
return ANY;
|
|
93279
|
+
}
|
|
93280
|
+
constructor(comp, options) {
|
|
93281
|
+
options = parseOptions(options);
|
|
93282
|
+
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
93283
|
+
else comp = comp.value;
|
|
93284
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
93285
|
+
debug("comparator", comp, options);
|
|
93286
|
+
this.options = options;
|
|
93287
|
+
this.loose = !!options.loose;
|
|
93288
|
+
this.parse(comp);
|
|
93289
|
+
if (this.semver === ANY) this.value = "";
|
|
93290
|
+
else this.value = this.operator + this.semver.version;
|
|
93291
|
+
debug("comp", this);
|
|
93292
|
+
}
|
|
93293
|
+
parse(comp) {
|
|
93294
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
93295
|
+
const m = comp.match(r);
|
|
93296
|
+
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
93297
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
93298
|
+
if (this.operator === "=") this.operator = "";
|
|
93299
|
+
if (!m[2]) this.semver = ANY;
|
|
93300
|
+
else this.semver = new SemVer(m[2], this.options.loose);
|
|
93301
|
+
}
|
|
93302
|
+
toString() {
|
|
93303
|
+
return this.value;
|
|
93304
|
+
}
|
|
93305
|
+
test(version) {
|
|
93306
|
+
debug("Comparator.test", version, this.options.loose);
|
|
93307
|
+
if (this.semver === ANY || version === ANY) return true;
|
|
93308
|
+
if (typeof version === "string") try {
|
|
93309
|
+
version = new SemVer(version, this.options);
|
|
93310
|
+
} catch (er) {
|
|
93311
|
+
return false;
|
|
93312
|
+
}
|
|
93313
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
93314
|
+
}
|
|
93315
|
+
intersects(comp, options) {
|
|
93316
|
+
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
93317
|
+
if (this.operator === "") {
|
|
93318
|
+
if (this.value === "") return true;
|
|
93319
|
+
return new Range(comp.value, options).test(this.value);
|
|
93320
|
+
} else if (comp.operator === "") {
|
|
93321
|
+
if (comp.value === "") return true;
|
|
93322
|
+
return new Range(this.value, options).test(comp.semver);
|
|
93323
|
+
}
|
|
93324
|
+
options = parseOptions(options);
|
|
93325
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
93326
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
|
|
93327
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
93328
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
93329
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
93330
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
93331
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
93332
|
+
return false;
|
|
93333
|
+
}
|
|
93334
|
+
};
|
|
93335
|
+
const parseOptions = require_parse_options$1();
|
|
93336
|
+
const { safeRe: re, t } = require_re$1();
|
|
93337
|
+
const cmp = require_cmp$1();
|
|
93338
|
+
const debug = require_debug$1();
|
|
93339
|
+
const SemVer = require_semver$3();
|
|
93340
|
+
const Range = require_range$1();
|
|
93341
|
+
}));
|
|
93342
|
+
//#endregion
|
|
93343
|
+
//#region ../../node_modules/semver/functions/satisfies.js
|
|
93344
|
+
var require_satisfies$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
93345
|
+
const Range = require_range$1();
|
|
93346
|
+
const satisfies = (version, range, options) => {
|
|
93347
|
+
try {
|
|
93348
|
+
range = new Range(range, options);
|
|
93349
|
+
} catch (er) {
|
|
93350
|
+
return false;
|
|
93351
|
+
}
|
|
93352
|
+
return range.test(version);
|
|
93353
|
+
};
|
|
93354
|
+
module.exports = satisfies;
|
|
93355
|
+
}));
|
|
93356
|
+
//#endregion
|
|
93357
|
+
//#region ../../node_modules/semver/ranges/to-comparators.js
|
|
93358
|
+
var require_to_comparators$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
93359
|
+
const Range = require_range$1();
|
|
93360
|
+
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
93361
|
+
module.exports = toComparators;
|
|
93362
|
+
}));
|
|
93363
|
+
//#endregion
|
|
93364
|
+
//#region ../../node_modules/semver/ranges/max-satisfying.js
|
|
93365
|
+
var require_max_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
93366
|
+
const SemVer = require_semver$3();
|
|
93367
|
+
const Range = require_range$1();
|
|
93368
|
+
const maxSatisfying = (versions, range, options) => {
|
|
93369
|
+
let max = null;
|
|
93370
|
+
let maxSV = null;
|
|
93371
|
+
let rangeObj = null;
|
|
93372
|
+
try {
|
|
93373
|
+
rangeObj = new Range(range, options);
|
|
93374
|
+
} catch (er) {
|
|
93375
|
+
return null;
|
|
93376
|
+
}
|
|
93377
|
+
versions.forEach((v) => {
|
|
93378
|
+
if (rangeObj.test(v)) {
|
|
93379
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
93380
|
+
max = v;
|
|
93381
|
+
maxSV = new SemVer(max, options);
|
|
93382
|
+
}
|
|
93383
|
+
}
|
|
93384
|
+
});
|
|
93385
|
+
return max;
|
|
93386
|
+
};
|
|
93387
|
+
module.exports = maxSatisfying;
|
|
93388
|
+
}));
|
|
93389
|
+
//#endregion
|
|
93390
|
+
//#region ../../node_modules/semver/ranges/min-satisfying.js
|
|
93391
|
+
var require_min_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
93392
|
+
const SemVer = require_semver$3();
|
|
93393
|
+
const Range = require_range$1();
|
|
93394
|
+
const minSatisfying = (versions, range, options) => {
|
|
93395
|
+
let min = null;
|
|
93396
|
+
let minSV = null;
|
|
93397
|
+
let rangeObj = null;
|
|
93398
|
+
try {
|
|
93399
|
+
rangeObj = new Range(range, options);
|
|
93400
|
+
} catch (er) {
|
|
93401
|
+
return null;
|
|
93402
|
+
}
|
|
93403
|
+
versions.forEach((v) => {
|
|
93404
|
+
if (rangeObj.test(v)) {
|
|
93405
|
+
if (!min || minSV.compare(v) === 1) {
|
|
93406
|
+
min = v;
|
|
93407
|
+
minSV = new SemVer(min, options);
|
|
93408
|
+
}
|
|
93409
|
+
}
|
|
93410
|
+
});
|
|
93411
|
+
return min;
|
|
93412
|
+
};
|
|
93413
|
+
module.exports = minSatisfying;
|
|
93414
|
+
}));
|
|
93415
|
+
//#endregion
|
|
93416
|
+
//#region ../../node_modules/semver/ranges/min-version.js
|
|
93417
|
+
var require_min_version$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
93418
|
+
const SemVer = require_semver$3();
|
|
93419
|
+
const Range = require_range$1();
|
|
93420
|
+
const gt = require_gt$1();
|
|
93421
|
+
const minVersion = (range, loose) => {
|
|
93422
|
+
range = new Range(range, loose);
|
|
93423
|
+
let minver = new SemVer("0.0.0");
|
|
93424
|
+
if (range.test(minver)) return minver;
|
|
93425
|
+
minver = new SemVer("0.0.0-0");
|
|
93426
|
+
if (range.test(minver)) return minver;
|
|
93427
|
+
minver = null;
|
|
93428
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
93429
|
+
const comparators = range.set[i];
|
|
93430
|
+
let setMin = null;
|
|
93431
|
+
comparators.forEach((comparator) => {
|
|
93432
|
+
const compver = new SemVer(comparator.semver.version);
|
|
93433
|
+
switch (comparator.operator) {
|
|
93434
|
+
case ">":
|
|
93435
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
93436
|
+
else compver.prerelease.push(0);
|
|
93437
|
+
compver.raw = compver.format();
|
|
93438
|
+
case "":
|
|
93439
|
+
case ">=":
|
|
93440
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
93441
|
+
break;
|
|
93442
|
+
case "<":
|
|
93443
|
+
case "<=": break;
|
|
93444
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
93445
|
+
}
|
|
93446
|
+
});
|
|
93447
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
93448
|
+
}
|
|
93449
|
+
if (minver && range.test(minver)) return minver;
|
|
93450
|
+
return null;
|
|
93451
|
+
};
|
|
93452
|
+
module.exports = minVersion;
|
|
93453
|
+
}));
|
|
93454
|
+
//#endregion
|
|
93455
|
+
//#region ../../node_modules/semver/ranges/valid.js
|
|
93456
|
+
var require_valid$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
93457
|
+
const Range = require_range$1();
|
|
93458
|
+
const validRange = (range, options) => {
|
|
93459
|
+
try {
|
|
93460
|
+
return new Range(range, options).range || "*";
|
|
93461
|
+
} catch (er) {
|
|
93462
|
+
return null;
|
|
93463
|
+
}
|
|
93464
|
+
};
|
|
93465
|
+
module.exports = validRange;
|
|
93466
|
+
}));
|
|
93467
|
+
//#endregion
|
|
93468
|
+
//#region ../../node_modules/semver/ranges/outside.js
|
|
93469
|
+
var require_outside$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
93470
|
+
const SemVer = require_semver$3();
|
|
93471
|
+
const Comparator = require_comparator$1();
|
|
93472
|
+
const { ANY } = Comparator;
|
|
93473
|
+
const Range = require_range$1();
|
|
93474
|
+
const satisfies = require_satisfies$1();
|
|
93475
|
+
const gt = require_gt$1();
|
|
93476
|
+
const lt = require_lt$1();
|
|
93477
|
+
const lte = require_lte$1();
|
|
93478
|
+
const gte = require_gte$1();
|
|
93479
|
+
const outside = (version, range, hilo, options) => {
|
|
93480
|
+
version = new SemVer(version, options);
|
|
93481
|
+
range = new Range(range, options);
|
|
93482
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
93483
|
+
switch (hilo) {
|
|
93484
|
+
case ">":
|
|
93485
|
+
gtfn = gt;
|
|
93486
|
+
ltefn = lte;
|
|
93487
|
+
ltfn = lt;
|
|
93488
|
+
comp = ">";
|
|
93489
|
+
ecomp = ">=";
|
|
93490
|
+
break;
|
|
93491
|
+
case "<":
|
|
93492
|
+
gtfn = lt;
|
|
93493
|
+
ltefn = gte;
|
|
93494
|
+
ltfn = gt;
|
|
93495
|
+
comp = "<";
|
|
93496
|
+
ecomp = "<=";
|
|
93497
|
+
break;
|
|
93498
|
+
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
93499
|
+
}
|
|
93500
|
+
if (satisfies(version, range, options)) return false;
|
|
93501
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
93502
|
+
const comparators = range.set[i];
|
|
93503
|
+
let high = null;
|
|
93504
|
+
let low = null;
|
|
93505
|
+
comparators.forEach((comparator) => {
|
|
93506
|
+
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
93507
|
+
high = high || comparator;
|
|
93508
|
+
low = low || comparator;
|
|
93509
|
+
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
93510
|
+
else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
|
|
93511
|
+
});
|
|
93512
|
+
if (high.operator === comp || high.operator === ecomp) return false;
|
|
93513
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
|
|
93514
|
+
else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
|
|
93515
|
+
}
|
|
93516
|
+
return true;
|
|
93517
|
+
};
|
|
93518
|
+
module.exports = outside;
|
|
93519
|
+
}));
|
|
93520
|
+
//#endregion
|
|
93521
|
+
//#region ../../node_modules/semver/ranges/gtr.js
|
|
93522
|
+
var require_gtr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
93523
|
+
const outside = require_outside$1();
|
|
93524
|
+
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
93525
|
+
module.exports = gtr;
|
|
93526
|
+
}));
|
|
93527
|
+
//#endregion
|
|
93528
|
+
//#region ../../node_modules/semver/ranges/ltr.js
|
|
93529
|
+
var require_ltr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
93530
|
+
const outside = require_outside$1();
|
|
93531
|
+
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
93532
|
+
module.exports = ltr;
|
|
93533
|
+
}));
|
|
93534
|
+
//#endregion
|
|
93535
|
+
//#region ../../node_modules/semver/ranges/intersects.js
|
|
93536
|
+
var require_intersects$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
93537
|
+
const Range = require_range$1();
|
|
93538
|
+
const intersects = (r1, r2, options) => {
|
|
93539
|
+
r1 = new Range(r1, options);
|
|
93540
|
+
r2 = new Range(r2, options);
|
|
93541
|
+
return r1.intersects(r2, options);
|
|
93542
|
+
};
|
|
93543
|
+
module.exports = intersects;
|
|
93544
|
+
}));
|
|
93545
|
+
//#endregion
|
|
93546
|
+
//#region ../../node_modules/semver/ranges/simplify.js
|
|
93547
|
+
var require_simplify$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
93548
|
+
const satisfies = require_satisfies$1();
|
|
93549
|
+
const compare = require_compare$1();
|
|
93550
|
+
module.exports = (versions, range, options) => {
|
|
93551
|
+
const set = [];
|
|
93552
|
+
let first = null;
|
|
93553
|
+
let prev = null;
|
|
93554
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
93555
|
+
for (const version of v) if (satisfies(version, range, options)) {
|
|
93556
|
+
prev = version;
|
|
93557
|
+
if (!first) first = version;
|
|
93558
|
+
} else {
|
|
93559
|
+
if (prev) set.push([first, prev]);
|
|
93560
|
+
prev = null;
|
|
93561
|
+
first = null;
|
|
93562
|
+
}
|
|
93563
|
+
if (first) set.push([first, null]);
|
|
93564
|
+
const ranges = [];
|
|
93565
|
+
for (const [min, max] of set) if (min === max) ranges.push(min);
|
|
93566
|
+
else if (!max && min === v[0]) ranges.push("*");
|
|
93567
|
+
else if (!max) ranges.push(`>=${min}`);
|
|
93568
|
+
else if (min === v[0]) ranges.push(`<=${max}`);
|
|
93569
|
+
else ranges.push(`${min} - ${max}`);
|
|
93570
|
+
const simplified = ranges.join(" || ");
|
|
93571
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
93572
|
+
return simplified.length < original.length ? simplified : range;
|
|
93573
|
+
};
|
|
93574
|
+
}));
|
|
93575
|
+
//#endregion
|
|
93576
|
+
//#region ../../node_modules/semver/ranges/subset.js
|
|
93577
|
+
var require_subset$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
93578
|
+
const Range = require_range$1();
|
|
93579
|
+
const Comparator = require_comparator$1();
|
|
93580
|
+
const { ANY } = Comparator;
|
|
93581
|
+
const satisfies = require_satisfies$1();
|
|
93582
|
+
const compare = require_compare$1();
|
|
93583
|
+
const subset = (sub, dom, options = {}) => {
|
|
93584
|
+
if (sub === dom) return true;
|
|
93585
|
+
sub = new Range(sub, options);
|
|
93586
|
+
dom = new Range(dom, options);
|
|
93587
|
+
let sawNonNull = false;
|
|
93588
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
93589
|
+
for (const simpleDom of dom.set) {
|
|
93590
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
93591
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
93592
|
+
if (isSub) continue OUTER;
|
|
93593
|
+
}
|
|
93594
|
+
if (sawNonNull) return false;
|
|
93595
|
+
}
|
|
93596
|
+
return true;
|
|
93597
|
+
};
|
|
93598
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
93599
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
93600
|
+
const simpleSubset = (sub, dom, options) => {
|
|
93601
|
+
if (sub === dom) return true;
|
|
93602
|
+
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
93603
|
+
else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
|
|
93604
|
+
else sub = minimumVersion;
|
|
93605
|
+
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
93606
|
+
else dom = minimumVersion;
|
|
93607
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
93608
|
+
let gt, lt;
|
|
93609
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
93610
|
+
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
93611
|
+
else eqSet.add(c.semver);
|
|
93612
|
+
if (eqSet.size > 1) return null;
|
|
93613
|
+
let gtltComp;
|
|
93614
|
+
if (gt && lt) {
|
|
93615
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
93616
|
+
if (gtltComp > 0) return null;
|
|
93617
|
+
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
93618
|
+
}
|
|
93619
|
+
for (const eq of eqSet) {
|
|
93620
|
+
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
93621
|
+
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
93622
|
+
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
93623
|
+
return true;
|
|
93624
|
+
}
|
|
93625
|
+
let higher, lower;
|
|
93626
|
+
let hasDomLT, hasDomGT;
|
|
93627
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
93628
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
93629
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
93630
|
+
for (const c of dom) {
|
|
93631
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
93632
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
93633
|
+
if (gt) {
|
|
93634
|
+
if (needDomGTPre) {
|
|
93635
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;
|
|
93636
|
+
}
|
|
93637
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
93638
|
+
higher = higherGT(gt, c, options);
|
|
93639
|
+
if (higher === c && higher !== gt) return false;
|
|
93640
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
|
93641
|
+
}
|
|
93642
|
+
if (lt) {
|
|
93643
|
+
if (needDomLTPre) {
|
|
93644
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;
|
|
93645
|
+
}
|
|
93646
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
93647
|
+
lower = lowerLT(lt, c, options);
|
|
93648
|
+
if (lower === c && lower !== lt) return false;
|
|
93649
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
|
93650
|
+
}
|
|
93651
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
93652
|
+
}
|
|
93653
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
93654
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
93655
|
+
if (needDomGTPre || needDomLTPre) return false;
|
|
93656
|
+
return true;
|
|
93657
|
+
};
|
|
93658
|
+
const higherGT = (a, b, options) => {
|
|
93659
|
+
if (!a) return b;
|
|
93660
|
+
const comp = compare(a.semver, b.semver, options);
|
|
93661
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
93662
|
+
};
|
|
93663
|
+
const lowerLT = (a, b, options) => {
|
|
93664
|
+
if (!a) return b;
|
|
93665
|
+
const comp = compare(a.semver, b.semver, options);
|
|
93666
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
93667
|
+
};
|
|
93668
|
+
module.exports = subset;
|
|
93669
|
+
}));
|
|
93670
|
+
//#endregion
|
|
93671
|
+
//#region ../../node_modules/semver/index.js
|
|
93672
|
+
var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
93673
|
+
const internalRe = require_re$1();
|
|
93674
|
+
const constants = require_constants$5();
|
|
93675
|
+
const SemVer = require_semver$3();
|
|
93676
|
+
const identifiers = require_identifiers$1();
|
|
93677
|
+
module.exports = {
|
|
93678
|
+
parse: require_parse$3(),
|
|
93679
|
+
valid: require_valid$3(),
|
|
93680
|
+
clean: require_clean$1(),
|
|
93681
|
+
inc: require_inc$1(),
|
|
93682
|
+
diff: require_diff$1(),
|
|
93683
|
+
major: require_major$1(),
|
|
93684
|
+
minor: require_minor$1(),
|
|
93685
|
+
patch: require_patch$1(),
|
|
93686
|
+
prerelease: require_prerelease$1(),
|
|
93687
|
+
compare: require_compare$1(),
|
|
93688
|
+
rcompare: require_rcompare$1(),
|
|
93689
|
+
compareLoose: require_compare_loose$1(),
|
|
93690
|
+
compareBuild: require_compare_build$1(),
|
|
93691
|
+
sort: require_sort$2(),
|
|
93692
|
+
rsort: require_rsort$1(),
|
|
93693
|
+
gt: require_gt$1(),
|
|
93694
|
+
lt: require_lt$1(),
|
|
93695
|
+
eq: require_eq$1(),
|
|
93696
|
+
neq: require_neq$1(),
|
|
93697
|
+
gte: require_gte$1(),
|
|
93698
|
+
lte: require_lte$1(),
|
|
93699
|
+
cmp: require_cmp$1(),
|
|
93700
|
+
coerce: require_coerce$1(),
|
|
93701
|
+
truncate: require_truncate(),
|
|
93702
|
+
Comparator: require_comparator$1(),
|
|
93703
|
+
Range: require_range$1(),
|
|
93704
|
+
satisfies: require_satisfies$1(),
|
|
93705
|
+
toComparators: require_to_comparators$1(),
|
|
93706
|
+
maxSatisfying: require_max_satisfying$1(),
|
|
93707
|
+
minSatisfying: require_min_satisfying$1(),
|
|
93708
|
+
minVersion: require_min_version$1(),
|
|
93709
|
+
validRange: require_valid$2(),
|
|
93710
|
+
outside: require_outside$1(),
|
|
93711
|
+
gtr: require_gtr$1(),
|
|
93712
|
+
ltr: require_ltr$1(),
|
|
93713
|
+
intersects: require_intersects$1(),
|
|
93714
|
+
simplifyRange: require_simplify$1(),
|
|
93715
|
+
subset: require_subset$1(),
|
|
93716
|
+
SemVer,
|
|
93717
|
+
re: internalRe.re,
|
|
93718
|
+
src: internalRe.src,
|
|
93719
|
+
tokens: internalRe.t,
|
|
93720
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
93721
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
93722
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
93723
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
93724
|
+
};
|
|
93725
|
+
}));
|
|
93726
|
+
//#endregion
|
|
91964
93727
|
//#region ../../node_modules/@npmcli/git/lib/lines-to-revs.js
|
|
91965
93728
|
var require_lines_to_revs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
91966
|
-
const semver = require_semver();
|
|
93729
|
+
const semver = require_semver$2();
|
|
91967
93730
|
module.exports = (lines) => finish(lines.reduce(linesToRevsReducer, {
|
|
91968
93731
|
versions: {},
|
|
91969
93732
|
"dist-tags": {},
|
|
@@ -92230,7 +93993,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
92230
93993
|
const path$17 = isWindows ? __require("node:path/win32") : __require("node:path");
|
|
92231
93994
|
const { homedir: homedir$1 } = __require("node:os");
|
|
92232
93995
|
const HostedGit = require_lib$28();
|
|
92233
|
-
const semver = require_semver();
|
|
93996
|
+
const semver = require_semver$2();
|
|
92234
93997
|
const validatePackageName = require_lib$23();
|
|
92235
93998
|
const { log } = require_lib$29();
|
|
92236
93999
|
const hasSlashes = isWindows ? /\\|[/]/ : /[/]/;
|
|
@@ -92603,8 +94366,8 @@ var require_current_env = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
92603
94366
|
//#endregion
|
|
92604
94367
|
//#region ../../node_modules/npm-install-checks/lib/dev-engines.js
|
|
92605
94368
|
var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92606
|
-
const satisfies = require_satisfies();
|
|
92607
|
-
const validRange = require_valid();
|
|
94369
|
+
const satisfies = require_satisfies$1();
|
|
94370
|
+
const validRange = require_valid$2();
|
|
92608
94371
|
const recognizedOnFail = [
|
|
92609
94372
|
"ignore",
|
|
92610
94373
|
"warn",
|
|
@@ -92684,7 +94447,7 @@ var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
92684
94447
|
//#endregion
|
|
92685
94448
|
//#region ../../node_modules/npm-install-checks/lib/index.js
|
|
92686
94449
|
var require_lib$22 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92687
|
-
const semver = require_semver();
|
|
94450
|
+
const semver = require_semver$2();
|
|
92688
94451
|
const currentEnv = require_current_env();
|
|
92689
94452
|
const { checkDevEngines } = require_dev_engines();
|
|
92690
94453
|
const checkEngine = (target, npmVer, nodeVer, force = false) => {
|
|
@@ -92793,7 +94556,7 @@ var require_lib$21 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
92793
94556
|
//#region ../../node_modules/npm-pick-manifest/lib/index.js
|
|
92794
94557
|
var require_lib$20 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
92795
94558
|
const npa = require_npa();
|
|
92796
|
-
const semver = require_semver();
|
|
94559
|
+
const semver = require_semver$2();
|
|
92797
94560
|
const { checkEngine } = require_lib$22();
|
|
92798
94561
|
const normalizeBin = require_lib$21();
|
|
92799
94562
|
const engineOk = (manifest, npmVersion, nodeVersion) => {
|
|
@@ -93087,8 +94850,8 @@ var require_lib$19 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
93087
94850
|
//#endregion
|
|
93088
94851
|
//#region ../../node_modules/@npmcli/package-json/lib/normalize.js
|
|
93089
94852
|
var require_normalize = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
93090
|
-
const valid = require_valid$
|
|
93091
|
-
const clean = require_clean();
|
|
94853
|
+
const valid = require_valid$3();
|
|
94854
|
+
const clean = require_clean$1();
|
|
93092
94855
|
const fs$13 = __require("node:fs/promises");
|
|
93093
94856
|
const path$15 = __require("node:path");
|
|
93094
94857
|
const { log } = require_lib$29();
|
|
@@ -93519,7 +95282,7 @@ var require_read_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
93519
95282
|
}));
|
|
93520
95283
|
//#endregion
|
|
93521
95284
|
//#region ../../node_modules/@npmcli/package-json/lib/sort.js
|
|
93522
|
-
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
95285
|
+
var require_sort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
93523
95286
|
/**
|
|
93524
95287
|
* arbitrary sort order for package.json largely pulled from:
|
|
93525
95288
|
* https://github.com/keithamus/sort-package-json/blob/main/defaultRules.md
|
|
@@ -93587,7 +95350,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
93587
95350
|
const updateWorkspaces = require_update_workspaces();
|
|
93588
95351
|
const { normalize, syncNormalize } = require_normalize();
|
|
93589
95352
|
const { read, parse } = require_read_package();
|
|
93590
|
-
const { packageSort } = require_sort();
|
|
95353
|
+
const { packageSort } = require_sort$1();
|
|
93591
95354
|
const knownSteps = new Set([
|
|
93592
95355
|
updateDeps,
|
|
93593
95356
|
updateScripts,
|
|
@@ -94733,7 +96496,7 @@ var require_get_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
94733
96496
|
//#endregion
|
|
94734
96497
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/common/node.js
|
|
94735
96498
|
var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
94736
|
-
const semver = require_semver();
|
|
96499
|
+
const semver = require_semver$2();
|
|
94737
96500
|
const satisfies = (range) => {
|
|
94738
96501
|
return semver.satisfies(process.version, range, { includePrerelease: true });
|
|
94739
96502
|
};
|
|
@@ -107267,7 +109030,7 @@ var require_errors$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
107267
109030
|
}));
|
|
107268
109031
|
//#endregion
|
|
107269
109032
|
//#region ../../node_modules/minizlib/dist/commonjs/constants.js
|
|
107270
|
-
var require_constants$
|
|
109033
|
+
var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
107271
109034
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
107272
109035
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
107273
109036
|
};
|
|
@@ -107438,8 +109201,8 @@ var require_commonjs$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
107438
109201
|
const buffer_1$1 = __require("buffer");
|
|
107439
109202
|
const minipass_1 = require_commonjs$10();
|
|
107440
109203
|
const realZlib = __importStar(__require("zlib"));
|
|
107441
|
-
const constants_js_1 = require_constants$
|
|
107442
|
-
var constants_js_2 = require_constants$
|
|
109204
|
+
const constants_js_1 = require_constants$4();
|
|
109205
|
+
var constants_js_2 = require_constants$4();
|
|
107443
109206
|
Object.defineProperty(exports, "constants", {
|
|
107444
109207
|
enumerable: true,
|
|
107445
109208
|
get: function() {
|
|
@@ -122081,7 +123844,7 @@ var require_smartbuffer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
122081
123844
|
}));
|
|
122082
123845
|
//#endregion
|
|
122083
123846
|
//#region ../../node_modules/socks/build/common/constants.js
|
|
122084
|
-
var require_constants$
|
|
123847
|
+
var require_constants$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
122085
123848
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
122086
123849
|
exports.SOCKS5_NO_ACCEPTABLE_AUTH = exports.SOCKS5_CUSTOM_AUTH_END = exports.SOCKS5_CUSTOM_AUTH_START = exports.SOCKS_INCOMING_PACKET_SIZES = exports.SocksClientState = exports.Socks5Response = exports.Socks5HostType = exports.Socks5Auth = exports.Socks4Response = exports.SocksCommand = exports.ERRORS = exports.DEFAULT_TIMEOUT = void 0;
|
|
122087
123850
|
exports.DEFAULT_TIMEOUT = 3e4;
|
|
@@ -122247,7 +124010,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
122247
124010
|
}));
|
|
122248
124011
|
//#endregion
|
|
122249
124012
|
//#region ../../node_modules/ip-address/dist/v4/constants.js
|
|
122250
|
-
var require_constants$
|
|
124013
|
+
var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
122251
124014
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
122252
124015
|
exports.RE_SUBNET_STRING = exports.RE_ADDRESS = exports.GROUPS = exports.BITS = void 0;
|
|
122253
124016
|
exports.BITS = 32;
|
|
@@ -122306,7 +124069,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
122306
124069
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
122307
124070
|
exports.Address4 = void 0;
|
|
122308
124071
|
const common = __importStar(require_common());
|
|
122309
|
-
const constants = __importStar(require_constants$
|
|
124072
|
+
const constants = __importStar(require_constants$2());
|
|
122310
124073
|
const address_error_1 = require_address_error();
|
|
122311
124074
|
exports.Address4 = class Address4 {
|
|
122312
124075
|
constructor(address) {
|
|
@@ -122600,7 +124363,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
122600
124363
|
}));
|
|
122601
124364
|
//#endregion
|
|
122602
124365
|
//#region ../../node_modules/ip-address/dist/v6/constants.js
|
|
122603
|
-
var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
124366
|
+
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
122604
124367
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
122605
124368
|
exports.RE_URL_WITH_PORT = exports.RE_URL = exports.RE_ZONE_STRING = exports.RE_SUBNET_STRING = exports.RE_BAD_ADDRESS = exports.RE_BAD_CHARACTERS = exports.TYPES = exports.SCOPES = exports.GROUPS = exports.BITS = void 0;
|
|
122606
124369
|
exports.BITS = 128;
|
|
@@ -122756,7 +124519,7 @@ var require_regular_expressions = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
122756
124519
|
exports.padGroup = padGroup;
|
|
122757
124520
|
exports.simpleRegularExpression = simpleRegularExpression;
|
|
122758
124521
|
exports.possibleElisions = possibleElisions;
|
|
122759
|
-
const v6 = __importStar(require_constants());
|
|
124522
|
+
const v6 = __importStar(require_constants$1());
|
|
122760
124523
|
function groupPossibilities(possibilities) {
|
|
122761
124524
|
return `(${possibilities.join("|")})`;
|
|
122762
124525
|
}
|
|
@@ -122831,8 +124594,8 @@ var require_ipv6 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
122831
124594
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
122832
124595
|
exports.Address6 = void 0;
|
|
122833
124596
|
const common = __importStar(require_common());
|
|
122834
|
-
const constants4 = __importStar(require_constants$
|
|
122835
|
-
const constants6 = __importStar(require_constants());
|
|
124597
|
+
const constants4 = __importStar(require_constants$2());
|
|
124598
|
+
const constants6 = __importStar(require_constants$1());
|
|
122836
124599
|
const helpers = __importStar(require_helpers$1());
|
|
122837
124600
|
const ipv4_1 = require_ipv4();
|
|
122838
124601
|
const regular_expressions_1 = require_regular_expressions();
|
|
@@ -123652,7 +125415,7 @@ var require_helpers = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
123652
125415
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
123653
125416
|
exports.ipToBuffer = exports.int32ToIpv4 = exports.ipv4ToInt32 = exports.validateSocksClientChainOptions = exports.validateSocksClientOptions = void 0;
|
|
123654
125417
|
const util_1 = require_util$1();
|
|
123655
|
-
const constants_1 = require_constants$
|
|
125418
|
+
const constants_1 = require_constants$3();
|
|
123656
125419
|
const stream = __require("stream");
|
|
123657
125420
|
const ip_address_1 = require_ip_address();
|
|
123658
125421
|
const net$3 = __require("net");
|
|
@@ -123817,7 +125580,7 @@ var require_socksclient = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
123817
125580
|
const events_1 = __require("events");
|
|
123818
125581
|
const net$2 = __require("net");
|
|
123819
125582
|
const smart_buffer_1 = require_smartbuffer();
|
|
123820
|
-
const constants_1 = require_constants$
|
|
125583
|
+
const constants_1 = require_constants$3();
|
|
123821
125584
|
const helpers_1 = require_helpers();
|
|
123822
125585
|
const receivebuffer_1 = require_receivebuffer();
|
|
123823
125586
|
const util_1 = require_util$1();
|
|
@@ -128066,7 +129829,7 @@ var require_length = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
128066
129829
|
}));
|
|
128067
129830
|
//#endregion
|
|
128068
129831
|
//#region ../../node_modules/@sigstore/core/dist/asn1/parse.js
|
|
128069
|
-
var require_parse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
129832
|
+
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
128070
129833
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
128071
129834
|
exports.parseInteger = parseInteger;
|
|
128072
129835
|
exports.parseStringASCII = parseStringASCII;
|
|
@@ -128212,7 +129975,7 @@ var require_obj = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
128212
129975
|
const stream_1 = require_stream();
|
|
128213
129976
|
const error_1 = require_error$8();
|
|
128214
129977
|
const length_1 = require_length();
|
|
128215
|
-
const parse_1 = require_parse();
|
|
129978
|
+
const parse_1 = require_parse$1();
|
|
128216
129979
|
const tag_1 = require_tag();
|
|
128217
129980
|
var ASN1Obj = class {
|
|
128218
129981
|
tag;
|
|
@@ -136528,6 +138291,1343 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
136528
138291
|
};
|
|
136529
138292
|
}));
|
|
136530
138293
|
//#endregion
|
|
138294
|
+
//#region ../../packages/core-node/node_modules/semver/internal/constants.js
|
|
138295
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138296
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
138297
|
+
const MAX_LENGTH = 256;
|
|
138298
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
138299
|
+
module.exports = {
|
|
138300
|
+
MAX_LENGTH,
|
|
138301
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
138302
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
138303
|
+
MAX_SAFE_INTEGER,
|
|
138304
|
+
RELEASE_TYPES: [
|
|
138305
|
+
"major",
|
|
138306
|
+
"premajor",
|
|
138307
|
+
"minor",
|
|
138308
|
+
"preminor",
|
|
138309
|
+
"patch",
|
|
138310
|
+
"prepatch",
|
|
138311
|
+
"prerelease"
|
|
138312
|
+
],
|
|
138313
|
+
SEMVER_SPEC_VERSION,
|
|
138314
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
138315
|
+
FLAG_LOOSE: 2
|
|
138316
|
+
};
|
|
138317
|
+
}));
|
|
138318
|
+
//#endregion
|
|
138319
|
+
//#region ../../packages/core-node/node_modules/semver/internal/debug.js
|
|
138320
|
+
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138321
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
138322
|
+
}));
|
|
138323
|
+
//#endregion
|
|
138324
|
+
//#region ../../packages/core-node/node_modules/semver/internal/re.js
|
|
138325
|
+
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138326
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
138327
|
+
const debug = require_debug();
|
|
138328
|
+
exports = module.exports = {};
|
|
138329
|
+
const re = exports.re = [];
|
|
138330
|
+
const safeRe = exports.safeRe = [];
|
|
138331
|
+
const src = exports.src = [];
|
|
138332
|
+
const safeSrc = exports.safeSrc = [];
|
|
138333
|
+
const t = exports.t = {};
|
|
138334
|
+
let R = 0;
|
|
138335
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
138336
|
+
const safeRegexReplacements = [
|
|
138337
|
+
["\\s", 1],
|
|
138338
|
+
["\\d", MAX_LENGTH],
|
|
138339
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
138340
|
+
];
|
|
138341
|
+
const makeSafeRegex = (value) => {
|
|
138342
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
138343
|
+
return value;
|
|
138344
|
+
};
|
|
138345
|
+
const createToken = (name, value, isGlobal) => {
|
|
138346
|
+
const safe = makeSafeRegex(value);
|
|
138347
|
+
const index = R++;
|
|
138348
|
+
debug(name, index, value);
|
|
138349
|
+
t[name] = index;
|
|
138350
|
+
src[index] = value;
|
|
138351
|
+
safeSrc[index] = safe;
|
|
138352
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
138353
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
138354
|
+
};
|
|
138355
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
138356
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
138357
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
138358
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
138359
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
138360
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
138361
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
138362
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
138363
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
138364
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
138365
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
138366
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
138367
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
138368
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
138369
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
138370
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
138371
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
138372
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
138373
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
138374
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
138375
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
138376
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
138377
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
138378
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
138379
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
138380
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
138381
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
138382
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
138383
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
138384
|
+
exports.tildeTrimReplace = "$1~";
|
|
138385
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
138386
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
138387
|
+
createToken("LONECARET", "(?:\\^)");
|
|
138388
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
138389
|
+
exports.caretTrimReplace = "$1^";
|
|
138390
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
138391
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
138392
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
138393
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
138394
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
138395
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
138396
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
138397
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
138398
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
138399
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
138400
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
138401
|
+
}));
|
|
138402
|
+
//#endregion
|
|
138403
|
+
//#region ../../packages/core-node/node_modules/semver/internal/parse-options.js
|
|
138404
|
+
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138405
|
+
const looseOption = Object.freeze({ loose: true });
|
|
138406
|
+
const emptyOpts = Object.freeze({});
|
|
138407
|
+
const parseOptions = (options) => {
|
|
138408
|
+
if (!options) return emptyOpts;
|
|
138409
|
+
if (typeof options !== "object") return looseOption;
|
|
138410
|
+
return options;
|
|
138411
|
+
};
|
|
138412
|
+
module.exports = parseOptions;
|
|
138413
|
+
}));
|
|
138414
|
+
//#endregion
|
|
138415
|
+
//#region ../../packages/core-node/node_modules/semver/internal/identifiers.js
|
|
138416
|
+
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138417
|
+
const numeric = /^[0-9]+$/;
|
|
138418
|
+
const compareIdentifiers = (a, b) => {
|
|
138419
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
138420
|
+
const anum = numeric.test(a);
|
|
138421
|
+
const bnum = numeric.test(b);
|
|
138422
|
+
if (anum && bnum) {
|
|
138423
|
+
a = +a;
|
|
138424
|
+
b = +b;
|
|
138425
|
+
}
|
|
138426
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
138427
|
+
};
|
|
138428
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
138429
|
+
module.exports = {
|
|
138430
|
+
compareIdentifiers,
|
|
138431
|
+
rcompareIdentifiers
|
|
138432
|
+
};
|
|
138433
|
+
}));
|
|
138434
|
+
//#endregion
|
|
138435
|
+
//#region ../../packages/core-node/node_modules/semver/classes/semver.js
|
|
138436
|
+
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138437
|
+
const debug = require_debug();
|
|
138438
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
138439
|
+
const { safeRe: re, t } = require_re();
|
|
138440
|
+
const parseOptions = require_parse_options();
|
|
138441
|
+
const { compareIdentifiers } = require_identifiers();
|
|
138442
|
+
module.exports = class SemVer {
|
|
138443
|
+
constructor(version, options) {
|
|
138444
|
+
options = parseOptions(options);
|
|
138445
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
138446
|
+
else version = version.version;
|
|
138447
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
138448
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
138449
|
+
debug("SemVer", version, options);
|
|
138450
|
+
this.options = options;
|
|
138451
|
+
this.loose = !!options.loose;
|
|
138452
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
138453
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
138454
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
138455
|
+
this.raw = version;
|
|
138456
|
+
this.major = +m[1];
|
|
138457
|
+
this.minor = +m[2];
|
|
138458
|
+
this.patch = +m[3];
|
|
138459
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
138460
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
138461
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
138462
|
+
if (!m[4]) this.prerelease = [];
|
|
138463
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
138464
|
+
if (/^[0-9]+$/.test(id)) {
|
|
138465
|
+
const num = +id;
|
|
138466
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
138467
|
+
}
|
|
138468
|
+
return id;
|
|
138469
|
+
});
|
|
138470
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
138471
|
+
this.format();
|
|
138472
|
+
}
|
|
138473
|
+
format() {
|
|
138474
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
138475
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
138476
|
+
return this.version;
|
|
138477
|
+
}
|
|
138478
|
+
toString() {
|
|
138479
|
+
return this.version;
|
|
138480
|
+
}
|
|
138481
|
+
compare(other) {
|
|
138482
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
138483
|
+
if (!(other instanceof SemVer)) {
|
|
138484
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
138485
|
+
other = new SemVer(other, this.options);
|
|
138486
|
+
}
|
|
138487
|
+
if (other.version === this.version) return 0;
|
|
138488
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
138489
|
+
}
|
|
138490
|
+
compareMain(other) {
|
|
138491
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
138492
|
+
if (this.major < other.major) return -1;
|
|
138493
|
+
if (this.major > other.major) return 1;
|
|
138494
|
+
if (this.minor < other.minor) return -1;
|
|
138495
|
+
if (this.minor > other.minor) return 1;
|
|
138496
|
+
if (this.patch < other.patch) return -1;
|
|
138497
|
+
if (this.patch > other.patch) return 1;
|
|
138498
|
+
return 0;
|
|
138499
|
+
}
|
|
138500
|
+
comparePre(other) {
|
|
138501
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
138502
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
138503
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
138504
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
138505
|
+
let i = 0;
|
|
138506
|
+
do {
|
|
138507
|
+
const a = this.prerelease[i];
|
|
138508
|
+
const b = other.prerelease[i];
|
|
138509
|
+
debug("prerelease compare", i, a, b);
|
|
138510
|
+
if (a === void 0 && b === void 0) return 0;
|
|
138511
|
+
else if (b === void 0) return 1;
|
|
138512
|
+
else if (a === void 0) return -1;
|
|
138513
|
+
else if (a === b) continue;
|
|
138514
|
+
else return compareIdentifiers(a, b);
|
|
138515
|
+
} while (++i);
|
|
138516
|
+
}
|
|
138517
|
+
compareBuild(other) {
|
|
138518
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
138519
|
+
let i = 0;
|
|
138520
|
+
do {
|
|
138521
|
+
const a = this.build[i];
|
|
138522
|
+
const b = other.build[i];
|
|
138523
|
+
debug("build compare", i, a, b);
|
|
138524
|
+
if (a === void 0 && b === void 0) return 0;
|
|
138525
|
+
else if (b === void 0) return 1;
|
|
138526
|
+
else if (a === void 0) return -1;
|
|
138527
|
+
else if (a === b) continue;
|
|
138528
|
+
else return compareIdentifiers(a, b);
|
|
138529
|
+
} while (++i);
|
|
138530
|
+
}
|
|
138531
|
+
inc(release, identifier, identifierBase) {
|
|
138532
|
+
if (release.startsWith("pre")) {
|
|
138533
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
138534
|
+
if (identifier) {
|
|
138535
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
138536
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
138537
|
+
}
|
|
138538
|
+
}
|
|
138539
|
+
switch (release) {
|
|
138540
|
+
case "premajor":
|
|
138541
|
+
this.prerelease.length = 0;
|
|
138542
|
+
this.patch = 0;
|
|
138543
|
+
this.minor = 0;
|
|
138544
|
+
this.major++;
|
|
138545
|
+
this.inc("pre", identifier, identifierBase);
|
|
138546
|
+
break;
|
|
138547
|
+
case "preminor":
|
|
138548
|
+
this.prerelease.length = 0;
|
|
138549
|
+
this.patch = 0;
|
|
138550
|
+
this.minor++;
|
|
138551
|
+
this.inc("pre", identifier, identifierBase);
|
|
138552
|
+
break;
|
|
138553
|
+
case "prepatch":
|
|
138554
|
+
this.prerelease.length = 0;
|
|
138555
|
+
this.inc("patch", identifier, identifierBase);
|
|
138556
|
+
this.inc("pre", identifier, identifierBase);
|
|
138557
|
+
break;
|
|
138558
|
+
case "prerelease":
|
|
138559
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
138560
|
+
this.inc("pre", identifier, identifierBase);
|
|
138561
|
+
break;
|
|
138562
|
+
case "release":
|
|
138563
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
138564
|
+
this.prerelease.length = 0;
|
|
138565
|
+
break;
|
|
138566
|
+
case "major":
|
|
138567
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
138568
|
+
this.minor = 0;
|
|
138569
|
+
this.patch = 0;
|
|
138570
|
+
this.prerelease = [];
|
|
138571
|
+
break;
|
|
138572
|
+
case "minor":
|
|
138573
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
138574
|
+
this.patch = 0;
|
|
138575
|
+
this.prerelease = [];
|
|
138576
|
+
break;
|
|
138577
|
+
case "patch":
|
|
138578
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
138579
|
+
this.prerelease = [];
|
|
138580
|
+
break;
|
|
138581
|
+
case "pre": {
|
|
138582
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
138583
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
138584
|
+
else {
|
|
138585
|
+
let i = this.prerelease.length;
|
|
138586
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
138587
|
+
this.prerelease[i]++;
|
|
138588
|
+
i = -2;
|
|
138589
|
+
}
|
|
138590
|
+
if (i === -1) {
|
|
138591
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
138592
|
+
this.prerelease.push(base);
|
|
138593
|
+
}
|
|
138594
|
+
}
|
|
138595
|
+
if (identifier) {
|
|
138596
|
+
let prerelease = [identifier, base];
|
|
138597
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
138598
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
138599
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
138600
|
+
} else this.prerelease = prerelease;
|
|
138601
|
+
}
|
|
138602
|
+
break;
|
|
138603
|
+
}
|
|
138604
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
138605
|
+
}
|
|
138606
|
+
this.raw = this.format();
|
|
138607
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
138608
|
+
return this;
|
|
138609
|
+
}
|
|
138610
|
+
};
|
|
138611
|
+
}));
|
|
138612
|
+
//#endregion
|
|
138613
|
+
//#region ../../packages/core-node/node_modules/semver/functions/parse.js
|
|
138614
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138615
|
+
const SemVer = require_semver$1();
|
|
138616
|
+
const parse = (version, options, throwErrors = false) => {
|
|
138617
|
+
if (version instanceof SemVer) return version;
|
|
138618
|
+
try {
|
|
138619
|
+
return new SemVer(version, options);
|
|
138620
|
+
} catch (er) {
|
|
138621
|
+
if (!throwErrors) return null;
|
|
138622
|
+
throw er;
|
|
138623
|
+
}
|
|
138624
|
+
};
|
|
138625
|
+
module.exports = parse;
|
|
138626
|
+
}));
|
|
138627
|
+
//#endregion
|
|
138628
|
+
//#region ../../packages/core-node/node_modules/semver/functions/valid.js
|
|
138629
|
+
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138630
|
+
const parse = require_parse();
|
|
138631
|
+
const valid = (version, options) => {
|
|
138632
|
+
const v = parse(version, options);
|
|
138633
|
+
return v ? v.version : null;
|
|
138634
|
+
};
|
|
138635
|
+
module.exports = valid;
|
|
138636
|
+
}));
|
|
138637
|
+
//#endregion
|
|
138638
|
+
//#region ../../packages/core-node/node_modules/semver/functions/clean.js
|
|
138639
|
+
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138640
|
+
const parse = require_parse();
|
|
138641
|
+
const clean = (version, options) => {
|
|
138642
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
138643
|
+
return s ? s.version : null;
|
|
138644
|
+
};
|
|
138645
|
+
module.exports = clean;
|
|
138646
|
+
}));
|
|
138647
|
+
//#endregion
|
|
138648
|
+
//#region ../../packages/core-node/node_modules/semver/functions/inc.js
|
|
138649
|
+
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138650
|
+
const SemVer = require_semver$1();
|
|
138651
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
138652
|
+
if (typeof options === "string") {
|
|
138653
|
+
identifierBase = identifier;
|
|
138654
|
+
identifier = options;
|
|
138655
|
+
options = void 0;
|
|
138656
|
+
}
|
|
138657
|
+
try {
|
|
138658
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
138659
|
+
} catch (er) {
|
|
138660
|
+
return null;
|
|
138661
|
+
}
|
|
138662
|
+
};
|
|
138663
|
+
module.exports = inc;
|
|
138664
|
+
}));
|
|
138665
|
+
//#endregion
|
|
138666
|
+
//#region ../../packages/core-node/node_modules/semver/functions/diff.js
|
|
138667
|
+
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138668
|
+
const parse = require_parse();
|
|
138669
|
+
const diff = (version1, version2) => {
|
|
138670
|
+
const v1 = parse(version1, null, true);
|
|
138671
|
+
const v2 = parse(version2, null, true);
|
|
138672
|
+
const comparison = v1.compare(v2);
|
|
138673
|
+
if (comparison === 0) return null;
|
|
138674
|
+
const v1Higher = comparison > 0;
|
|
138675
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
138676
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
138677
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
138678
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
138679
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
138680
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
138681
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
138682
|
+
return "patch";
|
|
138683
|
+
}
|
|
138684
|
+
}
|
|
138685
|
+
const prefix = highHasPre ? "pre" : "";
|
|
138686
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
138687
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
138688
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
138689
|
+
return "prerelease";
|
|
138690
|
+
};
|
|
138691
|
+
module.exports = diff;
|
|
138692
|
+
}));
|
|
138693
|
+
//#endregion
|
|
138694
|
+
//#region ../../packages/core-node/node_modules/semver/functions/major.js
|
|
138695
|
+
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138696
|
+
const SemVer = require_semver$1();
|
|
138697
|
+
const major = (a, loose) => new SemVer(a, loose).major;
|
|
138698
|
+
module.exports = major;
|
|
138699
|
+
}));
|
|
138700
|
+
//#endregion
|
|
138701
|
+
//#region ../../packages/core-node/node_modules/semver/functions/minor.js
|
|
138702
|
+
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138703
|
+
const SemVer = require_semver$1();
|
|
138704
|
+
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
138705
|
+
module.exports = minor;
|
|
138706
|
+
}));
|
|
138707
|
+
//#endregion
|
|
138708
|
+
//#region ../../packages/core-node/node_modules/semver/functions/patch.js
|
|
138709
|
+
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138710
|
+
const SemVer = require_semver$1();
|
|
138711
|
+
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
138712
|
+
module.exports = patch;
|
|
138713
|
+
}));
|
|
138714
|
+
//#endregion
|
|
138715
|
+
//#region ../../packages/core-node/node_modules/semver/functions/prerelease.js
|
|
138716
|
+
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138717
|
+
const parse = require_parse();
|
|
138718
|
+
const prerelease = (version, options) => {
|
|
138719
|
+
const parsed = parse(version, options);
|
|
138720
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
138721
|
+
};
|
|
138722
|
+
module.exports = prerelease;
|
|
138723
|
+
}));
|
|
138724
|
+
//#endregion
|
|
138725
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare.js
|
|
138726
|
+
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138727
|
+
const SemVer = require_semver$1();
|
|
138728
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
138729
|
+
module.exports = compare;
|
|
138730
|
+
}));
|
|
138731
|
+
//#endregion
|
|
138732
|
+
//#region ../../packages/core-node/node_modules/semver/functions/rcompare.js
|
|
138733
|
+
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138734
|
+
const compare = require_compare();
|
|
138735
|
+
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
138736
|
+
module.exports = rcompare;
|
|
138737
|
+
}));
|
|
138738
|
+
//#endregion
|
|
138739
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare-loose.js
|
|
138740
|
+
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138741
|
+
const compare = require_compare();
|
|
138742
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
138743
|
+
module.exports = compareLoose;
|
|
138744
|
+
}));
|
|
138745
|
+
//#endregion
|
|
138746
|
+
//#region ../../packages/core-node/node_modules/semver/functions/compare-build.js
|
|
138747
|
+
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138748
|
+
const SemVer = require_semver$1();
|
|
138749
|
+
const compareBuild = (a, b, loose) => {
|
|
138750
|
+
const versionA = new SemVer(a, loose);
|
|
138751
|
+
const versionB = new SemVer(b, loose);
|
|
138752
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
138753
|
+
};
|
|
138754
|
+
module.exports = compareBuild;
|
|
138755
|
+
}));
|
|
138756
|
+
//#endregion
|
|
138757
|
+
//#region ../../packages/core-node/node_modules/semver/functions/sort.js
|
|
138758
|
+
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138759
|
+
const compareBuild = require_compare_build();
|
|
138760
|
+
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
138761
|
+
module.exports = sort;
|
|
138762
|
+
}));
|
|
138763
|
+
//#endregion
|
|
138764
|
+
//#region ../../packages/core-node/node_modules/semver/functions/rsort.js
|
|
138765
|
+
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138766
|
+
const compareBuild = require_compare_build();
|
|
138767
|
+
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
138768
|
+
module.exports = rsort;
|
|
138769
|
+
}));
|
|
138770
|
+
//#endregion
|
|
138771
|
+
//#region ../../packages/core-node/node_modules/semver/functions/gt.js
|
|
138772
|
+
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138773
|
+
const compare = require_compare();
|
|
138774
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
138775
|
+
module.exports = gt;
|
|
138776
|
+
}));
|
|
138777
|
+
//#endregion
|
|
138778
|
+
//#region ../../packages/core-node/node_modules/semver/functions/lt.js
|
|
138779
|
+
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138780
|
+
const compare = require_compare();
|
|
138781
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
138782
|
+
module.exports = lt;
|
|
138783
|
+
}));
|
|
138784
|
+
//#endregion
|
|
138785
|
+
//#region ../../packages/core-node/node_modules/semver/functions/eq.js
|
|
138786
|
+
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138787
|
+
const compare = require_compare();
|
|
138788
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
138789
|
+
module.exports = eq;
|
|
138790
|
+
}));
|
|
138791
|
+
//#endregion
|
|
138792
|
+
//#region ../../packages/core-node/node_modules/semver/functions/neq.js
|
|
138793
|
+
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138794
|
+
const compare = require_compare();
|
|
138795
|
+
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
138796
|
+
module.exports = neq;
|
|
138797
|
+
}));
|
|
138798
|
+
//#endregion
|
|
138799
|
+
//#region ../../packages/core-node/node_modules/semver/functions/gte.js
|
|
138800
|
+
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138801
|
+
const compare = require_compare();
|
|
138802
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
138803
|
+
module.exports = gte;
|
|
138804
|
+
}));
|
|
138805
|
+
//#endregion
|
|
138806
|
+
//#region ../../packages/core-node/node_modules/semver/functions/lte.js
|
|
138807
|
+
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138808
|
+
const compare = require_compare();
|
|
138809
|
+
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
138810
|
+
module.exports = lte;
|
|
138811
|
+
}));
|
|
138812
|
+
//#endregion
|
|
138813
|
+
//#region ../../packages/core-node/node_modules/semver/functions/cmp.js
|
|
138814
|
+
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138815
|
+
const eq = require_eq();
|
|
138816
|
+
const neq = require_neq();
|
|
138817
|
+
const gt = require_gt();
|
|
138818
|
+
const gte = require_gte();
|
|
138819
|
+
const lt = require_lt();
|
|
138820
|
+
const lte = require_lte();
|
|
138821
|
+
const cmp = (a, op, b, loose) => {
|
|
138822
|
+
switch (op) {
|
|
138823
|
+
case "===":
|
|
138824
|
+
if (typeof a === "object") a = a.version;
|
|
138825
|
+
if (typeof b === "object") b = b.version;
|
|
138826
|
+
return a === b;
|
|
138827
|
+
case "!==":
|
|
138828
|
+
if (typeof a === "object") a = a.version;
|
|
138829
|
+
if (typeof b === "object") b = b.version;
|
|
138830
|
+
return a !== b;
|
|
138831
|
+
case "":
|
|
138832
|
+
case "=":
|
|
138833
|
+
case "==": return eq(a, b, loose);
|
|
138834
|
+
case "!=": return neq(a, b, loose);
|
|
138835
|
+
case ">": return gt(a, b, loose);
|
|
138836
|
+
case ">=": return gte(a, b, loose);
|
|
138837
|
+
case "<": return lt(a, b, loose);
|
|
138838
|
+
case "<=": return lte(a, b, loose);
|
|
138839
|
+
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
138840
|
+
}
|
|
138841
|
+
};
|
|
138842
|
+
module.exports = cmp;
|
|
138843
|
+
}));
|
|
138844
|
+
//#endregion
|
|
138845
|
+
//#region ../../packages/core-node/node_modules/semver/functions/coerce.js
|
|
138846
|
+
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138847
|
+
const SemVer = require_semver$1();
|
|
138848
|
+
const parse = require_parse();
|
|
138849
|
+
const { safeRe: re, t } = require_re();
|
|
138850
|
+
const coerce = (version, options) => {
|
|
138851
|
+
if (version instanceof SemVer) return version;
|
|
138852
|
+
if (typeof version === "number") version = String(version);
|
|
138853
|
+
if (typeof version !== "string") return null;
|
|
138854
|
+
options = options || {};
|
|
138855
|
+
let match = null;
|
|
138856
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
138857
|
+
else {
|
|
138858
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
138859
|
+
let next;
|
|
138860
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
138861
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
138862
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
138863
|
+
}
|
|
138864
|
+
coerceRtlRegex.lastIndex = -1;
|
|
138865
|
+
}
|
|
138866
|
+
if (match === null) return null;
|
|
138867
|
+
const major = match[2];
|
|
138868
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
138869
|
+
};
|
|
138870
|
+
module.exports = coerce;
|
|
138871
|
+
}));
|
|
138872
|
+
//#endregion
|
|
138873
|
+
//#region ../../packages/core-node/node_modules/semver/internal/lrucache.js
|
|
138874
|
+
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138875
|
+
var LRUCache = class {
|
|
138876
|
+
constructor() {
|
|
138877
|
+
this.max = 1e3;
|
|
138878
|
+
this.map = /* @__PURE__ */ new Map();
|
|
138879
|
+
}
|
|
138880
|
+
get(key) {
|
|
138881
|
+
const value = this.map.get(key);
|
|
138882
|
+
if (value === void 0) return;
|
|
138883
|
+
else {
|
|
138884
|
+
this.map.delete(key);
|
|
138885
|
+
this.map.set(key, value);
|
|
138886
|
+
return value;
|
|
138887
|
+
}
|
|
138888
|
+
}
|
|
138889
|
+
delete(key) {
|
|
138890
|
+
return this.map.delete(key);
|
|
138891
|
+
}
|
|
138892
|
+
set(key, value) {
|
|
138893
|
+
if (!this.delete(key) && value !== void 0) {
|
|
138894
|
+
if (this.map.size >= this.max) {
|
|
138895
|
+
const firstKey = this.map.keys().next().value;
|
|
138896
|
+
this.delete(firstKey);
|
|
138897
|
+
}
|
|
138898
|
+
this.map.set(key, value);
|
|
138899
|
+
}
|
|
138900
|
+
return this;
|
|
138901
|
+
}
|
|
138902
|
+
};
|
|
138903
|
+
module.exports = LRUCache;
|
|
138904
|
+
}));
|
|
138905
|
+
//#endregion
|
|
138906
|
+
//#region ../../packages/core-node/node_modules/semver/classes/range.js
|
|
138907
|
+
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
138908
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
138909
|
+
module.exports = class Range {
|
|
138910
|
+
constructor(range, options) {
|
|
138911
|
+
options = parseOptions(options);
|
|
138912
|
+
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
138913
|
+
else return new Range(range.raw, options);
|
|
138914
|
+
if (range instanceof Comparator) {
|
|
138915
|
+
this.raw = range.value;
|
|
138916
|
+
this.set = [[range]];
|
|
138917
|
+
this.formatted = void 0;
|
|
138918
|
+
return this;
|
|
138919
|
+
}
|
|
138920
|
+
this.options = options;
|
|
138921
|
+
this.loose = !!options.loose;
|
|
138922
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
138923
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
138924
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
138925
|
+
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
138926
|
+
if (this.set.length > 1) {
|
|
138927
|
+
const first = this.set[0];
|
|
138928
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
138929
|
+
if (this.set.length === 0) this.set = [first];
|
|
138930
|
+
else if (this.set.length > 1) {
|
|
138931
|
+
for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
|
|
138932
|
+
this.set = [c];
|
|
138933
|
+
break;
|
|
138934
|
+
}
|
|
138935
|
+
}
|
|
138936
|
+
}
|
|
138937
|
+
this.formatted = void 0;
|
|
138938
|
+
}
|
|
138939
|
+
get range() {
|
|
138940
|
+
if (this.formatted === void 0) {
|
|
138941
|
+
this.formatted = "";
|
|
138942
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
138943
|
+
if (i > 0) this.formatted += "||";
|
|
138944
|
+
const comps = this.set[i];
|
|
138945
|
+
for (let k = 0; k < comps.length; k++) {
|
|
138946
|
+
if (k > 0) this.formatted += " ";
|
|
138947
|
+
this.formatted += comps[k].toString().trim();
|
|
138948
|
+
}
|
|
138949
|
+
}
|
|
138950
|
+
}
|
|
138951
|
+
return this.formatted;
|
|
138952
|
+
}
|
|
138953
|
+
format() {
|
|
138954
|
+
return this.range;
|
|
138955
|
+
}
|
|
138956
|
+
toString() {
|
|
138957
|
+
return this.range;
|
|
138958
|
+
}
|
|
138959
|
+
parseRange(range) {
|
|
138960
|
+
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
138961
|
+
const cached = cache.get(memoKey);
|
|
138962
|
+
if (cached) return cached;
|
|
138963
|
+
const loose = this.options.loose;
|
|
138964
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
138965
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
138966
|
+
debug("hyphen replace", range);
|
|
138967
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
138968
|
+
debug("comparator trim", range);
|
|
138969
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
138970
|
+
debug("tilde trim", range);
|
|
138971
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
138972
|
+
debug("caret trim", range);
|
|
138973
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
138974
|
+
if (loose) rangeList = rangeList.filter((comp) => {
|
|
138975
|
+
debug("loose invalid filter", comp, this.options);
|
|
138976
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
138977
|
+
});
|
|
138978
|
+
debug("range list", rangeList);
|
|
138979
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
138980
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
138981
|
+
for (const comp of comparators) {
|
|
138982
|
+
if (isNullSet(comp)) return [comp];
|
|
138983
|
+
rangeMap.set(comp.value, comp);
|
|
138984
|
+
}
|
|
138985
|
+
if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
|
|
138986
|
+
const result = [...rangeMap.values()];
|
|
138987
|
+
cache.set(memoKey, result);
|
|
138988
|
+
return result;
|
|
138989
|
+
}
|
|
138990
|
+
intersects(range, options) {
|
|
138991
|
+
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
138992
|
+
return this.set.some((thisComparators) => {
|
|
138993
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
138994
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
138995
|
+
return rangeComparators.every((rangeComparator) => {
|
|
138996
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
138997
|
+
});
|
|
138998
|
+
});
|
|
138999
|
+
});
|
|
139000
|
+
});
|
|
139001
|
+
}
|
|
139002
|
+
test(version) {
|
|
139003
|
+
if (!version) return false;
|
|
139004
|
+
if (typeof version === "string") try {
|
|
139005
|
+
version = new SemVer(version, this.options);
|
|
139006
|
+
} catch (er) {
|
|
139007
|
+
return false;
|
|
139008
|
+
}
|
|
139009
|
+
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
|
|
139010
|
+
return false;
|
|
139011
|
+
}
|
|
139012
|
+
};
|
|
139013
|
+
const cache = new (require_lrucache())();
|
|
139014
|
+
const parseOptions = require_parse_options();
|
|
139015
|
+
const Comparator = require_comparator();
|
|
139016
|
+
const debug = require_debug();
|
|
139017
|
+
const SemVer = require_semver$1();
|
|
139018
|
+
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
139019
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
139020
|
+
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
139021
|
+
const isAny = (c) => c.value === "";
|
|
139022
|
+
const isSatisfiable = (comparators, options) => {
|
|
139023
|
+
let result = true;
|
|
139024
|
+
const remainingComparators = comparators.slice();
|
|
139025
|
+
let testComparator = remainingComparators.pop();
|
|
139026
|
+
while (result && remainingComparators.length) {
|
|
139027
|
+
result = remainingComparators.every((otherComparator) => {
|
|
139028
|
+
return testComparator.intersects(otherComparator, options);
|
|
139029
|
+
});
|
|
139030
|
+
testComparator = remainingComparators.pop();
|
|
139031
|
+
}
|
|
139032
|
+
return result;
|
|
139033
|
+
};
|
|
139034
|
+
const parseComparator = (comp, options) => {
|
|
139035
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
139036
|
+
debug("comp", comp, options);
|
|
139037
|
+
comp = replaceCarets(comp, options);
|
|
139038
|
+
debug("caret", comp);
|
|
139039
|
+
comp = replaceTildes(comp, options);
|
|
139040
|
+
debug("tildes", comp);
|
|
139041
|
+
comp = replaceXRanges(comp, options);
|
|
139042
|
+
debug("xrange", comp);
|
|
139043
|
+
comp = replaceStars(comp, options);
|
|
139044
|
+
debug("stars", comp);
|
|
139045
|
+
return comp;
|
|
139046
|
+
};
|
|
139047
|
+
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
139048
|
+
const replaceTildes = (comp, options) => {
|
|
139049
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
139050
|
+
};
|
|
139051
|
+
const replaceTilde = (comp, options) => {
|
|
139052
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
139053
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
139054
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
139055
|
+
let ret;
|
|
139056
|
+
if (isX(M)) ret = "";
|
|
139057
|
+
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
139058
|
+
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
139059
|
+
else if (pr) {
|
|
139060
|
+
debug("replaceTilde pr", pr);
|
|
139061
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
139062
|
+
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
139063
|
+
debug("tilde return", ret);
|
|
139064
|
+
return ret;
|
|
139065
|
+
});
|
|
139066
|
+
};
|
|
139067
|
+
const replaceCarets = (comp, options) => {
|
|
139068
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
139069
|
+
};
|
|
139070
|
+
const replaceCaret = (comp, options) => {
|
|
139071
|
+
debug("caret", comp, options);
|
|
139072
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
139073
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
139074
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
139075
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
139076
|
+
let ret;
|
|
139077
|
+
if (isX(M)) ret = "";
|
|
139078
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
139079
|
+
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
139080
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
139081
|
+
else if (pr) {
|
|
139082
|
+
debug("replaceCaret pr", pr);
|
|
139083
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
139084
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
139085
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
139086
|
+
} else {
|
|
139087
|
+
debug("no pr");
|
|
139088
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
139089
|
+
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
139090
|
+
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
139091
|
+
}
|
|
139092
|
+
debug("caret return", ret);
|
|
139093
|
+
return ret;
|
|
139094
|
+
});
|
|
139095
|
+
};
|
|
139096
|
+
const replaceXRanges = (comp, options) => {
|
|
139097
|
+
debug("replaceXRanges", comp, options);
|
|
139098
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
139099
|
+
};
|
|
139100
|
+
const replaceXRange = (comp, options) => {
|
|
139101
|
+
comp = comp.trim();
|
|
139102
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
139103
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
139104
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
139105
|
+
const xM = isX(M);
|
|
139106
|
+
const xm = xM || isX(m);
|
|
139107
|
+
const xp = xm || isX(p);
|
|
139108
|
+
const anyX = xp;
|
|
139109
|
+
if (gtlt === "=" && anyX) gtlt = "";
|
|
139110
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
139111
|
+
if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
139112
|
+
else ret = "*";
|
|
139113
|
+
else if (gtlt && anyX) {
|
|
139114
|
+
if (xm) m = 0;
|
|
139115
|
+
p = 0;
|
|
139116
|
+
if (gtlt === ">") {
|
|
139117
|
+
gtlt = ">=";
|
|
139118
|
+
if (xm) {
|
|
139119
|
+
M = +M + 1;
|
|
139120
|
+
m = 0;
|
|
139121
|
+
p = 0;
|
|
139122
|
+
} else {
|
|
139123
|
+
m = +m + 1;
|
|
139124
|
+
p = 0;
|
|
139125
|
+
}
|
|
139126
|
+
} else if (gtlt === "<=") {
|
|
139127
|
+
gtlt = "<";
|
|
139128
|
+
if (xm) M = +M + 1;
|
|
139129
|
+
else m = +m + 1;
|
|
139130
|
+
}
|
|
139131
|
+
if (gtlt === "<") pr = "-0";
|
|
139132
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
139133
|
+
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
139134
|
+
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
139135
|
+
debug("xRange return", ret);
|
|
139136
|
+
return ret;
|
|
139137
|
+
});
|
|
139138
|
+
};
|
|
139139
|
+
const replaceStars = (comp, options) => {
|
|
139140
|
+
debug("replaceStars", comp, options);
|
|
139141
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
139142
|
+
};
|
|
139143
|
+
const replaceGTE0 = (comp, options) => {
|
|
139144
|
+
debug("replaceGTE0", comp, options);
|
|
139145
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
139146
|
+
};
|
|
139147
|
+
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
139148
|
+
if (isX(fM)) from = "";
|
|
139149
|
+
else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
139150
|
+
else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
139151
|
+
else if (fpr) from = `>=${from}`;
|
|
139152
|
+
else from = `>=${from}${incPr ? "-0" : ""}`;
|
|
139153
|
+
if (isX(tM)) to = "";
|
|
139154
|
+
else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
|
|
139155
|
+
else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
|
|
139156
|
+
else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
139157
|
+
else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
139158
|
+
else to = `<=${to}`;
|
|
139159
|
+
return `${from} ${to}`.trim();
|
|
139160
|
+
};
|
|
139161
|
+
const testSet = (set, version, options) => {
|
|
139162
|
+
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
139163
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
139164
|
+
for (let i = 0; i < set.length; i++) {
|
|
139165
|
+
debug(set[i].semver);
|
|
139166
|
+
if (set[i].semver === Comparator.ANY) continue;
|
|
139167
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
139168
|
+
const allowed = set[i].semver;
|
|
139169
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
139170
|
+
}
|
|
139171
|
+
}
|
|
139172
|
+
return false;
|
|
139173
|
+
}
|
|
139174
|
+
return true;
|
|
139175
|
+
};
|
|
139176
|
+
}));
|
|
139177
|
+
//#endregion
|
|
139178
|
+
//#region ../../packages/core-node/node_modules/semver/classes/comparator.js
|
|
139179
|
+
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
139180
|
+
const ANY = Symbol("SemVer ANY");
|
|
139181
|
+
module.exports = class Comparator {
|
|
139182
|
+
static get ANY() {
|
|
139183
|
+
return ANY;
|
|
139184
|
+
}
|
|
139185
|
+
constructor(comp, options) {
|
|
139186
|
+
options = parseOptions(options);
|
|
139187
|
+
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
139188
|
+
else comp = comp.value;
|
|
139189
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
139190
|
+
debug("comparator", comp, options);
|
|
139191
|
+
this.options = options;
|
|
139192
|
+
this.loose = !!options.loose;
|
|
139193
|
+
this.parse(comp);
|
|
139194
|
+
if (this.semver === ANY) this.value = "";
|
|
139195
|
+
else this.value = this.operator + this.semver.version;
|
|
139196
|
+
debug("comp", this);
|
|
139197
|
+
}
|
|
139198
|
+
parse(comp) {
|
|
139199
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
139200
|
+
const m = comp.match(r);
|
|
139201
|
+
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
139202
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
139203
|
+
if (this.operator === "=") this.operator = "";
|
|
139204
|
+
if (!m[2]) this.semver = ANY;
|
|
139205
|
+
else this.semver = new SemVer(m[2], this.options.loose);
|
|
139206
|
+
}
|
|
139207
|
+
toString() {
|
|
139208
|
+
return this.value;
|
|
139209
|
+
}
|
|
139210
|
+
test(version) {
|
|
139211
|
+
debug("Comparator.test", version, this.options.loose);
|
|
139212
|
+
if (this.semver === ANY || version === ANY) return true;
|
|
139213
|
+
if (typeof version === "string") try {
|
|
139214
|
+
version = new SemVer(version, this.options);
|
|
139215
|
+
} catch (er) {
|
|
139216
|
+
return false;
|
|
139217
|
+
}
|
|
139218
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
139219
|
+
}
|
|
139220
|
+
intersects(comp, options) {
|
|
139221
|
+
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
139222
|
+
if (this.operator === "") {
|
|
139223
|
+
if (this.value === "") return true;
|
|
139224
|
+
return new Range(comp.value, options).test(this.value);
|
|
139225
|
+
} else if (comp.operator === "") {
|
|
139226
|
+
if (comp.value === "") return true;
|
|
139227
|
+
return new Range(this.value, options).test(comp.semver);
|
|
139228
|
+
}
|
|
139229
|
+
options = parseOptions(options);
|
|
139230
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
139231
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
|
|
139232
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
139233
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
139234
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
139235
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
139236
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
139237
|
+
return false;
|
|
139238
|
+
}
|
|
139239
|
+
};
|
|
139240
|
+
const parseOptions = require_parse_options();
|
|
139241
|
+
const { safeRe: re, t } = require_re();
|
|
139242
|
+
const cmp = require_cmp();
|
|
139243
|
+
const debug = require_debug();
|
|
139244
|
+
const SemVer = require_semver$1();
|
|
139245
|
+
const Range = require_range();
|
|
139246
|
+
}));
|
|
139247
|
+
//#endregion
|
|
139248
|
+
//#region ../../packages/core-node/node_modules/semver/functions/satisfies.js
|
|
139249
|
+
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
139250
|
+
const Range = require_range();
|
|
139251
|
+
const satisfies = (version, range, options) => {
|
|
139252
|
+
try {
|
|
139253
|
+
range = new Range(range, options);
|
|
139254
|
+
} catch (er) {
|
|
139255
|
+
return false;
|
|
139256
|
+
}
|
|
139257
|
+
return range.test(version);
|
|
139258
|
+
};
|
|
139259
|
+
module.exports = satisfies;
|
|
139260
|
+
}));
|
|
139261
|
+
//#endregion
|
|
139262
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/to-comparators.js
|
|
139263
|
+
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
139264
|
+
const Range = require_range();
|
|
139265
|
+
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
139266
|
+
module.exports = toComparators;
|
|
139267
|
+
}));
|
|
139268
|
+
//#endregion
|
|
139269
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/max-satisfying.js
|
|
139270
|
+
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
139271
|
+
const SemVer = require_semver$1();
|
|
139272
|
+
const Range = require_range();
|
|
139273
|
+
const maxSatisfying = (versions, range, options) => {
|
|
139274
|
+
let max = null;
|
|
139275
|
+
let maxSV = null;
|
|
139276
|
+
let rangeObj = null;
|
|
139277
|
+
try {
|
|
139278
|
+
rangeObj = new Range(range, options);
|
|
139279
|
+
} catch (er) {
|
|
139280
|
+
return null;
|
|
139281
|
+
}
|
|
139282
|
+
versions.forEach((v) => {
|
|
139283
|
+
if (rangeObj.test(v)) {
|
|
139284
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
139285
|
+
max = v;
|
|
139286
|
+
maxSV = new SemVer(max, options);
|
|
139287
|
+
}
|
|
139288
|
+
}
|
|
139289
|
+
});
|
|
139290
|
+
return max;
|
|
139291
|
+
};
|
|
139292
|
+
module.exports = maxSatisfying;
|
|
139293
|
+
}));
|
|
139294
|
+
//#endregion
|
|
139295
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/min-satisfying.js
|
|
139296
|
+
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
139297
|
+
const SemVer = require_semver$1();
|
|
139298
|
+
const Range = require_range();
|
|
139299
|
+
const minSatisfying = (versions, range, options) => {
|
|
139300
|
+
let min = null;
|
|
139301
|
+
let minSV = null;
|
|
139302
|
+
let rangeObj = null;
|
|
139303
|
+
try {
|
|
139304
|
+
rangeObj = new Range(range, options);
|
|
139305
|
+
} catch (er) {
|
|
139306
|
+
return null;
|
|
139307
|
+
}
|
|
139308
|
+
versions.forEach((v) => {
|
|
139309
|
+
if (rangeObj.test(v)) {
|
|
139310
|
+
if (!min || minSV.compare(v) === 1) {
|
|
139311
|
+
min = v;
|
|
139312
|
+
minSV = new SemVer(min, options);
|
|
139313
|
+
}
|
|
139314
|
+
}
|
|
139315
|
+
});
|
|
139316
|
+
return min;
|
|
139317
|
+
};
|
|
139318
|
+
module.exports = minSatisfying;
|
|
139319
|
+
}));
|
|
139320
|
+
//#endregion
|
|
139321
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/min-version.js
|
|
139322
|
+
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
139323
|
+
const SemVer = require_semver$1();
|
|
139324
|
+
const Range = require_range();
|
|
139325
|
+
const gt = require_gt();
|
|
139326
|
+
const minVersion = (range, loose) => {
|
|
139327
|
+
range = new Range(range, loose);
|
|
139328
|
+
let minver = new SemVer("0.0.0");
|
|
139329
|
+
if (range.test(minver)) return minver;
|
|
139330
|
+
minver = new SemVer("0.0.0-0");
|
|
139331
|
+
if (range.test(minver)) return minver;
|
|
139332
|
+
minver = null;
|
|
139333
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
139334
|
+
const comparators = range.set[i];
|
|
139335
|
+
let setMin = null;
|
|
139336
|
+
comparators.forEach((comparator) => {
|
|
139337
|
+
const compver = new SemVer(comparator.semver.version);
|
|
139338
|
+
switch (comparator.operator) {
|
|
139339
|
+
case ">":
|
|
139340
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
139341
|
+
else compver.prerelease.push(0);
|
|
139342
|
+
compver.raw = compver.format();
|
|
139343
|
+
case "":
|
|
139344
|
+
case ">=":
|
|
139345
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
139346
|
+
break;
|
|
139347
|
+
case "<":
|
|
139348
|
+
case "<=": break;
|
|
139349
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
139350
|
+
}
|
|
139351
|
+
});
|
|
139352
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
139353
|
+
}
|
|
139354
|
+
if (minver && range.test(minver)) return minver;
|
|
139355
|
+
return null;
|
|
139356
|
+
};
|
|
139357
|
+
module.exports = minVersion;
|
|
139358
|
+
}));
|
|
139359
|
+
//#endregion
|
|
139360
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/valid.js
|
|
139361
|
+
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
139362
|
+
const Range = require_range();
|
|
139363
|
+
const validRange = (range, options) => {
|
|
139364
|
+
try {
|
|
139365
|
+
return new Range(range, options).range || "*";
|
|
139366
|
+
} catch (er) {
|
|
139367
|
+
return null;
|
|
139368
|
+
}
|
|
139369
|
+
};
|
|
139370
|
+
module.exports = validRange;
|
|
139371
|
+
}));
|
|
139372
|
+
//#endregion
|
|
139373
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/outside.js
|
|
139374
|
+
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
139375
|
+
const SemVer = require_semver$1();
|
|
139376
|
+
const Comparator = require_comparator();
|
|
139377
|
+
const { ANY } = Comparator;
|
|
139378
|
+
const Range = require_range();
|
|
139379
|
+
const satisfies = require_satisfies();
|
|
139380
|
+
const gt = require_gt();
|
|
139381
|
+
const lt = require_lt();
|
|
139382
|
+
const lte = require_lte();
|
|
139383
|
+
const gte = require_gte();
|
|
139384
|
+
const outside = (version, range, hilo, options) => {
|
|
139385
|
+
version = new SemVer(version, options);
|
|
139386
|
+
range = new Range(range, options);
|
|
139387
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
139388
|
+
switch (hilo) {
|
|
139389
|
+
case ">":
|
|
139390
|
+
gtfn = gt;
|
|
139391
|
+
ltefn = lte;
|
|
139392
|
+
ltfn = lt;
|
|
139393
|
+
comp = ">";
|
|
139394
|
+
ecomp = ">=";
|
|
139395
|
+
break;
|
|
139396
|
+
case "<":
|
|
139397
|
+
gtfn = lt;
|
|
139398
|
+
ltefn = gte;
|
|
139399
|
+
ltfn = gt;
|
|
139400
|
+
comp = "<";
|
|
139401
|
+
ecomp = "<=";
|
|
139402
|
+
break;
|
|
139403
|
+
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
139404
|
+
}
|
|
139405
|
+
if (satisfies(version, range, options)) return false;
|
|
139406
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
139407
|
+
const comparators = range.set[i];
|
|
139408
|
+
let high = null;
|
|
139409
|
+
let low = null;
|
|
139410
|
+
comparators.forEach((comparator) => {
|
|
139411
|
+
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
139412
|
+
high = high || comparator;
|
|
139413
|
+
low = low || comparator;
|
|
139414
|
+
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
139415
|
+
else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
|
|
139416
|
+
});
|
|
139417
|
+
if (high.operator === comp || high.operator === ecomp) return false;
|
|
139418
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
|
|
139419
|
+
else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
|
|
139420
|
+
}
|
|
139421
|
+
return true;
|
|
139422
|
+
};
|
|
139423
|
+
module.exports = outside;
|
|
139424
|
+
}));
|
|
139425
|
+
//#endregion
|
|
139426
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/gtr.js
|
|
139427
|
+
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
139428
|
+
const outside = require_outside();
|
|
139429
|
+
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
139430
|
+
module.exports = gtr;
|
|
139431
|
+
}));
|
|
139432
|
+
//#endregion
|
|
139433
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/ltr.js
|
|
139434
|
+
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
139435
|
+
const outside = require_outside();
|
|
139436
|
+
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
139437
|
+
module.exports = ltr;
|
|
139438
|
+
}));
|
|
139439
|
+
//#endregion
|
|
139440
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/intersects.js
|
|
139441
|
+
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
139442
|
+
const Range = require_range();
|
|
139443
|
+
const intersects = (r1, r2, options) => {
|
|
139444
|
+
r1 = new Range(r1, options);
|
|
139445
|
+
r2 = new Range(r2, options);
|
|
139446
|
+
return r1.intersects(r2, options);
|
|
139447
|
+
};
|
|
139448
|
+
module.exports = intersects;
|
|
139449
|
+
}));
|
|
139450
|
+
//#endregion
|
|
139451
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/simplify.js
|
|
139452
|
+
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
139453
|
+
const satisfies = require_satisfies();
|
|
139454
|
+
const compare = require_compare();
|
|
139455
|
+
module.exports = (versions, range, options) => {
|
|
139456
|
+
const set = [];
|
|
139457
|
+
let first = null;
|
|
139458
|
+
let prev = null;
|
|
139459
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
139460
|
+
for (const version of v) if (satisfies(version, range, options)) {
|
|
139461
|
+
prev = version;
|
|
139462
|
+
if (!first) first = version;
|
|
139463
|
+
} else {
|
|
139464
|
+
if (prev) set.push([first, prev]);
|
|
139465
|
+
prev = null;
|
|
139466
|
+
first = null;
|
|
139467
|
+
}
|
|
139468
|
+
if (first) set.push([first, null]);
|
|
139469
|
+
const ranges = [];
|
|
139470
|
+
for (const [min, max] of set) if (min === max) ranges.push(min);
|
|
139471
|
+
else if (!max && min === v[0]) ranges.push("*");
|
|
139472
|
+
else if (!max) ranges.push(`>=${min}`);
|
|
139473
|
+
else if (min === v[0]) ranges.push(`<=${max}`);
|
|
139474
|
+
else ranges.push(`${min} - ${max}`);
|
|
139475
|
+
const simplified = ranges.join(" || ");
|
|
139476
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
139477
|
+
return simplified.length < original.length ? simplified : range;
|
|
139478
|
+
};
|
|
139479
|
+
}));
|
|
139480
|
+
//#endregion
|
|
139481
|
+
//#region ../../packages/core-node/node_modules/semver/ranges/subset.js
|
|
139482
|
+
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
139483
|
+
const Range = require_range();
|
|
139484
|
+
const Comparator = require_comparator();
|
|
139485
|
+
const { ANY } = Comparator;
|
|
139486
|
+
const satisfies = require_satisfies();
|
|
139487
|
+
const compare = require_compare();
|
|
139488
|
+
const subset = (sub, dom, options = {}) => {
|
|
139489
|
+
if (sub === dom) return true;
|
|
139490
|
+
sub = new Range(sub, options);
|
|
139491
|
+
dom = new Range(dom, options);
|
|
139492
|
+
let sawNonNull = false;
|
|
139493
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
139494
|
+
for (const simpleDom of dom.set) {
|
|
139495
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
139496
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
139497
|
+
if (isSub) continue OUTER;
|
|
139498
|
+
}
|
|
139499
|
+
if (sawNonNull) return false;
|
|
139500
|
+
}
|
|
139501
|
+
return true;
|
|
139502
|
+
};
|
|
139503
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
139504
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
139505
|
+
const simpleSubset = (sub, dom, options) => {
|
|
139506
|
+
if (sub === dom) return true;
|
|
139507
|
+
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
139508
|
+
else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
|
|
139509
|
+
else sub = minimumVersion;
|
|
139510
|
+
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
139511
|
+
else dom = minimumVersion;
|
|
139512
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
139513
|
+
let gt, lt;
|
|
139514
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
139515
|
+
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
139516
|
+
else eqSet.add(c.semver);
|
|
139517
|
+
if (eqSet.size > 1) return null;
|
|
139518
|
+
let gtltComp;
|
|
139519
|
+
if (gt && lt) {
|
|
139520
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
139521
|
+
if (gtltComp > 0) return null;
|
|
139522
|
+
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
139523
|
+
}
|
|
139524
|
+
for (const eq of eqSet) {
|
|
139525
|
+
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
139526
|
+
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
139527
|
+
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
139528
|
+
return true;
|
|
139529
|
+
}
|
|
139530
|
+
let higher, lower;
|
|
139531
|
+
let hasDomLT, hasDomGT;
|
|
139532
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
139533
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
139534
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
139535
|
+
for (const c of dom) {
|
|
139536
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
139537
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
139538
|
+
if (gt) {
|
|
139539
|
+
if (needDomGTPre) {
|
|
139540
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;
|
|
139541
|
+
}
|
|
139542
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
139543
|
+
higher = higherGT(gt, c, options);
|
|
139544
|
+
if (higher === c && higher !== gt) return false;
|
|
139545
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
|
139546
|
+
}
|
|
139547
|
+
if (lt) {
|
|
139548
|
+
if (needDomLTPre) {
|
|
139549
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;
|
|
139550
|
+
}
|
|
139551
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
139552
|
+
lower = lowerLT(lt, c, options);
|
|
139553
|
+
if (lower === c && lower !== lt) return false;
|
|
139554
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
|
139555
|
+
}
|
|
139556
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
139557
|
+
}
|
|
139558
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
139559
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
139560
|
+
if (needDomGTPre || needDomLTPre) return false;
|
|
139561
|
+
return true;
|
|
139562
|
+
};
|
|
139563
|
+
const higherGT = (a, b, options) => {
|
|
139564
|
+
if (!a) return b;
|
|
139565
|
+
const comp = compare(a.semver, b.semver, options);
|
|
139566
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
139567
|
+
};
|
|
139568
|
+
const lowerLT = (a, b, options) => {
|
|
139569
|
+
if (!a) return b;
|
|
139570
|
+
const comp = compare(a.semver, b.semver, options);
|
|
139571
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
139572
|
+
};
|
|
139573
|
+
module.exports = subset;
|
|
139574
|
+
}));
|
|
139575
|
+
//#endregion
|
|
139576
|
+
//#region ../../packages/core-node/node_modules/semver/index.js
|
|
139577
|
+
var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
139578
|
+
const internalRe = require_re();
|
|
139579
|
+
const constants = require_constants();
|
|
139580
|
+
const SemVer = require_semver$1();
|
|
139581
|
+
const identifiers = require_identifiers();
|
|
139582
|
+
module.exports = {
|
|
139583
|
+
parse: require_parse(),
|
|
139584
|
+
valid: require_valid$1(),
|
|
139585
|
+
clean: require_clean(),
|
|
139586
|
+
inc: require_inc(),
|
|
139587
|
+
diff: require_diff(),
|
|
139588
|
+
major: require_major(),
|
|
139589
|
+
minor: require_minor(),
|
|
139590
|
+
patch: require_patch(),
|
|
139591
|
+
prerelease: require_prerelease(),
|
|
139592
|
+
compare: require_compare(),
|
|
139593
|
+
rcompare: require_rcompare(),
|
|
139594
|
+
compareLoose: require_compare_loose(),
|
|
139595
|
+
compareBuild: require_compare_build(),
|
|
139596
|
+
sort: require_sort(),
|
|
139597
|
+
rsort: require_rsort(),
|
|
139598
|
+
gt: require_gt(),
|
|
139599
|
+
lt: require_lt(),
|
|
139600
|
+
eq: require_eq(),
|
|
139601
|
+
neq: require_neq(),
|
|
139602
|
+
gte: require_gte(),
|
|
139603
|
+
lte: require_lte(),
|
|
139604
|
+
cmp: require_cmp(),
|
|
139605
|
+
coerce: require_coerce(),
|
|
139606
|
+
Comparator: require_comparator(),
|
|
139607
|
+
Range: require_range(),
|
|
139608
|
+
satisfies: require_satisfies(),
|
|
139609
|
+
toComparators: require_to_comparators(),
|
|
139610
|
+
maxSatisfying: require_max_satisfying(),
|
|
139611
|
+
minSatisfying: require_min_satisfying(),
|
|
139612
|
+
minVersion: require_min_version(),
|
|
139613
|
+
validRange: require_valid(),
|
|
139614
|
+
outside: require_outside(),
|
|
139615
|
+
gtr: require_gtr(),
|
|
139616
|
+
ltr: require_ltr(),
|
|
139617
|
+
intersects: require_intersects(),
|
|
139618
|
+
simplifyRange: require_simplify(),
|
|
139619
|
+
subset: require_subset(),
|
|
139620
|
+
SemVer,
|
|
139621
|
+
re: internalRe.re,
|
|
139622
|
+
src: internalRe.src,
|
|
139623
|
+
tokens: internalRe.t,
|
|
139624
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
139625
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
139626
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
139627
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
139628
|
+
};
|
|
139629
|
+
}));
|
|
139630
|
+
//#endregion
|
|
136531
139631
|
//#region ../../node_modules/serve-handler/src/glob-slash.js
|
|
136532
139632
|
var require_glob_slash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
136533
139633
|
const path$4 = __require("path");
|
|
@@ -143917,11 +147017,32 @@ var require_error = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
143917
147017
|
stream.pipe(response);
|
|
143918
147018
|
};
|
|
143919
147019
|
})))();
|
|
147020
|
+
require_semver();
|
|
143920
147021
|
require_lib();
|
|
143921
147022
|
//#endregion
|
|
143922
147023
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
143923
147024
|
const { join: join$1 } = path;
|
|
143924
147025
|
//#endregion
|
|
147026
|
+
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
147027
|
+
const localPluginsMap = /* @__PURE__ */ new Map();
|
|
147028
|
+
if (isDev && projectRoot) {
|
|
147029
|
+
const pluginsDir = join(projectRoot, "plugins");
|
|
147030
|
+
if (existsSync(pluginsDir)) try {
|
|
147031
|
+
const entries = readdirSync(pluginsDir, { withFileTypes: true });
|
|
147032
|
+
for (const entry of entries) if (entry.isDirectory()) {
|
|
147033
|
+
const pkgPath = join(pluginsDir, entry.name, "package.json");
|
|
147034
|
+
if (existsSync(pkgPath)) try {
|
|
147035
|
+
const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
147036
|
+
if (pkg.name) localPluginsMap.set(pkg.name, join(pluginsDir, entry.name));
|
|
147037
|
+
} catch (e) {
|
|
147038
|
+
console.error(`[Plugins] Failed to parse package.json for ${entry.name}:`, e);
|
|
147039
|
+
}
|
|
147040
|
+
}
|
|
147041
|
+
} catch (e) {
|
|
147042
|
+
console.error(`[Plugins] Failed to scan local workspace plugins directory:`, e);
|
|
147043
|
+
}
|
|
147044
|
+
}
|
|
147045
|
+
//#endregion
|
|
143925
147046
|
//#region ../plugin-core/src/pipelab.ts
|
|
143926
147047
|
const createActionRunner = (runner) => runner;
|
|
143927
147048
|
const minifyCode = createAction({
|
|
@@ -143987,22 +147108,13 @@ const minifyImagesRunner = createActionRunner(async ({ log, inputs, cwd, abortSi
|
|
|
143987
147108
|
});
|
|
143988
147109
|
//#endregion
|
|
143989
147110
|
//#region src/index.ts
|
|
143990
|
-
var src_default = createNodeDefinition({
|
|
143991
|
-
|
|
143992
|
-
|
|
143993
|
-
|
|
143994
|
-
|
|
143995
|
-
|
|
143996
|
-
|
|
143997
|
-
},
|
|
143998
|
-
nodes: [{
|
|
143999
|
-
node: minifyCode,
|
|
144000
|
-
runner: minifyCodeRunner
|
|
144001
|
-
}, {
|
|
144002
|
-
node: minifyImages,
|
|
144003
|
-
runner: minifyImagesRunner
|
|
144004
|
-
}]
|
|
144005
|
-
});
|
|
147111
|
+
var src_default = createNodeDefinition({ nodes: [{
|
|
147112
|
+
node: minifyCode,
|
|
147113
|
+
runner: minifyCodeRunner
|
|
147114
|
+
}, {
|
|
147115
|
+
node: minifyImages,
|
|
147116
|
+
runner: minifyImagesRunner
|
|
147117
|
+
}] });
|
|
144006
147118
|
//#endregion
|
|
144007
147119
|
export { src_default as default };
|
|
144008
147120
|
|