vite-plus 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/LICENSE +29 -29
  2. package/README.md +2 -2
  3. package/binding/index.cjs +60 -55
  4. package/binding/index.d.cts +125 -14
  5. package/dist/{agent-Wqx0MPk0.js → agent-C5jMYVfB.js} +3 -2
  6. package/dist/bin.js +89 -58
  7. package/dist/cli-parse-DHE8NrBU.js +13 -0
  8. package/dist/client/bundledDevClient.mjs +1 -1
  9. package/dist/client/client.mjs +1 -1
  10. package/dist/client/env.mjs +1 -1
  11. package/dist/client.d.ts +1 -1
  12. package/dist/config/bin.js +83 -55
  13. package/dist/{constants-Bn-U8o4v.js → constants-0IAVgpox.js} +3 -3
  14. package/dist/create/bin.d.ts +13 -5
  15. package/dist/create/bin.js +37 -190
  16. package/dist/{define-config-WiVlryJ2.cjs → define-config-DIE9de46.cjs} +1 -1
  17. package/dist/{define-config-DWoAkNdp.d.ts → define-config-DPNEJxPz.d.ts} +5 -9
  18. package/dist/{define-config-GXUdVT-0.js → define-config-U3_xg7i-.js} +2 -2
  19. package/dist/define-config.cjs +1 -1
  20. package/dist/define-config.d.ts +1 -1
  21. package/dist/define-config.js +1 -1
  22. package/dist/dist-DfmT__Aw.js +619 -0
  23. package/dist/{editor-CC4DqODz.js → editor-B5-lvRaU.js} +68 -40
  24. package/dist/hooks/bin.js +9 -114
  25. package/dist/{hooks-DFqViZqZ.js → hooks-C-4gykWR.js} +1 -1
  26. package/dist/index.cjs +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.js +2 -2
  29. package/dist/internal.d.ts +1 -1
  30. package/dist/internal.js +1 -1
  31. package/dist/migration/bin.js +24 -143
  32. package/dist/migration/compat/worker.js +1 -1
  33. package/dist/module-runner.d.ts +1 -1
  34. package/dist/module-runner.js +1 -1
  35. package/dist/{oxlint-plugin-config-DX5ezKbB.js → oxlint-plugin-config-Drdl67Xp.js} +1 -1
  36. package/dist/oxlint-plugin.d.ts +2 -2
  37. package/dist/oxlint-plugin.js +1 -1
  38. package/dist/{pack-PvUg_xpv.d.ts → pack-BK38MLVZ.d.ts} +1 -1
  39. package/dist/pack-bin.d.ts +2 -3
  40. package/dist/pack-bin.js +5 -622
  41. package/dist/pack-client.d.ts +1 -1
  42. package/dist/pack.d.ts +2 -2
  43. package/dist/pack.js +1 -1
  44. package/dist/{package-CBe9EWPY.js → package-BZz2Ij68.js} +1 -1
  45. package/dist/{prompts-DF3yU-eU.js → prompts-CtzEgFY-.js} +3 -1400
  46. package/dist/{report-ZNR1Mk6h.js → report-CK5TnTsr.js} +1 -0
  47. package/dist/{resolve-vite-config-ipGb39Jo.js → resolve-vite-config-CGks1xR7.js} +3 -3
  48. package/dist/resolve-vite-config-Dnmc-lBc.js +2 -0
  49. package/dist/semver-CaDAb8vV.js +1400 -0
  50. package/dist/staged/bin.js +83 -218
  51. package/dist/sync-versions/bin.d.ts +1 -0
  52. package/dist/sync-versions/bin.js +3884 -0
  53. package/dist/sync-versions/bin.mjs +13323 -0
  54. package/dist/toolchain.js +9 -9
  55. package/dist/toolchain.json +9 -9
  56. package/dist/{tsconfig-LD2QhQ0O.js → tsconfig-CUggNuJR.js} +2 -2
  57. package/dist/{tsconfig-BVHG3DpR.js → tsconfig-VAbm4ZzJ.js} +1 -1
  58. package/dist/tsgolint-path.d.ts +3 -4
  59. package/dist/types/customEvent.d.ts +1 -1
  60. package/dist/types/hmrPayload.d.ts +1 -1
  61. package/dist/types/hot.d.ts +1 -1
  62. package/dist/types/import-meta.d.ts +1 -1
  63. package/dist/types/importGlob.d.ts +1 -1
  64. package/dist/types/importMeta.d.ts +1 -1
  65. package/dist/types/metadata.d.ts +1 -1
  66. package/dist/version.d.ts +2 -3
  67. package/dist/version.js +2 -2
  68. package/dist/versions.js +4 -4
  69. package/dist/vitest-ecosystem-BiRqcaRI.js +23 -0
  70. package/docs/guide/check.md +1 -0
  71. package/docs/guide/ci.md +42 -2
  72. package/docs/guide/env.md +124 -52
  73. package/docs/guide/ide-integration.md +14 -2
  74. package/docs/guide/index.md +1 -1
  75. package/docs/guide/install.md +3 -1
  76. package/docs/guide/installer-env-vars.md +10 -0
  77. package/docs/guide/migrate-rules.md +57 -2
  78. package/package.json +17 -19
  79. package/dist/lib-L3DWSRQp.js +0 -75
  80. package/dist/{log-update-DHZRyJ2m.js → log-update-CoW8Z4Dl.js} +1 -1
@@ -1,7 +1,8 @@
1
1
  import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-CMFfr-1z.js";
2
2
  import { t as accent } from "./terminal-MKGAuy-p.js";
3
- import { f as VITE_PLUS_VERSION } from "./constants-Bn-U8o4v.js";
3
+ import { f as VITE_PLUS_VERSION } from "./constants-0IAVgpox.js";
4
4
  import { a as writeJsonFile, i as readJsonFile } from "./json-cULBl7Pi.js";
5
+ import { t as require_semver } from "./semver-CaDAb8vV.js";
5
6
  import { n as runCommandSilently } from "./command-CguLh2KL.js";
6
7
  import { t as require_dist } from "./dist-BDYZP12R.js";
7
8
  import path from "node:path";
@@ -1706,1404 +1707,6 @@ const text = (opts) => {
1706
1707
  }).prompt();
1707
1708
  };
1708
1709
  //#endregion
1709
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js
1710
- var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1711
- module.exports = {
1712
- MAX_LENGTH: 256,
1713
- MAX_SAFE_COMPONENT_LENGTH: 16,
1714
- MAX_SAFE_BUILD_LENGTH: 250,
1715
- MAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER ||
1716
- /* istanbul ignore next */ 9007199254740991,
1717
- RELEASE_TYPES: [
1718
- "major",
1719
- "premajor",
1720
- "minor",
1721
- "preminor",
1722
- "patch",
1723
- "prepatch",
1724
- "prerelease"
1725
- ],
1726
- SEMVER_SPEC_VERSION: "2.0.0",
1727
- FLAG_INCLUDE_PRERELEASE: 1,
1728
- FLAG_LOOSE: 2
1729
- };
1730
- }));
1731
- //#endregion
1732
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js
1733
- var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1734
- module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
1735
- }));
1736
- //#endregion
1737
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js
1738
- var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1739
- const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
1740
- const debug = require_debug();
1741
- exports = module.exports = {};
1742
- const re = exports.re = [];
1743
- const safeRe = exports.safeRe = [];
1744
- const src = exports.src = [];
1745
- const safeSrc = exports.safeSrc = [];
1746
- const t = exports.t = {};
1747
- let R = 0;
1748
- const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
1749
- const safeRegexReplacements = [
1750
- ["\\s", 1],
1751
- ["\\d", MAX_LENGTH],
1752
- [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
1753
- ];
1754
- const makeSafeRegex = (value) => {
1755
- for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
1756
- return value;
1757
- };
1758
- const createToken = (name, value, isGlobal) => {
1759
- const safe = makeSafeRegex(value);
1760
- const index = R++;
1761
- debug(name, index, value);
1762
- t[name] = index;
1763
- src[index] = value;
1764
- safeSrc[index] = safe;
1765
- re[index] = new RegExp(value, isGlobal ? "g" : void 0);
1766
- safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
1767
- };
1768
- createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
1769
- createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
1770
- createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
1771
- createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
1772
- createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
1773
- createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
1774
- createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
1775
- createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
1776
- createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
1777
- createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
1778
- createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
1779
- createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
1780
- createToken("FULL", `^${src[t.FULLPLAIN]}$`);
1781
- createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
1782
- createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
1783
- createToken("GTLT", "((?:<|>)?=?)");
1784
- createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
1785
- createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
1786
- createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
1787
- createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
1788
- createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
1789
- createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
1790
- createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
1791
- createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
1792
- createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
1793
- createToken("COERCERTL", src[t.COERCE], true);
1794
- createToken("COERCERTLFULL", src[t.COERCEFULL], true);
1795
- createToken("LONETILDE", "(?:~>?)");
1796
- createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
1797
- exports.tildeTrimReplace = "$1~";
1798
- createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
1799
- createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
1800
- createToken("LONECARET", "(?:\\^)");
1801
- createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
1802
- exports.caretTrimReplace = "$1^";
1803
- createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
1804
- createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
1805
- createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
1806
- createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
1807
- createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
1808
- exports.comparatorTrimReplace = "$1$2$3";
1809
- createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
1810
- createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
1811
- createToken("STAR", "(<|>)?=?\\s*\\*");
1812
- createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
1813
- createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
1814
- }));
1815
- //#endregion
1816
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js
1817
- var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1818
- const looseOption = Object.freeze({ loose: true });
1819
- const emptyOpts = Object.freeze({});
1820
- const parseOptions = (options) => {
1821
- if (!options) return emptyOpts;
1822
- if (typeof options !== "object") return looseOption;
1823
- return options;
1824
- };
1825
- module.exports = parseOptions;
1826
- }));
1827
- //#endregion
1828
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js
1829
- var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1830
- const numeric = /^[0-9]+$/;
1831
- const compareIdentifiers = (a, b) => {
1832
- if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
1833
- const anum = numeric.test(a);
1834
- const bnum = numeric.test(b);
1835
- if (anum && bnum) {
1836
- a = +a;
1837
- b = +b;
1838
- }
1839
- return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
1840
- };
1841
- const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
1842
- module.exports = {
1843
- compareIdentifiers,
1844
- rcompareIdentifiers
1845
- };
1846
- }));
1847
- //#endregion
1848
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js
1849
- var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1850
- const debug = require_debug();
1851
- const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
1852
- const { safeRe: re, t } = require_re();
1853
- const parseOptions = require_parse_options();
1854
- const { compareIdentifiers } = require_identifiers();
1855
- const isPrereleaseIdentifier = (prerelease, identifier) => {
1856
- const identifiers = identifier.split(".");
1857
- if (identifiers.length > prerelease.length) return false;
1858
- for (let i = 0; i < identifiers.length; i++) if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) return false;
1859
- return true;
1860
- };
1861
- module.exports = class SemVer {
1862
- constructor(version, options) {
1863
- options = parseOptions(options);
1864
- if (version instanceof SemVer) {
1865
- if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
1866
- else version = version.version;
1867
- } else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
1868
- if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
1869
- debug("SemVer", version, options);
1870
- this.options = options;
1871
- this.loose = !!options.loose;
1872
- this.includePrerelease = !!options.includePrerelease;
1873
- const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
1874
- if (!m) throw new TypeError(`Invalid Version: ${version}`);
1875
- this.raw = version;
1876
- this.major = +m[1];
1877
- this.minor = +m[2];
1878
- this.patch = +m[3];
1879
- if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
1880
- if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
1881
- if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
1882
- if (!m[4]) this.prerelease = [];
1883
- else this.prerelease = m[4].split(".").map((id) => {
1884
- if (/^[0-9]+$/.test(id)) {
1885
- const num = +id;
1886
- if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
1887
- }
1888
- return id;
1889
- });
1890
- this.build = m[5] ? m[5].split(".") : [];
1891
- this.format();
1892
- }
1893
- format() {
1894
- this.version = `${this.major}.${this.minor}.${this.patch}`;
1895
- if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
1896
- return this.version;
1897
- }
1898
- toString() {
1899
- return this.version;
1900
- }
1901
- compare(other) {
1902
- debug("SemVer.compare", this.version, this.options, other);
1903
- if (!(other instanceof SemVer)) {
1904
- if (typeof other === "string" && other === this.version) return 0;
1905
- other = new SemVer(other, this.options);
1906
- }
1907
- if (other.version === this.version) return 0;
1908
- return this.compareMain(other) || this.comparePre(other);
1909
- }
1910
- compareMain(other) {
1911
- if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
1912
- if (this.major < other.major) return -1;
1913
- if (this.major > other.major) return 1;
1914
- if (this.minor < other.minor) return -1;
1915
- if (this.minor > other.minor) return 1;
1916
- if (this.patch < other.patch) return -1;
1917
- if (this.patch > other.patch) return 1;
1918
- return 0;
1919
- }
1920
- comparePre(other) {
1921
- if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
1922
- if (this.prerelease.length && !other.prerelease.length) return -1;
1923
- else if (!this.prerelease.length && other.prerelease.length) return 1;
1924
- else if (!this.prerelease.length && !other.prerelease.length) return 0;
1925
- let i = 0;
1926
- do {
1927
- const a = this.prerelease[i];
1928
- const b = other.prerelease[i];
1929
- debug("prerelease compare", i, a, b);
1930
- if (a === void 0 && b === void 0) return 0;
1931
- else if (b === void 0) return 1;
1932
- else if (a === void 0) return -1;
1933
- else if (a === b) continue;
1934
- else return compareIdentifiers(a, b);
1935
- } while (++i);
1936
- }
1937
- compareBuild(other) {
1938
- if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
1939
- let i = 0;
1940
- do {
1941
- const a = this.build[i];
1942
- const b = other.build[i];
1943
- debug("build compare", i, a, b);
1944
- if (a === void 0 && b === void 0) return 0;
1945
- else if (b === void 0) return 1;
1946
- else if (a === void 0) return -1;
1947
- else if (a === b) continue;
1948
- else return compareIdentifiers(a, b);
1949
- } while (++i);
1950
- }
1951
- inc(release, identifier, identifierBase) {
1952
- if (release.startsWith("pre")) {
1953
- if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
1954
- if (identifier) {
1955
- const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
1956
- if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
1957
- }
1958
- }
1959
- switch (release) {
1960
- case "premajor":
1961
- this.prerelease.length = 0;
1962
- this.patch = 0;
1963
- this.minor = 0;
1964
- this.major++;
1965
- this.inc("pre", identifier, identifierBase);
1966
- break;
1967
- case "preminor":
1968
- this.prerelease.length = 0;
1969
- this.patch = 0;
1970
- this.minor++;
1971
- this.inc("pre", identifier, identifierBase);
1972
- break;
1973
- case "prepatch":
1974
- this.prerelease.length = 0;
1975
- this.inc("patch", identifier, identifierBase);
1976
- this.inc("pre", identifier, identifierBase);
1977
- break;
1978
- case "prerelease":
1979
- if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
1980
- this.inc("pre", identifier, identifierBase);
1981
- break;
1982
- case "release":
1983
- if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
1984
- this.prerelease.length = 0;
1985
- break;
1986
- case "major":
1987
- if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
1988
- this.minor = 0;
1989
- this.patch = 0;
1990
- this.prerelease = [];
1991
- break;
1992
- case "minor":
1993
- if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
1994
- this.patch = 0;
1995
- this.prerelease = [];
1996
- break;
1997
- case "patch":
1998
- if (this.prerelease.length === 0) this.patch++;
1999
- this.prerelease = [];
2000
- break;
2001
- case "pre": {
2002
- const base = Number(identifierBase) ? 1 : 0;
2003
- if (this.prerelease.length === 0) this.prerelease = [base];
2004
- else {
2005
- let i = this.prerelease.length;
2006
- while (--i >= 0) if (typeof this.prerelease[i] === "number") {
2007
- this.prerelease[i]++;
2008
- i = -2;
2009
- }
2010
- if (i === -1) {
2011
- if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
2012
- this.prerelease.push(base);
2013
- }
2014
- }
2015
- if (identifier) {
2016
- let prerelease = [identifier, base];
2017
- if (identifierBase === false) prerelease = [identifier];
2018
- if (isPrereleaseIdentifier(this.prerelease, identifier)) {
2019
- const prereleaseBase = this.prerelease[identifier.split(".").length];
2020
- if (isNaN(prereleaseBase)) this.prerelease = prerelease;
2021
- } else this.prerelease = prerelease;
2022
- }
2023
- break;
2024
- }
2025
- default: throw new Error(`invalid increment argument: ${release}`);
2026
- }
2027
- this.raw = this.format();
2028
- if (this.build.length) this.raw += `+${this.build.join(".")}`;
2029
- return this;
2030
- }
2031
- };
2032
- }));
2033
- //#endregion
2034
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js
2035
- var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2036
- const SemVer = require_semver$1();
2037
- const parse = (version, options, throwErrors = false) => {
2038
- if (version instanceof SemVer) return version;
2039
- try {
2040
- return new SemVer(version, options);
2041
- } catch (er) {
2042
- if (!throwErrors) return null;
2043
- throw er;
2044
- }
2045
- };
2046
- module.exports = parse;
2047
- }));
2048
- //#endregion
2049
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/valid.js
2050
- var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2051
- const parse = require_parse();
2052
- const valid = (version, options) => {
2053
- const v = parse(version, options);
2054
- return v ? v.version : null;
2055
- };
2056
- module.exports = valid;
2057
- }));
2058
- //#endregion
2059
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/clean.js
2060
- var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2061
- const parse = require_parse();
2062
- const clean = (version, options) => {
2063
- const s = parse(version.trim().replace(/^[=v]+/, ""), options);
2064
- return s ? s.version : null;
2065
- };
2066
- module.exports = clean;
2067
- }));
2068
- //#endregion
2069
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/inc.js
2070
- var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2071
- const SemVer = require_semver$1();
2072
- const inc = (version, release, options, identifier, identifierBase) => {
2073
- if (typeof options === "string") {
2074
- identifierBase = identifier;
2075
- identifier = options;
2076
- options = void 0;
2077
- }
2078
- try {
2079
- return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
2080
- } catch (er) {
2081
- return null;
2082
- }
2083
- };
2084
- module.exports = inc;
2085
- }));
2086
- //#endregion
2087
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/diff.js
2088
- var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2089
- const parse = require_parse();
2090
- const diff = (version1, version2) => {
2091
- const v1 = parse(version1, null, true);
2092
- const v2 = parse(version2, null, true);
2093
- const comparison = v1.compare(v2);
2094
- if (comparison === 0) return null;
2095
- const v1Higher = comparison > 0;
2096
- const highVersion = v1Higher ? v1 : v2;
2097
- const lowVersion = v1Higher ? v2 : v1;
2098
- const highHasPre = !!highVersion.prerelease.length;
2099
- if (!!lowVersion.prerelease.length && !highHasPre) {
2100
- if (!lowVersion.patch && !lowVersion.minor) return "major";
2101
- if (lowVersion.compareMain(highVersion) === 0) {
2102
- if (lowVersion.minor && !lowVersion.patch) return "minor";
2103
- return "patch";
2104
- }
2105
- }
2106
- const prefix = highHasPre ? "pre" : "";
2107
- if (v1.major !== v2.major) return prefix + "major";
2108
- if (v1.minor !== v2.minor) return prefix + "minor";
2109
- if (v1.patch !== v2.patch) return prefix + "patch";
2110
- return "prerelease";
2111
- };
2112
- module.exports = diff;
2113
- }));
2114
- //#endregion
2115
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/major.js
2116
- var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2117
- const SemVer = require_semver$1();
2118
- const major = (a, loose) => new SemVer(a, loose).major;
2119
- module.exports = major;
2120
- }));
2121
- //#endregion
2122
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/minor.js
2123
- var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2124
- const SemVer = require_semver$1();
2125
- const minor = (a, loose) => new SemVer(a, loose).minor;
2126
- module.exports = minor;
2127
- }));
2128
- //#endregion
2129
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/patch.js
2130
- var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2131
- const SemVer = require_semver$1();
2132
- const patch = (a, loose) => new SemVer(a, loose).patch;
2133
- module.exports = patch;
2134
- }));
2135
- //#endregion
2136
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/prerelease.js
2137
- var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2138
- const parse = require_parse();
2139
- const prerelease = (version, options) => {
2140
- const parsed = parse(version, options);
2141
- return parsed && parsed.prerelease.length ? parsed.prerelease : null;
2142
- };
2143
- module.exports = prerelease;
2144
- }));
2145
- //#endregion
2146
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js
2147
- var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2148
- const SemVer = require_semver$1();
2149
- const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
2150
- module.exports = compare;
2151
- }));
2152
- //#endregion
2153
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rcompare.js
2154
- var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2155
- const compare = require_compare();
2156
- const rcompare = (a, b, loose) => compare(b, a, loose);
2157
- module.exports = rcompare;
2158
- }));
2159
- //#endregion
2160
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-loose.js
2161
- var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2162
- const compare = require_compare();
2163
- const compareLoose = (a, b) => compare(a, b, true);
2164
- module.exports = compareLoose;
2165
- }));
2166
- //#endregion
2167
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-build.js
2168
- var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2169
- const SemVer = require_semver$1();
2170
- const compareBuild = (a, b, loose) => {
2171
- const versionA = new SemVer(a, loose);
2172
- const versionB = new SemVer(b, loose);
2173
- return versionA.compare(versionB) || versionA.compareBuild(versionB);
2174
- };
2175
- module.exports = compareBuild;
2176
- }));
2177
- //#endregion
2178
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/sort.js
2179
- var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2180
- const compareBuild = require_compare_build();
2181
- const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
2182
- module.exports = sort;
2183
- }));
2184
- //#endregion
2185
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rsort.js
2186
- var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2187
- const compareBuild = require_compare_build();
2188
- const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
2189
- module.exports = rsort;
2190
- }));
2191
- //#endregion
2192
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js
2193
- var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2194
- const compare = require_compare();
2195
- const gt = (a, b, loose) => compare(a, b, loose) > 0;
2196
- module.exports = gt;
2197
- }));
2198
- //#endregion
2199
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js
2200
- var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2201
- const compare = require_compare();
2202
- const lt = (a, b, loose) => compare(a, b, loose) < 0;
2203
- module.exports = lt;
2204
- }));
2205
- //#endregion
2206
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js
2207
- var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2208
- const compare = require_compare();
2209
- const eq = (a, b, loose) => compare(a, b, loose) === 0;
2210
- module.exports = eq;
2211
- }));
2212
- //#endregion
2213
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js
2214
- var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2215
- const compare = require_compare();
2216
- const neq = (a, b, loose) => compare(a, b, loose) !== 0;
2217
- module.exports = neq;
2218
- }));
2219
- //#endregion
2220
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js
2221
- var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2222
- const compare = require_compare();
2223
- const gte = (a, b, loose) => compare(a, b, loose) >= 0;
2224
- module.exports = gte;
2225
- }));
2226
- //#endregion
2227
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js
2228
- var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2229
- const compare = require_compare();
2230
- const lte = (a, b, loose) => compare(a, b, loose) <= 0;
2231
- module.exports = lte;
2232
- }));
2233
- //#endregion
2234
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/cmp.js
2235
- var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2236
- const eq = require_eq();
2237
- const neq = require_neq();
2238
- const gt = require_gt();
2239
- const gte = require_gte();
2240
- const lt = require_lt();
2241
- const lte = require_lte();
2242
- const cmp = (a, op, b, loose) => {
2243
- switch (op) {
2244
- case "===":
2245
- if (typeof a === "object") a = a.version;
2246
- if (typeof b === "object") b = b.version;
2247
- return a === b;
2248
- case "!==":
2249
- if (typeof a === "object") a = a.version;
2250
- if (typeof b === "object") b = b.version;
2251
- return a !== b;
2252
- case "":
2253
- case "=":
2254
- case "==": return eq(a, b, loose);
2255
- case "!=": return neq(a, b, loose);
2256
- case ">": return gt(a, b, loose);
2257
- case ">=": return gte(a, b, loose);
2258
- case "<": return lt(a, b, loose);
2259
- case "<=": return lte(a, b, loose);
2260
- default: throw new TypeError(`Invalid operator: ${op}`);
2261
- }
2262
- };
2263
- module.exports = cmp;
2264
- }));
2265
- //#endregion
2266
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/coerce.js
2267
- var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2268
- const SemVer = require_semver$1();
2269
- const parse = require_parse();
2270
- const { safeRe: re, t } = require_re();
2271
- const coerce = (version, options) => {
2272
- if (version instanceof SemVer) return version;
2273
- if (typeof version === "number") version = String(version);
2274
- if (typeof version !== "string") return null;
2275
- options = options || {};
2276
- let match = null;
2277
- if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
2278
- else {
2279
- const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
2280
- let next;
2281
- while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
2282
- if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
2283
- coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
2284
- }
2285
- coerceRtlRegex.lastIndex = -1;
2286
- }
2287
- if (match === null) return null;
2288
- const major = match[2];
2289
- const minor = match[3] || "0";
2290
- const patch = match[4] || "0";
2291
- const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
2292
- const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
2293
- return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
2294
- };
2295
- module.exports = coerce;
2296
- }));
2297
- //#endregion
2298
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/truncate.js
2299
- var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2300
- const parse = require_parse();
2301
- const constants = require_constants();
2302
- const SemVer = require_semver$1();
2303
- const truncate = (version, truncation, options) => {
2304
- if (!constants.RELEASE_TYPES.includes(truncation)) return null;
2305
- const clonedVersion = cloneInputVersion(version, options);
2306
- return clonedVersion && doTruncation(clonedVersion, truncation);
2307
- };
2308
- const cloneInputVersion = (version, options) => {
2309
- const versionStringToParse = version instanceof SemVer ? version.version : version;
2310
- return parse(versionStringToParse, options);
2311
- };
2312
- const doTruncation = (version, truncation) => {
2313
- if (isPrerelease(truncation)) return version.version;
2314
- version.prerelease = [];
2315
- switch (truncation) {
2316
- case "major":
2317
- version.minor = 0;
2318
- version.patch = 0;
2319
- break;
2320
- case "minor": version.patch = 0;
2321
- }
2322
- return version.format();
2323
- };
2324
- const isPrerelease = (type) => {
2325
- return type.startsWith("pre");
2326
- };
2327
- module.exports = truncate;
2328
- }));
2329
- //#endregion
2330
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/lrucache.js
2331
- var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2332
- var LRUCache = class {
2333
- constructor() {
2334
- this.max = 1e3;
2335
- this.map = /* @__PURE__ */ new Map();
2336
- }
2337
- get(key) {
2338
- const value = this.map.get(key);
2339
- if (value === void 0) return;
2340
- else {
2341
- this.map.delete(key);
2342
- this.map.set(key, value);
2343
- return value;
2344
- }
2345
- }
2346
- delete(key) {
2347
- return this.map.delete(key);
2348
- }
2349
- set(key, value) {
2350
- if (!this.delete(key) && value !== void 0) {
2351
- if (this.map.size >= this.max) {
2352
- const firstKey = this.map.keys().next().value;
2353
- this.delete(firstKey);
2354
- }
2355
- this.map.set(key, value);
2356
- }
2357
- return this;
2358
- }
2359
- };
2360
- module.exports = LRUCache;
2361
- }));
2362
- //#endregion
2363
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/range.js
2364
- var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2365
- const SPACE_CHARACTERS = /\s+/g;
2366
- module.exports = class Range {
2367
- constructor(range, options) {
2368
- options = parseOptions(options);
2369
- if (range instanceof Range) {
2370
- if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
2371
- else return new Range(range.raw, options);
2372
- }
2373
- if (range instanceof Comparator) {
2374
- this.raw = range.value;
2375
- this.set = [[range]];
2376
- this.formatted = void 0;
2377
- return this;
2378
- }
2379
- this.options = options;
2380
- this.loose = !!options.loose;
2381
- this.includePrerelease = !!options.includePrerelease;
2382
- this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
2383
- this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
2384
- if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
2385
- if (this.set.length > 1) {
2386
- const first = this.set[0];
2387
- this.set = this.set.filter((c) => !isNullSet(c[0]));
2388
- if (this.set.length === 0) this.set = [first];
2389
- else if (this.set.length > 1) {
2390
- for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
2391
- this.set = [c];
2392
- break;
2393
- }
2394
- }
2395
- }
2396
- this.formatted = void 0;
2397
- }
2398
- get range() {
2399
- if (this.formatted === void 0) {
2400
- this.formatted = "";
2401
- for (let i = 0; i < this.set.length; i++) {
2402
- if (i > 0) this.formatted += "||";
2403
- const comps = this.set[i];
2404
- for (let k = 0; k < comps.length; k++) {
2405
- if (k > 0) this.formatted += " ";
2406
- this.formatted += comps[k].toString().trim();
2407
- }
2408
- }
2409
- }
2410
- return this.formatted;
2411
- }
2412
- format() {
2413
- return this.range;
2414
- }
2415
- toString() {
2416
- return this.range;
2417
- }
2418
- parseRange(range) {
2419
- range = range.replace(BUILDSTRIPRE, "");
2420
- const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
2421
- const cached = cache.get(memoKey);
2422
- if (cached) return cached;
2423
- const loose = this.options.loose;
2424
- const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
2425
- range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
2426
- debug("hyphen replace", range);
2427
- range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
2428
- debug("comparator trim", range);
2429
- range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
2430
- debug("tilde trim", range);
2431
- range = range.replace(re[t.CARETTRIM], caretTrimReplace);
2432
- debug("caret trim", range);
2433
- let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
2434
- if (loose) rangeList = rangeList.filter((comp) => {
2435
- debug("loose invalid filter", comp, this.options);
2436
- return !!comp.match(re[t.COMPARATORLOOSE]);
2437
- });
2438
- debug("range list", rangeList);
2439
- const rangeMap = /* @__PURE__ */ new Map();
2440
- const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
2441
- for (const comp of comparators) {
2442
- if (isNullSet(comp)) return [comp];
2443
- rangeMap.set(comp.value, comp);
2444
- }
2445
- if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
2446
- const result = [...rangeMap.values()];
2447
- cache.set(memoKey, result);
2448
- return result;
2449
- }
2450
- intersects(range, options) {
2451
- if (!(range instanceof Range)) throw new TypeError("a Range is required");
2452
- return this.set.some((thisComparators) => {
2453
- return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
2454
- return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
2455
- return rangeComparators.every((rangeComparator) => {
2456
- return thisComparator.intersects(rangeComparator, options);
2457
- });
2458
- });
2459
- });
2460
- });
2461
- }
2462
- test(version) {
2463
- if (!version) return false;
2464
- if (typeof version === "string") try {
2465
- version = new SemVer(version, this.options);
2466
- } catch (er) {
2467
- return false;
2468
- }
2469
- for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
2470
- return false;
2471
- }
2472
- };
2473
- const cache = new (require_lrucache())();
2474
- const parseOptions = require_parse_options();
2475
- const Comparator = require_comparator();
2476
- const debug = require_debug();
2477
- const SemVer = require_semver$1();
2478
- const { safeRe: re, src, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
2479
- const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
2480
- const BUILDSTRIPRE = new RegExp(src[t.BUILD], "g");
2481
- const isNullSet = (c) => c.value === "<0.0.0-0";
2482
- const isAny = (c) => c.value === "";
2483
- const isSatisfiable = (comparators, options) => {
2484
- let result = true;
2485
- const remainingComparators = comparators.slice();
2486
- let testComparator = remainingComparators.pop();
2487
- while (result && remainingComparators.length) {
2488
- result = remainingComparators.every((otherComparator) => {
2489
- return testComparator.intersects(otherComparator, options);
2490
- });
2491
- testComparator = remainingComparators.pop();
2492
- }
2493
- return result;
2494
- };
2495
- const parseComparator = (comp, options) => {
2496
- comp = comp.replace(re[t.BUILD], "");
2497
- debug("comp", comp, options);
2498
- comp = replaceCarets(comp, options);
2499
- debug("caret", comp);
2500
- comp = replaceTildes(comp, options);
2501
- debug("tildes", comp);
2502
- comp = replaceXRanges(comp, options);
2503
- debug("xrange", comp);
2504
- comp = replaceStars(comp, options);
2505
- debug("stars", comp);
2506
- return comp;
2507
- };
2508
- const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
2509
- const invalidXRangeOrder = (M, m, p) => isX(M) && !isX(m) || isX(m) && p && !isX(p);
2510
- const replaceTildes = (comp, options) => {
2511
- return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
2512
- };
2513
- const replaceTilde = (comp, options) => {
2514
- const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
2515
- const z = options.includePrerelease ? "-0" : "";
2516
- return comp.replace(r, (_, M, m, p, pr) => {
2517
- debug("tilde", comp, _, M, m, p, pr);
2518
- let ret;
2519
- if (isX(M)) ret = "";
2520
- else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
2521
- else if (isX(p)) ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
2522
- else if (pr) {
2523
- debug("replaceTilde pr", pr);
2524
- ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
2525
- } else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
2526
- debug("tilde return", ret);
2527
- return ret;
2528
- });
2529
- };
2530
- const replaceCarets = (comp, options) => {
2531
- return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
2532
- };
2533
- const replaceCaret = (comp, options) => {
2534
- debug("caret", comp, options);
2535
- const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
2536
- const z = options.includePrerelease ? "-0" : "";
2537
- return comp.replace(r, (_, M, m, p, pr) => {
2538
- debug("caret", comp, _, M, m, p, pr);
2539
- let ret;
2540
- if (isX(M)) ret = "";
2541
- else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
2542
- else if (isX(p)) {
2543
- if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
2544
- else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
2545
- } else if (pr) {
2546
- debug("replaceCaret pr", pr);
2547
- if (M === "0") {
2548
- if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
2549
- else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
2550
- } else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
2551
- } else {
2552
- debug("no pr");
2553
- if (M === "0") {
2554
- if (m === "0") ret = `>=${M}.${m}.${p} <${M}.${m}.${+p + 1}-0`;
2555
- else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
2556
- } else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
2557
- }
2558
- debug("caret return", ret);
2559
- return ret;
2560
- });
2561
- };
2562
- const replaceXRanges = (comp, options) => {
2563
- debug("replaceXRanges", comp, options);
2564
- return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
2565
- };
2566
- const replaceXRange = (comp, options) => {
2567
- comp = comp.trim();
2568
- const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
2569
- return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
2570
- debug("xRange", comp, ret, gtlt, M, m, p, pr);
2571
- if (invalidXRangeOrder(M, m, p)) return comp;
2572
- const xM = isX(M);
2573
- const xm = xM || isX(m);
2574
- const xp = xm || isX(p);
2575
- const anyX = xp;
2576
- if (gtlt === "=" && anyX) gtlt = "";
2577
- pr = options.includePrerelease ? "-0" : "";
2578
- if (xM) {
2579
- if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
2580
- else ret = "*";
2581
- } else if (gtlt && anyX) {
2582
- if (xm) m = 0;
2583
- p = 0;
2584
- if (gtlt === ">") {
2585
- gtlt = ">=";
2586
- if (xm) {
2587
- M = +M + 1;
2588
- m = 0;
2589
- p = 0;
2590
- } else {
2591
- m = +m + 1;
2592
- p = 0;
2593
- }
2594
- } else if (gtlt === "<=") {
2595
- gtlt = "<";
2596
- if (xm) M = +M + 1;
2597
- else m = +m + 1;
2598
- }
2599
- if (gtlt === "<") pr = "-0";
2600
- ret = `${gtlt + M}.${m}.${p}${pr}`;
2601
- } else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
2602
- else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
2603
- debug("xRange return", ret);
2604
- return ret;
2605
- });
2606
- };
2607
- const replaceStars = (comp, options) => {
2608
- debug("replaceStars", comp, options);
2609
- return comp.trim().replace(re[t.STAR], "");
2610
- };
2611
- const replaceGTE0 = (comp, options) => {
2612
- debug("replaceGTE0", comp, options);
2613
- return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
2614
- };
2615
- const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
2616
- if (isX(fM)) from = "";
2617
- else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
2618
- else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
2619
- else if (fpr) from = `>=${from}`;
2620
- else from = `>=${from}${incPr ? "-0" : ""}`;
2621
- if (isX(tM)) to = "";
2622
- else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
2623
- else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
2624
- else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
2625
- else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
2626
- else to = `<=${to}`;
2627
- return `${from} ${to}`.trim();
2628
- };
2629
- const testSet = (set, version, options) => {
2630
- for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
2631
- if (version.prerelease.length && !options.includePrerelease) {
2632
- for (let i = 0; i < set.length; i++) {
2633
- debug(set[i].semver);
2634
- if (set[i].semver === Comparator.ANY) continue;
2635
- if (set[i].semver.prerelease.length > 0) {
2636
- const allowed = set[i].semver;
2637
- if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
2638
- }
2639
- }
2640
- return false;
2641
- }
2642
- return true;
2643
- };
2644
- }));
2645
- //#endregion
2646
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/comparator.js
2647
- var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2648
- const ANY = Symbol("SemVer ANY");
2649
- module.exports = class Comparator {
2650
- static get ANY() {
2651
- return ANY;
2652
- }
2653
- constructor(comp, options) {
2654
- options = parseOptions(options);
2655
- if (comp instanceof Comparator) {
2656
- if (comp.loose === !!options.loose) return comp;
2657
- else comp = comp.value;
2658
- }
2659
- comp = comp.trim().split(/\s+/).join(" ");
2660
- debug("comparator", comp, options);
2661
- this.options = options;
2662
- this.loose = !!options.loose;
2663
- this.parse(comp);
2664
- if (this.semver === ANY) this.value = "";
2665
- else this.value = this.operator + this.semver.version;
2666
- debug("comp", this);
2667
- }
2668
- parse(comp) {
2669
- const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
2670
- const m = comp.match(r);
2671
- if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
2672
- this.operator = m[1] !== void 0 ? m[1] : "";
2673
- if (this.operator === "=") this.operator = "";
2674
- if (!m[2]) this.semver = ANY;
2675
- else this.semver = new SemVer(m[2], this.options.loose);
2676
- }
2677
- toString() {
2678
- return this.value;
2679
- }
2680
- test(version) {
2681
- debug("Comparator.test", version, this.options.loose);
2682
- if (this.semver === ANY || version === ANY) return true;
2683
- if (typeof version === "string") try {
2684
- version = new SemVer(version, this.options);
2685
- } catch (er) {
2686
- return false;
2687
- }
2688
- return cmp(version, this.operator, this.semver, this.options);
2689
- }
2690
- intersects(comp, options) {
2691
- if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
2692
- if (this.operator === "") {
2693
- if (this.value === "") return true;
2694
- return new Range(comp.value, options).test(this.value);
2695
- } else if (comp.operator === "") {
2696
- if (comp.value === "") return true;
2697
- return new Range(this.value, options).test(comp.semver);
2698
- }
2699
- options = parseOptions(options);
2700
- if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
2701
- if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
2702
- if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
2703
- if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
2704
- if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
2705
- if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
2706
- if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
2707
- return false;
2708
- }
2709
- };
2710
- const parseOptions = require_parse_options();
2711
- const { safeRe: re, t } = require_re();
2712
- const cmp = require_cmp();
2713
- const debug = require_debug();
2714
- const SemVer = require_semver$1();
2715
- const Range = require_range();
2716
- }));
2717
- //#endregion
2718
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js
2719
- var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2720
- const Range = require_range();
2721
- const satisfies = (version, range, options) => {
2722
- try {
2723
- range = new Range(range, options);
2724
- } catch (er) {
2725
- return false;
2726
- }
2727
- return range.test(version);
2728
- };
2729
- module.exports = satisfies;
2730
- }));
2731
- //#endregion
2732
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/to-comparators.js
2733
- var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2734
- const Range = require_range();
2735
- const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
2736
- module.exports = toComparators;
2737
- }));
2738
- //#endregion
2739
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/max-satisfying.js
2740
- var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2741
- const SemVer = require_semver$1();
2742
- const Range = require_range();
2743
- const maxSatisfying = (versions, range, options) => {
2744
- let max = null;
2745
- let maxSV = null;
2746
- let rangeObj = null;
2747
- try {
2748
- rangeObj = new Range(range, options);
2749
- } catch (er) {
2750
- return null;
2751
- }
2752
- versions.forEach((v) => {
2753
- if (rangeObj.test(v)) {
2754
- if (!max || maxSV.compare(v) === -1) {
2755
- max = v;
2756
- maxSV = new SemVer(max, options);
2757
- }
2758
- }
2759
- });
2760
- return max;
2761
- };
2762
- module.exports = maxSatisfying;
2763
- }));
2764
- //#endregion
2765
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-satisfying.js
2766
- var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2767
- const SemVer = require_semver$1();
2768
- const Range = require_range();
2769
- const minSatisfying = (versions, range, options) => {
2770
- let min = null;
2771
- let minSV = null;
2772
- let rangeObj = null;
2773
- try {
2774
- rangeObj = new Range(range, options);
2775
- } catch (er) {
2776
- return null;
2777
- }
2778
- versions.forEach((v) => {
2779
- if (rangeObj.test(v)) {
2780
- if (!min || minSV.compare(v) === 1) {
2781
- min = v;
2782
- minSV = new SemVer(min, options);
2783
- }
2784
- }
2785
- });
2786
- return min;
2787
- };
2788
- module.exports = minSatisfying;
2789
- }));
2790
- //#endregion
2791
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js
2792
- var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2793
- const SemVer = require_semver$1();
2794
- const Range = require_range();
2795
- const gt = require_gt();
2796
- const minVersion = (range, loose) => {
2797
- range = new Range(range, loose);
2798
- let minver = new SemVer("0.0.0");
2799
- if (range.test(minver)) return minver;
2800
- minver = new SemVer("0.0.0-0");
2801
- if (range.test(minver)) return minver;
2802
- minver = null;
2803
- for (let i = 0; i < range.set.length; ++i) {
2804
- const comparators = range.set[i];
2805
- let setMin = null;
2806
- comparators.forEach((comparator) => {
2807
- const compver = new SemVer(comparator.semver.version);
2808
- switch (comparator.operator) {
2809
- case ">":
2810
- if (compver.prerelease.length === 0) compver.patch++;
2811
- else compver.prerelease.push(0);
2812
- compver.raw = compver.format();
2813
- case "":
2814
- case ">=":
2815
- if (!setMin || gt(compver, setMin)) setMin = compver;
2816
- break;
2817
- case "<":
2818
- case "<=": break;
2819
- /* istanbul ignore next */
2820
- default: throw new Error(`Unexpected operation: ${comparator.operator}`);
2821
- }
2822
- });
2823
- if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
2824
- }
2825
- if (minver && range.test(minver)) return minver;
2826
- return null;
2827
- };
2828
- module.exports = minVersion;
2829
- }));
2830
- //#endregion
2831
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/valid.js
2832
- var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2833
- const Range = require_range();
2834
- const validRange = (range, options) => {
2835
- try {
2836
- return new Range(range, options).range || "*";
2837
- } catch (er) {
2838
- return null;
2839
- }
2840
- };
2841
- module.exports = validRange;
2842
- }));
2843
- //#endregion
2844
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/outside.js
2845
- var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2846
- const SemVer = require_semver$1();
2847
- const Comparator = require_comparator();
2848
- const { ANY } = Comparator;
2849
- const Range = require_range();
2850
- const satisfies = require_satisfies();
2851
- const gt = require_gt();
2852
- const lt = require_lt();
2853
- const lte = require_lte();
2854
- const gte = require_gte();
2855
- const outside = (version, range, hilo, options) => {
2856
- version = new SemVer(version, options);
2857
- range = new Range(range, options);
2858
- let gtfn, ltefn, ltfn, comp, ecomp;
2859
- switch (hilo) {
2860
- case ">":
2861
- gtfn = gt;
2862
- ltefn = lte;
2863
- ltfn = lt;
2864
- comp = ">";
2865
- ecomp = ">=";
2866
- break;
2867
- case "<":
2868
- gtfn = lt;
2869
- ltefn = gte;
2870
- ltfn = gt;
2871
- comp = "<";
2872
- ecomp = "<=";
2873
- break;
2874
- default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
2875
- }
2876
- if (satisfies(version, range, options)) return false;
2877
- for (let i = 0; i < range.set.length; ++i) {
2878
- const comparators = range.set[i];
2879
- let high = null;
2880
- let low = null;
2881
- comparators.forEach((comparator) => {
2882
- if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
2883
- high = high || comparator;
2884
- low = low || comparator;
2885
- if (gtfn(comparator.semver, high.semver, options)) high = comparator;
2886
- else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
2887
- });
2888
- if (high.operator === comp || high.operator === ecomp) return false;
2889
- if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
2890
- else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
2891
- }
2892
- return true;
2893
- };
2894
- module.exports = outside;
2895
- }));
2896
- //#endregion
2897
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/gtr.js
2898
- var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2899
- const outside = require_outside();
2900
- const gtr = (version, range, options) => outside(version, range, ">", options);
2901
- module.exports = gtr;
2902
- }));
2903
- //#endregion
2904
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/ltr.js
2905
- var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2906
- const outside = require_outside();
2907
- const ltr = (version, range, options) => outside(version, range, "<", options);
2908
- module.exports = ltr;
2909
- }));
2910
- //#endregion
2911
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/intersects.js
2912
- var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2913
- const Range = require_range();
2914
- const intersects = (r1, r2, options) => {
2915
- r1 = new Range(r1, options);
2916
- r2 = new Range(r2, options);
2917
- return r1.intersects(r2, options);
2918
- };
2919
- module.exports = intersects;
2920
- }));
2921
- //#endregion
2922
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/simplify.js
2923
- var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2924
- const satisfies = require_satisfies();
2925
- const compare = require_compare();
2926
- module.exports = (versions, range, options) => {
2927
- const set = [];
2928
- let first = null;
2929
- let prev = null;
2930
- const v = versions.sort((a, b) => compare(a, b, options));
2931
- for (const version of v) if (satisfies(version, range, options)) {
2932
- prev = version;
2933
- if (!first) first = version;
2934
- } else {
2935
- if (prev) set.push([first, prev]);
2936
- prev = null;
2937
- first = null;
2938
- }
2939
- if (first) set.push([first, null]);
2940
- const ranges = [];
2941
- for (const [min, max] of set) if (min === max) ranges.push(min);
2942
- else if (!max && min === v[0]) ranges.push("*");
2943
- else if (!max) ranges.push(`>=${min}`);
2944
- else if (min === v[0]) ranges.push(`<=${max}`);
2945
- else ranges.push(`${min} - ${max}`);
2946
- const simplified = ranges.join(" || ");
2947
- const original = typeof range.raw === "string" ? range.raw : String(range);
2948
- return simplified.length < original.length ? simplified : range;
2949
- };
2950
- }));
2951
- //#endregion
2952
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/subset.js
2953
- var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2954
- const Range = require_range();
2955
- const Comparator = require_comparator();
2956
- const { ANY } = Comparator;
2957
- const satisfies = require_satisfies();
2958
- const compare = require_compare();
2959
- const subset = (sub, dom, options = {}) => {
2960
- if (sub === dom) return true;
2961
- sub = new Range(sub, options);
2962
- dom = new Range(dom, options);
2963
- let sawNonNull = false;
2964
- OUTER: for (const simpleSub of sub.set) {
2965
- for (const simpleDom of dom.set) {
2966
- const isSub = simpleSubset(simpleSub, simpleDom, options);
2967
- sawNonNull = sawNonNull || isSub !== null;
2968
- if (isSub) continue OUTER;
2969
- }
2970
- if (sawNonNull) return false;
2971
- }
2972
- return true;
2973
- };
2974
- const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
2975
- const minimumVersion = [new Comparator(">=0.0.0")];
2976
- const simpleSubset = (sub, dom, options) => {
2977
- if (sub === dom) return true;
2978
- if (sub.length === 1 && sub[0].semver === ANY) {
2979
- if (dom.length === 1 && dom[0].semver === ANY) return true;
2980
- else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
2981
- else sub = minimumVersion;
2982
- }
2983
- if (dom.length === 1 && dom[0].semver === ANY) {
2984
- if (options.includePrerelease) return true;
2985
- else dom = minimumVersion;
2986
- }
2987
- const eqSet = /* @__PURE__ */ new Set();
2988
- let gt, lt;
2989
- for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
2990
- else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
2991
- else eqSet.add(c.semver);
2992
- if (eqSet.size > 1) return null;
2993
- let gtltComp;
2994
- if (gt && lt) {
2995
- gtltComp = compare(gt.semver, lt.semver, options);
2996
- if (gtltComp > 0) return null;
2997
- else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
2998
- }
2999
- for (const eq of eqSet) {
3000
- if (gt && !satisfies(eq, String(gt), options)) return null;
3001
- if (lt && !satisfies(eq, String(lt), options)) return null;
3002
- for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
3003
- return true;
3004
- }
3005
- let higher, lower;
3006
- let hasDomLT, hasDomGT;
3007
- let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
3008
- let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
3009
- if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
3010
- for (const c of dom) {
3011
- hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
3012
- hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
3013
- if (gt) {
3014
- if (needDomGTPre) {
3015
- 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;
3016
- }
3017
- if (c.operator === ">" || c.operator === ">=") {
3018
- higher = higherGT(gt, c, options);
3019
- if (higher === c && higher !== gt) return false;
3020
- } else if (gt.operator === ">=" && !c.test(gt.semver)) return false;
3021
- }
3022
- if (lt) {
3023
- if (needDomLTPre) {
3024
- 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;
3025
- }
3026
- if (c.operator === "<" || c.operator === "<=") {
3027
- lower = lowerLT(lt, c, options);
3028
- if (lower === c && lower !== lt) return false;
3029
- } else if (lt.operator === "<=" && !c.test(lt.semver)) return false;
3030
- }
3031
- if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
3032
- }
3033
- if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
3034
- if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
3035
- if (needDomGTPre || needDomLTPre) return false;
3036
- return true;
3037
- };
3038
- const higherGT = (a, b, options) => {
3039
- if (!a) return b;
3040
- const comp = compare(a.semver, b.semver, options);
3041
- return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
3042
- };
3043
- const lowerLT = (a, b, options) => {
3044
- if (!a) return b;
3045
- const comp = compare(a.semver, b.semver, options);
3046
- return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
3047
- };
3048
- module.exports = subset;
3049
- }));
3050
- //#endregion
3051
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/index.js
3052
- var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3053
- const internalRe = require_re();
3054
- const constants = require_constants();
3055
- const SemVer = require_semver$1();
3056
- const identifiers = require_identifiers();
3057
- module.exports = {
3058
- parse: require_parse(),
3059
- valid: require_valid$1(),
3060
- clean: require_clean(),
3061
- inc: require_inc(),
3062
- diff: require_diff(),
3063
- major: require_major(),
3064
- minor: require_minor(),
3065
- patch: require_patch(),
3066
- prerelease: require_prerelease(),
3067
- compare: require_compare(),
3068
- rcompare: require_rcompare(),
3069
- compareLoose: require_compare_loose(),
3070
- compareBuild: require_compare_build(),
3071
- sort: require_sort(),
3072
- rsort: require_rsort(),
3073
- gt: require_gt(),
3074
- lt: require_lt(),
3075
- eq: require_eq(),
3076
- neq: require_neq(),
3077
- gte: require_gte(),
3078
- lte: require_lte(),
3079
- cmp: require_cmp(),
3080
- coerce: require_coerce(),
3081
- truncate: require_truncate(),
3082
- Comparator: require_comparator(),
3083
- Range: require_range(),
3084
- satisfies: require_satisfies(),
3085
- toComparators: require_to_comparators(),
3086
- maxSatisfying: require_max_satisfying(),
3087
- minSatisfying: require_min_satisfying(),
3088
- minVersion: require_min_version(),
3089
- validRange: require_valid(),
3090
- outside: require_outside(),
3091
- gtr: require_gtr(),
3092
- ltr: require_ltr(),
3093
- intersects: require_intersects(),
3094
- simplifyRange: require_simplify(),
3095
- subset: require_subset(),
3096
- SemVer,
3097
- re: internalRe.re,
3098
- src: internalRe.src,
3099
- tokens: internalRe.t,
3100
- SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
3101
- RELEASE_TYPES: constants.RELEASE_TYPES,
3102
- compareIdentifiers: identifiers.compareIdentifiers,
3103
- rcompareIdentifiers: identifiers.rcompareIdentifiers
3104
- };
3105
- }));
3106
- //#endregion
3107
1710
  //#region src/types/package.ts
3108
1711
  const PackageManager = {
3109
1712
  pnpm: "pnpm",
@@ -3886,4 +2489,4 @@ function defaultInteractive() {
3886
2489
  return !process.env.CI && process.stdin.isTTY;
3887
2490
  }
3888
2491
  //#endregion
3889
- export { isCancel as A, log as C, spinner as D, select as E, text as O, intro as S, outro as T, getSpinner as _, resolveGitInit as a, require_semver as b, selectPackageManager as c, readYamlFile as d, scalarString as f, getSilentSpinner as g, resolveApproveBuildTargets as h, promptGitHooks as i, require_picocolors as k, upgradeYarn as l, detectGatedBuilds as m, defaultInteractive as n, runViteFmt as o, approveBuilds as p, downloadPackageManager$1 as r, runViteInstall as s, cancelAndExit as t, editYamlFile as u, DependencyType as v, multiselect as w, confirm as x, PackageManager as y };
2492
+ export { multiselect as C, text as D, spinner as E, require_picocolors as O, log as S, select as T, getSpinner as _, resolveGitInit as a, confirm as b, selectPackageManager as c, readYamlFile as d, scalarString as f, getSilentSpinner as g, resolveApproveBuildTargets as h, promptGitHooks as i, isCancel as k, upgradeYarn as l, detectGatedBuilds as m, defaultInteractive as n, runViteFmt as o, approveBuilds as p, downloadPackageManager$1 as r, runViteInstall as s, cancelAndExit as t, editYamlFile as u, DependencyType as v, outro as w, intro as x, PackageManager as y };