@hot-updater/react-native 0.4.1-1 → 0.4.1-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -1413
- package/dist/index.mjs +3 -1412
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1673,1417 +1673,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1673
1673
|
useHotUpdaterStore: ()=>useHotUpdaterStore,
|
|
1674
1674
|
HotUpdater: ()=>src_HotUpdater
|
|
1675
1675
|
});
|
|
1676
|
-
const
|
|
1677
|
-
var __webpack_modules__ = {
|
|
1678
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/comparator.js": function(module, __unused_webpack_exports, __nested_webpack_require_242_261__) {
|
|
1679
|
-
const ANY = Symbol('SemVer ANY');
|
|
1680
|
-
class Comparator {
|
|
1681
|
-
static get ANY() {
|
|
1682
|
-
return ANY;
|
|
1683
|
-
}
|
|
1684
|
-
constructor(comp, options){
|
|
1685
|
-
options = parseOptions(options);
|
|
1686
|
-
if (comp instanceof Comparator) {
|
|
1687
|
-
if (!!options.loose === comp.loose) return comp;
|
|
1688
|
-
comp = comp.value;
|
|
1689
|
-
}
|
|
1690
|
-
comp = comp.trim().split(/\s+/).join(' ');
|
|
1691
|
-
debug('comparator', comp, options);
|
|
1692
|
-
this.options = options;
|
|
1693
|
-
this.loose = !!options.loose;
|
|
1694
|
-
this.parse(comp);
|
|
1695
|
-
if (this.semver === ANY) this.value = '';
|
|
1696
|
-
else this.value = this.operator + this.semver.version;
|
|
1697
|
-
debug('comp', this);
|
|
1698
|
-
}
|
|
1699
|
-
parse(comp) {
|
|
1700
|
-
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
1701
|
-
const m = comp.match(r);
|
|
1702
|
-
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
1703
|
-
this.operator = void 0 !== m[1] ? m[1] : '';
|
|
1704
|
-
if ('=' === this.operator) this.operator = '';
|
|
1705
|
-
if (m[2]) this.semver = new SemVer(m[2], this.options.loose);
|
|
1706
|
-
else this.semver = ANY;
|
|
1707
|
-
}
|
|
1708
|
-
toString() {
|
|
1709
|
-
return this.value;
|
|
1710
|
-
}
|
|
1711
|
-
test(version) {
|
|
1712
|
-
debug('Comparator.test', version, this.options.loose);
|
|
1713
|
-
if (this.semver === ANY || version === ANY) return true;
|
|
1714
|
-
if ('string' == typeof version) try {
|
|
1715
|
-
version = new SemVer(version, this.options);
|
|
1716
|
-
} catch (er) {
|
|
1717
|
-
return false;
|
|
1718
|
-
}
|
|
1719
|
-
return cmp(version, this.operator, this.semver, this.options);
|
|
1720
|
-
}
|
|
1721
|
-
intersects(comp, options) {
|
|
1722
|
-
if (!(comp instanceof Comparator)) throw new TypeError('a Comparator is required');
|
|
1723
|
-
if ('' === this.operator) {
|
|
1724
|
-
if ('' === this.value) return true;
|
|
1725
|
-
return new Range(comp.value, options).test(this.value);
|
|
1726
|
-
}
|
|
1727
|
-
if ('' === comp.operator) {
|
|
1728
|
-
if ('' === comp.value) return true;
|
|
1729
|
-
return new Range(this.value, options).test(comp.semver);
|
|
1730
|
-
}
|
|
1731
|
-
options = parseOptions(options);
|
|
1732
|
-
if (options.includePrerelease && ('<0.0.0-0' === this.value || '<0.0.0-0' === comp.value)) return false;
|
|
1733
|
-
if (!options.includePrerelease && (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) return false;
|
|
1734
|
-
if (this.operator.startsWith('>') && comp.operator.startsWith('>')) return true;
|
|
1735
|
-
if (this.operator.startsWith('<') && comp.operator.startsWith('<')) return true;
|
|
1736
|
-
if (this.semver.version === comp.semver.version && this.operator.includes('=') && comp.operator.includes('=')) return true;
|
|
1737
|
-
if (cmp(this.semver, '<', comp.semver, options) && this.operator.startsWith('>') && comp.operator.startsWith('<')) return true;
|
|
1738
|
-
if (cmp(this.semver, '>', comp.semver, options) && this.operator.startsWith('<') && comp.operator.startsWith('>')) return true;
|
|
1739
|
-
return false;
|
|
1740
|
-
}
|
|
1741
|
-
}
|
|
1742
|
-
module.exports = Comparator;
|
|
1743
|
-
const parseOptions = __nested_webpack_require_242_261__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/parse-options.js");
|
|
1744
|
-
const { safeRe: re, t } = __nested_webpack_require_242_261__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js");
|
|
1745
|
-
const cmp = __nested_webpack_require_242_261__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/cmp.js");
|
|
1746
|
-
const debug = __nested_webpack_require_242_261__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js");
|
|
1747
|
-
const SemVer = __nested_webpack_require_242_261__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js");
|
|
1748
|
-
const Range = __nested_webpack_require_242_261__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js");
|
|
1749
|
-
},
|
|
1750
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js": function(module, __unused_webpack_exports, __nested_webpack_require_4543_4562__) {
|
|
1751
|
-
const SPACE_CHARACTERS = /\s+/g;
|
|
1752
|
-
class Range {
|
|
1753
|
-
constructor(range, options){
|
|
1754
|
-
options = parseOptions(options);
|
|
1755
|
-
if (range instanceof Range) {
|
|
1756
|
-
if (!!options.loose === range.loose && !!options.includePrerelease === range.includePrerelease) return range;
|
|
1757
|
-
return new Range(range.raw, options);
|
|
1758
|
-
}
|
|
1759
|
-
if (range instanceof Comparator) {
|
|
1760
|
-
this.raw = range.value;
|
|
1761
|
-
this.set = [
|
|
1762
|
-
[
|
|
1763
|
-
range
|
|
1764
|
-
]
|
|
1765
|
-
];
|
|
1766
|
-
this.formatted = void 0;
|
|
1767
|
-
return this;
|
|
1768
|
-
}
|
|
1769
|
-
this.options = options;
|
|
1770
|
-
this.loose = !!options.loose;
|
|
1771
|
-
this.includePrerelease = !!options.includePrerelease;
|
|
1772
|
-
this.raw = range.trim().replace(SPACE_CHARACTERS, ' ');
|
|
1773
|
-
this.set = this.raw.split('||').map((r)=>this.parseRange(r.trim())).filter((c)=>c.length);
|
|
1774
|
-
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
1775
|
-
if (this.set.length > 1) {
|
|
1776
|
-
const first = this.set[0];
|
|
1777
|
-
this.set = this.set.filter((c)=>!isNullSet(c[0]));
|
|
1778
|
-
if (0 === this.set.length) this.set = [
|
|
1779
|
-
first
|
|
1780
|
-
];
|
|
1781
|
-
else if (this.set.length > 1) {
|
|
1782
|
-
for (const c of this.set)if (1 === c.length && isAny(c[0])) {
|
|
1783
|
-
this.set = [
|
|
1784
|
-
c
|
|
1785
|
-
];
|
|
1786
|
-
break;
|
|
1787
|
-
}
|
|
1788
|
-
}
|
|
1789
|
-
}
|
|
1790
|
-
this.formatted = void 0;
|
|
1791
|
-
}
|
|
1792
|
-
get range() {
|
|
1793
|
-
if (void 0 === this.formatted) {
|
|
1794
|
-
this.formatted = '';
|
|
1795
|
-
for(let i = 0; i < this.set.length; i++){
|
|
1796
|
-
if (i > 0) this.formatted += '||';
|
|
1797
|
-
const comps = this.set[i];
|
|
1798
|
-
for(let k = 0; k < comps.length; k++){
|
|
1799
|
-
if (k > 0) this.formatted += ' ';
|
|
1800
|
-
this.formatted += comps[k].toString().trim();
|
|
1801
|
-
}
|
|
1802
|
-
}
|
|
1803
|
-
}
|
|
1804
|
-
return this.formatted;
|
|
1805
|
-
}
|
|
1806
|
-
format() {
|
|
1807
|
-
return this.range;
|
|
1808
|
-
}
|
|
1809
|
-
toString() {
|
|
1810
|
-
return this.range;
|
|
1811
|
-
}
|
|
1812
|
-
parseRange(range) {
|
|
1813
|
-
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
1814
|
-
const memoKey = memoOpts + ':' + range;
|
|
1815
|
-
const cached = cache.get(memoKey);
|
|
1816
|
-
if (cached) return cached;
|
|
1817
|
-
const loose = this.options.loose;
|
|
1818
|
-
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
1819
|
-
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
1820
|
-
debug('hyphen replace', range);
|
|
1821
|
-
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
1822
|
-
debug('comparator trim', range);
|
|
1823
|
-
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
1824
|
-
debug('tilde trim', range);
|
|
1825
|
-
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
1826
|
-
debug('caret trim', range);
|
|
1827
|
-
let rangeList = range.split(' ').map((comp)=>parseComparator(comp, this.options)).join(' ').split(/\s+/).map((comp)=>replaceGTE0(comp, this.options));
|
|
1828
|
-
if (loose) rangeList = rangeList.filter((comp)=>{
|
|
1829
|
-
debug('loose invalid filter', comp, this.options);
|
|
1830
|
-
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
1831
|
-
});
|
|
1832
|
-
debug('range list', rangeList);
|
|
1833
|
-
const rangeMap = new Map();
|
|
1834
|
-
const comparators = rangeList.map((comp)=>new Comparator(comp, this.options));
|
|
1835
|
-
for (const comp of comparators){
|
|
1836
|
-
if (isNullSet(comp)) return [
|
|
1837
|
-
comp
|
|
1838
|
-
];
|
|
1839
|
-
rangeMap.set(comp.value, comp);
|
|
1840
|
-
}
|
|
1841
|
-
if (rangeMap.size > 1 && rangeMap.has('')) rangeMap.delete('');
|
|
1842
|
-
const result = [
|
|
1843
|
-
...rangeMap.values()
|
|
1844
|
-
];
|
|
1845
|
-
cache.set(memoKey, result);
|
|
1846
|
-
return result;
|
|
1847
|
-
}
|
|
1848
|
-
intersects(range, options) {
|
|
1849
|
-
if (!(range instanceof Range)) throw new TypeError('a Range is required');
|
|
1850
|
-
return this.set.some((thisComparators)=>isSatisfiable(thisComparators, options) && range.set.some((rangeComparators)=>isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator)=>rangeComparators.every((rangeComparator)=>thisComparator.intersects(rangeComparator, options)))));
|
|
1851
|
-
}
|
|
1852
|
-
test(version) {
|
|
1853
|
-
if (!version) return false;
|
|
1854
|
-
if ('string' == typeof version) try {
|
|
1855
|
-
version = new SemVer(version, this.options);
|
|
1856
|
-
} catch (er) {
|
|
1857
|
-
return false;
|
|
1858
|
-
}
|
|
1859
|
-
for(let i = 0; i < this.set.length; i++)if (testSet(this.set[i], version, this.options)) return true;
|
|
1860
|
-
return false;
|
|
1861
|
-
}
|
|
1862
|
-
}
|
|
1863
|
-
module.exports = Range;
|
|
1864
|
-
const LRU = __nested_webpack_require_4543_4562__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/lrucache.js");
|
|
1865
|
-
const cache = new LRU();
|
|
1866
|
-
const parseOptions = __nested_webpack_require_4543_4562__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/parse-options.js");
|
|
1867
|
-
const Comparator = __nested_webpack_require_4543_4562__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/comparator.js");
|
|
1868
|
-
const debug = __nested_webpack_require_4543_4562__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js");
|
|
1869
|
-
const SemVer = __nested_webpack_require_4543_4562__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js");
|
|
1870
|
-
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = __nested_webpack_require_4543_4562__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js");
|
|
1871
|
-
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = __nested_webpack_require_4543_4562__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/constants.js");
|
|
1872
|
-
const isNullSet = (c)=>'<0.0.0-0' === c.value;
|
|
1873
|
-
const isAny = (c)=>'' === c.value;
|
|
1874
|
-
const isSatisfiable = (comparators, options)=>{
|
|
1875
|
-
let result = true;
|
|
1876
|
-
const remainingComparators = comparators.slice();
|
|
1877
|
-
let testComparator = remainingComparators.pop();
|
|
1878
|
-
while(result && remainingComparators.length){
|
|
1879
|
-
result = remainingComparators.every((otherComparator)=>testComparator.intersects(otherComparator, options));
|
|
1880
|
-
testComparator = remainingComparators.pop();
|
|
1881
|
-
}
|
|
1882
|
-
return result;
|
|
1883
|
-
};
|
|
1884
|
-
const parseComparator = (comp, options)=>{
|
|
1885
|
-
debug('comp', comp, options);
|
|
1886
|
-
comp = replaceCarets(comp, options);
|
|
1887
|
-
debug('caret', comp);
|
|
1888
|
-
comp = replaceTildes(comp, options);
|
|
1889
|
-
debug('tildes', comp);
|
|
1890
|
-
comp = replaceXRanges(comp, options);
|
|
1891
|
-
debug('xrange', comp);
|
|
1892
|
-
comp = replaceStars(comp, options);
|
|
1893
|
-
debug('stars', comp);
|
|
1894
|
-
return comp;
|
|
1895
|
-
};
|
|
1896
|
-
const isX = (id)=>!id || 'x' === id.toLowerCase() || '*' === id;
|
|
1897
|
-
const replaceTildes = (comp, options)=>comp.trim().split(/\s+/).map((c)=>replaceTilde(c, options)).join(' ');
|
|
1898
|
-
const replaceTilde = (comp, options)=>{
|
|
1899
|
-
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
1900
|
-
return comp.replace(r, (_, M, m, p, pr)=>{
|
|
1901
|
-
debug('tilde', comp, _, M, m, p, pr);
|
|
1902
|
-
let ret;
|
|
1903
|
-
if (isX(M)) ret = '';
|
|
1904
|
-
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
1905
|
-
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
1906
|
-
else if (pr) {
|
|
1907
|
-
debug('replaceTilde pr', pr);
|
|
1908
|
-
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
1909
|
-
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
1910
|
-
debug('tilde return', ret);
|
|
1911
|
-
return ret;
|
|
1912
|
-
});
|
|
1913
|
-
};
|
|
1914
|
-
const replaceCarets = (comp, options)=>comp.trim().split(/\s+/).map((c)=>replaceCaret(c, options)).join(' ');
|
|
1915
|
-
const replaceCaret = (comp, options)=>{
|
|
1916
|
-
debug('caret', comp, options);
|
|
1917
|
-
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
1918
|
-
const z = options.includePrerelease ? '-0' : '';
|
|
1919
|
-
return comp.replace(r, (_, M, m, p, pr)=>{
|
|
1920
|
-
debug('caret', comp, _, M, m, p, pr);
|
|
1921
|
-
let ret;
|
|
1922
|
-
if (isX(M)) ret = '';
|
|
1923
|
-
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
1924
|
-
else if (isX(p)) ret = '0' === M ? `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0` : `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
1925
|
-
else if (pr) {
|
|
1926
|
-
debug('replaceCaret pr', pr);
|
|
1927
|
-
ret = '0' === M ? '0' === m ? `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0` : `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0` : `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
1928
|
-
} else {
|
|
1929
|
-
debug('no pr');
|
|
1930
|
-
ret = '0' === M ? '0' === m ? `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0` : `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0` : `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
1931
|
-
}
|
|
1932
|
-
debug('caret return', ret);
|
|
1933
|
-
return ret;
|
|
1934
|
-
});
|
|
1935
|
-
};
|
|
1936
|
-
const replaceXRanges = (comp, options)=>{
|
|
1937
|
-
debug('replaceXRanges', comp, options);
|
|
1938
|
-
return comp.split(/\s+/).map((c)=>replaceXRange(c, options)).join(' ');
|
|
1939
|
-
};
|
|
1940
|
-
const replaceXRange = (comp, options)=>{
|
|
1941
|
-
comp = comp.trim();
|
|
1942
|
-
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
1943
|
-
return comp.replace(r, (ret, gtlt, M, m, p, pr)=>{
|
|
1944
|
-
debug('xRange', comp, ret, gtlt, M, m, p, pr);
|
|
1945
|
-
const xM = isX(M);
|
|
1946
|
-
const xm = xM || isX(m);
|
|
1947
|
-
const xp = xm || isX(p);
|
|
1948
|
-
const anyX = xp;
|
|
1949
|
-
if ('=' === gtlt && anyX) gtlt = '';
|
|
1950
|
-
pr = options.includePrerelease ? '-0' : '';
|
|
1951
|
-
if (xM) ret = '>' === gtlt || '<' === gtlt ? '<0.0.0-0' : '*';
|
|
1952
|
-
else if (gtlt && anyX) {
|
|
1953
|
-
if (xm) m = 0;
|
|
1954
|
-
p = 0;
|
|
1955
|
-
if ('>' === gtlt) {
|
|
1956
|
-
gtlt = '>=';
|
|
1957
|
-
if (xm) {
|
|
1958
|
-
M = +M + 1;
|
|
1959
|
-
m = 0;
|
|
1960
|
-
p = 0;
|
|
1961
|
-
} else {
|
|
1962
|
-
m = +m + 1;
|
|
1963
|
-
p = 0;
|
|
1964
|
-
}
|
|
1965
|
-
} else if ('<=' === gtlt) {
|
|
1966
|
-
gtlt = '<';
|
|
1967
|
-
if (xm) M = +M + 1;
|
|
1968
|
-
else m = +m + 1;
|
|
1969
|
-
}
|
|
1970
|
-
if ('<' === gtlt) pr = '-0';
|
|
1971
|
-
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
1972
|
-
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
1973
|
-
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
1974
|
-
debug('xRange return', ret);
|
|
1975
|
-
return ret;
|
|
1976
|
-
});
|
|
1977
|
-
};
|
|
1978
|
-
const replaceStars = (comp, options)=>{
|
|
1979
|
-
debug('replaceStars', comp, options);
|
|
1980
|
-
return comp.trim().replace(re[t.STAR], '');
|
|
1981
|
-
};
|
|
1982
|
-
const replaceGTE0 = (comp, options)=>{
|
|
1983
|
-
debug('replaceGTE0', comp, options);
|
|
1984
|
-
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '');
|
|
1985
|
-
};
|
|
1986
|
-
const hyphenReplace = (incPr)=>($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr)=>{
|
|
1987
|
-
from = isX(fM) ? '' : isX(fm) ? `>=${fM}.0.0${incPr ? '-0' : ''}` : isX(fp) ? `>=${fM}.${fm}.0${incPr ? '-0' : ''}` : fpr ? `>=${from}` : `>=${from}${incPr ? '-0' : ''}`;
|
|
1988
|
-
to = isX(tM) ? '' : isX(tm) ? `<${+tM + 1}.0.0-0` : isX(tp) ? `<${tM}.${+tm + 1}.0-0` : tpr ? `<=${tM}.${tm}.${tp}-${tpr}` : incPr ? `<${tM}.${tm}.${+tp + 1}-0` : `<=${to}`;
|
|
1989
|
-
return `${from} ${to}`.trim();
|
|
1990
|
-
};
|
|
1991
|
-
const testSet = (set, version, options)=>{
|
|
1992
|
-
for(let i = 0; i < set.length; i++)if (!set[i].test(version)) return false;
|
|
1993
|
-
if (version.prerelease.length && !options.includePrerelease) {
|
|
1994
|
-
for(let i = 0; i < set.length; i++){
|
|
1995
|
-
debug(set[i].semver);
|
|
1996
|
-
if (set[i].semver !== Comparator.ANY) {
|
|
1997
|
-
if (set[i].semver.prerelease.length > 0) {
|
|
1998
|
-
const allowed = set[i].semver;
|
|
1999
|
-
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
2000
|
-
}
|
|
2001
|
-
}
|
|
2002
|
-
}
|
|
2003
|
-
return false;
|
|
2004
|
-
}
|
|
2005
|
-
return true;
|
|
2006
|
-
};
|
|
2007
|
-
},
|
|
2008
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js": function(module, __unused_webpack_exports, __nested_webpack_require_18135_18154__) {
|
|
2009
|
-
const debug = __nested_webpack_require_18135_18154__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js");
|
|
2010
|
-
const { MAX_LENGTH, MAX_SAFE_INTEGER } = __nested_webpack_require_18135_18154__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/constants.js");
|
|
2011
|
-
const { safeRe: re, t } = __nested_webpack_require_18135_18154__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js");
|
|
2012
|
-
const parseOptions = __nested_webpack_require_18135_18154__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/parse-options.js");
|
|
2013
|
-
const { compareIdentifiers } = __nested_webpack_require_18135_18154__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/identifiers.js");
|
|
2014
|
-
class SemVer {
|
|
2015
|
-
constructor(version, options){
|
|
2016
|
-
options = parseOptions(options);
|
|
2017
|
-
if (version instanceof SemVer) {
|
|
2018
|
-
if (!!options.loose === version.loose && !!options.includePrerelease === version.includePrerelease) return version;
|
|
2019
|
-
version = version.version;
|
|
2020
|
-
} else if ('string' != typeof version) throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
2021
|
-
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
2022
|
-
debug('SemVer', version, options);
|
|
2023
|
-
this.options = options;
|
|
2024
|
-
this.loose = !!options.loose;
|
|
2025
|
-
this.includePrerelease = !!options.includePrerelease;
|
|
2026
|
-
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
2027
|
-
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
2028
|
-
this.raw = version;
|
|
2029
|
-
this.major = +m[1];
|
|
2030
|
-
this.minor = +m[2];
|
|
2031
|
-
this.patch = +m[3];
|
|
2032
|
-
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError('Invalid major version');
|
|
2033
|
-
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError('Invalid minor version');
|
|
2034
|
-
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError('Invalid patch version');
|
|
2035
|
-
if (m[4]) this.prerelease = m[4].split('.').map((id)=>{
|
|
2036
|
-
if (/^[0-9]+$/.test(id)) {
|
|
2037
|
-
const num = +id;
|
|
2038
|
-
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
2039
|
-
}
|
|
2040
|
-
return id;
|
|
2041
|
-
});
|
|
2042
|
-
else this.prerelease = [];
|
|
2043
|
-
this.build = m[5] ? m[5].split('.') : [];
|
|
2044
|
-
this.format();
|
|
2045
|
-
}
|
|
2046
|
-
format() {
|
|
2047
|
-
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
2048
|
-
if (this.prerelease.length) this.version += `-${this.prerelease.join('.')}`;
|
|
2049
|
-
return this.version;
|
|
2050
|
-
}
|
|
2051
|
-
toString() {
|
|
2052
|
-
return this.version;
|
|
2053
|
-
}
|
|
2054
|
-
compare(other) {
|
|
2055
|
-
debug('SemVer.compare', this.version, this.options, other);
|
|
2056
|
-
if (!(other instanceof SemVer)) {
|
|
2057
|
-
if ('string' == typeof other && other === this.version) return 0;
|
|
2058
|
-
other = new SemVer(other, this.options);
|
|
2059
|
-
}
|
|
2060
|
-
if (other.version === this.version) return 0;
|
|
2061
|
-
return this.compareMain(other) || this.comparePre(other);
|
|
2062
|
-
}
|
|
2063
|
-
compareMain(other) {
|
|
2064
|
-
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
2065
|
-
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
2066
|
-
}
|
|
2067
|
-
comparePre(other) {
|
|
2068
|
-
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
2069
|
-
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
2070
|
-
if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
2071
|
-
if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
2072
|
-
let i = 0;
|
|
2073
|
-
do {
|
|
2074
|
-
const a = this.prerelease[i];
|
|
2075
|
-
const b = other.prerelease[i];
|
|
2076
|
-
debug('prerelease compare', i, a, b);
|
|
2077
|
-
if (void 0 === a && void 0 === b) return 0;
|
|
2078
|
-
if (void 0 === b) return 1;
|
|
2079
|
-
if (void 0 === a) return -1;
|
|
2080
|
-
else if (a === b) continue;
|
|
2081
|
-
else return compareIdentifiers(a, b);
|
|
2082
|
-
}while (++i);
|
|
2083
|
-
}
|
|
2084
|
-
compareBuild(other) {
|
|
2085
|
-
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
2086
|
-
let i = 0;
|
|
2087
|
-
do {
|
|
2088
|
-
const a = this.build[i];
|
|
2089
|
-
const b = other.build[i];
|
|
2090
|
-
debug('build compare', i, a, b);
|
|
2091
|
-
if (void 0 === a && void 0 === b) return 0;
|
|
2092
|
-
if (void 0 === b) return 1;
|
|
2093
|
-
if (void 0 === a) return -1;
|
|
2094
|
-
else if (a === b) continue;
|
|
2095
|
-
else return compareIdentifiers(a, b);
|
|
2096
|
-
}while (++i);
|
|
2097
|
-
}
|
|
2098
|
-
inc(release, identifier, identifierBase) {
|
|
2099
|
-
switch(release){
|
|
2100
|
-
case 'premajor':
|
|
2101
|
-
this.prerelease.length = 0;
|
|
2102
|
-
this.patch = 0;
|
|
2103
|
-
this.minor = 0;
|
|
2104
|
-
this.major++;
|
|
2105
|
-
this.inc('pre', identifier, identifierBase);
|
|
2106
|
-
break;
|
|
2107
|
-
case 'preminor':
|
|
2108
|
-
this.prerelease.length = 0;
|
|
2109
|
-
this.patch = 0;
|
|
2110
|
-
this.minor++;
|
|
2111
|
-
this.inc('pre', identifier, identifierBase);
|
|
2112
|
-
break;
|
|
2113
|
-
case 'prepatch':
|
|
2114
|
-
this.prerelease.length = 0;
|
|
2115
|
-
this.inc('patch', identifier, identifierBase);
|
|
2116
|
-
this.inc('pre', identifier, identifierBase);
|
|
2117
|
-
break;
|
|
2118
|
-
case 'prerelease':
|
|
2119
|
-
if (0 === this.prerelease.length) this.inc('patch', identifier, identifierBase);
|
|
2120
|
-
this.inc('pre', identifier, identifierBase);
|
|
2121
|
-
break;
|
|
2122
|
-
case 'major':
|
|
2123
|
-
if (0 !== this.minor || 0 !== this.patch || 0 === this.prerelease.length) this.major++;
|
|
2124
|
-
this.minor = 0;
|
|
2125
|
-
this.patch = 0;
|
|
2126
|
-
this.prerelease = [];
|
|
2127
|
-
break;
|
|
2128
|
-
case 'minor':
|
|
2129
|
-
if (0 !== this.patch || 0 === this.prerelease.length) this.minor++;
|
|
2130
|
-
this.patch = 0;
|
|
2131
|
-
this.prerelease = [];
|
|
2132
|
-
break;
|
|
2133
|
-
case 'patch':
|
|
2134
|
-
if (0 === this.prerelease.length) this.patch++;
|
|
2135
|
-
this.prerelease = [];
|
|
2136
|
-
break;
|
|
2137
|
-
case 'pre':
|
|
2138
|
-
{
|
|
2139
|
-
const base = Number(identifierBase) ? 1 : 0;
|
|
2140
|
-
if (!identifier && false === identifierBase) throw new Error('invalid increment argument: identifier is empty');
|
|
2141
|
-
if (0 === this.prerelease.length) this.prerelease = [
|
|
2142
|
-
base
|
|
2143
|
-
];
|
|
2144
|
-
else {
|
|
2145
|
-
let i = this.prerelease.length;
|
|
2146
|
-
while(--i >= 0)if ('number' == typeof this.prerelease[i]) {
|
|
2147
|
-
this.prerelease[i]++;
|
|
2148
|
-
i = -2;
|
|
2149
|
-
}
|
|
2150
|
-
if (-1 === i) {
|
|
2151
|
-
if (identifier === this.prerelease.join('.') && false === identifierBase) throw new Error('invalid increment argument: identifier already exists');
|
|
2152
|
-
this.prerelease.push(base);
|
|
2153
|
-
}
|
|
2154
|
-
}
|
|
2155
|
-
if (identifier) {
|
|
2156
|
-
let prerelease = [
|
|
2157
|
-
identifier,
|
|
2158
|
-
base
|
|
2159
|
-
];
|
|
2160
|
-
if (false === identifierBase) prerelease = [
|
|
2161
|
-
identifier
|
|
2162
|
-
];
|
|
2163
|
-
if (0 === compareIdentifiers(this.prerelease[0], identifier)) {
|
|
2164
|
-
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
2165
|
-
} else this.prerelease = prerelease;
|
|
2166
|
-
}
|
|
2167
|
-
break;
|
|
2168
|
-
}
|
|
2169
|
-
default:
|
|
2170
|
-
throw new Error(`invalid increment argument: ${release}`);
|
|
2171
|
-
}
|
|
2172
|
-
this.raw = this.format();
|
|
2173
|
-
if (this.build.length) this.raw += `+${this.build.join('.')}`;
|
|
2174
|
-
return this;
|
|
2175
|
-
}
|
|
2176
|
-
}
|
|
2177
|
-
module.exports = SemVer;
|
|
2178
|
-
},
|
|
2179
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/clean.js": function(module, __unused_webpack_exports, __nested_webpack_require_27593_27612__) {
|
|
2180
|
-
const parse = __nested_webpack_require_27593_27612__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js");
|
|
2181
|
-
const clean = (version, options)=>{
|
|
2182
|
-
const s = parse(version.trim().replace(/^[=v]+/, ''), options);
|
|
2183
|
-
return s ? s.version : null;
|
|
2184
|
-
};
|
|
2185
|
-
module.exports = clean;
|
|
2186
|
-
},
|
|
2187
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/cmp.js": function(module, __unused_webpack_exports, __nested_webpack_require_28075_28094__) {
|
|
2188
|
-
const eq = __nested_webpack_require_28075_28094__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/eq.js");
|
|
2189
|
-
const neq = __nested_webpack_require_28075_28094__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/neq.js");
|
|
2190
|
-
const gt = __nested_webpack_require_28075_28094__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gt.js");
|
|
2191
|
-
const gte = __nested_webpack_require_28075_28094__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gte.js");
|
|
2192
|
-
const lt = __nested_webpack_require_28075_28094__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lt.js");
|
|
2193
|
-
const lte = __nested_webpack_require_28075_28094__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lte.js");
|
|
2194
|
-
const cmp = (a, op, b, loose)=>{
|
|
2195
|
-
switch(op){
|
|
2196
|
-
case '===':
|
|
2197
|
-
if ('object' == typeof a) a = a.version;
|
|
2198
|
-
if ('object' == typeof b) b = b.version;
|
|
2199
|
-
return a === b;
|
|
2200
|
-
case '!==':
|
|
2201
|
-
if ('object' == typeof a) a = a.version;
|
|
2202
|
-
if ('object' == typeof b) b = b.version;
|
|
2203
|
-
return a !== b;
|
|
2204
|
-
case '':
|
|
2205
|
-
case '=':
|
|
2206
|
-
case '==':
|
|
2207
|
-
return eq(a, b, loose);
|
|
2208
|
-
case '!=':
|
|
2209
|
-
return neq(a, b, loose);
|
|
2210
|
-
case '>':
|
|
2211
|
-
return gt(a, b, loose);
|
|
2212
|
-
case '>=':
|
|
2213
|
-
return gte(a, b, loose);
|
|
2214
|
-
case '<':
|
|
2215
|
-
return lt(a, b, loose);
|
|
2216
|
-
case '<=':
|
|
2217
|
-
return lte(a, b, loose);
|
|
2218
|
-
default:
|
|
2219
|
-
throw new TypeError(`Invalid operator: ${op}`);
|
|
2220
|
-
}
|
|
2221
|
-
};
|
|
2222
|
-
module.exports = cmp;
|
|
2223
|
-
},
|
|
2224
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/coerce.js": function(module, __unused_webpack_exports, __nested_webpack_require_30004_30023__) {
|
|
2225
|
-
const SemVer = __nested_webpack_require_30004_30023__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js");
|
|
2226
|
-
const parse = __nested_webpack_require_30004_30023__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js");
|
|
2227
|
-
const { safeRe: re, t } = __nested_webpack_require_30004_30023__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js");
|
|
2228
|
-
const coerce = (version, options)=>{
|
|
2229
|
-
if (version instanceof SemVer) return version;
|
|
2230
|
-
if ('number' == typeof version) version = String(version);
|
|
2231
|
-
if ('string' != typeof version) return null;
|
|
2232
|
-
options = options || {};
|
|
2233
|
-
let match = null;
|
|
2234
|
-
if (options.rtl) {
|
|
2235
|
-
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
2236
|
-
let next;
|
|
2237
|
-
while((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)){
|
|
2238
|
-
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
2239
|
-
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
2240
|
-
}
|
|
2241
|
-
coerceRtlRegex.lastIndex = -1;
|
|
2242
|
-
} else match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
2243
|
-
if (null === match) return null;
|
|
2244
|
-
const major = match[2];
|
|
2245
|
-
const minor = match[3] || '0';
|
|
2246
|
-
const patch = match[4] || '0';
|
|
2247
|
-
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : '';
|
|
2248
|
-
const build = options.includePrerelease && match[6] ? `+${match[6]}` : '';
|
|
2249
|
-
return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
2250
|
-
};
|
|
2251
|
-
module.exports = coerce;
|
|
2252
|
-
},
|
|
2253
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-build.js": function(module, __unused_webpack_exports, __nested_webpack_require_31982_32001__) {
|
|
2254
|
-
const SemVer = __nested_webpack_require_31982_32001__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js");
|
|
2255
|
-
const compareBuild = (a, b, loose)=>{
|
|
2256
|
-
const versionA = new SemVer(a, loose);
|
|
2257
|
-
const versionB = new SemVer(b, loose);
|
|
2258
|
-
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
2259
|
-
};
|
|
2260
|
-
module.exports = compareBuild;
|
|
2261
|
-
},
|
|
2262
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-loose.js": function(module, __unused_webpack_exports, __nested_webpack_require_32550_32569__) {
|
|
2263
|
-
const compare = __nested_webpack_require_32550_32569__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js");
|
|
2264
|
-
const compareLoose = (a, b)=>compare(a, b, true);
|
|
2265
|
-
module.exports = compareLoose;
|
|
2266
|
-
},
|
|
2267
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js": function(module, __unused_webpack_exports, __nested_webpack_require_32933_32952__) {
|
|
2268
|
-
const SemVer = __nested_webpack_require_32933_32952__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js");
|
|
2269
|
-
const compare = (a, b, loose)=>new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
2270
|
-
module.exports = compare;
|
|
2271
|
-
},
|
|
2272
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/diff.js": function(module, __unused_webpack_exports, __nested_webpack_require_33337_33356__) {
|
|
2273
|
-
const parse = __nested_webpack_require_33337_33356__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js");
|
|
2274
|
-
const diff = (version1, version2)=>{
|
|
2275
|
-
const v1 = parse(version1, null, true);
|
|
2276
|
-
const v2 = parse(version2, null, true);
|
|
2277
|
-
const comparison = v1.compare(v2);
|
|
2278
|
-
if (0 === comparison) return null;
|
|
2279
|
-
const v1Higher = comparison > 0;
|
|
2280
|
-
const highVersion = v1Higher ? v1 : v2;
|
|
2281
|
-
const lowVersion = v1Higher ? v2 : v1;
|
|
2282
|
-
const highHasPre = !!highVersion.prerelease.length;
|
|
2283
|
-
const lowHasPre = !!lowVersion.prerelease.length;
|
|
2284
|
-
if (lowHasPre && !highHasPre) {
|
|
2285
|
-
if (!lowVersion.patch && !lowVersion.minor) return 'major';
|
|
2286
|
-
if (highVersion.patch) return 'patch';
|
|
2287
|
-
if (highVersion.minor) return 'minor';
|
|
2288
|
-
return 'major';
|
|
2289
|
-
}
|
|
2290
|
-
const prefix = highHasPre ? 'pre' : '';
|
|
2291
|
-
if (v1.major !== v2.major) return prefix + 'major';
|
|
2292
|
-
if (v1.minor !== v2.minor) return prefix + 'minor';
|
|
2293
|
-
if (v1.patch !== v2.patch) return prefix + 'patch';
|
|
2294
|
-
return 'prerelease';
|
|
2295
|
-
};
|
|
2296
|
-
module.exports = diff;
|
|
2297
|
-
},
|
|
2298
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/eq.js": function(module, __unused_webpack_exports, __nested_webpack_require_34726_34745__) {
|
|
2299
|
-
const compare = __nested_webpack_require_34726_34745__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js");
|
|
2300
|
-
const eq = (a, b, loose)=>0 === compare(a, b, loose);
|
|
2301
|
-
module.exports = eq;
|
|
2302
|
-
},
|
|
2303
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gt.js": function(module, __unused_webpack_exports, __nested_webpack_require_35098_35117__) {
|
|
2304
|
-
const compare = __nested_webpack_require_35098_35117__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js");
|
|
2305
|
-
const gt = (a, b, loose)=>compare(a, b, loose) > 0;
|
|
2306
|
-
module.exports = gt;
|
|
2307
|
-
},
|
|
2308
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gte.js": function(module, __unused_webpack_exports, __nested_webpack_require_35469_35488__) {
|
|
2309
|
-
const compare = __nested_webpack_require_35469_35488__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js");
|
|
2310
|
-
const gte = (a, b, loose)=>compare(a, b, loose) >= 0;
|
|
2311
|
-
module.exports = gte;
|
|
2312
|
-
},
|
|
2313
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/inc.js": function(module, __unused_webpack_exports, __nested_webpack_require_35843_35862__) {
|
|
2314
|
-
const SemVer = __nested_webpack_require_35843_35862__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js");
|
|
2315
|
-
const inc = (version, release, options, identifier, identifierBase)=>{
|
|
2316
|
-
if ('string' == typeof options) {
|
|
2317
|
-
identifierBase = identifier;
|
|
2318
|
-
identifier = options;
|
|
2319
|
-
options = void 0;
|
|
2320
|
-
}
|
|
2321
|
-
try {
|
|
2322
|
-
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
2323
|
-
} catch (er) {
|
|
2324
|
-
return null;
|
|
2325
|
-
}
|
|
2326
|
-
};
|
|
2327
|
-
module.exports = inc;
|
|
2328
|
-
},
|
|
2329
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lt.js": function(module, __unused_webpack_exports, __nested_webpack_require_36653_36672__) {
|
|
2330
|
-
const compare = __nested_webpack_require_36653_36672__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js");
|
|
2331
|
-
const lt = (a, b, loose)=>compare(a, b, loose) < 0;
|
|
2332
|
-
module.exports = lt;
|
|
2333
|
-
},
|
|
2334
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lte.js": function(module, __unused_webpack_exports, __nested_webpack_require_37024_37043__) {
|
|
2335
|
-
const compare = __nested_webpack_require_37024_37043__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js");
|
|
2336
|
-
const lte = (a, b, loose)=>compare(a, b, loose) <= 0;
|
|
2337
|
-
module.exports = lte;
|
|
2338
|
-
},
|
|
2339
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/major.js": function(module, __unused_webpack_exports, __nested_webpack_require_37400_37419__) {
|
|
2340
|
-
const SemVer = __nested_webpack_require_37400_37419__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js");
|
|
2341
|
-
const major = (a, loose)=>new SemVer(a, loose).major;
|
|
2342
|
-
module.exports = major;
|
|
2343
|
-
},
|
|
2344
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/minor.js": function(module, __unused_webpack_exports, __nested_webpack_require_37774_37793__) {
|
|
2345
|
-
const SemVer = __nested_webpack_require_37774_37793__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js");
|
|
2346
|
-
const minor = (a, loose)=>new SemVer(a, loose).minor;
|
|
2347
|
-
module.exports = minor;
|
|
2348
|
-
},
|
|
2349
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/neq.js": function(module, __unused_webpack_exports, __nested_webpack_require_38146_38165__) {
|
|
2350
|
-
const compare = __nested_webpack_require_38146_38165__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js");
|
|
2351
|
-
const neq = (a, b, loose)=>0 !== compare(a, b, loose);
|
|
2352
|
-
module.exports = neq;
|
|
2353
|
-
},
|
|
2354
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js": function(module, __unused_webpack_exports, __nested_webpack_require_38523_38542__) {
|
|
2355
|
-
const SemVer = __nested_webpack_require_38523_38542__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js");
|
|
2356
|
-
const parse = (version, options, throwErrors = false)=>{
|
|
2357
|
-
if (version instanceof SemVer) return version;
|
|
2358
|
-
try {
|
|
2359
|
-
return new SemVer(version, options);
|
|
2360
|
-
} catch (er) {
|
|
2361
|
-
if (!throwErrors) return null;
|
|
2362
|
-
throw er;
|
|
2363
|
-
}
|
|
2364
|
-
};
|
|
2365
|
-
module.exports = parse;
|
|
2366
|
-
},
|
|
2367
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/patch.js": function(module, __unused_webpack_exports, __nested_webpack_require_39155_39174__) {
|
|
2368
|
-
const SemVer = __nested_webpack_require_39155_39174__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js");
|
|
2369
|
-
const patch = (a, loose)=>new SemVer(a, loose).patch;
|
|
2370
|
-
module.exports = patch;
|
|
2371
|
-
},
|
|
2372
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/prerelease.js": function(module, __unused_webpack_exports, __nested_webpack_require_39534_39553__) {
|
|
2373
|
-
const parse = __nested_webpack_require_39534_39553__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js");
|
|
2374
|
-
const prerelease = (version, options)=>{
|
|
2375
|
-
const parsed = parse(version, options);
|
|
2376
|
-
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
2377
|
-
};
|
|
2378
|
-
module.exports = prerelease;
|
|
2379
|
-
},
|
|
2380
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rcompare.js": function(module, __unused_webpack_exports, __nested_webpack_require_40048_40067__) {
|
|
2381
|
-
const compare = __nested_webpack_require_40048_40067__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js");
|
|
2382
|
-
const rcompare = (a, b, loose)=>compare(b, a, loose);
|
|
2383
|
-
module.exports = rcompare;
|
|
2384
|
-
},
|
|
2385
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rsort.js": function(module, __unused_webpack_exports, __nested_webpack_require_40429_40448__) {
|
|
2386
|
-
const compareBuild = __nested_webpack_require_40429_40448__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-build.js");
|
|
2387
|
-
const rsort = (list, loose)=>list.sort((a, b)=>compareBuild(b, a, loose));
|
|
2388
|
-
module.exports = rsort;
|
|
2389
|
-
},
|
|
2390
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/satisfies.js": function(module, __unused_webpack_exports, __nested_webpack_require_40843_40862__) {
|
|
2391
|
-
const Range = __nested_webpack_require_40843_40862__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js");
|
|
2392
|
-
const satisfies = (version, range, options)=>{
|
|
2393
|
-
try {
|
|
2394
|
-
range = new Range(range, options);
|
|
2395
|
-
} catch (er) {
|
|
2396
|
-
return false;
|
|
2397
|
-
}
|
|
2398
|
-
return range.test(version);
|
|
2399
|
-
};
|
|
2400
|
-
module.exports = satisfies;
|
|
2401
|
-
},
|
|
2402
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/sort.js": function(module, __unused_webpack_exports, __nested_webpack_require_41402_41421__) {
|
|
2403
|
-
const compareBuild = __nested_webpack_require_41402_41421__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-build.js");
|
|
2404
|
-
const sort = (list, loose)=>list.sort((a, b)=>compareBuild(a, b, loose));
|
|
2405
|
-
module.exports = sort;
|
|
2406
|
-
},
|
|
2407
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/valid.js": function(module, __unused_webpack_exports, __nested_webpack_require_41810_41829__) {
|
|
2408
|
-
const parse = __nested_webpack_require_41810_41829__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js");
|
|
2409
|
-
const valid = (version, options)=>{
|
|
2410
|
-
const v = parse(version, options);
|
|
2411
|
-
return v ? v.version : null;
|
|
2412
|
-
};
|
|
2413
|
-
module.exports = valid;
|
|
2414
|
-
},
|
|
2415
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/index.js": function(module, __unused_webpack_exports, __nested_webpack_require_42255_42274__) {
|
|
2416
|
-
const internalRe = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js");
|
|
2417
|
-
const constants = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/constants.js");
|
|
2418
|
-
const SemVer = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js");
|
|
2419
|
-
const identifiers = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/identifiers.js");
|
|
2420
|
-
const parse = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js");
|
|
2421
|
-
const valid = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/valid.js");
|
|
2422
|
-
const clean = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/clean.js");
|
|
2423
|
-
const inc = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/inc.js");
|
|
2424
|
-
const diff = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/diff.js");
|
|
2425
|
-
const major = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/major.js");
|
|
2426
|
-
const minor = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/minor.js");
|
|
2427
|
-
const patch = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/patch.js");
|
|
2428
|
-
const prerelease = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/prerelease.js");
|
|
2429
|
-
const compare = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js");
|
|
2430
|
-
const rcompare = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rcompare.js");
|
|
2431
|
-
const compareLoose = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-loose.js");
|
|
2432
|
-
const compareBuild = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-build.js");
|
|
2433
|
-
const sort = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/sort.js");
|
|
2434
|
-
const rsort = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rsort.js");
|
|
2435
|
-
const gt = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gt.js");
|
|
2436
|
-
const lt = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lt.js");
|
|
2437
|
-
const eq = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/eq.js");
|
|
2438
|
-
const neq = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/neq.js");
|
|
2439
|
-
const gte = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gte.js");
|
|
2440
|
-
const lte = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lte.js");
|
|
2441
|
-
const cmp = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/cmp.js");
|
|
2442
|
-
const coerce = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/coerce.js");
|
|
2443
|
-
const Comparator = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/comparator.js");
|
|
2444
|
-
const Range = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js");
|
|
2445
|
-
const satisfies = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/satisfies.js");
|
|
2446
|
-
const toComparators = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/to-comparators.js");
|
|
2447
|
-
const maxSatisfying = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/max-satisfying.js");
|
|
2448
|
-
const minSatisfying = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-satisfying.js");
|
|
2449
|
-
const minVersion = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-version.js");
|
|
2450
|
-
const validRange = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/valid.js");
|
|
2451
|
-
const outside = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/outside.js");
|
|
2452
|
-
const gtr = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/gtr.js");
|
|
2453
|
-
const ltr = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/ltr.js");
|
|
2454
|
-
const intersects = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/intersects.js");
|
|
2455
|
-
const simplifyRange = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/simplify.js");
|
|
2456
|
-
const subset = __nested_webpack_require_42255_42274__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/subset.js");
|
|
2457
|
-
module.exports = {
|
|
2458
|
-
parse,
|
|
2459
|
-
valid,
|
|
2460
|
-
clean,
|
|
2461
|
-
inc,
|
|
2462
|
-
diff,
|
|
2463
|
-
major,
|
|
2464
|
-
minor,
|
|
2465
|
-
patch,
|
|
2466
|
-
prerelease,
|
|
2467
|
-
compare,
|
|
2468
|
-
rcompare,
|
|
2469
|
-
compareLoose,
|
|
2470
|
-
compareBuild,
|
|
2471
|
-
sort,
|
|
2472
|
-
rsort,
|
|
2473
|
-
gt,
|
|
2474
|
-
lt,
|
|
2475
|
-
eq,
|
|
2476
|
-
neq,
|
|
2477
|
-
gte,
|
|
2478
|
-
lte,
|
|
2479
|
-
cmp,
|
|
2480
|
-
coerce,
|
|
2481
|
-
Comparator,
|
|
2482
|
-
Range,
|
|
2483
|
-
satisfies,
|
|
2484
|
-
toComparators,
|
|
2485
|
-
maxSatisfying,
|
|
2486
|
-
minSatisfying,
|
|
2487
|
-
minVersion,
|
|
2488
|
-
validRange,
|
|
2489
|
-
outside,
|
|
2490
|
-
gtr,
|
|
2491
|
-
ltr,
|
|
2492
|
-
intersects,
|
|
2493
|
-
simplifyRange,
|
|
2494
|
-
subset,
|
|
2495
|
-
SemVer,
|
|
2496
|
-
re: internalRe.re,
|
|
2497
|
-
src: internalRe.src,
|
|
2498
|
-
tokens: internalRe.t,
|
|
2499
|
-
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
2500
|
-
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
2501
|
-
compareIdentifiers: identifiers.compareIdentifiers,
|
|
2502
|
-
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
2503
|
-
};
|
|
2504
|
-
},
|
|
2505
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/constants.js": function(module) {
|
|
2506
|
-
const SEMVER_SPEC_VERSION = '2.0.0';
|
|
2507
|
-
const MAX_LENGTH = 256;
|
|
2508
|
-
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
2509
|
-
const MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
2510
|
-
const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
2511
|
-
const RELEASE_TYPES = [
|
|
2512
|
-
'major',
|
|
2513
|
-
'premajor',
|
|
2514
|
-
'minor',
|
|
2515
|
-
'preminor',
|
|
2516
|
-
'patch',
|
|
2517
|
-
'prepatch',
|
|
2518
|
-
'prerelease'
|
|
2519
|
-
];
|
|
2520
|
-
module.exports = {
|
|
2521
|
-
MAX_LENGTH,
|
|
2522
|
-
MAX_SAFE_COMPONENT_LENGTH,
|
|
2523
|
-
MAX_SAFE_BUILD_LENGTH,
|
|
2524
|
-
MAX_SAFE_INTEGER,
|
|
2525
|
-
RELEASE_TYPES,
|
|
2526
|
-
SEMVER_SPEC_VERSION,
|
|
2527
|
-
FLAG_INCLUDE_PRERELEASE: 1,
|
|
2528
|
-
FLAG_LOOSE: 2
|
|
2529
|
-
};
|
|
2530
|
-
},
|
|
2531
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js": function(module) {
|
|
2532
|
-
const debug = 'object' == typeof process && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args)=>console.error('SEMVER', ...args) : ()=>{};
|
|
2533
|
-
module.exports = debug;
|
|
2534
|
-
},
|
|
2535
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/identifiers.js": function(module) {
|
|
2536
|
-
const numeric = /^[0-9]+$/;
|
|
2537
|
-
const compareIdentifiers = (a, b)=>{
|
|
2538
|
-
const anum = numeric.test(a);
|
|
2539
|
-
const bnum = numeric.test(b);
|
|
2540
|
-
if (anum && bnum) {
|
|
2541
|
-
a = +a;
|
|
2542
|
-
b = +b;
|
|
2543
|
-
}
|
|
2544
|
-
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
2545
|
-
};
|
|
2546
|
-
const rcompareIdentifiers = (a, b)=>compareIdentifiers(b, a);
|
|
2547
|
-
module.exports = {
|
|
2548
|
-
compareIdentifiers,
|
|
2549
|
-
rcompareIdentifiers
|
|
2550
|
-
};
|
|
2551
|
-
},
|
|
2552
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/lrucache.js": function(module) {
|
|
2553
|
-
class LRUCache {
|
|
2554
|
-
constructor(){
|
|
2555
|
-
this.max = 1000;
|
|
2556
|
-
this.map = new Map();
|
|
2557
|
-
}
|
|
2558
|
-
get(key) {
|
|
2559
|
-
const value = this.map.get(key);
|
|
2560
|
-
if (void 0 === value) return;
|
|
2561
|
-
this.map.delete(key);
|
|
2562
|
-
this.map.set(key, value);
|
|
2563
|
-
return value;
|
|
2564
|
-
}
|
|
2565
|
-
delete(key) {
|
|
2566
|
-
return this.map.delete(key);
|
|
2567
|
-
}
|
|
2568
|
-
set(key, value) {
|
|
2569
|
-
const deleted = this.delete(key);
|
|
2570
|
-
if (!deleted && void 0 !== value) {
|
|
2571
|
-
if (this.map.size >= this.max) {
|
|
2572
|
-
const firstKey = this.map.keys().next().value;
|
|
2573
|
-
this.delete(firstKey);
|
|
2574
|
-
}
|
|
2575
|
-
this.map.set(key, value);
|
|
2576
|
-
}
|
|
2577
|
-
return this;
|
|
2578
|
-
}
|
|
2579
|
-
}
|
|
2580
|
-
module.exports = LRUCache;
|
|
2581
|
-
},
|
|
2582
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/parse-options.js": function(module) {
|
|
2583
|
-
const looseOption = Object.freeze({
|
|
2584
|
-
loose: true
|
|
2585
|
-
});
|
|
2586
|
-
const emptyOpts = Object.freeze({});
|
|
2587
|
-
const parseOptions = (options)=>{
|
|
2588
|
-
if (!options) return emptyOpts;
|
|
2589
|
-
if ('object' != typeof options) return looseOption;
|
|
2590
|
-
return options;
|
|
2591
|
-
};
|
|
2592
|
-
module.exports = parseOptions;
|
|
2593
|
-
},
|
|
2594
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js": function(module, exports1, __nested_webpack_require_52059_52078__) {
|
|
2595
|
-
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = __nested_webpack_require_52059_52078__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/constants.js");
|
|
2596
|
-
const debug = __nested_webpack_require_52059_52078__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js");
|
|
2597
|
-
exports1 = module.exports = {};
|
|
2598
|
-
const re = exports1.re = [];
|
|
2599
|
-
const safeRe = exports1.safeRe = [];
|
|
2600
|
-
const src = exports1.src = [];
|
|
2601
|
-
const t = exports1.t = {};
|
|
2602
|
-
let R = 0;
|
|
2603
|
-
const LETTERDASHNUMBER = '[a-zA-Z0-9-]';
|
|
2604
|
-
const safeRegexReplacements = [
|
|
2605
|
-
[
|
|
2606
|
-
'\\s',
|
|
2607
|
-
1
|
|
2608
|
-
],
|
|
2609
|
-
[
|
|
2610
|
-
'\\d',
|
|
2611
|
-
MAX_LENGTH
|
|
2612
|
-
],
|
|
2613
|
-
[
|
|
2614
|
-
LETTERDASHNUMBER,
|
|
2615
|
-
MAX_SAFE_BUILD_LENGTH
|
|
2616
|
-
]
|
|
2617
|
-
];
|
|
2618
|
-
const makeSafeRegex = (value)=>{
|
|
2619
|
-
for (const [token, max] of safeRegexReplacements)value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
2620
|
-
return value;
|
|
2621
|
-
};
|
|
2622
|
-
const createToken = (name, value, isGlobal)=>{
|
|
2623
|
-
const safe = makeSafeRegex(value);
|
|
2624
|
-
const index = R++;
|
|
2625
|
-
debug(name, index, value);
|
|
2626
|
-
t[name] = index;
|
|
2627
|
-
src[index] = value;
|
|
2628
|
-
re[index] = new RegExp(value, isGlobal ? 'g' : void 0);
|
|
2629
|
-
safeRe[index] = new RegExp(safe, isGlobal ? 'g' : void 0);
|
|
2630
|
-
};
|
|
2631
|
-
createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*');
|
|
2632
|
-
createToken('NUMERICIDENTIFIERLOOSE', '\\d+');
|
|
2633
|
-
createToken('NONNUMERICIDENTIFIER', `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
2634
|
-
createToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
2635
|
-
createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
2636
|
-
createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
2637
|
-
createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
2638
|
-
createToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
2639
|
-
createToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
2640
|
-
createToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`);
|
|
2641
|
-
createToken('BUILD', `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
2642
|
-
createToken('FULLPLAIN', `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
2643
|
-
createToken('FULL', `^${src[t.FULLPLAIN]}$`);
|
|
2644
|
-
createToken('LOOSEPLAIN', `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
2645
|
-
createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`);
|
|
2646
|
-
createToken('GTLT', '((?:<|>)?=?)');
|
|
2647
|
-
createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
2648
|
-
createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
2649
|
-
createToken('XRANGEPLAIN', `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
2650
|
-
createToken('XRANGEPLAINLOOSE', `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
2651
|
-
createToken('XRANGE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
2652
|
-
createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
2653
|
-
createToken('COERCEPLAIN', `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
2654
|
-
createToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
2655
|
-
createToken('COERCEFULL', src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?` + `(?:${src[t.BUILD]})?` + "(?:$|[^\\d])");
|
|
2656
|
-
createToken('COERCERTL', src[t.COERCE], true);
|
|
2657
|
-
createToken('COERCERTLFULL', src[t.COERCEFULL], true);
|
|
2658
|
-
createToken('LONETILDE', '(?:~>?)');
|
|
2659
|
-
createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
2660
|
-
exports1.tildeTrimReplace = '$1~';
|
|
2661
|
-
createToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
2662
|
-
createToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
2663
|
-
createToken('LONECARET', '(?:\\^)');
|
|
2664
|
-
createToken('CARETTRIM', `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
2665
|
-
exports1.caretTrimReplace = '$1^';
|
|
2666
|
-
createToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
2667
|
-
createToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
2668
|
-
createToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
2669
|
-
createToken('COMPARATOR', `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
2670
|
-
createToken('COMPARATORTRIM', `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
2671
|
-
exports1.comparatorTrimReplace = '$1$2$3';
|
|
2672
|
-
createToken('HYPHENRANGE', `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*\$`);
|
|
2673
|
-
createToken('HYPHENRANGELOOSE', `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*\$`);
|
|
2674
|
-
createToken('STAR', '(<|>)?=?\\s*\\*');
|
|
2675
|
-
createToken('GTE0', '^\\s*>=\\s*0\\.0\\.0\\s*$');
|
|
2676
|
-
createToken('GTE0PRE', '^\\s*>=\\s*0\\.0\\.0-0\\s*$');
|
|
2677
|
-
},
|
|
2678
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/gtr.js": function(module, __unused_webpack_exports, __nested_webpack_require_57799_57818__) {
|
|
2679
|
-
const outside = __nested_webpack_require_57799_57818__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/outside.js");
|
|
2680
|
-
const gtr = (version, range, options)=>outside(version, range, '>', options);
|
|
2681
|
-
module.exports = gtr;
|
|
2682
|
-
},
|
|
2683
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/intersects.js": function(module, __unused_webpack_exports, __nested_webpack_require_58198_58217__) {
|
|
2684
|
-
const Range = __nested_webpack_require_58198_58217__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js");
|
|
2685
|
-
const intersects = (r1, r2, options)=>{
|
|
2686
|
-
r1 = new Range(r1, options);
|
|
2687
|
-
r2 = new Range(r2, options);
|
|
2688
|
-
return r1.intersects(r2, options);
|
|
2689
|
-
};
|
|
2690
|
-
module.exports = intersects;
|
|
2691
|
-
},
|
|
2692
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/ltr.js": function(module, __unused_webpack_exports, __nested_webpack_require_58696_58715__) {
|
|
2693
|
-
const outside = __nested_webpack_require_58696_58715__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/outside.js");
|
|
2694
|
-
const ltr = (version, range, options)=>outside(version, range, '<', options);
|
|
2695
|
-
module.exports = ltr;
|
|
2696
|
-
},
|
|
2697
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/max-satisfying.js": function(module, __unused_webpack_exports, __nested_webpack_require_59099_59118__) {
|
|
2698
|
-
const SemVer = __nested_webpack_require_59099_59118__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js");
|
|
2699
|
-
const Range = __nested_webpack_require_59099_59118__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js");
|
|
2700
|
-
const maxSatisfying = (versions, range, options)=>{
|
|
2701
|
-
let max = null;
|
|
2702
|
-
let maxSV = null;
|
|
2703
|
-
let rangeObj = null;
|
|
2704
|
-
try {
|
|
2705
|
-
rangeObj = new Range(range, options);
|
|
2706
|
-
} catch (er) {
|
|
2707
|
-
return null;
|
|
2708
|
-
}
|
|
2709
|
-
versions.forEach((v)=>{
|
|
2710
|
-
if (rangeObj.test(v)) {
|
|
2711
|
-
if (!max || -1 === maxSV.compare(v)) {
|
|
2712
|
-
max = v;
|
|
2713
|
-
maxSV = new SemVer(max, options);
|
|
2714
|
-
}
|
|
2715
|
-
}
|
|
2716
|
-
});
|
|
2717
|
-
return max;
|
|
2718
|
-
};
|
|
2719
|
-
module.exports = maxSatisfying;
|
|
2720
|
-
},
|
|
2721
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-satisfying.js": function(module, __unused_webpack_exports, __nested_webpack_require_60156_60175__) {
|
|
2722
|
-
const SemVer = __nested_webpack_require_60156_60175__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js");
|
|
2723
|
-
const Range = __nested_webpack_require_60156_60175__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js");
|
|
2724
|
-
const minSatisfying = (versions, range, options)=>{
|
|
2725
|
-
let min = null;
|
|
2726
|
-
let minSV = null;
|
|
2727
|
-
let rangeObj = null;
|
|
2728
|
-
try {
|
|
2729
|
-
rangeObj = new Range(range, options);
|
|
2730
|
-
} catch (er) {
|
|
2731
|
-
return null;
|
|
2732
|
-
}
|
|
2733
|
-
versions.forEach((v)=>{
|
|
2734
|
-
if (rangeObj.test(v)) {
|
|
2735
|
-
if (!min || 1 === minSV.compare(v)) {
|
|
2736
|
-
min = v;
|
|
2737
|
-
minSV = new SemVer(min, options);
|
|
2738
|
-
}
|
|
2739
|
-
}
|
|
2740
|
-
});
|
|
2741
|
-
return min;
|
|
2742
|
-
};
|
|
2743
|
-
module.exports = minSatisfying;
|
|
2744
|
-
},
|
|
2745
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-version.js": function(module, __unused_webpack_exports, __nested_webpack_require_61209_61228__) {
|
|
2746
|
-
const SemVer = __nested_webpack_require_61209_61228__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js");
|
|
2747
|
-
const Range = __nested_webpack_require_61209_61228__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js");
|
|
2748
|
-
const gt = __nested_webpack_require_61209_61228__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gt.js");
|
|
2749
|
-
const minVersion = (range, loose)=>{
|
|
2750
|
-
range = new Range(range, loose);
|
|
2751
|
-
let minver = new SemVer('0.0.0');
|
|
2752
|
-
if (range.test(minver)) return minver;
|
|
2753
|
-
minver = new SemVer('0.0.0-0');
|
|
2754
|
-
if (range.test(minver)) return minver;
|
|
2755
|
-
minver = null;
|
|
2756
|
-
for(let i = 0; i < range.set.length; ++i){
|
|
2757
|
-
const comparators = range.set[i];
|
|
2758
|
-
let setMin = null;
|
|
2759
|
-
comparators.forEach((comparator)=>{
|
|
2760
|
-
const compver = new SemVer(comparator.semver.version);
|
|
2761
|
-
switch(comparator.operator){
|
|
2762
|
-
case '>':
|
|
2763
|
-
if (0 === compver.prerelease.length) compver.patch++;
|
|
2764
|
-
else compver.prerelease.push(0);
|
|
2765
|
-
compver.raw = compver.format();
|
|
2766
|
-
case '':
|
|
2767
|
-
case '>=':
|
|
2768
|
-
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
2769
|
-
break;
|
|
2770
|
-
case '<':
|
|
2771
|
-
case '<=':
|
|
2772
|
-
break;
|
|
2773
|
-
default:
|
|
2774
|
-
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
2775
|
-
}
|
|
2776
|
-
});
|
|
2777
|
-
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
2778
|
-
}
|
|
2779
|
-
if (minver && range.test(minver)) return minver;
|
|
2780
|
-
return null;
|
|
2781
|
-
};
|
|
2782
|
-
module.exports = minVersion;
|
|
2783
|
-
},
|
|
2784
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/outside.js": function(module, __unused_webpack_exports, __nested_webpack_require_63273_63292__) {
|
|
2785
|
-
const SemVer = __nested_webpack_require_63273_63292__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js");
|
|
2786
|
-
const Comparator = __nested_webpack_require_63273_63292__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/comparator.js");
|
|
2787
|
-
const { ANY } = Comparator;
|
|
2788
|
-
const Range = __nested_webpack_require_63273_63292__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js");
|
|
2789
|
-
const satisfies = __nested_webpack_require_63273_63292__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/satisfies.js");
|
|
2790
|
-
const gt = __nested_webpack_require_63273_63292__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gt.js");
|
|
2791
|
-
const lt = __nested_webpack_require_63273_63292__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lt.js");
|
|
2792
|
-
const lte = __nested_webpack_require_63273_63292__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lte.js");
|
|
2793
|
-
const gte = __nested_webpack_require_63273_63292__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gte.js");
|
|
2794
|
-
const outside = (version, range, hilo, options)=>{
|
|
2795
|
-
version = new SemVer(version, options);
|
|
2796
|
-
range = new Range(range, options);
|
|
2797
|
-
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
2798
|
-
switch(hilo){
|
|
2799
|
-
case '>':
|
|
2800
|
-
gtfn = gt;
|
|
2801
|
-
ltefn = lte;
|
|
2802
|
-
ltfn = lt;
|
|
2803
|
-
comp = '>';
|
|
2804
|
-
ecomp = '>=';
|
|
2805
|
-
break;
|
|
2806
|
-
case '<':
|
|
2807
|
-
gtfn = lt;
|
|
2808
|
-
ltefn = gte;
|
|
2809
|
-
ltfn = gt;
|
|
2810
|
-
comp = '<';
|
|
2811
|
-
ecomp = '<=';
|
|
2812
|
-
break;
|
|
2813
|
-
default:
|
|
2814
|
-
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
2815
|
-
}
|
|
2816
|
-
if (satisfies(version, range, options)) return false;
|
|
2817
|
-
for(let i = 0; i < range.set.length; ++i){
|
|
2818
|
-
const comparators = range.set[i];
|
|
2819
|
-
let high = null;
|
|
2820
|
-
let low = null;
|
|
2821
|
-
comparators.forEach((comparator)=>{
|
|
2822
|
-
if (comparator.semver === ANY) comparator = new Comparator('>=0.0.0');
|
|
2823
|
-
high = high || comparator;
|
|
2824
|
-
low = low || comparator;
|
|
2825
|
-
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
2826
|
-
else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
|
|
2827
|
-
});
|
|
2828
|
-
if (high.operator === comp || high.operator === ecomp) return false;
|
|
2829
|
-
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
|
|
2830
|
-
if (low.operator === ecomp && ltfn(version, low.semver)) return false;
|
|
2831
|
-
}
|
|
2832
|
-
return true;
|
|
2833
|
-
};
|
|
2834
|
-
module.exports = outside;
|
|
2835
|
-
},
|
|
2836
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/simplify.js": function(module, __unused_webpack_exports, __nested_webpack_require_66261_66280__) {
|
|
2837
|
-
const satisfies = __nested_webpack_require_66261_66280__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/satisfies.js");
|
|
2838
|
-
const compare = __nested_webpack_require_66261_66280__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js");
|
|
2839
|
-
module.exports = (versions, range, options)=>{
|
|
2840
|
-
const set = [];
|
|
2841
|
-
let first = null;
|
|
2842
|
-
let prev = null;
|
|
2843
|
-
const v = versions.sort((a, b)=>compare(a, b, options));
|
|
2844
|
-
for (const version of v){
|
|
2845
|
-
const included = satisfies(version, range, options);
|
|
2846
|
-
if (included) {
|
|
2847
|
-
prev = version;
|
|
2848
|
-
if (!first) first = version;
|
|
2849
|
-
} else {
|
|
2850
|
-
if (prev) set.push([
|
|
2851
|
-
first,
|
|
2852
|
-
prev
|
|
2853
|
-
]);
|
|
2854
|
-
prev = null;
|
|
2855
|
-
first = null;
|
|
2856
|
-
}
|
|
2857
|
-
}
|
|
2858
|
-
if (first) set.push([
|
|
2859
|
-
first,
|
|
2860
|
-
null
|
|
2861
|
-
]);
|
|
2862
|
-
const ranges = [];
|
|
2863
|
-
for (const [min, max] of set)if (min === max) ranges.push(min);
|
|
2864
|
-
else if (max || min !== v[0]) {
|
|
2865
|
-
if (max) {
|
|
2866
|
-
if (min === v[0]) ranges.push(`<=${max}`);
|
|
2867
|
-
else ranges.push(`${min} - ${max}`);
|
|
2868
|
-
} else ranges.push(`>=${min}`);
|
|
2869
|
-
} else ranges.push('*');
|
|
2870
|
-
const simplified = ranges.join(' || ');
|
|
2871
|
-
const original = 'string' == typeof range.raw ? range.raw : String(range);
|
|
2872
|
-
return simplified.length < original.length ? simplified : range;
|
|
2873
|
-
};
|
|
2874
|
-
},
|
|
2875
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/subset.js": function(module, __unused_webpack_exports, __nested_webpack_require_68062_68081__) {
|
|
2876
|
-
const Range = __nested_webpack_require_68062_68081__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js");
|
|
2877
|
-
const Comparator = __nested_webpack_require_68062_68081__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/comparator.js");
|
|
2878
|
-
const { ANY } = Comparator;
|
|
2879
|
-
const satisfies = __nested_webpack_require_68062_68081__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/satisfies.js");
|
|
2880
|
-
const compare = __nested_webpack_require_68062_68081__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js");
|
|
2881
|
-
const subset = (sub, dom, options = {})=>{
|
|
2882
|
-
if (sub === dom) return true;
|
|
2883
|
-
sub = new Range(sub, options);
|
|
2884
|
-
dom = new Range(dom, options);
|
|
2885
|
-
let sawNonNull = false;
|
|
2886
|
-
OUTER: for (const simpleSub of sub.set){
|
|
2887
|
-
for (const simpleDom of dom.set){
|
|
2888
|
-
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
2889
|
-
sawNonNull = sawNonNull || null !== isSub;
|
|
2890
|
-
if (isSub) continue OUTER;
|
|
2891
|
-
}
|
|
2892
|
-
if (sawNonNull) return false;
|
|
2893
|
-
}
|
|
2894
|
-
return true;
|
|
2895
|
-
};
|
|
2896
|
-
const minimumVersionWithPreRelease = [
|
|
2897
|
-
new Comparator('>=0.0.0-0')
|
|
2898
|
-
];
|
|
2899
|
-
const minimumVersion = [
|
|
2900
|
-
new Comparator('>=0.0.0')
|
|
2901
|
-
];
|
|
2902
|
-
const simpleSubset = (sub, dom, options)=>{
|
|
2903
|
-
if (sub === dom) return true;
|
|
2904
|
-
if (1 === sub.length && sub[0].semver === ANY) {
|
|
2905
|
-
if (1 === dom.length && dom[0].semver === ANY) return true;
|
|
2906
|
-
sub = options.includePrerelease ? minimumVersionWithPreRelease : minimumVersion;
|
|
2907
|
-
}
|
|
2908
|
-
if (1 === dom.length && dom[0].semver === ANY) {
|
|
2909
|
-
if (options.includePrerelease) return true;
|
|
2910
|
-
dom = minimumVersion;
|
|
2911
|
-
}
|
|
2912
|
-
const eqSet = new Set();
|
|
2913
|
-
let gt, lt;
|
|
2914
|
-
for (const c of sub)if ('>' === c.operator || '>=' === c.operator) gt = higherGT(gt, c, options);
|
|
2915
|
-
else if ('<' === c.operator || '<=' === c.operator) lt = lowerLT(lt, c, options);
|
|
2916
|
-
else eqSet.add(c.semver);
|
|
2917
|
-
if (eqSet.size > 1) return null;
|
|
2918
|
-
let gtltComp;
|
|
2919
|
-
if (gt && lt) {
|
|
2920
|
-
gtltComp = compare(gt.semver, lt.semver, options);
|
|
2921
|
-
if (gtltComp > 0) return null;
|
|
2922
|
-
if (0 === gtltComp && ('>=' !== gt.operator || '<=' !== lt.operator)) return null;
|
|
2923
|
-
}
|
|
2924
|
-
for (const eq of eqSet){
|
|
2925
|
-
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
2926
|
-
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
2927
|
-
for (const c of dom)if (!satisfies(eq, String(c), options)) return false;
|
|
2928
|
-
return true;
|
|
2929
|
-
}
|
|
2930
|
-
let higher, lower;
|
|
2931
|
-
let hasDomLT, hasDomGT;
|
|
2932
|
-
let needDomLTPre = !!lt && !options.includePrerelease && !!lt.semver.prerelease.length && lt.semver;
|
|
2933
|
-
let needDomGTPre = !!gt && !options.includePrerelease && !!gt.semver.prerelease.length && gt.semver;
|
|
2934
|
-
if (needDomLTPre && 1 === needDomLTPre.prerelease.length && '<' === lt.operator && 0 === needDomLTPre.prerelease[0]) needDomLTPre = false;
|
|
2935
|
-
for (const c of dom){
|
|
2936
|
-
hasDomGT = hasDomGT || '>' === c.operator || '>=' === c.operator;
|
|
2937
|
-
hasDomLT = hasDomLT || '<' === c.operator || '<=' === c.operator;
|
|
2938
|
-
if (gt) {
|
|
2939
|
-
if (needDomGTPre) {
|
|
2940
|
-
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;
|
|
2941
|
-
}
|
|
2942
|
-
if ('>' === c.operator || '>=' === c.operator) {
|
|
2943
|
-
higher = higherGT(gt, c, options);
|
|
2944
|
-
if (higher === c && higher !== gt) return false;
|
|
2945
|
-
} else if ('>=' === gt.operator && !satisfies(gt.semver, String(c), options)) return false;
|
|
2946
|
-
}
|
|
2947
|
-
if (lt) {
|
|
2948
|
-
if (needDomLTPre) {
|
|
2949
|
-
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;
|
|
2950
|
-
}
|
|
2951
|
-
if ('<' === c.operator || '<=' === c.operator) {
|
|
2952
|
-
lower = lowerLT(lt, c, options);
|
|
2953
|
-
if (lower === c && lower !== lt) return false;
|
|
2954
|
-
} else if ('<=' === lt.operator && !satisfies(lt.semver, String(c), options)) return false;
|
|
2955
|
-
}
|
|
2956
|
-
if (!c.operator && (lt || gt) && 0 !== gtltComp) return false;
|
|
2957
|
-
}
|
|
2958
|
-
if (gt && hasDomLT && !lt && 0 !== gtltComp) return false;
|
|
2959
|
-
if (lt && hasDomGT && !gt && 0 !== gtltComp) return false;
|
|
2960
|
-
if (needDomGTPre || needDomLTPre) return false;
|
|
2961
|
-
return true;
|
|
2962
|
-
};
|
|
2963
|
-
const higherGT = (a, b, options)=>{
|
|
2964
|
-
if (!a) return b;
|
|
2965
|
-
const comp = compare(a.semver, b.semver, options);
|
|
2966
|
-
return comp > 0 ? a : comp < 0 ? b : '>' === b.operator && '>=' === a.operator ? b : a;
|
|
2967
|
-
};
|
|
2968
|
-
const lowerLT = (a, b, options)=>{
|
|
2969
|
-
if (!a) return b;
|
|
2970
|
-
const comp = compare(a.semver, b.semver, options);
|
|
2971
|
-
return comp < 0 ? a : comp > 0 ? b : '<' === b.operator && '<=' === a.operator ? b : a;
|
|
2972
|
-
};
|
|
2973
|
-
module.exports = subset;
|
|
2974
|
-
},
|
|
2975
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/to-comparators.js": function(module, __unused_webpack_exports, __nested_webpack_require_73821_73840__) {
|
|
2976
|
-
const Range = __nested_webpack_require_73821_73840__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js");
|
|
2977
|
-
const toComparators = (range, options)=>new Range(range, options).set.map((comp)=>comp.map((c)=>c.value).join(' ').trim().split(' '));
|
|
2978
|
-
module.exports = toComparators;
|
|
2979
|
-
},
|
|
2980
|
-
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/valid.js": function(module, __unused_webpack_exports, __nested_webpack_require_74279_74298__) {
|
|
2981
|
-
const Range = __nested_webpack_require_74279_74298__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js");
|
|
2982
|
-
const validRange = (range, options)=>{
|
|
2983
|
-
try {
|
|
2984
|
-
return new Range(range, options).range || '*';
|
|
2985
|
-
} catch (er) {
|
|
2986
|
-
return null;
|
|
2987
|
-
}
|
|
2988
|
-
};
|
|
2989
|
-
module.exports = validRange;
|
|
2990
|
-
}
|
|
2991
|
-
};
|
|
2992
|
-
var __webpack_module_cache__ = {};
|
|
2993
|
-
function __nested_webpack_require_74713__(moduleId) {
|
|
2994
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
2995
|
-
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
2996
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
2997
|
-
exports: {}
|
|
2998
|
-
};
|
|
2999
|
-
__webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_74713__);
|
|
3000
|
-
return module.exports;
|
|
3001
|
-
}
|
|
3002
|
-
(()=>{
|
|
3003
|
-
__nested_webpack_require_74713__.n = function(module) {
|
|
3004
|
-
var getter = module && module.__esModule ? function() {
|
|
3005
|
-
return module['default'];
|
|
3006
|
-
} : function() {
|
|
3007
|
-
return module;
|
|
3008
|
-
};
|
|
3009
|
-
__nested_webpack_require_74713__.d(getter, {
|
|
3010
|
-
a: getter
|
|
3011
|
-
});
|
|
3012
|
-
return getter;
|
|
3013
|
-
};
|
|
3014
|
-
})();
|
|
3015
|
-
(()=>{
|
|
3016
|
-
__nested_webpack_require_74713__.d = function(exports1, definition) {
|
|
3017
|
-
for(var key in definition)if (__nested_webpack_require_74713__.o(definition, key) && !__nested_webpack_require_74713__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
3018
|
-
enumerable: true,
|
|
3019
|
-
get: definition[key]
|
|
3020
|
-
});
|
|
3021
|
-
};
|
|
3022
|
-
})();
|
|
3023
|
-
(()=>{
|
|
3024
|
-
__nested_webpack_require_74713__.o = function(obj, prop) {
|
|
3025
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
3026
|
-
};
|
|
3027
|
-
})();
|
|
3028
|
-
const isNullable = (value)=>null == value;
|
|
3029
|
-
const checkForRollback = (bundles, currentBundleId)=>{
|
|
3030
|
-
if (currentBundleId === core_namespaceObject.NIL_UUID) return false;
|
|
3031
|
-
if (0 === bundles.length) return true;
|
|
3032
|
-
const enabled = bundles.find((item)=>item.id === currentBundleId)?.enabled;
|
|
3033
|
-
const availableOldVersion = bundles.find((item)=>item.id.localeCompare(currentBundleId) < 0 && item.enabled)?.enabled;
|
|
3034
|
-
if (isNullable(enabled)) return Boolean(availableOldVersion);
|
|
3035
|
-
return !enabled;
|
|
3036
|
-
};
|
|
3037
|
-
var semver = __nested_webpack_require_74713__("../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/index.js");
|
|
3038
|
-
var semver_default = /*#__PURE__*/ __nested_webpack_require_74713__.n(semver);
|
|
3039
|
-
const semverSatisfies = (targetAppVersion, currentVersion)=>{
|
|
3040
|
-
const currentCoerce = semver_default().coerce(currentVersion);
|
|
3041
|
-
if (!currentCoerce) throw new Error("Invalid current version");
|
|
3042
|
-
return semver_default().satisfies(currentCoerce.version, targetAppVersion);
|
|
3043
|
-
};
|
|
3044
|
-
const findLatestBundles = (bundles)=>bundles?.filter((item)=>item.enabled)?.sort((a, b)=>b.id.localeCompare(a.id))?.[0] ?? null;
|
|
3045
|
-
const getUpdateInfo = async (bundles, { platform, bundleId, appVersion })=>{
|
|
3046
|
-
const filteredBundles = bundles.filter((b)=>b.platform === platform && semverSatisfies(b.targetAppVersion, appVersion));
|
|
3047
|
-
const isRollback = checkForRollback(filteredBundles, bundleId);
|
|
3048
|
-
const latestBundle = await findLatestBundles(filteredBundles);
|
|
3049
|
-
if (!latestBundle) {
|
|
3050
|
-
if (isRollback) return {
|
|
3051
|
-
id: core_namespaceObject.NIL_UUID,
|
|
3052
|
-
forceUpdate: true,
|
|
3053
|
-
fileUrl: null,
|
|
3054
|
-
fileHash: null,
|
|
3055
|
-
status: "ROLLBACK"
|
|
3056
|
-
};
|
|
3057
|
-
return null;
|
|
3058
|
-
}
|
|
3059
|
-
if (latestBundle.fileUrl) {
|
|
3060
|
-
if (isRollback) {
|
|
3061
|
-
if (latestBundle.id === bundleId) return null;
|
|
3062
|
-
if (latestBundle.id.localeCompare(bundleId) > 0) return {
|
|
3063
|
-
id: latestBundle.id,
|
|
3064
|
-
forceUpdate: latestBundle.forceUpdate,
|
|
3065
|
-
fileUrl: latestBundle.fileUrl,
|
|
3066
|
-
fileHash: latestBundle.fileHash,
|
|
3067
|
-
status: "UPDATE"
|
|
3068
|
-
};
|
|
3069
|
-
return {
|
|
3070
|
-
id: latestBundle.id,
|
|
3071
|
-
forceUpdate: true,
|
|
3072
|
-
fileUrl: latestBundle.fileUrl,
|
|
3073
|
-
fileHash: latestBundle.fileHash,
|
|
3074
|
-
status: "ROLLBACK"
|
|
3075
|
-
};
|
|
3076
|
-
}
|
|
3077
|
-
}
|
|
3078
|
-
if (latestBundle.id.localeCompare(bundleId) > 0) return {
|
|
3079
|
-
id: latestBundle.id,
|
|
3080
|
-
forceUpdate: latestBundle.forceUpdate,
|
|
3081
|
-
fileUrl: latestBundle.fileUrl,
|
|
3082
|
-
fileHash: latestBundle.fileHash,
|
|
3083
|
-
status: "UPDATE"
|
|
3084
|
-
};
|
|
3085
|
-
return null;
|
|
3086
|
-
};
|
|
1676
|
+
const js_namespaceObject = require("@hot-updater/js");
|
|
3087
1677
|
const ensureUpdateInfo = async (source, { appVersion, bundleId, platform }, requestHeaders)=>{
|
|
3088
1678
|
try {
|
|
3089
1679
|
let bundles = null;
|
|
@@ -3102,6 +1692,7 @@ const ensureUpdateInfo = async (source, { appVersion, bundleId, platform }, requ
|
|
|
3102
1692
|
return [];
|
|
3103
1693
|
}
|
|
3104
1694
|
};
|
|
1695
|
+
const core_namespaceObject = require("@hot-updater/core");
|
|
3105
1696
|
var external_react_native_ = __webpack_require__("react-native");
|
|
3106
1697
|
const HotUpdater = {
|
|
3107
1698
|
HOT_UPDATER_BUNDLE_ID: core_namespaceObject.NIL_UUID
|
|
@@ -3187,7 +1778,7 @@ async function checkUpdate(config) {
|
|
|
3187
1778
|
let updateInfo = null;
|
|
3188
1779
|
if (Array.isArray(ensuredUpdateInfo)) {
|
|
3189
1780
|
const bundles = ensuredUpdateInfo;
|
|
3190
|
-
updateInfo = await getUpdateInfo(bundles, {
|
|
1781
|
+
updateInfo = await (0, js_namespaceObject.getUpdateInfo)(bundles, {
|
|
3191
1782
|
appVersion: currentAppVersion,
|
|
3192
1783
|
bundleId: currentBundleId,
|
|
3193
1784
|
platform
|
|
@@ -3262,7 +1853,7 @@ const src_HotUpdater = {
|
|
|
3262
1853
|
addListener: addListener,
|
|
3263
1854
|
ensureUpdateInfo: ensureUpdateInfo,
|
|
3264
1855
|
updateBundle: updateBundle,
|
|
3265
|
-
getUpdateInfo: getUpdateInfo
|
|
1856
|
+
getUpdateInfo: js_namespaceObject.getUpdateInfo
|
|
3266
1857
|
};
|
|
3267
1858
|
var __webpack_export_target__ = exports;
|
|
3268
1859
|
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|