@jsii/runtime 1.112.0 → 1.113.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/in-out.d.ts +3 -3
- package/package.json +9 -9
- package/webpack/bin/jsii-runtime.js +139 -83
- package/webpack/lib/program.js +812 -818
|
@@ -9,16 +9,6 @@ var __webpack_modules__ = {
|
|
|
9
9
|
const semver_1 = __webpack_require__(5263);
|
|
10
10
|
const ONE_DAY_IN_MILLISECONDS = 864e5;
|
|
11
11
|
class NodeRelease {
|
|
12
|
-
constructor(majorVersion, opts) {
|
|
13
|
-
var _a, _b;
|
|
14
|
-
this.majorVersion = majorVersion;
|
|
15
|
-
this.endOfLifeDate = opts.endOfLife === true ? undefined : opts.endOfLife;
|
|
16
|
-
this.untested = (_a = opts.untested) !== null && _a !== void 0 ? _a : false;
|
|
17
|
-
this.supportedRange = new semver_1.Range((_b = opts.supportedRange) !== null && _b !== void 0 ? _b : `^${majorVersion}.0.0`);
|
|
18
|
-
this.endOfLife = opts.endOfLife === true || opts.endOfLife.getTime() <= Date.now();
|
|
19
|
-
this.deprecated = !this.endOfLife && opts.endOfLife !== true && opts.endOfLife.getTime() - NodeRelease.DEPRECATION_WINDOW_MS <= Date.now();
|
|
20
|
-
this.supported = !this.untested && !this.endOfLife;
|
|
21
|
-
}
|
|
22
12
|
static forThisRuntime() {
|
|
23
13
|
const semver = new semver_1.SemVer(process.version);
|
|
24
14
|
const majorVersion = semver.major;
|
|
@@ -35,16 +25,29 @@ var __webpack_modules__ = {
|
|
|
35
25
|
knownBroken: false
|
|
36
26
|
};
|
|
37
27
|
}
|
|
28
|
+
constructor(majorVersion, opts) {
|
|
29
|
+
var _a, _b, _c;
|
|
30
|
+
this.untested = (_a = opts.untested) !== null && _a !== void 0 ? _a : false;
|
|
31
|
+
this.majorVersion = majorVersion;
|
|
32
|
+
this.supportedRange = new semver_1.Range((_b = opts.supportedRange) !== null && _b !== void 0 ? _b : `^${majorVersion}.0.0`);
|
|
33
|
+
this.endOfLifeDate = opts.endOfLife;
|
|
34
|
+
this.endOfLife = opts.endOfLife.getTime() + ONE_DAY_IN_MILLISECONDS <= Date.now();
|
|
35
|
+
this.endOfJsiiSupportDate = (_c = opts.endOfJsiiSupport) !== null && _c !== void 0 ? _c : new Date(this.endOfLifeDate.getFullYear(), this.endOfLifeDate.getMonth() + NodeRelease.DEFAULT_EXTENDED_SUPPORT_MONTHS, this.endOfLifeDate.getDate());
|
|
36
|
+
const endOfJsiiSupport = this.endOfJsiiSupportDate.getTime() + ONE_DAY_IN_MILLISECONDS <= Date.now();
|
|
37
|
+
this.deprecated = this.endOfLife && !endOfJsiiSupport;
|
|
38
|
+
this.supported = !this.untested && !endOfJsiiSupport;
|
|
39
|
+
}
|
|
38
40
|
toString() {
|
|
39
41
|
const eolInfo = this.endOfLifeDate ? ` (Planned end-of-life: ${this.endOfLifeDate.toISOString().slice(0, 10)})` : "";
|
|
40
42
|
return `${this.supportedRange.raw}${eolInfo}`;
|
|
41
43
|
}
|
|
42
44
|
}
|
|
43
45
|
exports.NodeRelease = NodeRelease;
|
|
44
|
-
NodeRelease.
|
|
45
|
-
NodeRelease.ALL_RELEASES = [ ...[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ].map(
|
|
46
|
-
endOfLife:
|
|
47
|
-
|
|
46
|
+
NodeRelease.DEFAULT_EXTENDED_SUPPORT_MONTHS = 6;
|
|
47
|
+
NodeRelease.ALL_RELEASES = [ ...[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ].map(majorVersion => new NodeRelease(majorVersion, {
|
|
48
|
+
endOfLife: new Date("2018-01-01"),
|
|
49
|
+
untested: true
|
|
50
|
+
})), new NodeRelease(12, {
|
|
48
51
|
endOfLife: new Date("2022-04-30"),
|
|
49
52
|
supportedRange: "^12.7.0"
|
|
50
53
|
}), new NodeRelease(13, {
|
|
@@ -69,15 +72,22 @@ var __webpack_modules__ = {
|
|
|
69
72
|
}), new NodeRelease(21, {
|
|
70
73
|
endOfLife: new Date("2024-06-01"),
|
|
71
74
|
untested: true
|
|
75
|
+
}), new NodeRelease(23, {
|
|
76
|
+
endOfLife: new Date("2025-06-01"),
|
|
77
|
+
untested: true
|
|
72
78
|
}), new NodeRelease(18, {
|
|
73
|
-
endOfLife: new Date("2025-04-30")
|
|
79
|
+
endOfLife: new Date("2025-04-30"),
|
|
80
|
+
endOfJsiiSupport: new Date("2025-11-30")
|
|
74
81
|
}), new NodeRelease(20, {
|
|
75
82
|
endOfLife: new Date("2026-04-30")
|
|
76
83
|
}), new NodeRelease(22, {
|
|
77
84
|
endOfLife: new Date("2027-04-30")
|
|
85
|
+
}), new NodeRelease(24, {
|
|
86
|
+
endOfLife: new Date("2028-04-30")
|
|
78
87
|
}) ];
|
|
79
88
|
},
|
|
80
89
|
274: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
90
|
+
"use strict";
|
|
81
91
|
const SemVer = __webpack_require__(8038);
|
|
82
92
|
const Range = __webpack_require__(3597);
|
|
83
93
|
const maxSatisfying = (versions, range, options) => {
|
|
@@ -89,19 +99,20 @@ var __webpack_modules__ = {
|
|
|
89
99
|
} catch (er) {
|
|
90
100
|
return null;
|
|
91
101
|
}
|
|
92
|
-
versions.forEach(
|
|
102
|
+
versions.forEach(v => {
|
|
93
103
|
if (rangeObj.test(v)) {
|
|
94
104
|
if (!max || maxSV.compare(v) === -1) {
|
|
95
105
|
max = v;
|
|
96
106
|
maxSV = new SemVer(max, options);
|
|
97
107
|
}
|
|
98
108
|
}
|
|
99
|
-
})
|
|
109
|
+
});
|
|
100
110
|
return max;
|
|
101
111
|
};
|
|
102
112
|
module.exports = maxSatisfying;
|
|
103
113
|
},
|
|
104
114
|
305: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
115
|
+
"use strict";
|
|
105
116
|
const SemVer = __webpack_require__(8038);
|
|
106
117
|
const inc = (version, release, options, identifier, identifierBase) => {
|
|
107
118
|
if (typeof options === "string") {
|
|
@@ -240,12 +251,12 @@ var __webpack_modules__ = {
|
|
|
240
251
|
});
|
|
241
252
|
styles.color.close = "[39m";
|
|
242
253
|
styles.bgColor.close = "[49m";
|
|
243
|
-
setLazyProperty(styles.color, "ansi", (
|
|
244
|
-
setLazyProperty(styles.color, "ansi256", (
|
|
245
|
-
setLazyProperty(styles.color, "ansi16m", (
|
|
246
|
-
setLazyProperty(styles.bgColor, "ansi", (
|
|
247
|
-
setLazyProperty(styles.bgColor, "ansi256", (
|
|
248
|
-
setLazyProperty(styles.bgColor, "ansi16m", (
|
|
254
|
+
setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
|
|
255
|
+
setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
|
|
256
|
+
setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
|
|
257
|
+
setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
|
|
258
|
+
setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
|
|
259
|
+
setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
|
|
249
260
|
return styles;
|
|
250
261
|
}
|
|
251
262
|
Object.defineProperty(module, "exports", {
|
|
@@ -258,6 +269,7 @@ var __webpack_modules__ = {
|
|
|
258
269
|
module.exports = require("os");
|
|
259
270
|
},
|
|
260
271
|
928: (module, exports, __webpack_require__) => {
|
|
272
|
+
"use strict";
|
|
261
273
|
const {MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH} = __webpack_require__(3932);
|
|
262
274
|
const debug = __webpack_require__(4122);
|
|
263
275
|
exports = module.exports = {};
|
|
@@ -290,8 +302,8 @@ var __webpack_modules__ = {
|
|
|
290
302
|
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
291
303
|
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.` + `(${src[t.NUMERICIDENTIFIER]})\\.` + `(${src[t.NUMERICIDENTIFIER]})`);
|
|
292
304
|
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
293
|
-
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.
|
|
294
|
-
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.
|
|
305
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
306
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
295
307
|
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
296
308
|
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
297
309
|
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
@@ -337,6 +349,7 @@ var __webpack_modules__ = {
|
|
|
337
349
|
module.exports = require("process");
|
|
338
350
|
},
|
|
339
351
|
1005: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
352
|
+
"use strict";
|
|
340
353
|
const eq = __webpack_require__(8935);
|
|
341
354
|
const neq = __webpack_require__(8661);
|
|
342
355
|
const gt = __webpack_require__(6670);
|
|
@@ -390,6 +403,7 @@ var __webpack_modules__ = {
|
|
|
390
403
|
module.exports = cmp;
|
|
391
404
|
},
|
|
392
405
|
1380: module => {
|
|
406
|
+
"use strict";
|
|
393
407
|
class LRUCache {
|
|
394
408
|
constructor() {
|
|
395
409
|
this.max = 1e3;
|
|
@@ -423,6 +437,7 @@ var __webpack_modules__ = {
|
|
|
423
437
|
module.exports = LRUCache;
|
|
424
438
|
},
|
|
425
439
|
1519: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
440
|
+
"use strict";
|
|
426
441
|
const parse = __webpack_require__(3770);
|
|
427
442
|
const valid = (version, options) => {
|
|
428
443
|
const v = parse(version, options);
|
|
@@ -973,7 +988,7 @@ var __webpack_modules__ = {
|
|
|
973
988
|
}
|
|
974
989
|
let colorString = match[0];
|
|
975
990
|
if (match[0].length === 3) {
|
|
976
|
-
colorString = colorString.split("").map(
|
|
991
|
+
colorString = colorString.split("").map(char => char + char).join("");
|
|
977
992
|
}
|
|
978
993
|
const integer = parseInt(colorString, 16);
|
|
979
994
|
const r = integer >> 16 & 255;
|
|
@@ -1198,7 +1213,7 @@ var __webpack_modules__ = {
|
|
|
1198
1213
|
}
|
|
1199
1214
|
return wrappedFn;
|
|
1200
1215
|
}
|
|
1201
|
-
models.forEach(
|
|
1216
|
+
models.forEach(fromModel => {
|
|
1202
1217
|
convert[fromModel] = {};
|
|
1203
1218
|
Object.defineProperty(convert[fromModel], "channels", {
|
|
1204
1219
|
value: conversions[fromModel].channels
|
|
@@ -1208,20 +1223,22 @@ var __webpack_modules__ = {
|
|
|
1208
1223
|
});
|
|
1209
1224
|
const routes = route(fromModel);
|
|
1210
1225
|
const routeModels = Object.keys(routes);
|
|
1211
|
-
routeModels.forEach(
|
|
1226
|
+
routeModels.forEach(toModel => {
|
|
1212
1227
|
const fn = routes[toModel];
|
|
1213
1228
|
convert[fromModel][toModel] = wrapRounded(fn);
|
|
1214
1229
|
convert[fromModel][toModel].raw = wrapRaw(fn);
|
|
1215
|
-
})
|
|
1216
|
-
})
|
|
1230
|
+
});
|
|
1231
|
+
});
|
|
1217
1232
|
module.exports = convert;
|
|
1218
1233
|
},
|
|
1219
1234
|
2393: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1235
|
+
"use strict";
|
|
1220
1236
|
const compareBuild = __webpack_require__(8471);
|
|
1221
|
-
const sort = (list, loose) => list.sort((
|
|
1237
|
+
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
1222
1238
|
module.exports = sort;
|
|
1223
1239
|
},
|
|
1224
1240
|
2641: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1241
|
+
"use strict";
|
|
1225
1242
|
const SemVer = __webpack_require__(8038);
|
|
1226
1243
|
const Comparator = __webpack_require__(3114);
|
|
1227
1244
|
const {ANY} = Comparator;
|
|
@@ -1262,7 +1279,7 @@ var __webpack_modules__ = {
|
|
|
1262
1279
|
const comparators = range.set[i];
|
|
1263
1280
|
let high = null;
|
|
1264
1281
|
let low = null;
|
|
1265
|
-
comparators.forEach(
|
|
1282
|
+
comparators.forEach(comparator => {
|
|
1266
1283
|
if (comparator.semver === ANY) {
|
|
1267
1284
|
comparator = new Comparator(">=0.0.0");
|
|
1268
1285
|
}
|
|
@@ -1273,7 +1290,7 @@ var __webpack_modules__ = {
|
|
|
1273
1290
|
} else if (ltfn(comparator.semver, low.semver, options)) {
|
|
1274
1291
|
low = comparator;
|
|
1275
1292
|
}
|
|
1276
|
-
})
|
|
1293
|
+
});
|
|
1277
1294
|
if (high.operator === comp || high.operator === ecomp) {
|
|
1278
1295
|
return false;
|
|
1279
1296
|
}
|
|
@@ -1441,6 +1458,7 @@ var __webpack_modules__ = {
|
|
|
1441
1458
|
};
|
|
1442
1459
|
},
|
|
1443
1460
|
3114: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1461
|
+
"use strict";
|
|
1444
1462
|
const ANY = Symbol("SemVer ANY");
|
|
1445
1463
|
class Comparator {
|
|
1446
1464
|
static get ANY() {
|
|
@@ -1549,6 +1567,7 @@ var __webpack_modules__ = {
|
|
|
1549
1567
|
const Range = __webpack_require__(3597);
|
|
1550
1568
|
},
|
|
1551
1569
|
3328: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1570
|
+
"use strict";
|
|
1552
1571
|
const SemVer = __webpack_require__(8038);
|
|
1553
1572
|
const parse = __webpack_require__(3770);
|
|
1554
1573
|
const {safeRe: re, t} = __webpack_require__(928);
|
|
@@ -1590,6 +1609,7 @@ var __webpack_modules__ = {
|
|
|
1590
1609
|
module.exports = coerce;
|
|
1591
1610
|
},
|
|
1592
1611
|
3360: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1612
|
+
"use strict";
|
|
1593
1613
|
const compare = __webpack_require__(6278);
|
|
1594
1614
|
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
1595
1615
|
module.exports = rcompare;
|
|
@@ -1651,7 +1671,7 @@ var __webpack_modules__ = {
|
|
|
1651
1671
|
return 1;
|
|
1652
1672
|
}
|
|
1653
1673
|
if ("CI" in env) {
|
|
1654
|
-
if ([ "TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE" ].some(
|
|
1674
|
+
if ([ "TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE" ].some(sign => sign in env) || env.CI_NAME === "codeship") {
|
|
1655
1675
|
return 1;
|
|
1656
1676
|
}
|
|
1657
1677
|
return min;
|
|
@@ -1694,6 +1714,7 @@ var __webpack_modules__ = {
|
|
|
1694
1714
|
};
|
|
1695
1715
|
},
|
|
1696
1716
|
3597: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1717
|
+
"use strict";
|
|
1697
1718
|
const SPACE_CHARACTERS = /\s+/g;
|
|
1698
1719
|
class Range {
|
|
1699
1720
|
constructor(range, options) {
|
|
@@ -1715,13 +1736,13 @@ var __webpack_modules__ = {
|
|
|
1715
1736
|
this.loose = !!options.loose;
|
|
1716
1737
|
this.includePrerelease = !!options.includePrerelease;
|
|
1717
1738
|
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
1718
|
-
this.set = this.raw.split("||").map(
|
|
1739
|
+
this.set = this.raw.split("||").map(r => this.parseRange(r.trim())).filter(c => c.length);
|
|
1719
1740
|
if (!this.set.length) {
|
|
1720
1741
|
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
1721
1742
|
}
|
|
1722
1743
|
if (this.set.length > 1) {
|
|
1723
1744
|
const first = this.set[0];
|
|
1724
|
-
this.set = this.set.filter(
|
|
1745
|
+
this.set = this.set.filter(c => !isNullSet(c[0]));
|
|
1725
1746
|
if (this.set.length === 0) {
|
|
1726
1747
|
this.set = [ first ];
|
|
1727
1748
|
} else if (this.set.length > 1) {
|
|
@@ -1776,16 +1797,16 @@ var __webpack_modules__ = {
|
|
|
1776
1797
|
debug("tilde trim", range);
|
|
1777
1798
|
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
1778
1799
|
debug("caret trim", range);
|
|
1779
|
-
let rangeList = range.split(" ").map(
|
|
1800
|
+
let rangeList = range.split(" ").map(comp => parseComparator(comp, this.options)).join(" ").split(/\s+/).map(comp => replaceGTE0(comp, this.options));
|
|
1780
1801
|
if (loose) {
|
|
1781
|
-
rangeList = rangeList.filter(
|
|
1802
|
+
rangeList = rangeList.filter(comp => {
|
|
1782
1803
|
debug("loose invalid filter", comp, this.options);
|
|
1783
1804
|
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
1784
|
-
})
|
|
1805
|
+
});
|
|
1785
1806
|
}
|
|
1786
1807
|
debug("range list", rangeList);
|
|
1787
1808
|
const rangeMap = new Map;
|
|
1788
|
-
const comparators = rangeList.map(
|
|
1809
|
+
const comparators = rangeList.map(comp => new Comparator(comp, this.options));
|
|
1789
1810
|
for (const comp of comparators) {
|
|
1790
1811
|
if (isNullSet(comp)) {
|
|
1791
1812
|
return [ comp ];
|
|
@@ -1803,7 +1824,7 @@ var __webpack_modules__ = {
|
|
|
1803
1824
|
if (!(range instanceof Range)) {
|
|
1804
1825
|
throw new TypeError("a Range is required");
|
|
1805
1826
|
}
|
|
1806
|
-
return this.set.some(
|
|
1827
|
+
return this.set.some(thisComparators => isSatisfiable(thisComparators, options) && range.set.some(rangeComparators => isSatisfiable(rangeComparators, options) && thisComparators.every(thisComparator => rangeComparators.every(rangeComparator => thisComparator.intersects(rangeComparator, options)))));
|
|
1807
1828
|
}
|
|
1808
1829
|
test(version) {
|
|
1809
1830
|
if (!version) {
|
|
@@ -1840,7 +1861,7 @@ var __webpack_modules__ = {
|
|
|
1840
1861
|
const remainingComparators = comparators.slice();
|
|
1841
1862
|
let testComparator = remainingComparators.pop();
|
|
1842
1863
|
while (result && remainingComparators.length) {
|
|
1843
|
-
result = remainingComparators.every(
|
|
1864
|
+
result = remainingComparators.every(otherComparator => testComparator.intersects(otherComparator, options));
|
|
1844
1865
|
testComparator = remainingComparators.pop();
|
|
1845
1866
|
}
|
|
1846
1867
|
return result;
|
|
@@ -1858,10 +1879,10 @@ var __webpack_modules__ = {
|
|
|
1858
1879
|
return comp;
|
|
1859
1880
|
};
|
|
1860
1881
|
const isX = id => !id || id.toLowerCase() === "x" || id === "*";
|
|
1861
|
-
const replaceTildes = (comp, options) => comp.trim().split(/\s+/).map(
|
|
1882
|
+
const replaceTildes = (comp, options) => comp.trim().split(/\s+/).map(c => replaceTilde(c, options)).join(" ");
|
|
1862
1883
|
const replaceTilde = (comp, options) => {
|
|
1863
1884
|
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
1864
|
-
return comp.replace(r, (
|
|
1885
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
1865
1886
|
debug("tilde", comp, _, M, m, p, pr);
|
|
1866
1887
|
let ret;
|
|
1867
1888
|
if (isX(M)) {
|
|
@@ -1878,14 +1899,14 @@ var __webpack_modules__ = {
|
|
|
1878
1899
|
}
|
|
1879
1900
|
debug("tilde return", ret);
|
|
1880
1901
|
return ret;
|
|
1881
|
-
})
|
|
1902
|
+
});
|
|
1882
1903
|
};
|
|
1883
|
-
const replaceCarets = (comp, options) => comp.trim().split(/\s+/).map(
|
|
1904
|
+
const replaceCarets = (comp, options) => comp.trim().split(/\s+/).map(c => replaceCaret(c, options)).join(" ");
|
|
1884
1905
|
const replaceCaret = (comp, options) => {
|
|
1885
1906
|
debug("caret", comp, options);
|
|
1886
1907
|
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
1887
1908
|
const z = options.includePrerelease ? "-0" : "";
|
|
1888
|
-
return comp.replace(r, (
|
|
1909
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
1889
1910
|
debug("caret", comp, _, M, m, p, pr);
|
|
1890
1911
|
let ret;
|
|
1891
1912
|
if (isX(M)) {
|
|
@@ -1923,16 +1944,16 @@ var __webpack_modules__ = {
|
|
|
1923
1944
|
}
|
|
1924
1945
|
debug("caret return", ret);
|
|
1925
1946
|
return ret;
|
|
1926
|
-
})
|
|
1947
|
+
});
|
|
1927
1948
|
};
|
|
1928
1949
|
const replaceXRanges = (comp, options) => {
|
|
1929
1950
|
debug("replaceXRanges", comp, options);
|
|
1930
|
-
return comp.split(/\s+/).map(
|
|
1951
|
+
return comp.split(/\s+/).map(c => replaceXRange(c, options)).join(" ");
|
|
1931
1952
|
};
|
|
1932
1953
|
const replaceXRange = (comp, options) => {
|
|
1933
1954
|
comp = comp.trim();
|
|
1934
1955
|
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
1935
|
-
return comp.replace(r, (
|
|
1956
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
1936
1957
|
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
1937
1958
|
const xM = isX(M);
|
|
1938
1959
|
const xm = xM || isX(m);
|
|
@@ -1982,7 +2003,7 @@ var __webpack_modules__ = {
|
|
|
1982
2003
|
}
|
|
1983
2004
|
debug("xRange return", ret);
|
|
1984
2005
|
return ret;
|
|
1985
|
-
})
|
|
2006
|
+
});
|
|
1986
2007
|
};
|
|
1987
2008
|
const replaceStars = (comp, options) => {
|
|
1988
2009
|
debug("replaceStars", comp, options);
|
|
@@ -2108,6 +2129,7 @@ var __webpack_modules__ = {
|
|
|
2108
2129
|
};
|
|
2109
2130
|
},
|
|
2110
2131
|
3770: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2132
|
+
"use strict";
|
|
2111
2133
|
const SemVer = __webpack_require__(8038);
|
|
2112
2134
|
const parse = (version, options, throwErrors = false) => {
|
|
2113
2135
|
if (version instanceof SemVer) {
|
|
@@ -2125,6 +2147,7 @@ var __webpack_modules__ = {
|
|
|
2125
2147
|
module.exports = parse;
|
|
2126
2148
|
},
|
|
2127
2149
|
3932: module => {
|
|
2150
|
+
"use strict";
|
|
2128
2151
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
2129
2152
|
const MAX_LENGTH = 256;
|
|
2130
2153
|
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
@@ -2143,11 +2166,13 @@ var __webpack_modules__ = {
|
|
|
2143
2166
|
};
|
|
2144
2167
|
},
|
|
2145
2168
|
3949: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2169
|
+
"use strict";
|
|
2146
2170
|
const compare = __webpack_require__(6278);
|
|
2147
2171
|
const compareLoose = (a, b) => compare(a, b, true);
|
|
2148
2172
|
module.exports = compareLoose;
|
|
2149
2173
|
},
|
|
2150
2174
|
4122: module => {
|
|
2175
|
+
"use strict";
|
|
2151
2176
|
const debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
2152
2177
|
module.exports = debug;
|
|
2153
2178
|
},
|
|
@@ -2156,6 +2181,7 @@ var __webpack_modules__ = {
|
|
|
2156
2181
|
module.exports = require("console");
|
|
2157
2182
|
},
|
|
2158
2183
|
4302: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2184
|
+
"use strict";
|
|
2159
2185
|
const Range = __webpack_require__(3597);
|
|
2160
2186
|
const Comparator = __webpack_require__(3114);
|
|
2161
2187
|
const {ANY} = Comparator;
|
|
@@ -2313,6 +2339,7 @@ var __webpack_modules__ = {
|
|
|
2313
2339
|
module.exports = subset;
|
|
2314
2340
|
},
|
|
2315
2341
|
4592: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2342
|
+
"use strict";
|
|
2316
2343
|
const parse = __webpack_require__(3770);
|
|
2317
2344
|
const clean = (version, options) => {
|
|
2318
2345
|
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
@@ -2356,6 +2383,7 @@ var __webpack_modules__ = {
|
|
|
2356
2383
|
};
|
|
2357
2384
|
},
|
|
2358
2385
|
5003: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2386
|
+
"use strict";
|
|
2359
2387
|
const parse = __webpack_require__(3770);
|
|
2360
2388
|
const prerelease = (version, options) => {
|
|
2361
2389
|
const parsed = parse(version, options);
|
|
@@ -2364,16 +2392,19 @@ var __webpack_modules__ = {
|
|
|
2364
2392
|
module.exports = prerelease;
|
|
2365
2393
|
},
|
|
2366
2394
|
5063: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2395
|
+
"use strict";
|
|
2367
2396
|
const compareBuild = __webpack_require__(8471);
|
|
2368
|
-
const rsort = (list, loose) => list.sort((
|
|
2397
|
+
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
2369
2398
|
module.exports = rsort;
|
|
2370
2399
|
},
|
|
2371
2400
|
5169: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2401
|
+
"use strict";
|
|
2372
2402
|
const compare = __webpack_require__(6278);
|
|
2373
2403
|
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
2374
2404
|
module.exports = lt;
|
|
2375
2405
|
},
|
|
2376
2406
|
5263: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2407
|
+
"use strict";
|
|
2377
2408
|
const internalRe = __webpack_require__(928);
|
|
2378
2409
|
const constants = __webpack_require__(3932);
|
|
2379
2410
|
const SemVer = __webpack_require__(8038);
|
|
@@ -2474,6 +2505,7 @@ var __webpack_modules__ = {
|
|
|
2474
2505
|
module.exports = require("child_process");
|
|
2475
2506
|
},
|
|
2476
2507
|
5782: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2508
|
+
"use strict";
|
|
2477
2509
|
const parse = __webpack_require__(3770);
|
|
2478
2510
|
const diff = (version1, version2) => {
|
|
2479
2511
|
const v1 = parse(version1, null, true);
|
|
@@ -2591,7 +2623,7 @@ var __webpack_modules__ = {
|
|
|
2591
2623
|
}
|
|
2592
2624
|
};
|
|
2593
2625
|
}
|
|
2594
|
-
const proto = Object.defineProperties((
|
|
2626
|
+
const proto = Object.defineProperties(() => {}, {
|
|
2595
2627
|
...styles,
|
|
2596
2628
|
level: {
|
|
2597
2629
|
enumerable: true,
|
|
@@ -2681,16 +2713,19 @@ var __webpack_modules__ = {
|
|
|
2681
2713
|
module.exports = chalk;
|
|
2682
2714
|
},
|
|
2683
2715
|
6219: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2716
|
+
"use strict";
|
|
2684
2717
|
const SemVer = __webpack_require__(8038);
|
|
2685
2718
|
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
2686
2719
|
module.exports = patch;
|
|
2687
2720
|
},
|
|
2688
2721
|
6278: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2722
|
+
"use strict";
|
|
2689
2723
|
const SemVer = __webpack_require__(8038);
|
|
2690
2724
|
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
2691
2725
|
module.exports = compare;
|
|
2692
2726
|
},
|
|
2693
2727
|
6336: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2728
|
+
"use strict";
|
|
2694
2729
|
const Range = __webpack_require__(3597);
|
|
2695
2730
|
const satisfies = (version, range, options) => {
|
|
2696
2731
|
try {
|
|
@@ -2703,16 +2738,19 @@ var __webpack_modules__ = {
|
|
|
2703
2738
|
module.exports = satisfies;
|
|
2704
2739
|
},
|
|
2705
2740
|
6670: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2741
|
+
"use strict";
|
|
2706
2742
|
const compare = __webpack_require__(6278);
|
|
2707
2743
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
2708
2744
|
module.exports = gt;
|
|
2709
2745
|
},
|
|
2710
2746
|
6680: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2747
|
+
"use strict";
|
|
2711
2748
|
const SemVer = __webpack_require__(8038);
|
|
2712
2749
|
const major = (a, loose) => new SemVer(a, loose).major;
|
|
2713
2750
|
module.exports = major;
|
|
2714
2751
|
},
|
|
2715
2752
|
6741: module => {
|
|
2753
|
+
"use strict";
|
|
2716
2754
|
const numeric = /^[0-9]+$/;
|
|
2717
2755
|
const compareIdentifiers = (a, b) => {
|
|
2718
2756
|
const anum = numeric.test(a);
|
|
@@ -2730,6 +2768,7 @@ var __webpack_modules__ = {
|
|
|
2730
2768
|
};
|
|
2731
2769
|
},
|
|
2732
2770
|
6837: module => {
|
|
2771
|
+
"use strict";
|
|
2733
2772
|
const looseOption = Object.freeze({
|
|
2734
2773
|
loose: true
|
|
2735
2774
|
});
|
|
@@ -2746,13 +2785,14 @@ var __webpack_modules__ = {
|
|
|
2746
2785
|
module.exports = parseOptions;
|
|
2747
2786
|
},
|
|
2748
2787
|
6927: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2788
|
+
"use strict";
|
|
2749
2789
|
const satisfies = __webpack_require__(6336);
|
|
2750
2790
|
const compare = __webpack_require__(6278);
|
|
2751
2791
|
module.exports = (versions, range, options) => {
|
|
2752
2792
|
const set = [];
|
|
2753
2793
|
let first = null;
|
|
2754
2794
|
let prev = null;
|
|
2755
|
-
const v = versions.sort((
|
|
2795
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
2756
2796
|
for (const version of v) {
|
|
2757
2797
|
const included = satisfies(version, range, options);
|
|
2758
2798
|
if (included) {
|
|
@@ -2795,11 +2835,13 @@ var __webpack_modules__ = {
|
|
|
2795
2835
|
module.exports = require("path");
|
|
2796
2836
|
},
|
|
2797
2837
|
6999: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2838
|
+
"use strict";
|
|
2798
2839
|
const compare = __webpack_require__(6278);
|
|
2799
2840
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
2800
2841
|
module.exports = gte;
|
|
2801
2842
|
},
|
|
2802
2843
|
7348: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2844
|
+
"use strict";
|
|
2803
2845
|
const Range = __webpack_require__(3597);
|
|
2804
2846
|
const validRange = (range, options) => {
|
|
2805
2847
|
try {
|
|
@@ -2811,16 +2853,19 @@ var __webpack_modules__ = {
|
|
|
2811
2853
|
module.exports = validRange;
|
|
2812
2854
|
},
|
|
2813
2855
|
7369: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2856
|
+
"use strict";
|
|
2814
2857
|
const outside = __webpack_require__(2641);
|
|
2815
2858
|
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
2816
2859
|
module.exports = gtr;
|
|
2817
2860
|
},
|
|
2818
2861
|
7748: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2862
|
+
"use strict";
|
|
2819
2863
|
const SemVer = __webpack_require__(8038);
|
|
2820
2864
|
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
2821
2865
|
module.exports = minor;
|
|
2822
2866
|
},
|
|
2823
2867
|
7955: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2868
|
+
"use strict";
|
|
2824
2869
|
const SemVer = __webpack_require__(8038);
|
|
2825
2870
|
const Range = __webpack_require__(3597);
|
|
2826
2871
|
const gt = __webpack_require__(6670);
|
|
@@ -2838,7 +2883,7 @@ var __webpack_modules__ = {
|
|
|
2838
2883
|
for (let i = 0; i < range.set.length; ++i) {
|
|
2839
2884
|
const comparators = range.set[i];
|
|
2840
2885
|
let setMin = null;
|
|
2841
|
-
comparators.forEach(
|
|
2886
|
+
comparators.forEach(comparator => {
|
|
2842
2887
|
const compver = new SemVer(comparator.semver.version);
|
|
2843
2888
|
switch (comparator.operator) {
|
|
2844
2889
|
case ">":
|
|
@@ -2863,7 +2908,7 @@ var __webpack_modules__ = {
|
|
|
2863
2908
|
default:
|
|
2864
2909
|
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
2865
2910
|
}
|
|
2866
|
-
})
|
|
2911
|
+
});
|
|
2867
2912
|
if (setMin && (!minver || gt(minver, setMin))) {
|
|
2868
2913
|
minver = setMin;
|
|
2869
2914
|
}
|
|
@@ -2876,9 +2921,10 @@ var __webpack_modules__ = {
|
|
|
2876
2921
|
module.exports = minVersion;
|
|
2877
2922
|
},
|
|
2878
2923
|
8038: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2924
|
+
"use strict";
|
|
2879
2925
|
const debug = __webpack_require__(4122);
|
|
2880
2926
|
const {MAX_LENGTH, MAX_SAFE_INTEGER} = __webpack_require__(3932);
|
|
2881
|
-
const {safeRe: re,
|
|
2927
|
+
const {safeRe: re, t} = __webpack_require__(928);
|
|
2882
2928
|
const parseOptions = __webpack_require__(6837);
|
|
2883
2929
|
const {compareIdentifiers} = __webpack_require__(6741);
|
|
2884
2930
|
class SemVer {
|
|
@@ -2920,7 +2966,7 @@ var __webpack_modules__ = {
|
|
|
2920
2966
|
if (!m[4]) {
|
|
2921
2967
|
this.prerelease = [];
|
|
2922
2968
|
} else {
|
|
2923
|
-
this.prerelease = m[4].split(".").map(
|
|
2969
|
+
this.prerelease = m[4].split(".").map(id => {
|
|
2924
2970
|
if (/^[0-9]+$/.test(id)) {
|
|
2925
2971
|
const num = +id;
|
|
2926
2972
|
if (num >= 0 && num < MAX_SAFE_INTEGER) {
|
|
@@ -2928,7 +2974,7 @@ var __webpack_modules__ = {
|
|
|
2928
2974
|
}
|
|
2929
2975
|
}
|
|
2930
2976
|
return id;
|
|
2931
|
-
})
|
|
2977
|
+
});
|
|
2932
2978
|
}
|
|
2933
2979
|
this.build = m[5] ? m[5].split(".") : [];
|
|
2934
2980
|
this.format();
|
|
@@ -3019,8 +3065,7 @@ var __webpack_modules__ = {
|
|
|
3019
3065
|
throw new Error("invalid increment argument: identifier is empty");
|
|
3020
3066
|
}
|
|
3021
3067
|
if (identifier) {
|
|
3022
|
-
const
|
|
3023
|
-
const match = `-${identifier}`.match(r);
|
|
3068
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
3024
3069
|
if (!match || match[1] !== identifier) {
|
|
3025
3070
|
throw new Error(`invalid identifier: ${identifier}`);
|
|
3026
3071
|
}
|
|
@@ -3139,7 +3184,8 @@ var __webpack_modules__ = {
|
|
|
3139
3184
|
Object.defineProperty(exports, "__esModule", {
|
|
3140
3185
|
value: true
|
|
3141
3186
|
});
|
|
3142
|
-
exports.
|
|
3187
|
+
exports.NodeRelease = void 0;
|
|
3188
|
+
exports.checkNode = checkNode;
|
|
3143
3189
|
const chalk_1 = __webpack_require__(6042);
|
|
3144
3190
|
const console_1 = __webpack_require__(4236);
|
|
3145
3191
|
const process_1 = __webpack_require__(932);
|
|
@@ -3155,11 +3201,13 @@ var __webpack_modules__ = {
|
|
|
3155
3201
|
var _a;
|
|
3156
3202
|
const {nodeRelease, knownBroken} = constants_1.NodeRelease.forThisRuntime();
|
|
3157
3203
|
const defaultCallToAction = "Should you encounter odd runtime issues, please try using one of the supported release before filing a bug report.";
|
|
3158
|
-
if (nodeRelease === null || nodeRelease === void 0 ? void 0 : nodeRelease.
|
|
3204
|
+
if ((nodeRelease === null || nodeRelease === void 0 ? void 0 : nodeRelease.supported) === false) {
|
|
3159
3205
|
const silenceVariable = `${envPrefix}_SILENCE_WARNING_END_OF_LIFE_NODE_VERSION`;
|
|
3160
|
-
const silencedVersions = ((_a = process.env[silenceVariable]) !== null && _a !== void 0 ? _a : "").split(",").map(
|
|
3161
|
-
|
|
3162
|
-
|
|
3206
|
+
const silencedVersions = ((_a = process.env[silenceVariable]) !== null && _a !== void 0 ? _a : "").split(",").map(v => v.trim());
|
|
3207
|
+
if (!silencedVersions.includes(nodeRelease.majorVersion.toString())) {
|
|
3208
|
+
const eos = nodeRelease.endOfJsiiSupportDate.toISOString().slice(0, 10);
|
|
3209
|
+
veryVisibleMessage(chalk_1.bgRed.white.bold, `Node ${nodeRelease.majorVersion} is end-of-life and not supported anymore by this software since ${eos}.`, `Please upgrade to a supported node version as soon as possible.`);
|
|
3210
|
+
}
|
|
3163
3211
|
} else if (knownBroken) {
|
|
3164
3212
|
const silenceVariable = `${envPrefix}_SILENCE_WARNING_KNOWN_BROKEN_NODE_VERSION`;
|
|
3165
3213
|
if (!process.env[silenceVariable]) veryVisibleMessage(chalk_1.bgRed.white.bold, `Node ${process_1.version} is unsupported and has known compatibility issues with this software.`, defaultCallToAction, silenceVariable);
|
|
@@ -3171,16 +3219,17 @@ var __webpack_modules__ = {
|
|
|
3171
3219
|
} else if (nodeRelease === null || nodeRelease === void 0 ? void 0 : nodeRelease.deprecated) {
|
|
3172
3220
|
const silenceVariable = `${envPrefix}_SILENCE_WARNING_DEPRECATED_NODE_VERSION`;
|
|
3173
3221
|
if (!process.env[silenceVariable]) {
|
|
3174
|
-
const
|
|
3175
|
-
|
|
3222
|
+
const eol = nodeRelease.endOfLifeDate.toISOString().slice(0, 10);
|
|
3223
|
+
const eos = nodeRelease.endOfJsiiSupportDate.toISOString().slice(0, 10);
|
|
3224
|
+
veryVisibleMessage(chalk_1.bgYellowBright.black, `Node ${nodeRelease.majorVersion} has reached end-of-life on ${eol} and will no longer be supported in new releases after ${eos}.`, `Please upgrade to a supported node version as soon as possible.`, silenceVariable);
|
|
3176
3225
|
}
|
|
3177
3226
|
}
|
|
3178
3227
|
function veryVisibleMessage(chalk, message, callToAction, silenceVariable) {
|
|
3179
|
-
const lines = [ message, callToAction, "", `This software is currently running on node ${process_1.version}.`, "As of the current release of this software, supported node releases are:", ...constants_1.NodeRelease.ALL_RELEASES.filter(
|
|
3228
|
+
const lines = [ message, callToAction, "", `This software is currently running on node ${process_1.version}.`, "As of the current release of this software, supported node releases are:", ...constants_1.NodeRelease.ALL_RELEASES.filter(release => release.supported).sort((l, r) => {
|
|
3180
3229
|
var _a, _b, _c, _d;
|
|
3181
3230
|
return ((_b = (_a = r.endOfLifeDate) === null || _a === void 0 ? void 0 : _a.getTime()) !== null && _b !== void 0 ? _b : 0) - ((_d = (_c = l.endOfLifeDate) === null || _c === void 0 ? void 0 : _c.getTime()) !== null && _d !== void 0 ? _d : 0);
|
|
3182
|
-
})
|
|
3183
|
-
const len = Math.max(...lines.map(
|
|
3231
|
+
}).map(release => `- ${release.toString()}${release.deprecated ? " [DEPRECATED]" : ""}`), ...silenceVariable ? [ "", `This warning can be silenced by setting the ${silenceVariable} environment variable.` ] : [] ];
|
|
3232
|
+
const len = Math.max(...lines.map(l => l.length));
|
|
3184
3233
|
const border = chalk("!".repeat(len + 8));
|
|
3185
3234
|
const spacer = chalk(`!! ${" ".repeat(len)} !!`);
|
|
3186
3235
|
(0, console_1.error)(border);
|
|
@@ -3192,9 +3241,9 @@ var __webpack_modules__ = {
|
|
|
3192
3241
|
(0, console_1.error)(border);
|
|
3193
3242
|
}
|
|
3194
3243
|
}
|
|
3195
|
-
exports.checkNode = checkNode;
|
|
3196
3244
|
},
|
|
3197
3245
|
8471: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3246
|
+
"use strict";
|
|
3198
3247
|
const SemVer = __webpack_require__(8038);
|
|
3199
3248
|
const compareBuild = (a, b, loose) => {
|
|
3200
3249
|
const versionA = new SemVer(a, loose);
|
|
@@ -3204,6 +3253,7 @@ var __webpack_modules__ = {
|
|
|
3204
3253
|
module.exports = compareBuild;
|
|
3205
3254
|
},
|
|
3206
3255
|
8474: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3256
|
+
"use strict";
|
|
3207
3257
|
const Range = __webpack_require__(3597);
|
|
3208
3258
|
const intersects = (r1, r2, options) => {
|
|
3209
3259
|
r1 = new Range(r1, options);
|
|
@@ -3213,11 +3263,13 @@ var __webpack_modules__ = {
|
|
|
3213
3263
|
module.exports = intersects;
|
|
3214
3264
|
},
|
|
3215
3265
|
8661: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3266
|
+
"use strict";
|
|
3216
3267
|
const compare = __webpack_require__(6278);
|
|
3217
3268
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
3218
3269
|
module.exports = neq;
|
|
3219
3270
|
},
|
|
3220
3271
|
8935: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3272
|
+
"use strict";
|
|
3221
3273
|
const compare = __webpack_require__(6278);
|
|
3222
3274
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
3223
3275
|
module.exports = eq;
|
|
@@ -3249,7 +3301,7 @@ var __webpack_modules__ = {
|
|
|
3249
3301
|
if (!Number.isNaN(number)) {
|
|
3250
3302
|
results.push(number);
|
|
3251
3303
|
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
3252
|
-
results.push(matches[2].replace(ESCAPE_REGEX, (
|
|
3304
|
+
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape(escape) : character));
|
|
3253
3305
|
} else {
|
|
3254
3306
|
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
|
3255
3307
|
}
|
|
@@ -3294,7 +3346,7 @@ var __webpack_modules__ = {
|
|
|
3294
3346
|
const styles = [];
|
|
3295
3347
|
const chunks = [];
|
|
3296
3348
|
let chunk = [];
|
|
3297
|
-
temporary.replace(TEMPLATE_REGEX, (
|
|
3349
|
+
temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
|
|
3298
3350
|
if (escapeCharacter) {
|
|
3299
3351
|
chunk.push(unescape(escapeCharacter));
|
|
3300
3352
|
} else if (style) {
|
|
@@ -3315,7 +3367,7 @@ var __webpack_modules__ = {
|
|
|
3315
3367
|
} else {
|
|
3316
3368
|
chunk.push(character);
|
|
3317
3369
|
}
|
|
3318
|
-
})
|
|
3370
|
+
});
|
|
3319
3371
|
chunks.push(chunk.join(""));
|
|
3320
3372
|
if (styles.length > 0) {
|
|
3321
3373
|
const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
|
|
@@ -3325,11 +3377,13 @@ var __webpack_modules__ = {
|
|
|
3325
3377
|
};
|
|
3326
3378
|
},
|
|
3327
3379
|
9024: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3380
|
+
"use strict";
|
|
3328
3381
|
const outside = __webpack_require__(2641);
|
|
3329
3382
|
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
3330
3383
|
module.exports = ltr;
|
|
3331
3384
|
},
|
|
3332
3385
|
9304: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3386
|
+
"use strict";
|
|
3333
3387
|
const SemVer = __webpack_require__(8038);
|
|
3334
3388
|
const Range = __webpack_require__(3597);
|
|
3335
3389
|
const minSatisfying = (versions, range, options) => {
|
|
@@ -3341,21 +3395,22 @@ var __webpack_modules__ = {
|
|
|
3341
3395
|
} catch (er) {
|
|
3342
3396
|
return null;
|
|
3343
3397
|
}
|
|
3344
|
-
versions.forEach(
|
|
3398
|
+
versions.forEach(v => {
|
|
3345
3399
|
if (rangeObj.test(v)) {
|
|
3346
3400
|
if (!min || minSV.compare(v) === 1) {
|
|
3347
3401
|
min = v;
|
|
3348
3402
|
minSV = new SemVer(min, options);
|
|
3349
3403
|
}
|
|
3350
3404
|
}
|
|
3351
|
-
})
|
|
3405
|
+
});
|
|
3352
3406
|
return min;
|
|
3353
3407
|
};
|
|
3354
3408
|
module.exports = minSatisfying;
|
|
3355
3409
|
},
|
|
3356
3410
|
9533: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3411
|
+
"use strict";
|
|
3357
3412
|
const Range = __webpack_require__(3597);
|
|
3358
|
-
const toComparators = (range, options) => new Range(range, options).set.map(
|
|
3413
|
+
const toComparators = (range, options) => new Range(range, options).set.map(comp => comp.map(c => c.value).join(" ").trim().split(" "));
|
|
3359
3414
|
module.exports = toComparators;
|
|
3360
3415
|
},
|
|
3361
3416
|
9614: module => {
|
|
@@ -3368,6 +3423,7 @@ var __webpack_modules__ = {
|
|
|
3368
3423
|
};
|
|
3369
3424
|
},
|
|
3370
3425
|
9746: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3426
|
+
"use strict";
|
|
3371
3427
|
const compare = __webpack_require__(6278);
|
|
3372
3428
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
3373
3429
|
module.exports = lte;
|
|
@@ -3417,22 +3473,22 @@ var __webpack_exports__ = {};
|
|
|
3417
3473
|
path_1.resolve)(__dirname, "..", "lib", "program.js") ], {
|
|
3418
3474
|
stdio: [ "ignore", "pipe", "pipe", "pipe" ]
|
|
3419
3475
|
});
|
|
3420
|
-
child.once("end", (
|
|
3476
|
+
child.once("end", (code, signal) => {
|
|
3421
3477
|
var _a;
|
|
3422
3478
|
if (signal != null) {
|
|
3423
3479
|
process.exit(128 + ((_a = os_1.constants.signals[signal]) !== null && _a !== void 0 ? _a : 0));
|
|
3424
3480
|
}
|
|
3425
3481
|
process.exit(code);
|
|
3426
|
-
})
|
|
3427
|
-
child.once("error",
|
|
3482
|
+
});
|
|
3483
|
+
child.once("error", err => {
|
|
3428
3484
|
console.error("Failed to spawn child process:", err.stack);
|
|
3429
3485
|
process.exit(-1);
|
|
3430
|
-
})
|
|
3486
|
+
});
|
|
3431
3487
|
for (const signal of Object.keys(os_1.constants.signals)) {
|
|
3432
3488
|
if (signal === "SIGKILL" || signal === "SIGSTOP") {
|
|
3433
3489
|
continue;
|
|
3434
3490
|
}
|
|
3435
|
-
process.on(signal,
|
|
3491
|
+
process.on(signal, sig => child.kill(sig));
|
|
3436
3492
|
}
|
|
3437
3493
|
function makeHandler(tag) {
|
|
3438
3494
|
return chunk => {
|