@bamboocss/dev 1.46.3 → 1.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli-default.cjs +440 -99
- package/dist/cli-default.mjs +441 -100
- package/dist/cli-main.cjs +7 -42
- package/dist/cli-main.mjs +8 -43
- package/dist/interactive.cjs +2 -38
- package/dist/interactive.d.cts +2 -21
- package/dist/interactive.d.mts +2 -21
- package/dist/interactive.mjs +3 -38
- package/dist/{mcp-init-U670EyAl.mjs → mcp-init-DNvOYuPJ.mjs} +1 -1
- package/dist/{mcp-init-D5B_CAwE.cjs → mcp-init-rm-0BrVq.cjs} +1 -1
- package/dist/{package-gsYR9yUr.mjs → package-CMP1CT5s.mjs} +1 -1
- package/dist/{package-BPevzsO6.cjs → package-CRgx9uxt.cjs} +1 -1
- package/dist/types.d.cts +0 -3
- package/dist/types.d.mts +0 -3
- package/package.json +9 -12
- package/postcss.d.ts +0 -2
- package/postcss.js +0 -3
package/dist/cli-default.cjs
CHANGED
|
@@ -1689,12 +1689,12 @@ const chalk = createChalk();
|
|
|
1689
1689
|
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
1690
1690
|
//#endregion
|
|
1691
1691
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.js
|
|
1692
|
-
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1692
|
+
var require_debug$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1693
1693
|
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
1694
1694
|
}));
|
|
1695
1695
|
//#endregion
|
|
1696
1696
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.js
|
|
1697
|
-
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1697
|
+
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1698
1698
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
1699
1699
|
const MAX_LENGTH = 256;
|
|
1700
1700
|
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
@@ -1719,9 +1719,9 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1719
1719
|
}));
|
|
1720
1720
|
//#endregion
|
|
1721
1721
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.js
|
|
1722
|
-
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1723
|
-
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
1724
|
-
const debug = require_debug();
|
|
1722
|
+
var require_re$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1723
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$1();
|
|
1724
|
+
const debug = require_debug$1();
|
|
1725
1725
|
exports = module.exports = {};
|
|
1726
1726
|
const re = exports.re = [];
|
|
1727
1727
|
const safeRe = exports.safeRe = [];
|
|
@@ -1798,7 +1798,7 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1798
1798
|
}));
|
|
1799
1799
|
//#endregion
|
|
1800
1800
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.js
|
|
1801
|
-
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1801
|
+
var require_parse_options$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1802
1802
|
const looseOption = Object.freeze({ loose: true });
|
|
1803
1803
|
const emptyOpts = Object.freeze({});
|
|
1804
1804
|
const parseOptions = (options) => {
|
|
@@ -1810,7 +1810,7 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1810
1810
|
}));
|
|
1811
1811
|
//#endregion
|
|
1812
1812
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.js
|
|
1813
|
-
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1813
|
+
var require_identifiers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1814
1814
|
const numeric = /^[0-9]+$/;
|
|
1815
1815
|
const compareIdentifiers = (a, b) => {
|
|
1816
1816
|
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
@@ -1830,12 +1830,12 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1830
1830
|
}));
|
|
1831
1831
|
//#endregion
|
|
1832
1832
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.js
|
|
1833
|
-
var require_semver$
|
|
1834
|
-
const debug = require_debug();
|
|
1835
|
-
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
1836
|
-
const { safeRe: re, t } = require_re();
|
|
1837
|
-
const parseOptions = require_parse_options();
|
|
1838
|
-
const { compareIdentifiers } = require_identifiers();
|
|
1833
|
+
var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1834
|
+
const debug = require_debug$1();
|
|
1835
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$1();
|
|
1836
|
+
const { safeRe: re, t } = require_re$1();
|
|
1837
|
+
const parseOptions = require_parse_options$1();
|
|
1838
|
+
const { compareIdentifiers } = require_identifiers$1();
|
|
1839
1839
|
module.exports = class SemVer {
|
|
1840
1840
|
constructor(version, options) {
|
|
1841
1841
|
options = parseOptions(options);
|
|
@@ -2008,8 +2008,8 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2008
2008
|
}));
|
|
2009
2009
|
//#endregion
|
|
2010
2010
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.js
|
|
2011
|
-
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2012
|
-
const SemVer = require_semver$
|
|
2011
|
+
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2012
|
+
const SemVer = require_semver$2();
|
|
2013
2013
|
const parse = (version, options, throwErrors = false) => {
|
|
2014
2014
|
if (version instanceof SemVer) return version;
|
|
2015
2015
|
try {
|
|
@@ -2023,8 +2023,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2023
2023
|
}));
|
|
2024
2024
|
//#endregion
|
|
2025
2025
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.js
|
|
2026
|
-
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2027
|
-
const parse = require_parse();
|
|
2026
|
+
var require_diff$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2027
|
+
const parse = require_parse$1();
|
|
2028
2028
|
const diff = (version1, version2) => {
|
|
2029
2029
|
const v1 = parse(version1, null, true);
|
|
2030
2030
|
const v2 = parse(version2, null, true);
|
|
@@ -2051,22 +2051,22 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2051
2051
|
}));
|
|
2052
2052
|
//#endregion
|
|
2053
2053
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.js
|
|
2054
|
-
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2055
|
-
const SemVer = require_semver$
|
|
2054
|
+
var require_compare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2055
|
+
const SemVer = require_semver$2();
|
|
2056
2056
|
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
2057
2057
|
module.exports = compare;
|
|
2058
2058
|
}));
|
|
2059
2059
|
//#endregion
|
|
2060
2060
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.js
|
|
2061
|
-
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2062
|
-
const compare = require_compare();
|
|
2061
|
+
var require_gt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2062
|
+
const compare = require_compare$1();
|
|
2063
2063
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
2064
2064
|
module.exports = gt;
|
|
2065
2065
|
}));
|
|
2066
2066
|
//#endregion
|
|
2067
2067
|
//#region ../../node_modules/.pnpm/ky@1.14.0/node_modules/ky/distribution/errors/HTTPError.js
|
|
2068
|
-
var import_diff = /* @__PURE__ */ __toESM(require_diff(), 1);
|
|
2069
|
-
var import_gt = /* @__PURE__ */ __toESM(require_gt(), 1);
|
|
2068
|
+
var import_diff = /* @__PURE__ */ __toESM(require_diff$1(), 1);
|
|
2069
|
+
var import_gt = /* @__PURE__ */ __toESM(require_gt$1(), 1);
|
|
2070
2070
|
var HTTPError = class extends Error {
|
|
2071
2071
|
response;
|
|
2072
2072
|
request;
|
|
@@ -5213,7 +5213,341 @@ var require_registry_auth_token = /* @__PURE__ */ __commonJSMin(((exports, modul
|
|
|
5213
5213
|
}
|
|
5214
5214
|
}));
|
|
5215
5215
|
//#endregion
|
|
5216
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5216
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js
|
|
5217
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5218
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
5219
|
+
const MAX_LENGTH = 256;
|
|
5220
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
5221
|
+
module.exports = {
|
|
5222
|
+
MAX_LENGTH,
|
|
5223
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
5224
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
5225
|
+
MAX_SAFE_INTEGER,
|
|
5226
|
+
RELEASE_TYPES: [
|
|
5227
|
+
"major",
|
|
5228
|
+
"premajor",
|
|
5229
|
+
"minor",
|
|
5230
|
+
"preminor",
|
|
5231
|
+
"patch",
|
|
5232
|
+
"prepatch",
|
|
5233
|
+
"prerelease"
|
|
5234
|
+
],
|
|
5235
|
+
SEMVER_SPEC_VERSION,
|
|
5236
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
5237
|
+
FLAG_LOOSE: 2
|
|
5238
|
+
};
|
|
5239
|
+
}));
|
|
5240
|
+
//#endregion
|
|
5241
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js
|
|
5242
|
+
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5243
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
5244
|
+
}));
|
|
5245
|
+
//#endregion
|
|
5246
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js
|
|
5247
|
+
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5248
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
5249
|
+
const debug = require_debug();
|
|
5250
|
+
exports = module.exports = {};
|
|
5251
|
+
const re = exports.re = [];
|
|
5252
|
+
const safeRe = exports.safeRe = [];
|
|
5253
|
+
const src = exports.src = [];
|
|
5254
|
+
const safeSrc = exports.safeSrc = [];
|
|
5255
|
+
const t = exports.t = {};
|
|
5256
|
+
let R = 0;
|
|
5257
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
5258
|
+
const safeRegexReplacements = [
|
|
5259
|
+
["\\s", 1],
|
|
5260
|
+
["\\d", MAX_LENGTH],
|
|
5261
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
5262
|
+
];
|
|
5263
|
+
const makeSafeRegex = (value) => {
|
|
5264
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
5265
|
+
return value;
|
|
5266
|
+
};
|
|
5267
|
+
const createToken = (name, value, isGlobal) => {
|
|
5268
|
+
const safe = makeSafeRegex(value);
|
|
5269
|
+
const index = R++;
|
|
5270
|
+
debug(name, index, value);
|
|
5271
|
+
t[name] = index;
|
|
5272
|
+
src[index] = value;
|
|
5273
|
+
safeSrc[index] = safe;
|
|
5274
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
5275
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
5276
|
+
};
|
|
5277
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
5278
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
5279
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
5280
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
5281
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
5282
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
5283
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
5284
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
5285
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
5286
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
5287
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
5288
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
5289
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
5290
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
5291
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
5292
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
5293
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
5294
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
5295
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
5296
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
5297
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
5298
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
5299
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
5300
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
5301
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
5302
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
5303
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
5304
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
5305
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
5306
|
+
exports.tildeTrimReplace = "$1~";
|
|
5307
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
5308
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
5309
|
+
createToken("LONECARET", "(?:\\^)");
|
|
5310
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
5311
|
+
exports.caretTrimReplace = "$1^";
|
|
5312
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
5313
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
5314
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
5315
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
5316
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
5317
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
5318
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
5319
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
5320
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
5321
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
5322
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
5323
|
+
}));
|
|
5324
|
+
//#endregion
|
|
5325
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js
|
|
5326
|
+
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5327
|
+
const looseOption = Object.freeze({ loose: true });
|
|
5328
|
+
const emptyOpts = Object.freeze({});
|
|
5329
|
+
const parseOptions = (options) => {
|
|
5330
|
+
if (!options) return emptyOpts;
|
|
5331
|
+
if (typeof options !== "object") return looseOption;
|
|
5332
|
+
return options;
|
|
5333
|
+
};
|
|
5334
|
+
module.exports = parseOptions;
|
|
5335
|
+
}));
|
|
5336
|
+
//#endregion
|
|
5337
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js
|
|
5338
|
+
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5339
|
+
const numeric = /^[0-9]+$/;
|
|
5340
|
+
const compareIdentifiers = (a, b) => {
|
|
5341
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
5342
|
+
const anum = numeric.test(a);
|
|
5343
|
+
const bnum = numeric.test(b);
|
|
5344
|
+
if (anum && bnum) {
|
|
5345
|
+
a = +a;
|
|
5346
|
+
b = +b;
|
|
5347
|
+
}
|
|
5348
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
5349
|
+
};
|
|
5350
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
5351
|
+
module.exports = {
|
|
5352
|
+
compareIdentifiers,
|
|
5353
|
+
rcompareIdentifiers
|
|
5354
|
+
};
|
|
5355
|
+
}));
|
|
5356
|
+
//#endregion
|
|
5357
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js
|
|
5358
|
+
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5359
|
+
const debug = require_debug();
|
|
5360
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
5361
|
+
const { safeRe: re, t } = require_re();
|
|
5362
|
+
const parseOptions = require_parse_options();
|
|
5363
|
+
const { compareIdentifiers } = require_identifiers();
|
|
5364
|
+
module.exports = class SemVer {
|
|
5365
|
+
constructor(version, options) {
|
|
5366
|
+
options = parseOptions(options);
|
|
5367
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
5368
|
+
else version = version.version;
|
|
5369
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
5370
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
5371
|
+
debug("SemVer", version, options);
|
|
5372
|
+
this.options = options;
|
|
5373
|
+
this.loose = !!options.loose;
|
|
5374
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
5375
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
5376
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
5377
|
+
this.raw = version;
|
|
5378
|
+
this.major = +m[1];
|
|
5379
|
+
this.minor = +m[2];
|
|
5380
|
+
this.patch = +m[3];
|
|
5381
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
5382
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
5383
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
5384
|
+
if (!m[4]) this.prerelease = [];
|
|
5385
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
5386
|
+
if (/^[0-9]+$/.test(id)) {
|
|
5387
|
+
const num = +id;
|
|
5388
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
5389
|
+
}
|
|
5390
|
+
return id;
|
|
5391
|
+
});
|
|
5392
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
5393
|
+
this.format();
|
|
5394
|
+
}
|
|
5395
|
+
format() {
|
|
5396
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
5397
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
5398
|
+
return this.version;
|
|
5399
|
+
}
|
|
5400
|
+
toString() {
|
|
5401
|
+
return this.version;
|
|
5402
|
+
}
|
|
5403
|
+
compare(other) {
|
|
5404
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
5405
|
+
if (!(other instanceof SemVer)) {
|
|
5406
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
5407
|
+
other = new SemVer(other, this.options);
|
|
5408
|
+
}
|
|
5409
|
+
if (other.version === this.version) return 0;
|
|
5410
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
5411
|
+
}
|
|
5412
|
+
compareMain(other) {
|
|
5413
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
5414
|
+
if (this.major < other.major) return -1;
|
|
5415
|
+
if (this.major > other.major) return 1;
|
|
5416
|
+
if (this.minor < other.minor) return -1;
|
|
5417
|
+
if (this.minor > other.minor) return 1;
|
|
5418
|
+
if (this.patch < other.patch) return -1;
|
|
5419
|
+
if (this.patch > other.patch) return 1;
|
|
5420
|
+
return 0;
|
|
5421
|
+
}
|
|
5422
|
+
comparePre(other) {
|
|
5423
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
5424
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
5425
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
5426
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
5427
|
+
let i = 0;
|
|
5428
|
+
do {
|
|
5429
|
+
const a = this.prerelease[i];
|
|
5430
|
+
const b = other.prerelease[i];
|
|
5431
|
+
debug("prerelease compare", i, a, b);
|
|
5432
|
+
if (a === void 0 && b === void 0) return 0;
|
|
5433
|
+
else if (b === void 0) return 1;
|
|
5434
|
+
else if (a === void 0) return -1;
|
|
5435
|
+
else if (a === b) continue;
|
|
5436
|
+
else return compareIdentifiers(a, b);
|
|
5437
|
+
} while (++i);
|
|
5438
|
+
}
|
|
5439
|
+
compareBuild(other) {
|
|
5440
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
5441
|
+
let i = 0;
|
|
5442
|
+
do {
|
|
5443
|
+
const a = this.build[i];
|
|
5444
|
+
const b = other.build[i];
|
|
5445
|
+
debug("build compare", i, a, b);
|
|
5446
|
+
if (a === void 0 && b === void 0) return 0;
|
|
5447
|
+
else if (b === void 0) return 1;
|
|
5448
|
+
else if (a === void 0) return -1;
|
|
5449
|
+
else if (a === b) continue;
|
|
5450
|
+
else return compareIdentifiers(a, b);
|
|
5451
|
+
} while (++i);
|
|
5452
|
+
}
|
|
5453
|
+
inc(release, identifier, identifierBase) {
|
|
5454
|
+
if (release.startsWith("pre")) {
|
|
5455
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
5456
|
+
if (identifier) {
|
|
5457
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
5458
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
5459
|
+
}
|
|
5460
|
+
}
|
|
5461
|
+
switch (release) {
|
|
5462
|
+
case "premajor":
|
|
5463
|
+
this.prerelease.length = 0;
|
|
5464
|
+
this.patch = 0;
|
|
5465
|
+
this.minor = 0;
|
|
5466
|
+
this.major++;
|
|
5467
|
+
this.inc("pre", identifier, identifierBase);
|
|
5468
|
+
break;
|
|
5469
|
+
case "preminor":
|
|
5470
|
+
this.prerelease.length = 0;
|
|
5471
|
+
this.patch = 0;
|
|
5472
|
+
this.minor++;
|
|
5473
|
+
this.inc("pre", identifier, identifierBase);
|
|
5474
|
+
break;
|
|
5475
|
+
case "prepatch":
|
|
5476
|
+
this.prerelease.length = 0;
|
|
5477
|
+
this.inc("patch", identifier, identifierBase);
|
|
5478
|
+
this.inc("pre", identifier, identifierBase);
|
|
5479
|
+
break;
|
|
5480
|
+
case "prerelease":
|
|
5481
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
5482
|
+
this.inc("pre", identifier, identifierBase);
|
|
5483
|
+
break;
|
|
5484
|
+
case "release":
|
|
5485
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
5486
|
+
this.prerelease.length = 0;
|
|
5487
|
+
break;
|
|
5488
|
+
case "major":
|
|
5489
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
5490
|
+
this.minor = 0;
|
|
5491
|
+
this.patch = 0;
|
|
5492
|
+
this.prerelease = [];
|
|
5493
|
+
break;
|
|
5494
|
+
case "minor":
|
|
5495
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
5496
|
+
this.patch = 0;
|
|
5497
|
+
this.prerelease = [];
|
|
5498
|
+
break;
|
|
5499
|
+
case "patch":
|
|
5500
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
5501
|
+
this.prerelease = [];
|
|
5502
|
+
break;
|
|
5503
|
+
case "pre": {
|
|
5504
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
5505
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
5506
|
+
else {
|
|
5507
|
+
let i = this.prerelease.length;
|
|
5508
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
5509
|
+
this.prerelease[i]++;
|
|
5510
|
+
i = -2;
|
|
5511
|
+
}
|
|
5512
|
+
if (i === -1) {
|
|
5513
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
5514
|
+
this.prerelease.push(base);
|
|
5515
|
+
}
|
|
5516
|
+
}
|
|
5517
|
+
if (identifier) {
|
|
5518
|
+
let prerelease = [identifier, base];
|
|
5519
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
5520
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
5521
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
5522
|
+
} else this.prerelease = prerelease;
|
|
5523
|
+
}
|
|
5524
|
+
break;
|
|
5525
|
+
}
|
|
5526
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
5527
|
+
}
|
|
5528
|
+
this.raw = this.format();
|
|
5529
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
5530
|
+
return this;
|
|
5531
|
+
}
|
|
5532
|
+
};
|
|
5533
|
+
}));
|
|
5534
|
+
//#endregion
|
|
5535
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js
|
|
5536
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5537
|
+
const SemVer = require_semver$1();
|
|
5538
|
+
const parse = (version, options, throwErrors = false) => {
|
|
5539
|
+
if (version instanceof SemVer) return version;
|
|
5540
|
+
try {
|
|
5541
|
+
return new SemVer(version, options);
|
|
5542
|
+
} catch (er) {
|
|
5543
|
+
if (!throwErrors) return null;
|
|
5544
|
+
throw er;
|
|
5545
|
+
}
|
|
5546
|
+
};
|
|
5547
|
+
module.exports = parse;
|
|
5548
|
+
}));
|
|
5549
|
+
//#endregion
|
|
5550
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js
|
|
5217
5551
|
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5218
5552
|
const parse = require_parse();
|
|
5219
5553
|
const valid = (version, options) => {
|
|
@@ -5223,7 +5557,7 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5223
5557
|
module.exports = valid;
|
|
5224
5558
|
}));
|
|
5225
5559
|
//#endregion
|
|
5226
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5560
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js
|
|
5227
5561
|
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5228
5562
|
const parse = require_parse();
|
|
5229
5563
|
const clean = (version, options) => {
|
|
@@ -5233,7 +5567,7 @@ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5233
5567
|
module.exports = clean;
|
|
5234
5568
|
}));
|
|
5235
5569
|
//#endregion
|
|
5236
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5570
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js
|
|
5237
5571
|
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5238
5572
|
const SemVer = require_semver$1();
|
|
5239
5573
|
const inc = (version, release, options, identifier, identifierBase) => {
|
|
@@ -5251,28 +5585,56 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5251
5585
|
module.exports = inc;
|
|
5252
5586
|
}));
|
|
5253
5587
|
//#endregion
|
|
5254
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5588
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js
|
|
5589
|
+
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5590
|
+
const parse = require_parse();
|
|
5591
|
+
const diff = (version1, version2) => {
|
|
5592
|
+
const v1 = parse(version1, null, true);
|
|
5593
|
+
const v2 = parse(version2, null, true);
|
|
5594
|
+
const comparison = v1.compare(v2);
|
|
5595
|
+
if (comparison === 0) return null;
|
|
5596
|
+
const v1Higher = comparison > 0;
|
|
5597
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
5598
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
5599
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
5600
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
5601
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
5602
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
5603
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
5604
|
+
return "patch";
|
|
5605
|
+
}
|
|
5606
|
+
}
|
|
5607
|
+
const prefix = highHasPre ? "pre" : "";
|
|
5608
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
5609
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
5610
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
5611
|
+
return "prerelease";
|
|
5612
|
+
};
|
|
5613
|
+
module.exports = diff;
|
|
5614
|
+
}));
|
|
5615
|
+
//#endregion
|
|
5616
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.js
|
|
5255
5617
|
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5256
5618
|
const SemVer = require_semver$1();
|
|
5257
5619
|
const major = (a, loose) => new SemVer(a, loose).major;
|
|
5258
5620
|
module.exports = major;
|
|
5259
5621
|
}));
|
|
5260
5622
|
//#endregion
|
|
5261
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5623
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.js
|
|
5262
5624
|
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5263
5625
|
const SemVer = require_semver$1();
|
|
5264
5626
|
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
5265
5627
|
module.exports = minor;
|
|
5266
5628
|
}));
|
|
5267
5629
|
//#endregion
|
|
5268
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5630
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.js
|
|
5269
5631
|
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5270
5632
|
const SemVer = require_semver$1();
|
|
5271
5633
|
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
5272
5634
|
module.exports = patch;
|
|
5273
5635
|
}));
|
|
5274
5636
|
//#endregion
|
|
5275
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5637
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js
|
|
5276
5638
|
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5277
5639
|
const parse = require_parse();
|
|
5278
5640
|
const prerelease = (version, options) => {
|
|
@@ -5282,21 +5644,28 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5282
5644
|
module.exports = prerelease;
|
|
5283
5645
|
}));
|
|
5284
5646
|
//#endregion
|
|
5285
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5647
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js
|
|
5648
|
+
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5649
|
+
const SemVer = require_semver$1();
|
|
5650
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
5651
|
+
module.exports = compare;
|
|
5652
|
+
}));
|
|
5653
|
+
//#endregion
|
|
5654
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.js
|
|
5286
5655
|
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5287
5656
|
const compare = require_compare();
|
|
5288
5657
|
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
5289
5658
|
module.exports = rcompare;
|
|
5290
5659
|
}));
|
|
5291
5660
|
//#endregion
|
|
5292
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5661
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.js
|
|
5293
5662
|
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5294
5663
|
const compare = require_compare();
|
|
5295
5664
|
const compareLoose = (a, b) => compare(a, b, true);
|
|
5296
5665
|
module.exports = compareLoose;
|
|
5297
5666
|
}));
|
|
5298
5667
|
//#endregion
|
|
5299
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5668
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.js
|
|
5300
5669
|
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5301
5670
|
const SemVer = require_semver$1();
|
|
5302
5671
|
const compareBuild = (a, b, loose) => {
|
|
@@ -5307,56 +5676,63 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
5307
5676
|
module.exports = compareBuild;
|
|
5308
5677
|
}));
|
|
5309
5678
|
//#endregion
|
|
5310
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5679
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.js
|
|
5311
5680
|
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5312
5681
|
const compareBuild = require_compare_build();
|
|
5313
5682
|
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
5314
5683
|
module.exports = sort;
|
|
5315
5684
|
}));
|
|
5316
5685
|
//#endregion
|
|
5317
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5686
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.js
|
|
5318
5687
|
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5319
5688
|
const compareBuild = require_compare_build();
|
|
5320
5689
|
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
5321
5690
|
module.exports = rsort;
|
|
5322
5691
|
}));
|
|
5323
5692
|
//#endregion
|
|
5324
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5693
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js
|
|
5694
|
+
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5695
|
+
const compare = require_compare();
|
|
5696
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
5697
|
+
module.exports = gt;
|
|
5698
|
+
}));
|
|
5699
|
+
//#endregion
|
|
5700
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js
|
|
5325
5701
|
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5326
5702
|
const compare = require_compare();
|
|
5327
5703
|
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
5328
5704
|
module.exports = lt;
|
|
5329
5705
|
}));
|
|
5330
5706
|
//#endregion
|
|
5331
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5707
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js
|
|
5332
5708
|
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5333
5709
|
const compare = require_compare();
|
|
5334
5710
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
5335
5711
|
module.exports = eq;
|
|
5336
5712
|
}));
|
|
5337
5713
|
//#endregion
|
|
5338
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5714
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js
|
|
5339
5715
|
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5340
5716
|
const compare = require_compare();
|
|
5341
5717
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
5342
5718
|
module.exports = neq;
|
|
5343
5719
|
}));
|
|
5344
5720
|
//#endregion
|
|
5345
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5721
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js
|
|
5346
5722
|
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5347
5723
|
const compare = require_compare();
|
|
5348
5724
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
5349
5725
|
module.exports = gte;
|
|
5350
5726
|
}));
|
|
5351
5727
|
//#endregion
|
|
5352
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5728
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js
|
|
5353
5729
|
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5354
5730
|
const compare = require_compare();
|
|
5355
5731
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
5356
5732
|
module.exports = lte;
|
|
5357
5733
|
}));
|
|
5358
5734
|
//#endregion
|
|
5359
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5735
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.js
|
|
5360
5736
|
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5361
5737
|
const eq = require_eq();
|
|
5362
5738
|
const neq = require_neq();
|
|
@@ -5388,7 +5764,7 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5388
5764
|
module.exports = cmp;
|
|
5389
5765
|
}));
|
|
5390
5766
|
//#endregion
|
|
5391
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5767
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js
|
|
5392
5768
|
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5393
5769
|
const SemVer = require_semver$1();
|
|
5394
5770
|
const parse = require_parse();
|
|
@@ -5416,7 +5792,7 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5416
5792
|
module.exports = coerce;
|
|
5417
5793
|
}));
|
|
5418
5794
|
//#endregion
|
|
5419
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5795
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js
|
|
5420
5796
|
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5421
5797
|
var LRUCache = class {
|
|
5422
5798
|
constructor() {
|
|
@@ -5449,7 +5825,7 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5449
5825
|
module.exports = LRUCache;
|
|
5450
5826
|
}));
|
|
5451
5827
|
//#endregion
|
|
5452
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5828
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js
|
|
5453
5829
|
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5454
5830
|
const SPACE_CHARACTERS = /\s+/g;
|
|
5455
5831
|
module.exports = class Range {
|
|
@@ -5721,7 +6097,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5721
6097
|
};
|
|
5722
6098
|
}));
|
|
5723
6099
|
//#endregion
|
|
5724
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6100
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js
|
|
5725
6101
|
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5726
6102
|
const ANY = Symbol("SemVer ANY");
|
|
5727
6103
|
module.exports = class Comparator {
|
|
@@ -5791,7 +6167,7 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5791
6167
|
const Range = require_range();
|
|
5792
6168
|
}));
|
|
5793
6169
|
//#endregion
|
|
5794
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6170
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js
|
|
5795
6171
|
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5796
6172
|
const Range = require_range();
|
|
5797
6173
|
const satisfies = (version, range, options) => {
|
|
@@ -5805,14 +6181,14 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5805
6181
|
module.exports = satisfies;
|
|
5806
6182
|
}));
|
|
5807
6183
|
//#endregion
|
|
5808
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6184
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.js
|
|
5809
6185
|
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5810
6186
|
const Range = require_range();
|
|
5811
6187
|
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
5812
6188
|
module.exports = toComparators;
|
|
5813
6189
|
}));
|
|
5814
6190
|
//#endregion
|
|
5815
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6191
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.js
|
|
5816
6192
|
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5817
6193
|
const SemVer = require_semver$1();
|
|
5818
6194
|
const Range = require_range();
|
|
@@ -5838,7 +6214,7 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
5838
6214
|
module.exports = maxSatisfying;
|
|
5839
6215
|
}));
|
|
5840
6216
|
//#endregion
|
|
5841
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6217
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.js
|
|
5842
6218
|
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5843
6219
|
const SemVer = require_semver$1();
|
|
5844
6220
|
const Range = require_range();
|
|
@@ -5864,7 +6240,7 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
5864
6240
|
module.exports = minSatisfying;
|
|
5865
6241
|
}));
|
|
5866
6242
|
//#endregion
|
|
5867
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6243
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js
|
|
5868
6244
|
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5869
6245
|
const SemVer = require_semver$1();
|
|
5870
6246
|
const Range = require_range();
|
|
@@ -5904,7 +6280,7 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5904
6280
|
module.exports = minVersion;
|
|
5905
6281
|
}));
|
|
5906
6282
|
//#endregion
|
|
5907
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6283
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.js
|
|
5908
6284
|
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5909
6285
|
const Range = require_range();
|
|
5910
6286
|
const validRange = (range, options) => {
|
|
@@ -5917,7 +6293,7 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5917
6293
|
module.exports = validRange;
|
|
5918
6294
|
}));
|
|
5919
6295
|
//#endregion
|
|
5920
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6296
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.js
|
|
5921
6297
|
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5922
6298
|
const SemVer = require_semver$1();
|
|
5923
6299
|
const Comparator = require_comparator();
|
|
@@ -5970,21 +6346,21 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5970
6346
|
module.exports = outside;
|
|
5971
6347
|
}));
|
|
5972
6348
|
//#endregion
|
|
5973
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6349
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.js
|
|
5974
6350
|
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5975
6351
|
const outside = require_outside();
|
|
5976
6352
|
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
5977
6353
|
module.exports = gtr;
|
|
5978
6354
|
}));
|
|
5979
6355
|
//#endregion
|
|
5980
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6356
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.js
|
|
5981
6357
|
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5982
6358
|
const outside = require_outside();
|
|
5983
6359
|
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
5984
6360
|
module.exports = ltr;
|
|
5985
6361
|
}));
|
|
5986
6362
|
//#endregion
|
|
5987
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6363
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.js
|
|
5988
6364
|
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5989
6365
|
const Range = require_range();
|
|
5990
6366
|
const intersects = (r1, r2, options) => {
|
|
@@ -5995,7 +6371,7 @@ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5995
6371
|
module.exports = intersects;
|
|
5996
6372
|
}));
|
|
5997
6373
|
//#endregion
|
|
5998
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6374
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.js
|
|
5999
6375
|
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6000
6376
|
const satisfies = require_satisfies();
|
|
6001
6377
|
const compare = require_compare();
|
|
@@ -6025,7 +6401,7 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6025
6401
|
};
|
|
6026
6402
|
}));
|
|
6027
6403
|
//#endregion
|
|
6028
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6404
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.js
|
|
6029
6405
|
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6030
6406
|
const Range = require_range();
|
|
6031
6407
|
const Comparator = require_comparator();
|
|
@@ -6120,7 +6496,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6120
6496
|
module.exports = subset;
|
|
6121
6497
|
}));
|
|
6122
6498
|
//#endregion
|
|
6123
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6499
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.js
|
|
6124
6500
|
var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6125
6501
|
const internalRe = require_re();
|
|
6126
6502
|
const constants = require_constants();
|
|
@@ -7627,45 +8003,12 @@ function isLocError(error) {
|
|
|
7627
8003
|
//#endregion
|
|
7628
8004
|
//#region package.json
|
|
7629
8005
|
var name = "@bamboocss/dev";
|
|
7630
|
-
var version = "1.
|
|
8006
|
+
var version = "1.48.0";
|
|
7631
8007
|
//#endregion
|
|
7632
8008
|
//#region src/interactive.ts
|
|
7633
|
-
|
|
7634
|
-
* Which integration this project wants, before anybody is asked.
|
|
7635
|
-
*
|
|
7636
|
-
* The question is not really a preference. `@bamboocss/vite` compiles every `css()` and `cva()`
|
|
7637
|
-
* call to a literal class string; `@bamboocss/postcss` emits the stylesheet and compiles
|
|
7638
|
-
* nothing, so those calls stay runtime calls and the style engine ships to the client. Which of
|
|
7639
|
-
* the two applies is decided by the bundler, and the answer is on disk: a Vite config means the
|
|
7640
|
-
* compiler is available.
|
|
7641
|
-
*
|
|
7642
|
-
* Asked cold, with `yes` preselected, this steered every Vite project onto the runtime path by
|
|
7643
|
-
* pressing Enter — and both setups render identically, so nothing afterwards reveals the
|
|
7644
|
-
* choice. That is the same defect the React Router guide had, reached by a different door.
|
|
7645
|
-
*
|
|
7646
|
-
* Svelte, Vue and Astro are the exception in the other direction: their components are
|
|
7647
|
-
* templates the compiler does not transform, so PostCSS is the integration they should be on
|
|
7648
|
-
* and the default stays `yes`.
|
|
7649
|
-
*/
|
|
7650
|
-
const suggestPostcss = (cwd) => {
|
|
7651
|
-
if (!(0, _bamboocss_node.findViteConfig)(cwd)) return "yes";
|
|
7652
|
-
return (0, _bamboocss_node.hasUncompilableSources)({ cwd }) ? "yes" : "no";
|
|
7653
|
-
};
|
|
7654
|
-
const interactive = async (options = {}) => {
|
|
7655
|
-
const postcssDefault = suggestPostcss(options.cwd ?? process.cwd());
|
|
8009
|
+
const interactive = async (_options = {}) => {
|
|
7656
8010
|
_clack_prompts.intro(`bamboo v${version}`);
|
|
7657
8011
|
const initFlags = await _clack_prompts.group({
|
|
7658
|
-
usePostcss: () => _clack_prompts.select({
|
|
7659
|
-
message: postcssDefault === "no" ? "Emit the stylesheet through PostCSS? This project has a Vite config, and `@bamboocss/vite` compiles your style calls away instead." : "Emit the stylesheet through PostCSS?",
|
|
7660
|
-
initialValue: postcssDefault,
|
|
7661
|
-
options: [{
|
|
7662
|
-
value: "yes",
|
|
7663
|
-
label: "Yes"
|
|
7664
|
-
}, {
|
|
7665
|
-
value: "no",
|
|
7666
|
-
label: "No"
|
|
7667
|
-
}]
|
|
7668
|
-
}),
|
|
7669
8012
|
useMjsExtension: () => _clack_prompts.select({
|
|
7670
8013
|
message: "Use the mjs extension ?",
|
|
7671
8014
|
initialValue: "yes",
|
|
@@ -7705,7 +8048,6 @@ const interactive = async (options = {}) => {
|
|
|
7705
8048
|
} });
|
|
7706
8049
|
_clack_prompts.outro("Let's get started! 🎋");
|
|
7707
8050
|
return {
|
|
7708
|
-
postcss: initFlags.usePostcss === "yes",
|
|
7709
8051
|
outExtension: initFlags.useMjsExtension === "yes" ? "mjs" : "js",
|
|
7710
8052
|
strictValues: strictValuesFrom(initFlags.withStrictTokens),
|
|
7711
8053
|
gitignore: initFlags.shouldUpdateGitignore === "yes"
|
|
@@ -7750,14 +8092,14 @@ const normalizeStrictTokens = (value) => {
|
|
|
7750
8092
|
async function main() {
|
|
7751
8093
|
const cli = (0, cac.cac)("bamboo");
|
|
7752
8094
|
const cwd = process.cwd();
|
|
7753
|
-
cli.command("init", "Initialize the bamboo config file").option("-i, --interactive", "Run in interactive mode", { default: false }).option("-f, --force", "Force overwrite existing config file").option("-
|
|
8095
|
+
cli.command("init", "Initialize the bamboo config file").option("-i, --interactive", "Run in interactive mode", { default: false }).option("-f, --force", "Force overwrite existing config file").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--silent", "Suppress all messages except errors").option("--no-gitignore", "Don't update the .gitignore").option("--no-codegen", "Don't run the codegen logic").option("--out-extension <ext>", "The extension of the generated js files (default: 'mjs')").option("--outdir <dir>", "The output directory for the generated files").option("--strict-values [mode]", "Require every style value to be a token, so a raw css value is written `[14px]`").option("--logfile <file>", "Outputs logs to a file").action(async (initFlags = {}) => {
|
|
7754
8096
|
let options = {};
|
|
7755
8097
|
if (initFlags.interactive) options = await interactive({ cwd: (0, path.resolve)(initFlags.cwd ?? "") });
|
|
7756
8098
|
const flags = {
|
|
7757
8099
|
...initFlags,
|
|
7758
8100
|
...options
|
|
7759
8101
|
};
|
|
7760
|
-
const { force,
|
|
8102
|
+
const { force, silent, gitignore, outExtension, strictValues, config: configPath } = flags;
|
|
7761
8103
|
const cwd = (0, path.resolve)(flags.cwd ?? "");
|
|
7762
8104
|
if (silent) _bamboocss_logger.logger.level = "silent";
|
|
7763
8105
|
const stream = (0, _bamboocss_node.setLogStream)({
|
|
@@ -7766,7 +8108,6 @@ async function main() {
|
|
|
7766
8108
|
});
|
|
7767
8109
|
_bamboocss_logger.logger.info("cli", `Bamboo v${version}\n`);
|
|
7768
8110
|
const done = _bamboocss_logger.logger.time.info("✨ Bamboo initialized");
|
|
7769
|
-
if (postcss) await (0, _bamboocss_node.setupPostcss)(cwd);
|
|
7770
8111
|
await (0, _bamboocss_node.setupConfig)(cwd, (0, _bamboocss_shared.compact)({
|
|
7771
8112
|
force,
|
|
7772
8113
|
outExtension,
|
|
@@ -7823,7 +8164,7 @@ async function main() {
|
|
|
7823
8164
|
else stream.end();
|
|
7824
8165
|
stopProfiling();
|
|
7825
8166
|
});
|
|
7826
|
-
cli.command("cssgen [globOrType]", "Generate the css from files, or generate the css from the specified type which can be: preflight, tokens, static, global, keyframes").option("--silent", "Don't print any logs").option("-m, --minify", "Minify generated code").option("--clean", "Clean the output before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("
|
|
8167
|
+
cli.command("cssgen [globOrType]", "Generate the css from files, or generate the css from the specified type which can be: preflight, tokens, static, global, keyframes").option("--silent", "Don't print any logs").option("-m, --minify", "Minify generated code").option("--clean", "Clean the output before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-o, --outfile [file]", "Output file for extracted css, default to './styled-system/styles.css'").option("--splitting", "Emit CSS as separate files per layer (reset, global, tokens, utilities)").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (maybeGlob, flags = {}) => {
|
|
7827
8168
|
const { silent, config: configPath, outfile, watch, poll, splitting, ...rest } = flags;
|
|
7828
8169
|
const cwd = (0, path.resolve)(flags.cwd ?? "");
|
|
7829
8170
|
const stream = (0, _bamboocss_node.setLogStream)({
|
|
@@ -7888,7 +8229,7 @@ async function main() {
|
|
|
7888
8229
|
stopProfiling();
|
|
7889
8230
|
}
|
|
7890
8231
|
});
|
|
7891
|
-
cli.command("[files]", "Include file glob", { ignoreOptionDefaultValue: true }).option("-o, --outdir <dir>", "Output directory", { default: "styled-system" }).option("-m, --minify", "Minify generated code").option("-w, --watch", "Watch files and rebuild").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--preflight", "Enable css reset").option("--silent", "Suppress all messages except errors").option("-e, --exclude <files>", "Exclude files", { default: [] }).option("--clean", "Clean output directory").option("--hash", "Hash the generated classnames to make them shorter").option("--
|
|
8232
|
+
cli.command("[files]", "Include file glob", { ignoreOptionDefaultValue: true }).option("-o, --outdir <dir>", "Output directory", { default: "styled-system" }).option("-m, --minify", "Minify generated code").option("-w, --watch", "Watch files and rebuild").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--preflight", "Enable css reset").option("--silent", "Suppress all messages except errors").option("-e, --exclude <files>", "Exclude files", { default: [] }).option("--clean", "Clean output directory").option("--hash", "Hash the generated classnames to make them shorter").option("--emitTokensOnly", "Whether to only emit the `tokens` directory").option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (files, flags) => {
|
|
7892
8233
|
const { config: configPath, silent, ...rest } = flags;
|
|
7893
8234
|
const cwd = (0, path.resolve)(flags.cwd ?? "");
|
|
7894
8235
|
const stream = (0, _bamboocss_node.setLogStream)({
|