@terai/dev 0.0.0-dev-20251119151044 → 0.0.0-dev-20251119161854
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/cli.default.js +835 -549
- package/dist/cli.default.js.map +1 -1
- package/dist/cli.default.mjs +835 -549
- package/dist/cli.default.mjs.map +1 -1
- package/dist/cli.js +835 -549
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +835 -549
- package/dist/cli.mjs.map +1 -1
- package/package.json +8 -8
package/dist/cli.default.js
CHANGED
|
@@ -29,10 +29,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
mod
|
|
30
30
|
));
|
|
31
31
|
|
|
32
|
-
// ../../node_modules/.pnpm/tsup@8.5.
|
|
32
|
+
// ../../node_modules/.pnpm/tsup@8.5.1_postcss@8.5.6_typescript@5.9.3_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js
|
|
33
33
|
var getImportMetaUrl, importMetaUrl;
|
|
34
34
|
var init_cjs_shims = __esm({
|
|
35
|
-
"../../node_modules/.pnpm/tsup@8.5.
|
|
35
|
+
"../../node_modules/.pnpm/tsup@8.5.1_postcss@8.5.6_typescript@5.9.3_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
|
|
38
38
|
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
@@ -1513,9 +1513,9 @@ var require_dot_prop = __commonJS({
|
|
|
1513
1513
|
}
|
|
1514
1514
|
});
|
|
1515
1515
|
|
|
1516
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
1516
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/constants.js
|
|
1517
1517
|
var require_constants = __commonJS({
|
|
1518
|
-
"../../node_modules/.pnpm/semver@7.
|
|
1518
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/constants.js"(exports2, module2) {
|
|
1519
1519
|
"use strict";
|
|
1520
1520
|
init_cjs_shims();
|
|
1521
1521
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
@@ -1546,9 +1546,9 @@ var require_constants = __commonJS({
|
|
|
1546
1546
|
}
|
|
1547
1547
|
});
|
|
1548
1548
|
|
|
1549
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
1549
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/debug.js
|
|
1550
1550
|
var require_debug = __commonJS({
|
|
1551
|
-
"../../node_modules/.pnpm/semver@7.
|
|
1551
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/debug.js"(exports2, module2) {
|
|
1552
1552
|
"use strict";
|
|
1553
1553
|
init_cjs_shims();
|
|
1554
1554
|
var debug2 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
@@ -1557,9 +1557,9 @@ var require_debug = __commonJS({
|
|
|
1557
1557
|
}
|
|
1558
1558
|
});
|
|
1559
1559
|
|
|
1560
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
1560
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/re.js
|
|
1561
1561
|
var require_re = __commonJS({
|
|
1562
|
-
"../../node_modules/.pnpm/semver@7.
|
|
1562
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/re.js"(exports2, module2) {
|
|
1563
1563
|
"use strict";
|
|
1564
1564
|
init_cjs_shims();
|
|
1565
1565
|
var {
|
|
@@ -1572,7 +1572,6 @@ var require_re = __commonJS({
|
|
|
1572
1572
|
var re = exports2.re = [];
|
|
1573
1573
|
var safeRe = exports2.safeRe = [];
|
|
1574
1574
|
var src = exports2.src = [];
|
|
1575
|
-
var safeSrc = exports2.safeSrc = [];
|
|
1576
1575
|
var t = exports2.t = {};
|
|
1577
1576
|
var R = 0;
|
|
1578
1577
|
var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
@@ -1593,7 +1592,6 @@ var require_re = __commonJS({
|
|
|
1593
1592
|
debug2(name, index, value);
|
|
1594
1593
|
t[name] = index;
|
|
1595
1594
|
src[index] = value;
|
|
1596
|
-
safeSrc[index] = safe;
|
|
1597
1595
|
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
1598
1596
|
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
1599
1597
|
};
|
|
@@ -1602,8 +1600,8 @@ var require_re = __commonJS({
|
|
|
1602
1600
|
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
1603
1601
|
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
1604
1602
|
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
1605
|
-
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.
|
|
1606
|
-
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.
|
|
1603
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
1604
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
1607
1605
|
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
1608
1606
|
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
1609
1607
|
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
@@ -1646,9 +1644,9 @@ var require_re = __commonJS({
|
|
|
1646
1644
|
}
|
|
1647
1645
|
});
|
|
1648
1646
|
|
|
1649
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
1647
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/parse-options.js
|
|
1650
1648
|
var require_parse_options = __commonJS({
|
|
1651
|
-
"../../node_modules/.pnpm/semver@7.
|
|
1649
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/parse-options.js"(exports2, module2) {
|
|
1652
1650
|
"use strict";
|
|
1653
1651
|
init_cjs_shims();
|
|
1654
1652
|
var looseOption = Object.freeze({ loose: true });
|
|
@@ -1666,16 +1664,13 @@ var require_parse_options = __commonJS({
|
|
|
1666
1664
|
}
|
|
1667
1665
|
});
|
|
1668
1666
|
|
|
1669
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
1667
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/identifiers.js
|
|
1670
1668
|
var require_identifiers = __commonJS({
|
|
1671
|
-
"../../node_modules/.pnpm/semver@7.
|
|
1669
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/internal/identifiers.js"(exports2, module2) {
|
|
1672
1670
|
"use strict";
|
|
1673
1671
|
init_cjs_shims();
|
|
1674
1672
|
var numeric = /^[0-9]+$/;
|
|
1675
1673
|
var compareIdentifiers = (a, b) => {
|
|
1676
|
-
if (typeof a === "number" && typeof b === "number") {
|
|
1677
|
-
return a === b ? 0 : a < b ? -1 : 1;
|
|
1678
|
-
}
|
|
1679
1674
|
const anum = numeric.test(a);
|
|
1680
1675
|
const bnum = numeric.test(b);
|
|
1681
1676
|
if (anum && bnum) {
|
|
@@ -1692,9 +1687,9 @@ var require_identifiers = __commonJS({
|
|
|
1692
1687
|
}
|
|
1693
1688
|
});
|
|
1694
1689
|
|
|
1695
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
1690
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/classes/semver.js
|
|
1696
1691
|
var require_semver = __commonJS({
|
|
1697
|
-
"../../node_modules/.pnpm/semver@7.
|
|
1692
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/classes/semver.js"(exports2, module2) {
|
|
1698
1693
|
"use strict";
|
|
1699
1694
|
init_cjs_shims();
|
|
1700
1695
|
var debug2 = require_debug();
|
|
@@ -1783,25 +1778,7 @@ var require_semver = __commonJS({
|
|
|
1783
1778
|
if (!(other instanceof _SemVer)) {
|
|
1784
1779
|
other = new _SemVer(other, this.options);
|
|
1785
1780
|
}
|
|
1786
|
-
|
|
1787
|
-
return -1;
|
|
1788
|
-
}
|
|
1789
|
-
if (this.major > other.major) {
|
|
1790
|
-
return 1;
|
|
1791
|
-
}
|
|
1792
|
-
if (this.minor < other.minor) {
|
|
1793
|
-
return -1;
|
|
1794
|
-
}
|
|
1795
|
-
if (this.minor > other.minor) {
|
|
1796
|
-
return 1;
|
|
1797
|
-
}
|
|
1798
|
-
if (this.patch < other.patch) {
|
|
1799
|
-
return -1;
|
|
1800
|
-
}
|
|
1801
|
-
if (this.patch > other.patch) {
|
|
1802
|
-
return 1;
|
|
1803
|
-
}
|
|
1804
|
-
return 0;
|
|
1781
|
+
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
1805
1782
|
}
|
|
1806
1783
|
comparePre(other) {
|
|
1807
1784
|
if (!(other instanceof _SemVer)) {
|
|
@@ -1840,7 +1817,7 @@ var require_semver = __commonJS({
|
|
|
1840
1817
|
do {
|
|
1841
1818
|
const a = this.build[i];
|
|
1842
1819
|
const b = other.build[i];
|
|
1843
|
-
debug2("
|
|
1820
|
+
debug2("prerelease compare", i, a, b);
|
|
1844
1821
|
if (a === void 0 && b === void 0) {
|
|
1845
1822
|
return 0;
|
|
1846
1823
|
} else if (b === void 0) {
|
|
@@ -1857,17 +1834,6 @@ var require_semver = __commonJS({
|
|
|
1857
1834
|
// preminor will bump the version up to the next minor release, and immediately
|
|
1858
1835
|
// down to pre-release. premajor and prepatch work the same way.
|
|
1859
1836
|
inc(release, identifier, identifierBase) {
|
|
1860
|
-
if (release.startsWith("pre")) {
|
|
1861
|
-
if (!identifier && identifierBase === false) {
|
|
1862
|
-
throw new Error("invalid increment argument: identifier is empty");
|
|
1863
|
-
}
|
|
1864
|
-
if (identifier) {
|
|
1865
|
-
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
1866
|
-
if (!match || match[1] !== identifier) {
|
|
1867
|
-
throw new Error(`invalid identifier: ${identifier}`);
|
|
1868
|
-
}
|
|
1869
|
-
}
|
|
1870
|
-
}
|
|
1871
1837
|
switch (release) {
|
|
1872
1838
|
case "premajor":
|
|
1873
1839
|
this.prerelease.length = 0;
|
|
@@ -1895,12 +1861,6 @@ var require_semver = __commonJS({
|
|
|
1895
1861
|
}
|
|
1896
1862
|
this.inc("pre", identifier, identifierBase);
|
|
1897
1863
|
break;
|
|
1898
|
-
case "release":
|
|
1899
|
-
if (this.prerelease.length === 0) {
|
|
1900
|
-
throw new Error(`version ${this.raw} is not a prerelease`);
|
|
1901
|
-
}
|
|
1902
|
-
this.prerelease.length = 0;
|
|
1903
|
-
break;
|
|
1904
1864
|
case "major":
|
|
1905
1865
|
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
1906
1866
|
this.major++;
|
|
@@ -1926,6 +1886,9 @@ var require_semver = __commonJS({
|
|
|
1926
1886
|
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
1927
1887
|
case "pre": {
|
|
1928
1888
|
const base = Number(identifierBase) ? 1 : 0;
|
|
1889
|
+
if (!identifier && identifierBase === false) {
|
|
1890
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
1891
|
+
}
|
|
1929
1892
|
if (this.prerelease.length === 0) {
|
|
1930
1893
|
this.prerelease = [base];
|
|
1931
1894
|
} else {
|
|
@@ -1972,9 +1935,9 @@ var require_semver = __commonJS({
|
|
|
1972
1935
|
}
|
|
1973
1936
|
});
|
|
1974
1937
|
|
|
1975
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
1938
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/parse.js
|
|
1976
1939
|
var require_parse = __commonJS({
|
|
1977
|
-
"../../node_modules/.pnpm/semver@7.
|
|
1940
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/parse.js"(exports2, module2) {
|
|
1978
1941
|
"use strict";
|
|
1979
1942
|
init_cjs_shims();
|
|
1980
1943
|
var SemVer = require_semver();
|
|
@@ -1995,9 +1958,9 @@ var require_parse = __commonJS({
|
|
|
1995
1958
|
}
|
|
1996
1959
|
});
|
|
1997
1960
|
|
|
1998
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
1961
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/valid.js
|
|
1999
1962
|
var require_valid = __commonJS({
|
|
2000
|
-
"../../node_modules/.pnpm/semver@7.
|
|
1963
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/valid.js"(exports2, module2) {
|
|
2001
1964
|
"use strict";
|
|
2002
1965
|
init_cjs_shims();
|
|
2003
1966
|
var parse = require_parse();
|
|
@@ -2009,9 +1972,9 @@ var require_valid = __commonJS({
|
|
|
2009
1972
|
}
|
|
2010
1973
|
});
|
|
2011
1974
|
|
|
2012
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
1975
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/clean.js
|
|
2013
1976
|
var require_clean = __commonJS({
|
|
2014
|
-
"../../node_modules/.pnpm/semver@7.
|
|
1977
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/clean.js"(exports2, module2) {
|
|
2015
1978
|
"use strict";
|
|
2016
1979
|
init_cjs_shims();
|
|
2017
1980
|
var parse = require_parse();
|
|
@@ -2023,9 +1986,9 @@ var require_clean = __commonJS({
|
|
|
2023
1986
|
}
|
|
2024
1987
|
});
|
|
2025
1988
|
|
|
2026
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
1989
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/inc.js
|
|
2027
1990
|
var require_inc = __commonJS({
|
|
2028
|
-
"../../node_modules/.pnpm/semver@7.
|
|
1991
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/inc.js"(exports2, module2) {
|
|
2029
1992
|
"use strict";
|
|
2030
1993
|
init_cjs_shims();
|
|
2031
1994
|
var SemVer = require_semver();
|
|
@@ -2048,9 +2011,9 @@ var require_inc = __commonJS({
|
|
|
2048
2011
|
}
|
|
2049
2012
|
});
|
|
2050
2013
|
|
|
2051
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2014
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/diff.js
|
|
2052
2015
|
var require_diff = __commonJS({
|
|
2053
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2016
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/diff.js"(exports2, module2) {
|
|
2054
2017
|
"use strict";
|
|
2055
2018
|
init_cjs_shims();
|
|
2056
2019
|
var parse = require_parse();
|
|
@@ -2070,12 +2033,13 @@ var require_diff = __commonJS({
|
|
|
2070
2033
|
if (!lowVersion.patch && !lowVersion.minor) {
|
|
2071
2034
|
return "major";
|
|
2072
2035
|
}
|
|
2073
|
-
if (
|
|
2074
|
-
if (lowVersion.minor && !lowVersion.patch) {
|
|
2075
|
-
return "minor";
|
|
2076
|
-
}
|
|
2036
|
+
if (highVersion.patch) {
|
|
2077
2037
|
return "patch";
|
|
2078
2038
|
}
|
|
2039
|
+
if (highVersion.minor) {
|
|
2040
|
+
return "minor";
|
|
2041
|
+
}
|
|
2042
|
+
return "major";
|
|
2079
2043
|
}
|
|
2080
2044
|
const prefix = highHasPre ? "pre" : "";
|
|
2081
2045
|
if (v1.major !== v2.major) {
|
|
@@ -2093,9 +2057,9 @@ var require_diff = __commonJS({
|
|
|
2093
2057
|
}
|
|
2094
2058
|
});
|
|
2095
2059
|
|
|
2096
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2060
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/major.js
|
|
2097
2061
|
var require_major = __commonJS({
|
|
2098
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2062
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/major.js"(exports2, module2) {
|
|
2099
2063
|
"use strict";
|
|
2100
2064
|
init_cjs_shims();
|
|
2101
2065
|
var SemVer = require_semver();
|
|
@@ -2104,9 +2068,9 @@ var require_major = __commonJS({
|
|
|
2104
2068
|
}
|
|
2105
2069
|
});
|
|
2106
2070
|
|
|
2107
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2071
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/minor.js
|
|
2108
2072
|
var require_minor = __commonJS({
|
|
2109
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2073
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/minor.js"(exports2, module2) {
|
|
2110
2074
|
"use strict";
|
|
2111
2075
|
init_cjs_shims();
|
|
2112
2076
|
var SemVer = require_semver();
|
|
@@ -2115,9 +2079,9 @@ var require_minor = __commonJS({
|
|
|
2115
2079
|
}
|
|
2116
2080
|
});
|
|
2117
2081
|
|
|
2118
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2082
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/patch.js
|
|
2119
2083
|
var require_patch = __commonJS({
|
|
2120
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2084
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/patch.js"(exports2, module2) {
|
|
2121
2085
|
"use strict";
|
|
2122
2086
|
init_cjs_shims();
|
|
2123
2087
|
var SemVer = require_semver();
|
|
@@ -2126,9 +2090,9 @@ var require_patch = __commonJS({
|
|
|
2126
2090
|
}
|
|
2127
2091
|
});
|
|
2128
2092
|
|
|
2129
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2093
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/prerelease.js
|
|
2130
2094
|
var require_prerelease = __commonJS({
|
|
2131
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2095
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/prerelease.js"(exports2, module2) {
|
|
2132
2096
|
"use strict";
|
|
2133
2097
|
init_cjs_shims();
|
|
2134
2098
|
var parse = require_parse();
|
|
@@ -2140,9 +2104,9 @@ var require_prerelease = __commonJS({
|
|
|
2140
2104
|
}
|
|
2141
2105
|
});
|
|
2142
2106
|
|
|
2143
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2107
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/compare.js
|
|
2144
2108
|
var require_compare = __commonJS({
|
|
2145
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2109
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/compare.js"(exports2, module2) {
|
|
2146
2110
|
"use strict";
|
|
2147
2111
|
init_cjs_shims();
|
|
2148
2112
|
var SemVer = require_semver();
|
|
@@ -2151,9 +2115,9 @@ var require_compare = __commonJS({
|
|
|
2151
2115
|
}
|
|
2152
2116
|
});
|
|
2153
2117
|
|
|
2154
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2118
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/rcompare.js
|
|
2155
2119
|
var require_rcompare = __commonJS({
|
|
2156
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2120
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/rcompare.js"(exports2, module2) {
|
|
2157
2121
|
"use strict";
|
|
2158
2122
|
init_cjs_shims();
|
|
2159
2123
|
var compare = require_compare();
|
|
@@ -2162,9 +2126,9 @@ var require_rcompare = __commonJS({
|
|
|
2162
2126
|
}
|
|
2163
2127
|
});
|
|
2164
2128
|
|
|
2165
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2129
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/compare-loose.js
|
|
2166
2130
|
var require_compare_loose = __commonJS({
|
|
2167
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2131
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/compare-loose.js"(exports2, module2) {
|
|
2168
2132
|
"use strict";
|
|
2169
2133
|
init_cjs_shims();
|
|
2170
2134
|
var compare = require_compare();
|
|
@@ -2173,9 +2137,9 @@ var require_compare_loose = __commonJS({
|
|
|
2173
2137
|
}
|
|
2174
2138
|
});
|
|
2175
2139
|
|
|
2176
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2140
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/compare-build.js
|
|
2177
2141
|
var require_compare_build = __commonJS({
|
|
2178
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2142
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/compare-build.js"(exports2, module2) {
|
|
2179
2143
|
"use strict";
|
|
2180
2144
|
init_cjs_shims();
|
|
2181
2145
|
var SemVer = require_semver();
|
|
@@ -2188,9 +2152,9 @@ var require_compare_build = __commonJS({
|
|
|
2188
2152
|
}
|
|
2189
2153
|
});
|
|
2190
2154
|
|
|
2191
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2155
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/sort.js
|
|
2192
2156
|
var require_sort = __commonJS({
|
|
2193
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2157
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/sort.js"(exports2, module2) {
|
|
2194
2158
|
"use strict";
|
|
2195
2159
|
init_cjs_shims();
|
|
2196
2160
|
var compareBuild = require_compare_build();
|
|
@@ -2199,9 +2163,9 @@ var require_sort = __commonJS({
|
|
|
2199
2163
|
}
|
|
2200
2164
|
});
|
|
2201
2165
|
|
|
2202
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2166
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/rsort.js
|
|
2203
2167
|
var require_rsort = __commonJS({
|
|
2204
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2168
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/rsort.js"(exports2, module2) {
|
|
2205
2169
|
"use strict";
|
|
2206
2170
|
init_cjs_shims();
|
|
2207
2171
|
var compareBuild = require_compare_build();
|
|
@@ -2210,9 +2174,9 @@ var require_rsort = __commonJS({
|
|
|
2210
2174
|
}
|
|
2211
2175
|
});
|
|
2212
2176
|
|
|
2213
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2177
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/gt.js
|
|
2214
2178
|
var require_gt = __commonJS({
|
|
2215
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2179
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/gt.js"(exports2, module2) {
|
|
2216
2180
|
"use strict";
|
|
2217
2181
|
init_cjs_shims();
|
|
2218
2182
|
var compare = require_compare();
|
|
@@ -2221,9 +2185,9 @@ var require_gt = __commonJS({
|
|
|
2221
2185
|
}
|
|
2222
2186
|
});
|
|
2223
2187
|
|
|
2224
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2188
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/lt.js
|
|
2225
2189
|
var require_lt = __commonJS({
|
|
2226
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2190
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/lt.js"(exports2, module2) {
|
|
2227
2191
|
"use strict";
|
|
2228
2192
|
init_cjs_shims();
|
|
2229
2193
|
var compare = require_compare();
|
|
@@ -2232,9 +2196,9 @@ var require_lt = __commonJS({
|
|
|
2232
2196
|
}
|
|
2233
2197
|
});
|
|
2234
2198
|
|
|
2235
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2199
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/eq.js
|
|
2236
2200
|
var require_eq = __commonJS({
|
|
2237
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2201
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/eq.js"(exports2, module2) {
|
|
2238
2202
|
"use strict";
|
|
2239
2203
|
init_cjs_shims();
|
|
2240
2204
|
var compare = require_compare();
|
|
@@ -2243,9 +2207,9 @@ var require_eq = __commonJS({
|
|
|
2243
2207
|
}
|
|
2244
2208
|
});
|
|
2245
2209
|
|
|
2246
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2210
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/neq.js
|
|
2247
2211
|
var require_neq = __commonJS({
|
|
2248
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2212
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/neq.js"(exports2, module2) {
|
|
2249
2213
|
"use strict";
|
|
2250
2214
|
init_cjs_shims();
|
|
2251
2215
|
var compare = require_compare();
|
|
@@ -2254,9 +2218,9 @@ var require_neq = __commonJS({
|
|
|
2254
2218
|
}
|
|
2255
2219
|
});
|
|
2256
2220
|
|
|
2257
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2221
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/gte.js
|
|
2258
2222
|
var require_gte = __commonJS({
|
|
2259
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2223
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/gte.js"(exports2, module2) {
|
|
2260
2224
|
"use strict";
|
|
2261
2225
|
init_cjs_shims();
|
|
2262
2226
|
var compare = require_compare();
|
|
@@ -2265,9 +2229,9 @@ var require_gte = __commonJS({
|
|
|
2265
2229
|
}
|
|
2266
2230
|
});
|
|
2267
2231
|
|
|
2268
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2232
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/lte.js
|
|
2269
2233
|
var require_lte = __commonJS({
|
|
2270
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2234
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/lte.js"(exports2, module2) {
|
|
2271
2235
|
"use strict";
|
|
2272
2236
|
init_cjs_shims();
|
|
2273
2237
|
var compare = require_compare();
|
|
@@ -2276,9 +2240,9 @@ var require_lte = __commonJS({
|
|
|
2276
2240
|
}
|
|
2277
2241
|
});
|
|
2278
2242
|
|
|
2279
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2243
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/cmp.js
|
|
2280
2244
|
var require_cmp = __commonJS({
|
|
2281
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2245
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/cmp.js"(exports2, module2) {
|
|
2282
2246
|
"use strict";
|
|
2283
2247
|
init_cjs_shims();
|
|
2284
2248
|
var eq = require_eq();
|
|
@@ -2327,9 +2291,9 @@ var require_cmp = __commonJS({
|
|
|
2327
2291
|
}
|
|
2328
2292
|
});
|
|
2329
2293
|
|
|
2330
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2294
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/coerce.js
|
|
2331
2295
|
var require_coerce = __commonJS({
|
|
2332
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2296
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/coerce.js"(exports2, module2) {
|
|
2333
2297
|
"use strict";
|
|
2334
2298
|
init_cjs_shims();
|
|
2335
2299
|
var SemVer = require_semver();
|
|
@@ -2374,51 +2338,666 @@ var require_coerce = __commonJS({
|
|
|
2374
2338
|
}
|
|
2375
2339
|
});
|
|
2376
2340
|
|
|
2377
|
-
// ../../node_modules/.pnpm/
|
|
2378
|
-
var
|
|
2379
|
-
"../../node_modules/.pnpm/
|
|
2341
|
+
// ../../node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/iterator.js
|
|
2342
|
+
var require_iterator = __commonJS({
|
|
2343
|
+
"../../node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/iterator.js"(exports2, module2) {
|
|
2380
2344
|
"use strict";
|
|
2381
2345
|
init_cjs_shims();
|
|
2346
|
+
module2.exports = function(Yallist) {
|
|
2347
|
+
Yallist.prototype[Symbol.iterator] = function* () {
|
|
2348
|
+
for (let walker = this.head; walker; walker = walker.next) {
|
|
2349
|
+
yield walker.value;
|
|
2350
|
+
}
|
|
2351
|
+
};
|
|
2352
|
+
};
|
|
2353
|
+
}
|
|
2354
|
+
});
|
|
2355
|
+
|
|
2356
|
+
// ../../node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/yallist.js
|
|
2357
|
+
var require_yallist = __commonJS({
|
|
2358
|
+
"../../node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/yallist.js"(exports2, module2) {
|
|
2359
|
+
"use strict";
|
|
2360
|
+
init_cjs_shims();
|
|
2361
|
+
module2.exports = Yallist;
|
|
2362
|
+
Yallist.Node = Node;
|
|
2363
|
+
Yallist.create = Yallist;
|
|
2364
|
+
function Yallist(list) {
|
|
2365
|
+
var self = this;
|
|
2366
|
+
if (!(self instanceof Yallist)) {
|
|
2367
|
+
self = new Yallist();
|
|
2368
|
+
}
|
|
2369
|
+
self.tail = null;
|
|
2370
|
+
self.head = null;
|
|
2371
|
+
self.length = 0;
|
|
2372
|
+
if (list && typeof list.forEach === "function") {
|
|
2373
|
+
list.forEach(function(item) {
|
|
2374
|
+
self.push(item);
|
|
2375
|
+
});
|
|
2376
|
+
} else if (arguments.length > 0) {
|
|
2377
|
+
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
2378
|
+
self.push(arguments[i]);
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
return self;
|
|
2382
|
+
}
|
|
2383
|
+
Yallist.prototype.removeNode = function(node) {
|
|
2384
|
+
if (node.list !== this) {
|
|
2385
|
+
throw new Error("removing node which does not belong to this list");
|
|
2386
|
+
}
|
|
2387
|
+
var next = node.next;
|
|
2388
|
+
var prev = node.prev;
|
|
2389
|
+
if (next) {
|
|
2390
|
+
next.prev = prev;
|
|
2391
|
+
}
|
|
2392
|
+
if (prev) {
|
|
2393
|
+
prev.next = next;
|
|
2394
|
+
}
|
|
2395
|
+
if (node === this.head) {
|
|
2396
|
+
this.head = next;
|
|
2397
|
+
}
|
|
2398
|
+
if (node === this.tail) {
|
|
2399
|
+
this.tail = prev;
|
|
2400
|
+
}
|
|
2401
|
+
node.list.length--;
|
|
2402
|
+
node.next = null;
|
|
2403
|
+
node.prev = null;
|
|
2404
|
+
node.list = null;
|
|
2405
|
+
return next;
|
|
2406
|
+
};
|
|
2407
|
+
Yallist.prototype.unshiftNode = function(node) {
|
|
2408
|
+
if (node === this.head) {
|
|
2409
|
+
return;
|
|
2410
|
+
}
|
|
2411
|
+
if (node.list) {
|
|
2412
|
+
node.list.removeNode(node);
|
|
2413
|
+
}
|
|
2414
|
+
var head = this.head;
|
|
2415
|
+
node.list = this;
|
|
2416
|
+
node.next = head;
|
|
2417
|
+
if (head) {
|
|
2418
|
+
head.prev = node;
|
|
2419
|
+
}
|
|
2420
|
+
this.head = node;
|
|
2421
|
+
if (!this.tail) {
|
|
2422
|
+
this.tail = node;
|
|
2423
|
+
}
|
|
2424
|
+
this.length++;
|
|
2425
|
+
};
|
|
2426
|
+
Yallist.prototype.pushNode = function(node) {
|
|
2427
|
+
if (node === this.tail) {
|
|
2428
|
+
return;
|
|
2429
|
+
}
|
|
2430
|
+
if (node.list) {
|
|
2431
|
+
node.list.removeNode(node);
|
|
2432
|
+
}
|
|
2433
|
+
var tail = this.tail;
|
|
2434
|
+
node.list = this;
|
|
2435
|
+
node.prev = tail;
|
|
2436
|
+
if (tail) {
|
|
2437
|
+
tail.next = node;
|
|
2438
|
+
}
|
|
2439
|
+
this.tail = node;
|
|
2440
|
+
if (!this.head) {
|
|
2441
|
+
this.head = node;
|
|
2442
|
+
}
|
|
2443
|
+
this.length++;
|
|
2444
|
+
};
|
|
2445
|
+
Yallist.prototype.push = function() {
|
|
2446
|
+
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
2447
|
+
push(this, arguments[i]);
|
|
2448
|
+
}
|
|
2449
|
+
return this.length;
|
|
2450
|
+
};
|
|
2451
|
+
Yallist.prototype.unshift = function() {
|
|
2452
|
+
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
2453
|
+
unshift(this, arguments[i]);
|
|
2454
|
+
}
|
|
2455
|
+
return this.length;
|
|
2456
|
+
};
|
|
2457
|
+
Yallist.prototype.pop = function() {
|
|
2458
|
+
if (!this.tail) {
|
|
2459
|
+
return void 0;
|
|
2460
|
+
}
|
|
2461
|
+
var res = this.tail.value;
|
|
2462
|
+
this.tail = this.tail.prev;
|
|
2463
|
+
if (this.tail) {
|
|
2464
|
+
this.tail.next = null;
|
|
2465
|
+
} else {
|
|
2466
|
+
this.head = null;
|
|
2467
|
+
}
|
|
2468
|
+
this.length--;
|
|
2469
|
+
return res;
|
|
2470
|
+
};
|
|
2471
|
+
Yallist.prototype.shift = function() {
|
|
2472
|
+
if (!this.head) {
|
|
2473
|
+
return void 0;
|
|
2474
|
+
}
|
|
2475
|
+
var res = this.head.value;
|
|
2476
|
+
this.head = this.head.next;
|
|
2477
|
+
if (this.head) {
|
|
2478
|
+
this.head.prev = null;
|
|
2479
|
+
} else {
|
|
2480
|
+
this.tail = null;
|
|
2481
|
+
}
|
|
2482
|
+
this.length--;
|
|
2483
|
+
return res;
|
|
2484
|
+
};
|
|
2485
|
+
Yallist.prototype.forEach = function(fn, thisp) {
|
|
2486
|
+
thisp = thisp || this;
|
|
2487
|
+
for (var walker = this.head, i = 0; walker !== null; i++) {
|
|
2488
|
+
fn.call(thisp, walker.value, i, this);
|
|
2489
|
+
walker = walker.next;
|
|
2490
|
+
}
|
|
2491
|
+
};
|
|
2492
|
+
Yallist.prototype.forEachReverse = function(fn, thisp) {
|
|
2493
|
+
thisp = thisp || this;
|
|
2494
|
+
for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {
|
|
2495
|
+
fn.call(thisp, walker.value, i, this);
|
|
2496
|
+
walker = walker.prev;
|
|
2497
|
+
}
|
|
2498
|
+
};
|
|
2499
|
+
Yallist.prototype.get = function(n) {
|
|
2500
|
+
for (var i = 0, walker = this.head; walker !== null && i < n; i++) {
|
|
2501
|
+
walker = walker.next;
|
|
2502
|
+
}
|
|
2503
|
+
if (i === n && walker !== null) {
|
|
2504
|
+
return walker.value;
|
|
2505
|
+
}
|
|
2506
|
+
};
|
|
2507
|
+
Yallist.prototype.getReverse = function(n) {
|
|
2508
|
+
for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {
|
|
2509
|
+
walker = walker.prev;
|
|
2510
|
+
}
|
|
2511
|
+
if (i === n && walker !== null) {
|
|
2512
|
+
return walker.value;
|
|
2513
|
+
}
|
|
2514
|
+
};
|
|
2515
|
+
Yallist.prototype.map = function(fn, thisp) {
|
|
2516
|
+
thisp = thisp || this;
|
|
2517
|
+
var res = new Yallist();
|
|
2518
|
+
for (var walker = this.head; walker !== null; ) {
|
|
2519
|
+
res.push(fn.call(thisp, walker.value, this));
|
|
2520
|
+
walker = walker.next;
|
|
2521
|
+
}
|
|
2522
|
+
return res;
|
|
2523
|
+
};
|
|
2524
|
+
Yallist.prototype.mapReverse = function(fn, thisp) {
|
|
2525
|
+
thisp = thisp || this;
|
|
2526
|
+
var res = new Yallist();
|
|
2527
|
+
for (var walker = this.tail; walker !== null; ) {
|
|
2528
|
+
res.push(fn.call(thisp, walker.value, this));
|
|
2529
|
+
walker = walker.prev;
|
|
2530
|
+
}
|
|
2531
|
+
return res;
|
|
2532
|
+
};
|
|
2533
|
+
Yallist.prototype.reduce = function(fn, initial) {
|
|
2534
|
+
var acc;
|
|
2535
|
+
var walker = this.head;
|
|
2536
|
+
if (arguments.length > 1) {
|
|
2537
|
+
acc = initial;
|
|
2538
|
+
} else if (this.head) {
|
|
2539
|
+
walker = this.head.next;
|
|
2540
|
+
acc = this.head.value;
|
|
2541
|
+
} else {
|
|
2542
|
+
throw new TypeError("Reduce of empty list with no initial value");
|
|
2543
|
+
}
|
|
2544
|
+
for (var i = 0; walker !== null; i++) {
|
|
2545
|
+
acc = fn(acc, walker.value, i);
|
|
2546
|
+
walker = walker.next;
|
|
2547
|
+
}
|
|
2548
|
+
return acc;
|
|
2549
|
+
};
|
|
2550
|
+
Yallist.prototype.reduceReverse = function(fn, initial) {
|
|
2551
|
+
var acc;
|
|
2552
|
+
var walker = this.tail;
|
|
2553
|
+
if (arguments.length > 1) {
|
|
2554
|
+
acc = initial;
|
|
2555
|
+
} else if (this.tail) {
|
|
2556
|
+
walker = this.tail.prev;
|
|
2557
|
+
acc = this.tail.value;
|
|
2558
|
+
} else {
|
|
2559
|
+
throw new TypeError("Reduce of empty list with no initial value");
|
|
2560
|
+
}
|
|
2561
|
+
for (var i = this.length - 1; walker !== null; i--) {
|
|
2562
|
+
acc = fn(acc, walker.value, i);
|
|
2563
|
+
walker = walker.prev;
|
|
2564
|
+
}
|
|
2565
|
+
return acc;
|
|
2566
|
+
};
|
|
2567
|
+
Yallist.prototype.toArray = function() {
|
|
2568
|
+
var arr = new Array(this.length);
|
|
2569
|
+
for (var i = 0, walker = this.head; walker !== null; i++) {
|
|
2570
|
+
arr[i] = walker.value;
|
|
2571
|
+
walker = walker.next;
|
|
2572
|
+
}
|
|
2573
|
+
return arr;
|
|
2574
|
+
};
|
|
2575
|
+
Yallist.prototype.toArrayReverse = function() {
|
|
2576
|
+
var arr = new Array(this.length);
|
|
2577
|
+
for (var i = 0, walker = this.tail; walker !== null; i++) {
|
|
2578
|
+
arr[i] = walker.value;
|
|
2579
|
+
walker = walker.prev;
|
|
2580
|
+
}
|
|
2581
|
+
return arr;
|
|
2582
|
+
};
|
|
2583
|
+
Yallist.prototype.slice = function(from, to) {
|
|
2584
|
+
to = to || this.length;
|
|
2585
|
+
if (to < 0) {
|
|
2586
|
+
to += this.length;
|
|
2587
|
+
}
|
|
2588
|
+
from = from || 0;
|
|
2589
|
+
if (from < 0) {
|
|
2590
|
+
from += this.length;
|
|
2591
|
+
}
|
|
2592
|
+
var ret = new Yallist();
|
|
2593
|
+
if (to < from || to < 0) {
|
|
2594
|
+
return ret;
|
|
2595
|
+
}
|
|
2596
|
+
if (from < 0) {
|
|
2597
|
+
from = 0;
|
|
2598
|
+
}
|
|
2599
|
+
if (to > this.length) {
|
|
2600
|
+
to = this.length;
|
|
2601
|
+
}
|
|
2602
|
+
for (var i = 0, walker = this.head; walker !== null && i < from; i++) {
|
|
2603
|
+
walker = walker.next;
|
|
2604
|
+
}
|
|
2605
|
+
for (; walker !== null && i < to; i++, walker = walker.next) {
|
|
2606
|
+
ret.push(walker.value);
|
|
2607
|
+
}
|
|
2608
|
+
return ret;
|
|
2609
|
+
};
|
|
2610
|
+
Yallist.prototype.sliceReverse = function(from, to) {
|
|
2611
|
+
to = to || this.length;
|
|
2612
|
+
if (to < 0) {
|
|
2613
|
+
to += this.length;
|
|
2614
|
+
}
|
|
2615
|
+
from = from || 0;
|
|
2616
|
+
if (from < 0) {
|
|
2617
|
+
from += this.length;
|
|
2618
|
+
}
|
|
2619
|
+
var ret = new Yallist();
|
|
2620
|
+
if (to < from || to < 0) {
|
|
2621
|
+
return ret;
|
|
2622
|
+
}
|
|
2623
|
+
if (from < 0) {
|
|
2624
|
+
from = 0;
|
|
2625
|
+
}
|
|
2626
|
+
if (to > this.length) {
|
|
2627
|
+
to = this.length;
|
|
2628
|
+
}
|
|
2629
|
+
for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {
|
|
2630
|
+
walker = walker.prev;
|
|
2631
|
+
}
|
|
2632
|
+
for (; walker !== null && i > from; i--, walker = walker.prev) {
|
|
2633
|
+
ret.push(walker.value);
|
|
2634
|
+
}
|
|
2635
|
+
return ret;
|
|
2636
|
+
};
|
|
2637
|
+
Yallist.prototype.splice = function(start, deleteCount, ...nodes) {
|
|
2638
|
+
if (start > this.length) {
|
|
2639
|
+
start = this.length - 1;
|
|
2640
|
+
}
|
|
2641
|
+
if (start < 0) {
|
|
2642
|
+
start = this.length + start;
|
|
2643
|
+
}
|
|
2644
|
+
for (var i = 0, walker = this.head; walker !== null && i < start; i++) {
|
|
2645
|
+
walker = walker.next;
|
|
2646
|
+
}
|
|
2647
|
+
var ret = [];
|
|
2648
|
+
for (var i = 0; walker && i < deleteCount; i++) {
|
|
2649
|
+
ret.push(walker.value);
|
|
2650
|
+
walker = this.removeNode(walker);
|
|
2651
|
+
}
|
|
2652
|
+
if (walker === null) {
|
|
2653
|
+
walker = this.tail;
|
|
2654
|
+
}
|
|
2655
|
+
if (walker !== this.head && walker !== this.tail) {
|
|
2656
|
+
walker = walker.prev;
|
|
2657
|
+
}
|
|
2658
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
2659
|
+
walker = insert(this, walker, nodes[i]);
|
|
2660
|
+
}
|
|
2661
|
+
return ret;
|
|
2662
|
+
};
|
|
2663
|
+
Yallist.prototype.reverse = function() {
|
|
2664
|
+
var head = this.head;
|
|
2665
|
+
var tail = this.tail;
|
|
2666
|
+
for (var walker = head; walker !== null; walker = walker.prev) {
|
|
2667
|
+
var p = walker.prev;
|
|
2668
|
+
walker.prev = walker.next;
|
|
2669
|
+
walker.next = p;
|
|
2670
|
+
}
|
|
2671
|
+
this.head = tail;
|
|
2672
|
+
this.tail = head;
|
|
2673
|
+
return this;
|
|
2674
|
+
};
|
|
2675
|
+
function insert(self, node, value) {
|
|
2676
|
+
var inserted = node === self.head ? new Node(value, null, node, self) : new Node(value, node, node.next, self);
|
|
2677
|
+
if (inserted.next === null) {
|
|
2678
|
+
self.tail = inserted;
|
|
2679
|
+
}
|
|
2680
|
+
if (inserted.prev === null) {
|
|
2681
|
+
self.head = inserted;
|
|
2682
|
+
}
|
|
2683
|
+
self.length++;
|
|
2684
|
+
return inserted;
|
|
2685
|
+
}
|
|
2686
|
+
function push(self, item) {
|
|
2687
|
+
self.tail = new Node(item, self.tail, null, self);
|
|
2688
|
+
if (!self.head) {
|
|
2689
|
+
self.head = self.tail;
|
|
2690
|
+
}
|
|
2691
|
+
self.length++;
|
|
2692
|
+
}
|
|
2693
|
+
function unshift(self, item) {
|
|
2694
|
+
self.head = new Node(item, null, self.head, self);
|
|
2695
|
+
if (!self.tail) {
|
|
2696
|
+
self.tail = self.head;
|
|
2697
|
+
}
|
|
2698
|
+
self.length++;
|
|
2699
|
+
}
|
|
2700
|
+
function Node(value, prev, next, list) {
|
|
2701
|
+
if (!(this instanceof Node)) {
|
|
2702
|
+
return new Node(value, prev, next, list);
|
|
2703
|
+
}
|
|
2704
|
+
this.list = list;
|
|
2705
|
+
this.value = value;
|
|
2706
|
+
if (prev) {
|
|
2707
|
+
prev.next = this;
|
|
2708
|
+
this.prev = prev;
|
|
2709
|
+
} else {
|
|
2710
|
+
this.prev = null;
|
|
2711
|
+
}
|
|
2712
|
+
if (next) {
|
|
2713
|
+
next.prev = this;
|
|
2714
|
+
this.next = next;
|
|
2715
|
+
} else {
|
|
2716
|
+
this.next = null;
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2719
|
+
try {
|
|
2720
|
+
require_iterator()(Yallist);
|
|
2721
|
+
} catch (er) {
|
|
2722
|
+
}
|
|
2723
|
+
}
|
|
2724
|
+
});
|
|
2725
|
+
|
|
2726
|
+
// ../../node_modules/.pnpm/lru-cache@6.0.0/node_modules/lru-cache/index.js
|
|
2727
|
+
var require_lru_cache = __commonJS({
|
|
2728
|
+
"../../node_modules/.pnpm/lru-cache@6.0.0/node_modules/lru-cache/index.js"(exports2, module2) {
|
|
2729
|
+
"use strict";
|
|
2730
|
+
init_cjs_shims();
|
|
2731
|
+
var Yallist = require_yallist();
|
|
2732
|
+
var MAX = Symbol("max");
|
|
2733
|
+
var LENGTH = Symbol("length");
|
|
2734
|
+
var LENGTH_CALCULATOR = Symbol("lengthCalculator");
|
|
2735
|
+
var ALLOW_STALE = Symbol("allowStale");
|
|
2736
|
+
var MAX_AGE = Symbol("maxAge");
|
|
2737
|
+
var DISPOSE = Symbol("dispose");
|
|
2738
|
+
var NO_DISPOSE_ON_SET = Symbol("noDisposeOnSet");
|
|
2739
|
+
var LRU_LIST = Symbol("lruList");
|
|
2740
|
+
var CACHE = Symbol("cache");
|
|
2741
|
+
var UPDATE_AGE_ON_GET = Symbol("updateAgeOnGet");
|
|
2742
|
+
var naiveLength = () => 1;
|
|
2382
2743
|
var LRUCache = class {
|
|
2383
|
-
constructor() {
|
|
2384
|
-
|
|
2385
|
-
|
|
2744
|
+
constructor(options) {
|
|
2745
|
+
if (typeof options === "number")
|
|
2746
|
+
options = { max: options };
|
|
2747
|
+
if (!options)
|
|
2748
|
+
options = {};
|
|
2749
|
+
if (options.max && (typeof options.max !== "number" || options.max < 0))
|
|
2750
|
+
throw new TypeError("max must be a non-negative number");
|
|
2751
|
+
const max = this[MAX] = options.max || Infinity;
|
|
2752
|
+
const lc = options.length || naiveLength;
|
|
2753
|
+
this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc;
|
|
2754
|
+
this[ALLOW_STALE] = options.stale || false;
|
|
2755
|
+
if (options.maxAge && typeof options.maxAge !== "number")
|
|
2756
|
+
throw new TypeError("maxAge must be a number");
|
|
2757
|
+
this[MAX_AGE] = options.maxAge || 0;
|
|
2758
|
+
this[DISPOSE] = options.dispose;
|
|
2759
|
+
this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;
|
|
2760
|
+
this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;
|
|
2761
|
+
this.reset();
|
|
2762
|
+
}
|
|
2763
|
+
// resize the cache when the max changes.
|
|
2764
|
+
set max(mL) {
|
|
2765
|
+
if (typeof mL !== "number" || mL < 0)
|
|
2766
|
+
throw new TypeError("max must be a non-negative number");
|
|
2767
|
+
this[MAX] = mL || Infinity;
|
|
2768
|
+
trim(this);
|
|
2769
|
+
}
|
|
2770
|
+
get max() {
|
|
2771
|
+
return this[MAX];
|
|
2772
|
+
}
|
|
2773
|
+
set allowStale(allowStale) {
|
|
2774
|
+
this[ALLOW_STALE] = !!allowStale;
|
|
2775
|
+
}
|
|
2776
|
+
get allowStale() {
|
|
2777
|
+
return this[ALLOW_STALE];
|
|
2778
|
+
}
|
|
2779
|
+
set maxAge(mA) {
|
|
2780
|
+
if (typeof mA !== "number")
|
|
2781
|
+
throw new TypeError("maxAge must be a non-negative number");
|
|
2782
|
+
this[MAX_AGE] = mA;
|
|
2783
|
+
trim(this);
|
|
2784
|
+
}
|
|
2785
|
+
get maxAge() {
|
|
2786
|
+
return this[MAX_AGE];
|
|
2787
|
+
}
|
|
2788
|
+
// resize the cache when the lengthCalculator changes.
|
|
2789
|
+
set lengthCalculator(lC) {
|
|
2790
|
+
if (typeof lC !== "function")
|
|
2791
|
+
lC = naiveLength;
|
|
2792
|
+
if (lC !== this[LENGTH_CALCULATOR]) {
|
|
2793
|
+
this[LENGTH_CALCULATOR] = lC;
|
|
2794
|
+
this[LENGTH] = 0;
|
|
2795
|
+
this[LRU_LIST].forEach((hit) => {
|
|
2796
|
+
hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key);
|
|
2797
|
+
this[LENGTH] += hit.length;
|
|
2798
|
+
});
|
|
2799
|
+
}
|
|
2800
|
+
trim(this);
|
|
2801
|
+
}
|
|
2802
|
+
get lengthCalculator() {
|
|
2803
|
+
return this[LENGTH_CALCULATOR];
|
|
2804
|
+
}
|
|
2805
|
+
get length() {
|
|
2806
|
+
return this[LENGTH];
|
|
2807
|
+
}
|
|
2808
|
+
get itemCount() {
|
|
2809
|
+
return this[LRU_LIST].length;
|
|
2810
|
+
}
|
|
2811
|
+
rforEach(fn, thisp) {
|
|
2812
|
+
thisp = thisp || this;
|
|
2813
|
+
for (let walker = this[LRU_LIST].tail; walker !== null; ) {
|
|
2814
|
+
const prev = walker.prev;
|
|
2815
|
+
forEachStep(this, fn, walker, thisp);
|
|
2816
|
+
walker = prev;
|
|
2817
|
+
}
|
|
2818
|
+
}
|
|
2819
|
+
forEach(fn, thisp) {
|
|
2820
|
+
thisp = thisp || this;
|
|
2821
|
+
for (let walker = this[LRU_LIST].head; walker !== null; ) {
|
|
2822
|
+
const next = walker.next;
|
|
2823
|
+
forEachStep(this, fn, walker, thisp);
|
|
2824
|
+
walker = next;
|
|
2825
|
+
}
|
|
2826
|
+
}
|
|
2827
|
+
keys() {
|
|
2828
|
+
return this[LRU_LIST].toArray().map((k) => k.key);
|
|
2829
|
+
}
|
|
2830
|
+
values() {
|
|
2831
|
+
return this[LRU_LIST].toArray().map((k) => k.value);
|
|
2832
|
+
}
|
|
2833
|
+
reset() {
|
|
2834
|
+
if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
|
|
2835
|
+
this[LRU_LIST].forEach((hit) => this[DISPOSE](hit.key, hit.value));
|
|
2836
|
+
}
|
|
2837
|
+
this[CACHE] = /* @__PURE__ */ new Map();
|
|
2838
|
+
this[LRU_LIST] = new Yallist();
|
|
2839
|
+
this[LENGTH] = 0;
|
|
2840
|
+
}
|
|
2841
|
+
dump() {
|
|
2842
|
+
return this[LRU_LIST].map((hit) => isStale(this, hit) ? false : {
|
|
2843
|
+
k: hit.key,
|
|
2844
|
+
v: hit.value,
|
|
2845
|
+
e: hit.now + (hit.maxAge || 0)
|
|
2846
|
+
}).toArray().filter((h) => h);
|
|
2847
|
+
}
|
|
2848
|
+
dumpLru() {
|
|
2849
|
+
return this[LRU_LIST];
|
|
2850
|
+
}
|
|
2851
|
+
set(key, value, maxAge) {
|
|
2852
|
+
maxAge = maxAge || this[MAX_AGE];
|
|
2853
|
+
if (maxAge && typeof maxAge !== "number")
|
|
2854
|
+
throw new TypeError("maxAge must be a number");
|
|
2855
|
+
const now = maxAge ? Date.now() : 0;
|
|
2856
|
+
const len = this[LENGTH_CALCULATOR](value, key);
|
|
2857
|
+
if (this[CACHE].has(key)) {
|
|
2858
|
+
if (len > this[MAX]) {
|
|
2859
|
+
del(this, this[CACHE].get(key));
|
|
2860
|
+
return false;
|
|
2861
|
+
}
|
|
2862
|
+
const node = this[CACHE].get(key);
|
|
2863
|
+
const item = node.value;
|
|
2864
|
+
if (this[DISPOSE]) {
|
|
2865
|
+
if (!this[NO_DISPOSE_ON_SET])
|
|
2866
|
+
this[DISPOSE](key, item.value);
|
|
2867
|
+
}
|
|
2868
|
+
item.now = now;
|
|
2869
|
+
item.maxAge = maxAge;
|
|
2870
|
+
item.value = value;
|
|
2871
|
+
this[LENGTH] += len - item.length;
|
|
2872
|
+
item.length = len;
|
|
2873
|
+
this.get(key);
|
|
2874
|
+
trim(this);
|
|
2875
|
+
return true;
|
|
2876
|
+
}
|
|
2877
|
+
const hit = new Entry(key, value, len, now, maxAge);
|
|
2878
|
+
if (hit.length > this[MAX]) {
|
|
2879
|
+
if (this[DISPOSE])
|
|
2880
|
+
this[DISPOSE](key, value);
|
|
2881
|
+
return false;
|
|
2882
|
+
}
|
|
2883
|
+
this[LENGTH] += hit.length;
|
|
2884
|
+
this[LRU_LIST].unshift(hit);
|
|
2885
|
+
this[CACHE].set(key, this[LRU_LIST].head);
|
|
2886
|
+
trim(this);
|
|
2887
|
+
return true;
|
|
2888
|
+
}
|
|
2889
|
+
has(key) {
|
|
2890
|
+
if (!this[CACHE].has(key)) return false;
|
|
2891
|
+
const hit = this[CACHE].get(key).value;
|
|
2892
|
+
return !isStale(this, hit);
|
|
2386
2893
|
}
|
|
2387
2894
|
get(key) {
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2895
|
+
return get(this, key, true);
|
|
2896
|
+
}
|
|
2897
|
+
peek(key) {
|
|
2898
|
+
return get(this, key, false);
|
|
2899
|
+
}
|
|
2900
|
+
pop() {
|
|
2901
|
+
const node = this[LRU_LIST].tail;
|
|
2902
|
+
if (!node)
|
|
2903
|
+
return null;
|
|
2904
|
+
del(this, node);
|
|
2905
|
+
return node.value;
|
|
2906
|
+
}
|
|
2907
|
+
del(key) {
|
|
2908
|
+
del(this, this[CACHE].get(key));
|
|
2909
|
+
}
|
|
2910
|
+
load(arr) {
|
|
2911
|
+
this.reset();
|
|
2912
|
+
const now = Date.now();
|
|
2913
|
+
for (let l = arr.length - 1; l >= 0; l--) {
|
|
2914
|
+
const hit = arr[l];
|
|
2915
|
+
const expiresAt = hit.e || 0;
|
|
2916
|
+
if (expiresAt === 0)
|
|
2917
|
+
this.set(hit.k, hit.v);
|
|
2918
|
+
else {
|
|
2919
|
+
const maxAge = expiresAt - now;
|
|
2920
|
+
if (maxAge > 0) {
|
|
2921
|
+
this.set(hit.k, hit.v, maxAge);
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2395
2924
|
}
|
|
2396
2925
|
}
|
|
2397
|
-
|
|
2398
|
-
|
|
2926
|
+
prune() {
|
|
2927
|
+
this[CACHE].forEach((value, key) => get(this, key, false));
|
|
2399
2928
|
}
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2929
|
+
};
|
|
2930
|
+
var get = (self, key, doUse) => {
|
|
2931
|
+
const node = self[CACHE].get(key);
|
|
2932
|
+
if (node) {
|
|
2933
|
+
const hit = node.value;
|
|
2934
|
+
if (isStale(self, hit)) {
|
|
2935
|
+
del(self, node);
|
|
2936
|
+
if (!self[ALLOW_STALE])
|
|
2937
|
+
return void 0;
|
|
2938
|
+
} else {
|
|
2939
|
+
if (doUse) {
|
|
2940
|
+
if (self[UPDATE_AGE_ON_GET])
|
|
2941
|
+
node.value.now = Date.now();
|
|
2942
|
+
self[LRU_LIST].unshiftNode(node);
|
|
2406
2943
|
}
|
|
2407
|
-
this.map.set(key, value);
|
|
2408
2944
|
}
|
|
2409
|
-
return
|
|
2945
|
+
return hit.value;
|
|
2946
|
+
}
|
|
2947
|
+
};
|
|
2948
|
+
var isStale = (self, hit) => {
|
|
2949
|
+
if (!hit || !hit.maxAge && !self[MAX_AGE])
|
|
2950
|
+
return false;
|
|
2951
|
+
const diff = Date.now() - hit.now;
|
|
2952
|
+
return hit.maxAge ? diff > hit.maxAge : self[MAX_AGE] && diff > self[MAX_AGE];
|
|
2953
|
+
};
|
|
2954
|
+
var trim = (self) => {
|
|
2955
|
+
if (self[LENGTH] > self[MAX]) {
|
|
2956
|
+
for (let walker = self[LRU_LIST].tail; self[LENGTH] > self[MAX] && walker !== null; ) {
|
|
2957
|
+
const prev = walker.prev;
|
|
2958
|
+
del(self, walker);
|
|
2959
|
+
walker = prev;
|
|
2960
|
+
}
|
|
2410
2961
|
}
|
|
2411
2962
|
};
|
|
2963
|
+
var del = (self, node) => {
|
|
2964
|
+
if (node) {
|
|
2965
|
+
const hit = node.value;
|
|
2966
|
+
if (self[DISPOSE])
|
|
2967
|
+
self[DISPOSE](hit.key, hit.value);
|
|
2968
|
+
self[LENGTH] -= hit.length;
|
|
2969
|
+
self[CACHE].delete(hit.key);
|
|
2970
|
+
self[LRU_LIST].removeNode(node);
|
|
2971
|
+
}
|
|
2972
|
+
};
|
|
2973
|
+
var Entry = class {
|
|
2974
|
+
constructor(key, value, length, now, maxAge) {
|
|
2975
|
+
this.key = key;
|
|
2976
|
+
this.value = value;
|
|
2977
|
+
this.length = length;
|
|
2978
|
+
this.now = now;
|
|
2979
|
+
this.maxAge = maxAge || 0;
|
|
2980
|
+
}
|
|
2981
|
+
};
|
|
2982
|
+
var forEachStep = (self, fn, node, thisp) => {
|
|
2983
|
+
let hit = node.value;
|
|
2984
|
+
if (isStale(self, hit)) {
|
|
2985
|
+
del(self, node);
|
|
2986
|
+
if (!self[ALLOW_STALE])
|
|
2987
|
+
hit = void 0;
|
|
2988
|
+
}
|
|
2989
|
+
if (hit)
|
|
2990
|
+
fn.call(thisp, hit.value, hit.key, self);
|
|
2991
|
+
};
|
|
2412
2992
|
module2.exports = LRUCache;
|
|
2413
2993
|
}
|
|
2414
2994
|
});
|
|
2415
2995
|
|
|
2416
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
2996
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/classes/range.js
|
|
2417
2997
|
var require_range = __commonJS({
|
|
2418
|
-
"../../node_modules/.pnpm/semver@7.
|
|
2998
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/classes/range.js"(exports2, module2) {
|
|
2419
2999
|
"use strict";
|
|
2420
3000
|
init_cjs_shims();
|
|
2421
|
-
var SPACE_CHARACTERS = /\s+/g;
|
|
2422
3001
|
var Range = class _Range {
|
|
2423
3002
|
constructor(range, options) {
|
|
2424
3003
|
options = parseOptions(options);
|
|
@@ -2432,13 +3011,13 @@ var require_range = __commonJS({
|
|
|
2432
3011
|
if (range instanceof Comparator) {
|
|
2433
3012
|
this.raw = range.value;
|
|
2434
3013
|
this.set = [[range]];
|
|
2435
|
-
this.
|
|
3014
|
+
this.format();
|
|
2436
3015
|
return this;
|
|
2437
3016
|
}
|
|
2438
3017
|
this.options = options;
|
|
2439
3018
|
this.loose = !!options.loose;
|
|
2440
3019
|
this.includePrerelease = !!options.includePrerelease;
|
|
2441
|
-
this.raw = range.trim().
|
|
3020
|
+
this.raw = range.trim().split(/\s+/).join(" ");
|
|
2442
3021
|
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
2443
3022
|
if (!this.set.length) {
|
|
2444
3023
|
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
@@ -2457,27 +3036,10 @@ var require_range = __commonJS({
|
|
|
2457
3036
|
}
|
|
2458
3037
|
}
|
|
2459
3038
|
}
|
|
2460
|
-
this.
|
|
2461
|
-
}
|
|
2462
|
-
get range() {
|
|
2463
|
-
if (this.formatted === void 0) {
|
|
2464
|
-
this.formatted = "";
|
|
2465
|
-
for (let i = 0; i < this.set.length; i++) {
|
|
2466
|
-
if (i > 0) {
|
|
2467
|
-
this.formatted += "||";
|
|
2468
|
-
}
|
|
2469
|
-
const comps = this.set[i];
|
|
2470
|
-
for (let k = 0; k < comps.length; k++) {
|
|
2471
|
-
if (k > 0) {
|
|
2472
|
-
this.formatted += " ";
|
|
2473
|
-
}
|
|
2474
|
-
this.formatted += comps[k].toString().trim();
|
|
2475
|
-
}
|
|
2476
|
-
}
|
|
2477
|
-
}
|
|
2478
|
-
return this.formatted;
|
|
3039
|
+
this.format();
|
|
2479
3040
|
}
|
|
2480
3041
|
format() {
|
|
3042
|
+
this.range = this.set.map((comps) => comps.join(" ").trim()).join("||").trim();
|
|
2481
3043
|
return this.range;
|
|
2482
3044
|
}
|
|
2483
3045
|
toString() {
|
|
@@ -2558,8 +3120,8 @@ var require_range = __commonJS({
|
|
|
2558
3120
|
}
|
|
2559
3121
|
};
|
|
2560
3122
|
module2.exports = Range;
|
|
2561
|
-
var LRU =
|
|
2562
|
-
var cache = new LRU();
|
|
3123
|
+
var LRU = require_lru_cache();
|
|
3124
|
+
var cache = new LRU({ max: 1e3 });
|
|
2563
3125
|
var parseOptions = require_parse_options();
|
|
2564
3126
|
var Comparator = require_comparator();
|
|
2565
3127
|
var debug2 = require_debug();
|
|
@@ -2587,7 +3149,6 @@ var require_range = __commonJS({
|
|
|
2587
3149
|
return result;
|
|
2588
3150
|
};
|
|
2589
3151
|
var parseComparator = (comp, options) => {
|
|
2590
|
-
comp = comp.replace(re[t.BUILD], "");
|
|
2591
3152
|
debug2("comp", comp, options);
|
|
2592
3153
|
comp = replaceCarets(comp, options);
|
|
2593
3154
|
debug2("caret", comp);
|
|
@@ -2738,7 +3299,7 @@ var require_range = __commonJS({
|
|
|
2738
3299
|
debug2("replaceGTE0", comp, options);
|
|
2739
3300
|
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
2740
3301
|
};
|
|
2741
|
-
var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
3302
|
+
var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) => {
|
|
2742
3303
|
if (isX(fM)) {
|
|
2743
3304
|
from = "";
|
|
2744
3305
|
} else if (isX(fm)) {
|
|
@@ -2791,9 +3352,9 @@ var require_range = __commonJS({
|
|
|
2791
3352
|
}
|
|
2792
3353
|
});
|
|
2793
3354
|
|
|
2794
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
3355
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/classes/comparator.js
|
|
2795
3356
|
var require_comparator = __commonJS({
|
|
2796
|
-
"../../node_modules/.pnpm/semver@7.
|
|
3357
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/classes/comparator.js"(exports2, module2) {
|
|
2797
3358
|
"use strict";
|
|
2798
3359
|
init_cjs_shims();
|
|
2799
3360
|
var ANY = Symbol("SemVer ANY");
|
|
@@ -2905,9 +3466,9 @@ var require_comparator = __commonJS({
|
|
|
2905
3466
|
}
|
|
2906
3467
|
});
|
|
2907
3468
|
|
|
2908
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
3469
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/satisfies.js
|
|
2909
3470
|
var require_satisfies = __commonJS({
|
|
2910
|
-
"../../node_modules/.pnpm/semver@7.
|
|
3471
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/functions/satisfies.js"(exports2, module2) {
|
|
2911
3472
|
"use strict";
|
|
2912
3473
|
init_cjs_shims();
|
|
2913
3474
|
var Range = require_range();
|
|
@@ -2923,9 +3484,9 @@ var require_satisfies = __commonJS({
|
|
|
2923
3484
|
}
|
|
2924
3485
|
});
|
|
2925
3486
|
|
|
2926
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
3487
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/to-comparators.js
|
|
2927
3488
|
var require_to_comparators = __commonJS({
|
|
2928
|
-
"../../node_modules/.pnpm/semver@7.
|
|
3489
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/to-comparators.js"(exports2, module2) {
|
|
2929
3490
|
"use strict";
|
|
2930
3491
|
init_cjs_shims();
|
|
2931
3492
|
var Range = require_range();
|
|
@@ -2934,9 +3495,9 @@ var require_to_comparators = __commonJS({
|
|
|
2934
3495
|
}
|
|
2935
3496
|
});
|
|
2936
3497
|
|
|
2937
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
3498
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/max-satisfying.js
|
|
2938
3499
|
var require_max_satisfying = __commonJS({
|
|
2939
|
-
"../../node_modules/.pnpm/semver@7.
|
|
3500
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/max-satisfying.js"(exports2, module2) {
|
|
2940
3501
|
"use strict";
|
|
2941
3502
|
init_cjs_shims();
|
|
2942
3503
|
var SemVer = require_semver();
|
|
@@ -2964,9 +3525,9 @@ var require_max_satisfying = __commonJS({
|
|
|
2964
3525
|
}
|
|
2965
3526
|
});
|
|
2966
3527
|
|
|
2967
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
3528
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/min-satisfying.js
|
|
2968
3529
|
var require_min_satisfying = __commonJS({
|
|
2969
|
-
"../../node_modules/.pnpm/semver@7.
|
|
3530
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/min-satisfying.js"(exports2, module2) {
|
|
2970
3531
|
"use strict";
|
|
2971
3532
|
init_cjs_shims();
|
|
2972
3533
|
var SemVer = require_semver();
|
|
@@ -2994,9 +3555,9 @@ var require_min_satisfying = __commonJS({
|
|
|
2994
3555
|
}
|
|
2995
3556
|
});
|
|
2996
3557
|
|
|
2997
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
3558
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/min-version.js
|
|
2998
3559
|
var require_min_version = __commonJS({
|
|
2999
|
-
"../../node_modules/.pnpm/semver@7.
|
|
3560
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/min-version.js"(exports2, module2) {
|
|
3000
3561
|
"use strict";
|
|
3001
3562
|
init_cjs_shims();
|
|
3002
3563
|
var SemVer = require_semver();
|
|
@@ -3054,9 +3615,9 @@ var require_min_version = __commonJS({
|
|
|
3054
3615
|
}
|
|
3055
3616
|
});
|
|
3056
3617
|
|
|
3057
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
3618
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/valid.js
|
|
3058
3619
|
var require_valid2 = __commonJS({
|
|
3059
|
-
"../../node_modules/.pnpm/semver@7.
|
|
3620
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/valid.js"(exports2, module2) {
|
|
3060
3621
|
"use strict";
|
|
3061
3622
|
init_cjs_shims();
|
|
3062
3623
|
var Range = require_range();
|
|
@@ -3071,9 +3632,9 @@ var require_valid2 = __commonJS({
|
|
|
3071
3632
|
}
|
|
3072
3633
|
});
|
|
3073
3634
|
|
|
3074
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
3635
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/outside.js
|
|
3075
3636
|
var require_outside = __commonJS({
|
|
3076
|
-
"../../node_modules/.pnpm/semver@7.
|
|
3637
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/outside.js"(exports2, module2) {
|
|
3077
3638
|
"use strict";
|
|
3078
3639
|
init_cjs_shims();
|
|
3079
3640
|
var SemVer = require_semver();
|
|
@@ -3141,9 +3702,9 @@ var require_outside = __commonJS({
|
|
|
3141
3702
|
}
|
|
3142
3703
|
});
|
|
3143
3704
|
|
|
3144
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
3705
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/gtr.js
|
|
3145
3706
|
var require_gtr = __commonJS({
|
|
3146
|
-
"../../node_modules/.pnpm/semver@7.
|
|
3707
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/gtr.js"(exports2, module2) {
|
|
3147
3708
|
"use strict";
|
|
3148
3709
|
init_cjs_shims();
|
|
3149
3710
|
var outside = require_outside();
|
|
@@ -3152,9 +3713,9 @@ var require_gtr = __commonJS({
|
|
|
3152
3713
|
}
|
|
3153
3714
|
});
|
|
3154
3715
|
|
|
3155
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
3716
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/ltr.js
|
|
3156
3717
|
var require_ltr = __commonJS({
|
|
3157
|
-
"../../node_modules/.pnpm/semver@7.
|
|
3718
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/ltr.js"(exports2, module2) {
|
|
3158
3719
|
"use strict";
|
|
3159
3720
|
init_cjs_shims();
|
|
3160
3721
|
var outside = require_outside();
|
|
@@ -3163,9 +3724,9 @@ var require_ltr = __commonJS({
|
|
|
3163
3724
|
}
|
|
3164
3725
|
});
|
|
3165
3726
|
|
|
3166
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
3727
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/intersects.js
|
|
3167
3728
|
var require_intersects = __commonJS({
|
|
3168
|
-
"../../node_modules/.pnpm/semver@7.
|
|
3729
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/intersects.js"(exports2, module2) {
|
|
3169
3730
|
"use strict";
|
|
3170
3731
|
init_cjs_shims();
|
|
3171
3732
|
var Range = require_range();
|
|
@@ -3178,9 +3739,9 @@ var require_intersects = __commonJS({
|
|
|
3178
3739
|
}
|
|
3179
3740
|
});
|
|
3180
3741
|
|
|
3181
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
3742
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/simplify.js
|
|
3182
3743
|
var require_simplify = __commonJS({
|
|
3183
|
-
"../../node_modules/.pnpm/semver@7.
|
|
3744
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/simplify.js"(exports2, module2) {
|
|
3184
3745
|
"use strict";
|
|
3185
3746
|
init_cjs_shims();
|
|
3186
3747
|
var satisfies = require_satisfies();
|
|
@@ -3229,9 +3790,9 @@ var require_simplify = __commonJS({
|
|
|
3229
3790
|
}
|
|
3230
3791
|
});
|
|
3231
3792
|
|
|
3232
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
3793
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/subset.js
|
|
3233
3794
|
var require_subset = __commonJS({
|
|
3234
|
-
"../../node_modules/.pnpm/semver@7.
|
|
3795
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/ranges/subset.js"(exports2, module2) {
|
|
3235
3796
|
"use strict";
|
|
3236
3797
|
init_cjs_shims();
|
|
3237
3798
|
var Range = require_range();
|
|
@@ -3392,9 +3953,9 @@ var require_subset = __commonJS({
|
|
|
3392
3953
|
}
|
|
3393
3954
|
});
|
|
3394
3955
|
|
|
3395
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
3956
|
+
// ../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/index.js
|
|
3396
3957
|
var require_semver2 = __commonJS({
|
|
3397
|
-
"../../node_modules/.pnpm/semver@7.
|
|
3958
|
+
"../../node_modules/.pnpm/semver@7.6.0/node_modules/semver/index.js"(exports2, module2) {
|
|
3398
3959
|
"use strict";
|
|
3399
3960
|
init_cjs_shims();
|
|
3400
3961
|
var internalRe = require_re();
|
|
@@ -3639,9 +4200,9 @@ var require_get_stream = __commonJS({
|
|
|
3639
4200
|
}
|
|
3640
4201
|
});
|
|
3641
4202
|
|
|
3642
|
-
// ../../node_modules/.pnpm/http-cache-semantics@4.
|
|
4203
|
+
// ../../node_modules/.pnpm/http-cache-semantics@4.1.1/node_modules/http-cache-semantics/index.js
|
|
3643
4204
|
var require_http_cache_semantics = __commonJS({
|
|
3644
|
-
"../../node_modules/.pnpm/http-cache-semantics@4.
|
|
4205
|
+
"../../node_modules/.pnpm/http-cache-semantics@4.1.1/node_modules/http-cache-semantics/index.js"(exports2, module2) {
|
|
3645
4206
|
"use strict";
|
|
3646
4207
|
init_cjs_shims();
|
|
3647
4208
|
var statusCodeCacheableByDefault = /* @__PURE__ */ new Set([
|
|
@@ -3731,17 +4292,6 @@ var require_http_cache_semantics = __commonJS({
|
|
|
3731
4292
|
return parts.join(", ");
|
|
3732
4293
|
}
|
|
3733
4294
|
module2.exports = class CachePolicy {
|
|
3734
|
-
/**
|
|
3735
|
-
* Creates a new CachePolicy instance.
|
|
3736
|
-
* @param {HttpRequest} req - Incoming client request.
|
|
3737
|
-
* @param {HttpResponse} res - Received server response.
|
|
3738
|
-
* @param {Object} [options={}] - Configuration options.
|
|
3739
|
-
* @param {boolean} [options.shared=true] - Is the cache shared (a public proxy)? `false` for personal browser caches.
|
|
3740
|
-
* @param {number} [options.cacheHeuristic=0.1] - Fallback heuristic (age fraction) for cache duration.
|
|
3741
|
-
* @param {number} [options.immutableMinTimeToLive=86400000] - Minimum TTL for immutable responses in milliseconds.
|
|
3742
|
-
* @param {boolean} [options.ignoreCargoCult=false] - Detect nonsense cache headers, and override them.
|
|
3743
|
-
* @param {any} [options._fromObject] - Internal parameter for deserialization. Do not use.
|
|
3744
|
-
*/
|
|
3745
4295
|
constructor(req, res, {
|
|
3746
4296
|
shared,
|
|
3747
4297
|
cacheHeuristic,
|
|
@@ -3759,7 +4309,6 @@ var require_http_cache_semantics = __commonJS({
|
|
|
3759
4309
|
this._assertRequestHasHeaders(req);
|
|
3760
4310
|
this._responseTime = this.now();
|
|
3761
4311
|
this._isShared = shared !== false;
|
|
3762
|
-
this._ignoreCargoCult = !!ignoreCargoCult;
|
|
3763
4312
|
this._cacheHeuristic = void 0 !== cacheHeuristic ? cacheHeuristic : 0.1;
|
|
3764
4313
|
this._immutableMinTtl = void 0 !== immutableMinTimeToLive ? immutableMinTimeToLive : 24 * 3600 * 1e3;
|
|
3765
4314
|
this._status = "status" in res ? res.status : 200;
|
|
@@ -3771,7 +4320,7 @@ var require_http_cache_semantics = __commonJS({
|
|
|
3771
4320
|
this._noAuthorization = !req.headers.authorization;
|
|
3772
4321
|
this._reqHeaders = res.headers.vary ? req.headers : null;
|
|
3773
4322
|
this._reqcc = parseCacheControl(req.headers["cache-control"]);
|
|
3774
|
-
if (
|
|
4323
|
+
if (ignoreCargoCult && "pre-check" in this._rescc && "post-check" in this._rescc) {
|
|
3775
4324
|
delete this._rescc["pre-check"];
|
|
3776
4325
|
delete this._rescc["post-check"];
|
|
3777
4326
|
delete this._rescc["no-cache"];
|
|
@@ -3787,17 +4336,9 @@ var require_http_cache_semantics = __commonJS({
|
|
|
3787
4336
|
this._rescc["no-cache"] = true;
|
|
3788
4337
|
}
|
|
3789
4338
|
}
|
|
3790
|
-
/**
|
|
3791
|
-
* You can monkey-patch it for testing.
|
|
3792
|
-
* @returns {number} Current time in milliseconds.
|
|
3793
|
-
*/
|
|
3794
4339
|
now() {
|
|
3795
4340
|
return Date.now();
|
|
3796
4341
|
}
|
|
3797
|
-
/**
|
|
3798
|
-
* Determines if the response is storable in a cache.
|
|
3799
|
-
* @returns {boolean} `false` if can never be cached.
|
|
3800
|
-
*/
|
|
3801
4342
|
storable() {
|
|
3802
4343
|
return !!(!this._reqcc["no-store"] && // A cache MUST NOT store a response to any request, unless:
|
|
3803
4344
|
// The request method is understood by the cache and defined as being cacheable, and
|
|
@@ -3813,142 +4354,42 @@ var require_http_cache_semantics = __commonJS({
|
|
|
3813
4354
|
this._rescc["max-age"] || this._isShared && this._rescc["s-maxage"] || this._rescc.public || // has a status code that is defined as cacheable by default
|
|
3814
4355
|
statusCodeCacheableByDefault.has(this._status)));
|
|
3815
4356
|
}
|
|
3816
|
-
/**
|
|
3817
|
-
* @returns {boolean} true if expiration is explicitly defined.
|
|
3818
|
-
*/
|
|
3819
4357
|
_hasExplicitExpiration() {
|
|
3820
|
-
return
|
|
4358
|
+
return this._isShared && this._rescc["s-maxage"] || this._rescc["max-age"] || this._resHeaders.expires;
|
|
3821
4359
|
}
|
|
3822
|
-
/**
|
|
3823
|
-
* @param {HttpRequest} req - a request
|
|
3824
|
-
* @throws {Error} if the headers are missing.
|
|
3825
|
-
*/
|
|
3826
4360
|
_assertRequestHasHeaders(req) {
|
|
3827
4361
|
if (!req || !req.headers) {
|
|
3828
4362
|
throw Error("Request headers missing");
|
|
3829
4363
|
}
|
|
3830
4364
|
}
|
|
3831
|
-
/**
|
|
3832
|
-
* Checks if the request matches the cache and can be satisfied from the cache immediately,
|
|
3833
|
-
* without having to make a request to the server.
|
|
3834
|
-
*
|
|
3835
|
-
* This doesn't support `stale-while-revalidate`. See `evaluateRequest()` for a more complete solution.
|
|
3836
|
-
*
|
|
3837
|
-
* @param {HttpRequest} req - The new incoming HTTP request.
|
|
3838
|
-
* @returns {boolean} `true`` if the cached response used to construct this cache policy satisfies the request without revalidation.
|
|
3839
|
-
*/
|
|
3840
4365
|
satisfiesWithoutRevalidation(req) {
|
|
3841
|
-
const result = this.evaluateRequest(req);
|
|
3842
|
-
return !result.revalidation;
|
|
3843
|
-
}
|
|
3844
|
-
/**
|
|
3845
|
-
* @param {{headers: Record<string, string>, synchronous: boolean}|undefined} revalidation - Revalidation information, if any.
|
|
3846
|
-
* @returns {{response: {headers: Record<string, string>}, revalidation: {headers: Record<string, string>, synchronous: boolean}|undefined}} An object with a cached response headers and revalidation info.
|
|
3847
|
-
*/
|
|
3848
|
-
_evaluateRequestHitResult(revalidation) {
|
|
3849
|
-
return {
|
|
3850
|
-
response: {
|
|
3851
|
-
headers: this.responseHeaders()
|
|
3852
|
-
},
|
|
3853
|
-
revalidation
|
|
3854
|
-
};
|
|
3855
|
-
}
|
|
3856
|
-
/**
|
|
3857
|
-
* @param {HttpRequest} request - new incoming
|
|
3858
|
-
* @param {boolean} synchronous - whether revalidation must be synchronous (not s-w-r).
|
|
3859
|
-
* @returns {{headers: Record<string, string>, synchronous: boolean}} An object with revalidation headers and a synchronous flag.
|
|
3860
|
-
*/
|
|
3861
|
-
_evaluateRequestRevalidation(request, synchronous) {
|
|
3862
|
-
return {
|
|
3863
|
-
synchronous,
|
|
3864
|
-
headers: this.revalidationHeaders(request)
|
|
3865
|
-
};
|
|
3866
|
-
}
|
|
3867
|
-
/**
|
|
3868
|
-
* @param {HttpRequest} request - new incoming
|
|
3869
|
-
* @returns {{response: undefined, revalidation: {headers: Record<string, string>, synchronous: boolean}}} An object indicating no cached response and revalidation details.
|
|
3870
|
-
*/
|
|
3871
|
-
_evaluateRequestMissResult(request) {
|
|
3872
|
-
return {
|
|
3873
|
-
response: void 0,
|
|
3874
|
-
revalidation: this._evaluateRequestRevalidation(request, true)
|
|
3875
|
-
};
|
|
3876
|
-
}
|
|
3877
|
-
/**
|
|
3878
|
-
* Checks if the given request matches this cache entry, and how the cache can be used to satisfy it. Returns an object with:
|
|
3879
|
-
*
|
|
3880
|
-
* ```
|
|
3881
|
-
* {
|
|
3882
|
-
* // If defined, you must send a request to the server.
|
|
3883
|
-
* revalidation: {
|
|
3884
|
-
* headers: {}, // HTTP headers to use when sending the revalidation response
|
|
3885
|
-
* // If true, you MUST wait for a response from the server before using the cache
|
|
3886
|
-
* // If false, this is stale-while-revalidate. The cache is stale, but you can use it while you update it asynchronously.
|
|
3887
|
-
* synchronous: bool,
|
|
3888
|
-
* },
|
|
3889
|
-
* // If defined, you can use this cached response.
|
|
3890
|
-
* response: {
|
|
3891
|
-
* headers: {}, // Updated cached HTTP headers you must use when responding to the client
|
|
3892
|
-
* },
|
|
3893
|
-
* }
|
|
3894
|
-
* ```
|
|
3895
|
-
* @param {HttpRequest} req - new incoming HTTP request
|
|
3896
|
-
* @returns {{response: {headers: Record<string, string>}|undefined, revalidation: {headers: Record<string, string>, synchronous: boolean}|undefined}} An object containing keys:
|
|
3897
|
-
* - revalidation: { headers: Record<string, string>, synchronous: boolean } Set if you should send this to the origin server
|
|
3898
|
-
* - response: { headers: Record<string, string> } Set if you can respond to the client with these cached headers
|
|
3899
|
-
*/
|
|
3900
|
-
evaluateRequest(req) {
|
|
3901
4366
|
this._assertRequestHasHeaders(req);
|
|
3902
|
-
if (this._rescc["must-revalidate"]) {
|
|
3903
|
-
return this._evaluateRequestMissResult(req);
|
|
3904
|
-
}
|
|
3905
|
-
if (!this._requestMatches(req, false)) {
|
|
3906
|
-
return this._evaluateRequestMissResult(req);
|
|
3907
|
-
}
|
|
3908
4367
|
const requestCC = parseCacheControl(req.headers["cache-control"]);
|
|
3909
4368
|
if (requestCC["no-cache"] || /no-cache/.test(req.headers.pragma)) {
|
|
3910
|
-
return
|
|
4369
|
+
return false;
|
|
3911
4370
|
}
|
|
3912
|
-
if (requestCC["max-age"] && this.age() >
|
|
3913
|
-
return
|
|
4371
|
+
if (requestCC["max-age"] && this.age() > requestCC["max-age"]) {
|
|
4372
|
+
return false;
|
|
3914
4373
|
}
|
|
3915
|
-
if (requestCC["min-fresh"] && this.
|
|
3916
|
-
return
|
|
4374
|
+
if (requestCC["min-fresh"] && this.timeToLive() < 1e3 * requestCC["min-fresh"]) {
|
|
4375
|
+
return false;
|
|
3917
4376
|
}
|
|
3918
4377
|
if (this.stale()) {
|
|
3919
|
-
const
|
|
3920
|
-
if (
|
|
3921
|
-
return
|
|
3922
|
-
}
|
|
3923
|
-
if (this.useStaleWhileRevalidate()) {
|
|
3924
|
-
return this._evaluateRequestHitResult(this._evaluateRequestRevalidation(req, false));
|
|
4378
|
+
const allowsStale = requestCC["max-stale"] && !this._rescc["must-revalidate"] && (true === requestCC["max-stale"] || requestCC["max-stale"] > this.age() - this.maxAge());
|
|
4379
|
+
if (!allowsStale) {
|
|
4380
|
+
return false;
|
|
3925
4381
|
}
|
|
3926
|
-
return this._evaluateRequestMissResult(req);
|
|
3927
4382
|
}
|
|
3928
|
-
return this.
|
|
4383
|
+
return this._requestMatches(req, false);
|
|
3929
4384
|
}
|
|
3930
|
-
/**
|
|
3931
|
-
* @param {HttpRequest} req - check if this is for the same cache entry
|
|
3932
|
-
* @param {boolean} allowHeadMethod - allow a HEAD method to match.
|
|
3933
|
-
* @returns {boolean} `true` if the request matches.
|
|
3934
|
-
*/
|
|
3935
4385
|
_requestMatches(req, allowHeadMethod) {
|
|
3936
|
-
return
|
|
4386
|
+
return (!this._url || this._url === req.url) && this._host === req.headers.host && // the request method associated with the stored response allows it to be used for the presented request, and
|
|
3937
4387
|
(!req.method || this._method === req.method || allowHeadMethod && "HEAD" === req.method) && // selecting header fields nominated by the stored response (if any) match those presented, and
|
|
3938
|
-
this._varyMatches(req)
|
|
4388
|
+
this._varyMatches(req);
|
|
3939
4389
|
}
|
|
3940
|
-
/**
|
|
3941
|
-
* Determines whether storing authenticated responses is allowed.
|
|
3942
|
-
* @returns {boolean} `true` if allowed.
|
|
3943
|
-
*/
|
|
3944
4390
|
_allowsStoringAuthenticated() {
|
|
3945
|
-
return
|
|
4391
|
+
return this._rescc["must-revalidate"] || this._rescc.public || this._rescc["s-maxage"];
|
|
3946
4392
|
}
|
|
3947
|
-
/**
|
|
3948
|
-
* Checks whether the Vary header in the response matches the new request.
|
|
3949
|
-
* @param {HttpRequest} req - incoming HTTP request
|
|
3950
|
-
* @returns {boolean} `true` if the vary headers match.
|
|
3951
|
-
*/
|
|
3952
4393
|
_varyMatches(req) {
|
|
3953
4394
|
if (!this._resHeaders.vary) {
|
|
3954
4395
|
return true;
|
|
@@ -3962,11 +4403,6 @@ var require_http_cache_semantics = __commonJS({
|
|
|
3962
4403
|
}
|
|
3963
4404
|
return true;
|
|
3964
4405
|
}
|
|
3965
|
-
/**
|
|
3966
|
-
* Creates a copy of the given headers without any hop-by-hop headers.
|
|
3967
|
-
* @param {Record<string, string>} inHeaders - old headers from the cached response
|
|
3968
|
-
* @returns {Record<string, string>} A new headers object without hop-by-hop headers.
|
|
3969
|
-
*/
|
|
3970
4406
|
_copyWithoutHopByHopHeaders(inHeaders) {
|
|
3971
4407
|
const headers = {};
|
|
3972
4408
|
for (const name in inHeaders) {
|
|
@@ -3991,11 +4427,6 @@ var require_http_cache_semantics = __commonJS({
|
|
|
3991
4427
|
}
|
|
3992
4428
|
return headers;
|
|
3993
4429
|
}
|
|
3994
|
-
/**
|
|
3995
|
-
* Returns the response headers adjusted for serving the cached response.
|
|
3996
|
-
* Removes hop-by-hop headers and updates the Age and Date headers.
|
|
3997
|
-
* @returns {Record<string, string>} The adjusted response headers.
|
|
3998
|
-
*/
|
|
3999
4430
|
responseHeaders() {
|
|
4000
4431
|
const headers = this._copyWithoutHopByHopHeaders(this._resHeaders);
|
|
4001
4432
|
const age = this.age();
|
|
@@ -4007,8 +4438,8 @@ var require_http_cache_semantics = __commonJS({
|
|
|
4007
4438
|
return headers;
|
|
4008
4439
|
}
|
|
4009
4440
|
/**
|
|
4010
|
-
*
|
|
4011
|
-
* @
|
|
4441
|
+
* Value of the Date response header or current time if Date was invalid
|
|
4442
|
+
* @return timestamp
|
|
4012
4443
|
*/
|
|
4013
4444
|
date() {
|
|
4014
4445
|
const serverDate = Date.parse(this._resHeaders.date);
|
|
@@ -4020,27 +4451,23 @@ var require_http_cache_semantics = __commonJS({
|
|
|
4020
4451
|
/**
|
|
4021
4452
|
* Value of the Age header, in seconds, updated for the current time.
|
|
4022
4453
|
* May be fractional.
|
|
4023
|
-
*
|
|
4454
|
+
*
|
|
4455
|
+
* @return Number
|
|
4024
4456
|
*/
|
|
4025
4457
|
age() {
|
|
4026
4458
|
let age = this._ageValue();
|
|
4027
4459
|
const residentTime = (this.now() - this._responseTime) / 1e3;
|
|
4028
4460
|
return age + residentTime;
|
|
4029
4461
|
}
|
|
4030
|
-
/**
|
|
4031
|
-
* @returns {number} The Age header value as a number.
|
|
4032
|
-
*/
|
|
4033
4462
|
_ageValue() {
|
|
4034
4463
|
return toNumberOrZero(this._resHeaders.age);
|
|
4035
4464
|
}
|
|
4036
4465
|
/**
|
|
4037
|
-
*
|
|
4038
|
-
* This counts since response's `Date`.
|
|
4466
|
+
* Value of applicable max-age (or heuristic equivalent) in seconds. This counts since response's `Date`.
|
|
4039
4467
|
*
|
|
4040
4468
|
* For an up-to-date value, see `timeToLive()`.
|
|
4041
4469
|
*
|
|
4042
|
-
*
|
|
4043
|
-
* @returns {number} The max-age value in seconds.
|
|
4470
|
+
* @return Number
|
|
4044
4471
|
*/
|
|
4045
4472
|
maxAge() {
|
|
4046
4473
|
if (!this.storable() || this._rescc["no-cache"]) {
|
|
@@ -4083,52 +4510,24 @@ var require_http_cache_semantics = __commonJS({
|
|
|
4083
4510
|
}
|
|
4084
4511
|
return defaultMinTtl;
|
|
4085
4512
|
}
|
|
4086
|
-
/**
|
|
4087
|
-
* Remaining time this cache entry may be useful for, in *milliseconds*.
|
|
4088
|
-
* You can use this as an expiration time for your cache storage.
|
|
4089
|
-
*
|
|
4090
|
-
* Prefer this method over `maxAge()`, because it includes other factors like `age` and `stale-while-revalidate`.
|
|
4091
|
-
* @returns {number} Time-to-live in milliseconds.
|
|
4092
|
-
*/
|
|
4093
4513
|
timeToLive() {
|
|
4094
4514
|
const age = this.maxAge() - this.age();
|
|
4095
4515
|
const staleIfErrorAge = age + toNumberOrZero(this._rescc["stale-if-error"]);
|
|
4096
4516
|
const staleWhileRevalidateAge = age + toNumberOrZero(this._rescc["stale-while-revalidate"]);
|
|
4097
|
-
return Math.
|
|
4517
|
+
return Math.max(0, age, staleIfErrorAge, staleWhileRevalidateAge) * 1e3;
|
|
4098
4518
|
}
|
|
4099
|
-
/**
|
|
4100
|
-
* If true, this cache entry is past its expiration date.
|
|
4101
|
-
* Note that stale cache may be useful sometimes, see `evaluateRequest()`.
|
|
4102
|
-
* @returns {boolean} `false` doesn't mean it's fresh nor usable
|
|
4103
|
-
*/
|
|
4104
4519
|
stale() {
|
|
4105
4520
|
return this.maxAge() <= this.age();
|
|
4106
4521
|
}
|
|
4107
|
-
/**
|
|
4108
|
-
* @returns {boolean} `true` if `stale-if-error` condition allows use of a stale response.
|
|
4109
|
-
*/
|
|
4110
4522
|
_useStaleIfError() {
|
|
4111
4523
|
return this.maxAge() + toNumberOrZero(this._rescc["stale-if-error"]) > this.age();
|
|
4112
4524
|
}
|
|
4113
|
-
/** See `evaluateRequest()` for a more complete solution
|
|
4114
|
-
* @returns {boolean} `true` if `stale-while-revalidate` is currently allowed.
|
|
4115
|
-
*/
|
|
4116
4525
|
useStaleWhileRevalidate() {
|
|
4117
|
-
|
|
4118
|
-
return swr > 0 && this.maxAge() + swr > this.age();
|
|
4526
|
+
return this.maxAge() + toNumberOrZero(this._rescc["stale-while-revalidate"]) > this.age();
|
|
4119
4527
|
}
|
|
4120
|
-
/**
|
|
4121
|
-
* Creates a `CachePolicy` instance from a serialized object.
|
|
4122
|
-
* @param {Object} obj - The serialized object.
|
|
4123
|
-
* @returns {CachePolicy} A new CachePolicy instance.
|
|
4124
|
-
*/
|
|
4125
4528
|
static fromObject(obj) {
|
|
4126
4529
|
return new this(void 0, void 0, { _fromObject: obj });
|
|
4127
4530
|
}
|
|
4128
|
-
/**
|
|
4129
|
-
* @param {any} obj - The serialized object.
|
|
4130
|
-
* @throws {Error} If already initialized or if the object is invalid.
|
|
4131
|
-
*/
|
|
4132
4531
|
_fromObject(obj) {
|
|
4133
4532
|
if (this._responseTime) throw Error("Reinitialized");
|
|
4134
4533
|
if (!obj || obj.v !== 1) throw Error("Invalid serialization");
|
|
@@ -4136,7 +4535,6 @@ var require_http_cache_semantics = __commonJS({
|
|
|
4136
4535
|
this._isShared = obj.sh;
|
|
4137
4536
|
this._cacheHeuristic = obj.ch;
|
|
4138
4537
|
this._immutableMinTtl = obj.imm !== void 0 ? obj.imm : 24 * 3600 * 1e3;
|
|
4139
|
-
this._ignoreCargoCult = !!obj.icc;
|
|
4140
4538
|
this._status = obj.st;
|
|
4141
4539
|
this._resHeaders = obj.resh;
|
|
4142
4540
|
this._rescc = obj.rescc;
|
|
@@ -4147,10 +4545,6 @@ var require_http_cache_semantics = __commonJS({
|
|
|
4147
4545
|
this._reqHeaders = obj.reqh;
|
|
4148
4546
|
this._reqcc = obj.reqcc;
|
|
4149
4547
|
}
|
|
4150
|
-
/**
|
|
4151
|
-
* Serializes the `CachePolicy` instance into a JSON-serializable object.
|
|
4152
|
-
* @returns {Object} The serialized object.
|
|
4153
|
-
*/
|
|
4154
4548
|
toObject() {
|
|
4155
4549
|
return {
|
|
4156
4550
|
v: 1,
|
|
@@ -4158,7 +4552,6 @@ var require_http_cache_semantics = __commonJS({
|
|
|
4158
4552
|
sh: this._isShared,
|
|
4159
4553
|
ch: this._cacheHeuristic,
|
|
4160
4554
|
imm: this._immutableMinTtl,
|
|
4161
|
-
icc: this._ignoreCargoCult,
|
|
4162
4555
|
st: this._status,
|
|
4163
4556
|
resh: this._resHeaders,
|
|
4164
4557
|
rescc: this._rescc,
|
|
@@ -4176,8 +4569,6 @@ var require_http_cache_semantics = __commonJS({
|
|
|
4176
4569
|
*
|
|
4177
4570
|
* Hop by hop headers are always stripped.
|
|
4178
4571
|
* Revalidation headers may be added or removed, depending on request.
|
|
4179
|
-
* @param {HttpRequest} incomingReq - The incoming HTTP request.
|
|
4180
|
-
* @returns {Record<string, string>} The headers for the revalidation request.
|
|
4181
4572
|
*/
|
|
4182
4573
|
revalidationHeaders(incomingReq) {
|
|
4183
4574
|
this._assertRequestHasHeaders(incomingReq);
|
|
@@ -4216,18 +4607,15 @@ var require_http_cache_semantics = __commonJS({
|
|
|
4216
4607
|
* Returns {policy, modified} where modified is a boolean indicating
|
|
4217
4608
|
* whether the response body has been modified, and old cached body can't be used.
|
|
4218
4609
|
*
|
|
4219
|
-
* @
|
|
4220
|
-
* @param {HttpResponse} response - The latest revalidation HTTP response from the origin server.
|
|
4221
|
-
* @returns {{policy: CachePolicy, modified: boolean, matches: boolean}} The updated policy and modification status.
|
|
4222
|
-
* @throws {Error} If the response headers are missing.
|
|
4610
|
+
* @return {Object} {policy: CachePolicy, modified: Boolean}
|
|
4223
4611
|
*/
|
|
4224
4612
|
revalidatedPolicy(request, response) {
|
|
4225
4613
|
this._assertRequestHasHeaders(request);
|
|
4226
4614
|
if (this._useStaleIfError() && isErrorResponse(response)) {
|
|
4227
4615
|
return {
|
|
4228
|
-
policy: this,
|
|
4229
4616
|
modified: false,
|
|
4230
|
-
matches:
|
|
4617
|
+
matches: false,
|
|
4618
|
+
policy: this
|
|
4231
4619
|
};
|
|
4232
4620
|
}
|
|
4233
4621
|
if (!response || !response.headers) {
|
|
@@ -4247,15 +4635,9 @@ var require_http_cache_semantics = __commonJS({
|
|
|
4247
4635
|
matches = true;
|
|
4248
4636
|
}
|
|
4249
4637
|
}
|
|
4250
|
-
const optionsCopy = {
|
|
4251
|
-
shared: this._isShared,
|
|
4252
|
-
cacheHeuristic: this._cacheHeuristic,
|
|
4253
|
-
immutableMinTimeToLive: this._immutableMinTtl,
|
|
4254
|
-
ignoreCargoCult: this._ignoreCargoCult
|
|
4255
|
-
};
|
|
4256
4638
|
if (!matches) {
|
|
4257
4639
|
return {
|
|
4258
|
-
policy: new this.constructor(request, response
|
|
4640
|
+
policy: new this.constructor(request, response),
|
|
4259
4641
|
// Client receiving 304 without body, even if it's invalid/mismatched has no option
|
|
4260
4642
|
// but to reuse a cached body. We don't have a good way to tell clients to do
|
|
4261
4643
|
// error recovery in such case.
|
|
@@ -4273,7 +4655,11 @@ var require_http_cache_semantics = __commonJS({
|
|
|
4273
4655
|
headers
|
|
4274
4656
|
});
|
|
4275
4657
|
return {
|
|
4276
|
-
policy: new this.constructor(request, newResponse,
|
|
4658
|
+
policy: new this.constructor(request, newResponse, {
|
|
4659
|
+
shared: this._isShared,
|
|
4660
|
+
cacheHeuristic: this._cacheHeuristic,
|
|
4661
|
+
immutableMinTimeToLive: this._immutableMinTtl
|
|
4662
|
+
}),
|
|
4277
4663
|
modified: false,
|
|
4278
4664
|
matches: true
|
|
4279
4665
|
};
|
|
@@ -8457,9 +8843,9 @@ var require_config_chain = __commonJS({
|
|
|
8457
8843
|
}
|
|
8458
8844
|
});
|
|
8459
8845
|
|
|
8460
|
-
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.
|
|
8846
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js
|
|
8461
8847
|
var require_envKeyToSetting = __commonJS({
|
|
8462
|
-
"../../node_modules/.pnpm/@pnpm+npm-conf@2.
|
|
8848
|
+
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js"(exports2, module2) {
|
|
8463
8849
|
"use strict";
|
|
8464
8850
|
init_cjs_shims();
|
|
8465
8851
|
module2.exports = function(x) {
|
|
@@ -8533,20 +8919,14 @@ var require_dist2 = __commonJS({
|
|
|
8533
8919
|
}
|
|
8534
8920
|
});
|
|
8535
8921
|
|
|
8536
|
-
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.
|
|
8922
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/util.js
|
|
8537
8923
|
var require_util = __commonJS({
|
|
8538
|
-
"../../node_modules/.pnpm/@pnpm+npm-conf@2.
|
|
8924
|
+
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/util.js"(exports2) {
|
|
8539
8925
|
"use strict";
|
|
8540
8926
|
init_cjs_shims();
|
|
8541
8927
|
var fs3 = require("fs");
|
|
8542
8928
|
var path6 = require("path");
|
|
8543
8929
|
var { envReplace } = require_dist2();
|
|
8544
|
-
var parseKey = (key) => {
|
|
8545
|
-
if (typeof key !== "string") {
|
|
8546
|
-
return key;
|
|
8547
|
-
}
|
|
8548
|
-
return envReplace(key, process.env);
|
|
8549
|
-
};
|
|
8550
8930
|
var parseField = (types2, field, key) => {
|
|
8551
8931
|
if (typeof field !== "string") {
|
|
8552
8932
|
return field;
|
|
@@ -8635,13 +9015,12 @@ var require_util = __commonJS({
|
|
|
8635
9015
|
exports2.envReplace = envReplace;
|
|
8636
9016
|
exports2.findPrefix = findPrefix;
|
|
8637
9017
|
exports2.parseField = parseField;
|
|
8638
|
-
exports2.parseKey = parseKey;
|
|
8639
9018
|
}
|
|
8640
9019
|
});
|
|
8641
9020
|
|
|
8642
|
-
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.
|
|
9021
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/types.js
|
|
8643
9022
|
var require_types = __commonJS({
|
|
8644
|
-
"../../node_modules/.pnpm/@pnpm+npm-conf@2.
|
|
9023
|
+
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/types.js"(exports2) {
|
|
8645
9024
|
"use strict";
|
|
8646
9025
|
init_cjs_shims();
|
|
8647
9026
|
var path6 = require("path");
|
|
@@ -8779,9 +9158,9 @@ var require_types = __commonJS({
|
|
|
8779
9158
|
}
|
|
8780
9159
|
});
|
|
8781
9160
|
|
|
8782
|
-
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.
|
|
9161
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/conf.js
|
|
8783
9162
|
var require_conf = __commonJS({
|
|
8784
|
-
"../../node_modules/.pnpm/@pnpm+npm-conf@2.
|
|
9163
|
+
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/conf.js"(exports2, module2) {
|
|
8785
9164
|
"use strict";
|
|
8786
9165
|
init_cjs_shims();
|
|
8787
9166
|
var { readCAFileSync } = require_dist();
|
|
@@ -8800,12 +9179,8 @@ var require_conf = __commonJS({
|
|
|
8800
9179
|
// https://github.com/npm/cli/blob/latest/lib/config/core.js#L326-L338
|
|
8801
9180
|
add(data, marker) {
|
|
8802
9181
|
try {
|
|
8803
|
-
for (const
|
|
8804
|
-
|
|
8805
|
-
if (substKey !== key) {
|
|
8806
|
-
delete data[key];
|
|
8807
|
-
}
|
|
8808
|
-
data[substKey] = this._parseField(value, substKey);
|
|
9182
|
+
for (const x of Object.keys(data)) {
|
|
9183
|
+
data[x] = this._parseField(data[x], x);
|
|
8809
9184
|
}
|
|
8810
9185
|
} catch (error2) {
|
|
8811
9186
|
throw error2;
|
|
@@ -8825,7 +9200,7 @@ var require_conf = __commonJS({
|
|
|
8825
9200
|
} catch (error2) {
|
|
8826
9201
|
if (error2.code === "ENOENT") {
|
|
8827
9202
|
this.add({}, marker);
|
|
8828
|
-
} else
|
|
9203
|
+
} else {
|
|
8829
9204
|
return `Issue while reading "${file}". ${error2.message}`;
|
|
8830
9205
|
}
|
|
8831
9206
|
}
|
|
@@ -8838,9 +9213,7 @@ var require_conf = __commonJS({
|
|
|
8838
9213
|
if (!env4[x]) {
|
|
8839
9214
|
return;
|
|
8840
9215
|
}
|
|
8841
|
-
|
|
8842
|
-
const rawVal = env4[x];
|
|
8843
|
-
conf[key] = deserializeEnvVal(key, rawVal);
|
|
9216
|
+
conf[envKeyToSetting(x.substr(11))] = env4[x];
|
|
8844
9217
|
});
|
|
8845
9218
|
return super.addEnv("", conf, "env");
|
|
8846
9219
|
}
|
|
@@ -8921,28 +9294,13 @@ var require_conf = __commonJS({
|
|
|
8921
9294
|
}
|
|
8922
9295
|
}
|
|
8923
9296
|
};
|
|
8924
|
-
function deserializeEnvVal(envKey, envValue) {
|
|
8925
|
-
function deserializeList(envValue2) {
|
|
8926
|
-
const npmConfigSep = "\n\n";
|
|
8927
|
-
if (envValue2.indexOf(npmConfigSep)) {
|
|
8928
|
-
return envValue2.split(npmConfigSep);
|
|
8929
|
-
}
|
|
8930
|
-
return envValue2.split(",");
|
|
8931
|
-
}
|
|
8932
|
-
switch (envKey) {
|
|
8933
|
-
case "hoist-pattern":
|
|
8934
|
-
case "public-hoist-pattern":
|
|
8935
|
-
return deserializeList(envValue);
|
|
8936
|
-
}
|
|
8937
|
-
return envValue;
|
|
8938
|
-
}
|
|
8939
9297
|
module2.exports = Conf;
|
|
8940
9298
|
}
|
|
8941
9299
|
});
|
|
8942
9300
|
|
|
8943
|
-
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.
|
|
9301
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/defaults.js
|
|
8944
9302
|
var require_defaults = __commonJS({
|
|
8945
|
-
"../../node_modules/.pnpm/@pnpm+npm-conf@2.
|
|
9303
|
+
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/defaults.js"(exports2) {
|
|
8946
9304
|
"use strict";
|
|
8947
9305
|
init_cjs_shims();
|
|
8948
9306
|
var os6 = require("os");
|
|
@@ -9109,9 +9467,9 @@ var require_defaults = __commonJS({
|
|
|
9109
9467
|
}
|
|
9110
9468
|
});
|
|
9111
9469
|
|
|
9112
|
-
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.
|
|
9470
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/index.js
|
|
9113
9471
|
var require_npm_conf = __commonJS({
|
|
9114
|
-
"../../node_modules/.pnpm/@pnpm+npm-conf@2.
|
|
9472
|
+
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/index.js"(exports2, module2) {
|
|
9115
9473
|
"use strict";
|
|
9116
9474
|
init_cjs_shims();
|
|
9117
9475
|
var path6 = require("path");
|
|
@@ -9174,11 +9532,12 @@ var require_npm_conf = __commonJS({
|
|
|
9174
9532
|
}
|
|
9175
9533
|
});
|
|
9176
9534
|
|
|
9177
|
-
// ../../node_modules/.pnpm/registry-auth-token@5.
|
|
9535
|
+
// ../../node_modules/.pnpm/registry-auth-token@5.0.2/node_modules/registry-auth-token/index.js
|
|
9178
9536
|
var require_registry_auth_token = __commonJS({
|
|
9179
|
-
"../../node_modules/.pnpm/registry-auth-token@5.
|
|
9537
|
+
"../../node_modules/.pnpm/registry-auth-token@5.0.2/node_modules/registry-auth-token/index.js"(exports2, module2) {
|
|
9180
9538
|
"use strict";
|
|
9181
9539
|
init_cjs_shims();
|
|
9540
|
+
var url = require("url");
|
|
9182
9541
|
var npmConf = require_npm_conf();
|
|
9183
9542
|
var tokenKey = ":_authToken";
|
|
9184
9543
|
var legacyTokenKey = ":_auth";
|
|
@@ -9205,16 +9564,8 @@ var require_registry_auth_token = __commonJS({
|
|
|
9205
9564
|
checkUrl = checkUrl || options.npmrc.get("registry") || npmConf.defaults.registry;
|
|
9206
9565
|
return getRegistryAuthInfo(checkUrl, options) || getLegacyAuthInfo(options.npmrc);
|
|
9207
9566
|
};
|
|
9208
|
-
function urlResolve(from, to) {
|
|
9209
|
-
const resolvedUrl = new URL(to, new URL(from.startsWith("//") ? `./${from}` : from, "resolve://"));
|
|
9210
|
-
if (resolvedUrl.protocol === "resolve:") {
|
|
9211
|
-
const { pathname, search, hash } = resolvedUrl;
|
|
9212
|
-
return pathname + search + hash;
|
|
9213
|
-
}
|
|
9214
|
-
return resolvedUrl.toString();
|
|
9215
|
-
}
|
|
9216
9567
|
function getRegistryAuthInfo(checkUrl, options) {
|
|
9217
|
-
|
|
9568
|
+
const parsed = url.parse(checkUrl, false, true);
|
|
9218
9569
|
let pathname;
|
|
9219
9570
|
while (pathname !== "/" && parsed.pathname !== pathname) {
|
|
9220
9571
|
pathname = parsed.pathname || "/";
|
|
@@ -9224,9 +9575,9 @@ var require_registry_auth_token = __commonJS({
|
|
|
9224
9575
|
return authInfo;
|
|
9225
9576
|
}
|
|
9226
9577
|
if (!options.recursive) {
|
|
9227
|
-
return /\/$/.test(checkUrl) ? void 0 : getRegistryAuthInfo(
|
|
9578
|
+
return /\/$/.test(checkUrl) ? void 0 : getRegistryAuthInfo(url.resolve(checkUrl, "."), options);
|
|
9228
9579
|
}
|
|
9229
|
-
parsed.pathname =
|
|
9580
|
+
parsed.pathname = url.resolve(normalizePath(pathname), "..") || "/";
|
|
9230
9581
|
}
|
|
9231
9582
|
return void 0;
|
|
9232
9583
|
}
|
|
@@ -12461,7 +12812,7 @@ var import_node_url = __toESM(require("url"), 1);
|
|
|
12461
12812
|
var import_node_crypto = __toESM(require("crypto"), 1);
|
|
12462
12813
|
var import_node_stream2 = __toESM(require("stream"), 1);
|
|
12463
12814
|
|
|
12464
|
-
// ../../node_modules/.pnpm/normalize-url@8.
|
|
12815
|
+
// ../../node_modules/.pnpm/normalize-url@8.0.0/node_modules/normalize-url/index.js
|
|
12465
12816
|
init_cjs_shims();
|
|
12466
12817
|
var DATA_URL_DEFAULT_MIME_TYPE = "text/plain";
|
|
12467
12818
|
var DATA_URL_DEFAULT_CHARSET = "us-ascii";
|
|
@@ -12474,7 +12825,7 @@ var supportedProtocols = /* @__PURE__ */ new Set([
|
|
|
12474
12825
|
var hasCustomProtocol = (urlString) => {
|
|
12475
12826
|
try {
|
|
12476
12827
|
const { protocol } = new URL(urlString);
|
|
12477
|
-
return protocol.endsWith(":") && !
|
|
12828
|
+
return protocol.endsWith(":") && !supportedProtocols.has(protocol);
|
|
12478
12829
|
} catch {
|
|
12479
12830
|
return false;
|
|
12480
12831
|
}
|
|
@@ -12530,8 +12881,6 @@ function normalizeUrl(urlString, options) {
|
|
|
12530
12881
|
removeDirectoryIndex: false,
|
|
12531
12882
|
removeExplicitPort: false,
|
|
12532
12883
|
sortQueryParameters: true,
|
|
12533
|
-
removePath: false,
|
|
12534
|
-
transformPath: false,
|
|
12535
12884
|
...options
|
|
12536
12885
|
};
|
|
12537
12886
|
if (typeof options.defaultProtocol === "string" && !options.defaultProtocol.endsWith(":")) {
|
|
@@ -12590,7 +12939,7 @@ function normalizeUrl(urlString, options) {
|
|
|
12590
12939
|
}
|
|
12591
12940
|
if (urlObject.pathname) {
|
|
12592
12941
|
try {
|
|
12593
|
-
urlObject.pathname = decodeURI(urlObject.pathname)
|
|
12942
|
+
urlObject.pathname = decodeURI(urlObject.pathname);
|
|
12594
12943
|
} catch {
|
|
12595
12944
|
}
|
|
12596
12945
|
}
|
|
@@ -12605,14 +12954,6 @@ function normalizeUrl(urlString, options) {
|
|
|
12605
12954
|
urlObject.pathname = pathComponents.slice(1).join("/") + "/";
|
|
12606
12955
|
}
|
|
12607
12956
|
}
|
|
12608
|
-
if (options.removePath) {
|
|
12609
|
-
urlObject.pathname = "/";
|
|
12610
|
-
}
|
|
12611
|
-
if (options.transformPath && typeof options.transformPath === "function") {
|
|
12612
|
-
const pathComponents = urlObject.pathname.split("/").filter(Boolean);
|
|
12613
|
-
const newComponents = options.transformPath(pathComponents);
|
|
12614
|
-
urlObject.pathname = newComponents?.length > 0 ? `/${newComponents.join("/")}` : "/";
|
|
12615
|
-
}
|
|
12616
12957
|
if (urlObject.hostname) {
|
|
12617
12958
|
urlObject.hostname = urlObject.hostname.replace(/\.$/, "");
|
|
12618
12959
|
if (options.stripWWW && /^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(urlObject.hostname)) {
|
|
@@ -12637,17 +12978,11 @@ function normalizeUrl(urlString, options) {
|
|
|
12637
12978
|
}
|
|
12638
12979
|
}
|
|
12639
12980
|
if (options.sortQueryParameters) {
|
|
12640
|
-
const originalSearch = urlObject.search;
|
|
12641
12981
|
urlObject.searchParams.sort();
|
|
12642
12982
|
try {
|
|
12643
12983
|
urlObject.search = decodeURIComponent(urlObject.search);
|
|
12644
12984
|
} catch {
|
|
12645
12985
|
}
|
|
12646
|
-
const partsWithoutEquals = originalSearch.slice(1).split("&").filter((p) => p && !p.includes("="));
|
|
12647
|
-
for (const part of partsWithoutEquals) {
|
|
12648
|
-
const decoded = decodeURIComponent(part);
|
|
12649
|
-
urlObject.search = urlObject.search.replace(`?${decoded}=`, `?${decoded}`).replace(`&${decoded}=`, `&${decoded}`);
|
|
12650
|
-
}
|
|
12651
12986
|
}
|
|
12652
12987
|
if (options.removeTrailingSlash) {
|
|
12653
12988
|
urlObject.pathname = urlObject.pathname.replace(/\/$/, "");
|
|
@@ -17024,15 +17359,15 @@ async function latestVersion(packageName, options) {
|
|
|
17024
17359
|
return version;
|
|
17025
17360
|
}
|
|
17026
17361
|
|
|
17027
|
-
// ../../node_modules/.pnpm/is-npm@6.
|
|
17362
|
+
// ../../node_modules/.pnpm/is-npm@6.0.0/node_modules/is-npm/index.js
|
|
17028
17363
|
init_cjs_shims();
|
|
17029
17364
|
var import_node_process4 = __toESM(require("process"), 1);
|
|
17030
17365
|
var packageJson2 = import_node_process4.default.env.npm_package_json;
|
|
17031
17366
|
var userAgent = import_node_process4.default.env.npm_config_user_agent;
|
|
17032
|
-
var
|
|
17033
|
-
var
|
|
17034
|
-
var
|
|
17035
|
-
var
|
|
17367
|
+
var isNpm6 = Boolean(userAgent && userAgent.startsWith("npm"));
|
|
17368
|
+
var isNpm7 = Boolean(packageJson2 && packageJson2.endsWith("package.json"));
|
|
17369
|
+
var isNpm = isNpm6 || isNpm7;
|
|
17370
|
+
var isYarn = Boolean(userAgent && userAgent.startsWith("yarn"));
|
|
17036
17371
|
var isNpmOrYarn = isNpm || isYarn;
|
|
17037
17372
|
|
|
17038
17373
|
// ../../node_modules/.pnpm/update-notifier@6.0.2/node_modules/update-notifier/update-notifier.js
|
|
@@ -17066,20 +17401,20 @@ var import_node_process6 = __toESM(require("process"), 1);
|
|
|
17066
17401
|
// ../../node_modules/.pnpm/string-width@5.1.2/node_modules/string-width/index.js
|
|
17067
17402
|
init_cjs_shims();
|
|
17068
17403
|
|
|
17069
|
-
// ../../node_modules/.pnpm/strip-ansi@7.1.
|
|
17404
|
+
// ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
|
|
17070
17405
|
init_cjs_shims();
|
|
17071
17406
|
|
|
17072
|
-
// ../../node_modules/.pnpm/ansi-regex@6.
|
|
17407
|
+
// ../../node_modules/.pnpm/ansi-regex@6.0.1/node_modules/ansi-regex/index.js
|
|
17073
17408
|
init_cjs_shims();
|
|
17074
17409
|
function ansiRegex({ onlyFirst = false } = {}) {
|
|
17075
|
-
const
|
|
17076
|
-
|
|
17077
|
-
|
|
17078
|
-
|
|
17410
|
+
const pattern = [
|
|
17411
|
+
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
17412
|
+
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
|
|
17413
|
+
].join("|");
|
|
17079
17414
|
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
17080
17415
|
}
|
|
17081
17416
|
|
|
17082
|
-
// ../../node_modules/.pnpm/strip-ansi@7.1.
|
|
17417
|
+
// ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
|
|
17083
17418
|
var regex = ansiRegex();
|
|
17084
17419
|
function stripAnsi(string) {
|
|
17085
17420
|
if (typeof string !== "string") {
|
|
@@ -17232,7 +17567,7 @@ var import_ansi_align = __toESM(require_ansi_align(), 1);
|
|
|
17232
17567
|
// ../../node_modules/.pnpm/wrap-ansi@8.1.0/node_modules/wrap-ansi/index.js
|
|
17233
17568
|
init_cjs_shims();
|
|
17234
17569
|
|
|
17235
|
-
// ../../node_modules/.pnpm/ansi-styles@6.2.
|
|
17570
|
+
// ../../node_modules/.pnpm/ansi-styles@6.2.1/node_modules/ansi-styles/index.js
|
|
17236
17571
|
init_cjs_shims();
|
|
17237
17572
|
var ANSI_BACKGROUND_OFFSET3 = 10;
|
|
17238
17573
|
var wrapAnsi163 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
@@ -17332,7 +17667,7 @@ function assembleStyles3() {
|
|
|
17332
17667
|
styles5.bgColor.ansi16m = wrapAnsi16m3(ANSI_BACKGROUND_OFFSET3);
|
|
17333
17668
|
Object.defineProperties(styles5, {
|
|
17334
17669
|
rgbToAnsi256: {
|
|
17335
|
-
value(red, green, blue) {
|
|
17670
|
+
value: (red, green, blue) => {
|
|
17336
17671
|
if (red === green && green === blue) {
|
|
17337
17672
|
if (red < 8) {
|
|
17338
17673
|
return 16;
|
|
@@ -17347,7 +17682,7 @@ function assembleStyles3() {
|
|
|
17347
17682
|
enumerable: false
|
|
17348
17683
|
},
|
|
17349
17684
|
hexToRgb: {
|
|
17350
|
-
value(hex) {
|
|
17685
|
+
value: (hex) => {
|
|
17351
17686
|
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
17352
17687
|
if (!matches) {
|
|
17353
17688
|
return [0, 0, 0];
|
|
@@ -17372,7 +17707,7 @@ function assembleStyles3() {
|
|
|
17372
17707
|
enumerable: false
|
|
17373
17708
|
},
|
|
17374
17709
|
ansi256ToAnsi: {
|
|
17375
|
-
value(code) {
|
|
17710
|
+
value: (code) => {
|
|
17376
17711
|
if (code < 8) {
|
|
17377
17712
|
return 30 + code;
|
|
17378
17713
|
}
|
|
@@ -17867,7 +18202,7 @@ function boxen(text, options) {
|
|
|
17867
18202
|
// ../../node_modules/.pnpm/update-notifier@6.0.2/node_modules/update-notifier/update-notifier.js
|
|
17868
18203
|
var import_is_ci = __toESM(require_is_ci(), 1);
|
|
17869
18204
|
|
|
17870
|
-
// ../../node_modules/.pnpm/pupa@3.
|
|
18205
|
+
// ../../node_modules/.pnpm/pupa@3.1.0/node_modules/pupa/index.js
|
|
17871
18206
|
init_cjs_shims();
|
|
17872
18207
|
|
|
17873
18208
|
// ../../node_modules/.pnpm/escape-goat@4.0.0/node_modules/escape-goat/index.js
|
|
@@ -17884,7 +18219,7 @@ function htmlEscape(strings, ...values) {
|
|
|
17884
18219
|
return output;
|
|
17885
18220
|
}
|
|
17886
18221
|
|
|
17887
|
-
// ../../node_modules/.pnpm/pupa@3.
|
|
18222
|
+
// ../../node_modules/.pnpm/pupa@3.1.0/node_modules/pupa/index.js
|
|
17888
18223
|
var MissingValueError = class extends Error {
|
|
17889
18224
|
constructor(key) {
|
|
17890
18225
|
super(`Missing a value for ${key ? `the placeholder: ${key}` : "a placeholder"}`, key);
|
|
@@ -17892,63 +18227,17 @@ var MissingValueError = class extends Error {
|
|
|
17892
18227
|
this.key = key;
|
|
17893
18228
|
}
|
|
17894
18229
|
};
|
|
17895
|
-
|
|
17896
|
-
constructor(filterName) {
|
|
17897
|
-
super(`Missing filter: ${filterName}`);
|
|
17898
|
-
this.name = "MissingFilterError";
|
|
17899
|
-
this.filterName = filterName;
|
|
17900
|
-
}
|
|
17901
|
-
};
|
|
17902
|
-
function pupa(template, data, { ignoreMissing = false, transform = ({ value }) => value, filters = {} } = {}) {
|
|
18230
|
+
function pupa(template, data, { ignoreMissing = false, transform = ({ value }) => value } = {}) {
|
|
17903
18231
|
if (typeof template !== "string") {
|
|
17904
18232
|
throw new TypeError(`Expected a \`string\` in the first argument, got \`${typeof template}\``);
|
|
17905
18233
|
}
|
|
17906
18234
|
if (typeof data !== "object") {
|
|
17907
18235
|
throw new TypeError(`Expected an \`object\` or \`Array\` in the second argument, got \`${typeof data}\``);
|
|
17908
18236
|
}
|
|
17909
|
-
const
|
|
17910
|
-
const escapedRightBrace = "\uE003\uE004\uE005";
|
|
17911
|
-
template = template.replace(/\\{/g, escapedLeftBrace);
|
|
17912
|
-
template = template.replace(/\\}/g, escapedRightBrace);
|
|
17913
|
-
const parseKeyPath = (key) => {
|
|
17914
|
-
const segments = [];
|
|
17915
|
-
let segment = "";
|
|
17916
|
-
for (let index = 0; index < key.length; index++) {
|
|
17917
|
-
if (key[index] === "\\" && key[index + 1] === ".") {
|
|
17918
|
-
segment += ".";
|
|
17919
|
-
index++;
|
|
17920
|
-
} else if (key[index] === ".") {
|
|
17921
|
-
segments.push(segment);
|
|
17922
|
-
segment = "";
|
|
17923
|
-
} else {
|
|
17924
|
-
segment += key[index];
|
|
17925
|
-
}
|
|
17926
|
-
}
|
|
17927
|
-
segments.push(segment);
|
|
17928
|
-
return segments;
|
|
17929
|
-
};
|
|
17930
|
-
const replace = (placeholder, keyWithFilters) => {
|
|
17931
|
-
const parts = keyWithFilters.split("|").map((part) => part.trim());
|
|
17932
|
-
const key = parts[0];
|
|
17933
|
-
const filterChain = parts.slice(1);
|
|
17934
|
-
const segments = parseKeyPath(key);
|
|
18237
|
+
const replace = (placeholder, key) => {
|
|
17935
18238
|
let value = data;
|
|
17936
|
-
for (const property of
|
|
17937
|
-
|
|
17938
|
-
value = value[property];
|
|
17939
|
-
}
|
|
17940
|
-
}
|
|
17941
|
-
for (const filterName of filterChain) {
|
|
17942
|
-
const filter = filters[filterName];
|
|
17943
|
-
if (!filter) {
|
|
17944
|
-
if (ignoreMissing) {
|
|
17945
|
-
return placeholder;
|
|
17946
|
-
}
|
|
17947
|
-
throw new MissingFilterError(filterName);
|
|
17948
|
-
}
|
|
17949
|
-
if (value !== void 0) {
|
|
17950
|
-
value = filter(value);
|
|
17951
|
-
}
|
|
18239
|
+
for (const property of key.split(".")) {
|
|
18240
|
+
value = value ? value[property] : void 0;
|
|
17952
18241
|
}
|
|
17953
18242
|
const transformedValue = transform({ value, key });
|
|
17954
18243
|
if (transformedValue === void 0) {
|
|
@@ -17959,16 +18248,13 @@ function pupa(template, data, { ignoreMissing = false, transform = ({ value }) =
|
|
|
17959
18248
|
}
|
|
17960
18249
|
return String(transformedValue);
|
|
17961
18250
|
};
|
|
17962
|
-
const
|
|
17963
|
-
const
|
|
17964
|
-
|
|
17965
|
-
|
|
17966
|
-
|
|
17967
|
-
|
|
17968
|
-
|
|
17969
|
-
template = template.replace(new RegExp(escapedLeftBrace, "g"), "{");
|
|
17970
|
-
template = template.replace(new RegExp(escapedRightBrace, "g"), "}");
|
|
17971
|
-
return template;
|
|
18251
|
+
const composeHtmlEscape = (replacer) => (...args) => htmlEscape(replacer(...args));
|
|
18252
|
+
const doubleBraceRegex = /{{(\d+|[a-z$_][\w\-$]*?(?:\.[\w\-$]*?)*?)}}/gi;
|
|
18253
|
+
if (doubleBraceRegex.test(template)) {
|
|
18254
|
+
template = template.replace(doubleBraceRegex, composeHtmlEscape(replace));
|
|
18255
|
+
}
|
|
18256
|
+
const braceRegex = /{(\d+|[a-z$_][\w\-$]*?(?:\.[\w\-$]*?)*?)}/gi;
|
|
18257
|
+
return template.replace(braceRegex, replace);
|
|
17972
18258
|
}
|
|
17973
18259
|
|
|
17974
18260
|
// ../../node_modules/.pnpm/update-notifier@6.0.2/node_modules/update-notifier/update-notifier.js
|