react-doctor 0.9.12-dev.0b670aa → 0.9.12-dev.1d3e4a6
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/README.md +27 -0
- package/dist/active-run-trace-dlIZeEvb.js +18 -0
- package/dist/active-scan-abort-registry-DwG6tSPy.js +28 -0
- package/dist/{build-section-divider-CJ7k-BvF.js → build-section-divider-8MOZLIsm.js} +8 -22
- package/dist/{ci-Dannv-cF.js → ci-BkncxruQ.js} +12 -11
- package/dist/cli.js +76 -24
- package/dist/{design-9x5DReyL.js → design-cWsjx19m.js} +4 -4
- package/dist/{devtools-D8NTVj81.js → devtools-BiC-AP3B.js} +3 -3
- package/dist/{exit-gracefully-ti2wONpM.js → exit-gracefully-B9tEGAKH.js} +15 -9
- package/dist/get-east-asian-width-Cglw13G7.js +444 -0
- package/dist/{report-error-BlOAg03W.js → handle-error-wbMFUdUK.js} +6 -61
- package/dist/index.d.ts +34 -2
- package/dist/index.js +334 -205
- package/dist/{inspect-C3itFiEW.js → inspect-Bz2rayph.js} +17 -16
- package/dist/{install-CjIJL6S5.js → install-DdckCi3Z.js} +9 -8
- package/dist/{install-doctor-script-0sdZ4SY8.js → install-doctor-script-jOg4qbkK.js} +7 -449
- package/dist/{install-github-workflow-DQ8_lhAW.js → install-github-workflow-C5OkC7nA.js} +6 -6
- package/dist/{install-react-doctor-DRG8hdL4.js → install-react-doctor-W8P-PVpX.js} +8 -8
- package/dist/{run-scan-app-Cgn4ELJF.js → jsx-runtime-0eiF0jis.js} +280 -2769
- package/dist/{print-branded-header-Dc1KdrcV.js → print-branded-header-_cUJmAUD.js} +4 -4
- package/dist/project-analysis-worker.js +3 -3
- package/dist/prompt-runtime-scan-url-CV2AUqdk.js +240 -0
- package/dist/{read-object-file-rblJxHxN.js → read-object-file-DOfcpaZX.js} +4 -4
- package/dist/{record-metric-Dgg2b2LG.js → record-metric-BA5ry-7d.js} +338 -188
- package/dist/report-error-CFe3r9gh.js +64 -0
- package/dist/{report-workflow-result-Dp4dCUxw.js → report-workflow-result-BoDN1Z77.js} +5 -5
- package/dist/{resolve-scope-CbeXgE9z.js → resolve-scope-BVNh_icv.js} +6 -6
- package/dist/{rules-ClDrNCc3.js → rules-CyIHtrnI.js} +6 -6
- package/dist/run-scan-app-BhUlnxaV.js +2509 -0
- package/dist/runtime-scan/browser-probe.iife.js +855 -0
- package/dist/runtime-scan-CUt6T5J3.js +770 -0
- package/dist/sanitize-runtime-url-CWANxE3L.js +76 -0
- package/dist/{scan-Caa_ogFB.js → scan-DU_zcchs.js} +10 -22
- package/dist/{should-fail-scan-gate-BGzNJApW.js → should-fail-scan-gate-CDwqCAPq.js} +23 -114
- package/dist/{should-skip-prompts-Bbl0ToUI.js → should-skip-prompts-B9za5uX9.js} +4 -4
- package/dist/should-use-tui-BR82qmYC.js +25 -0
- package/dist/skills/improve-threejs/SKILL.md +102 -0
- package/dist/skills/performance/SKILL.md +113 -0
- package/dist/skills/react-doctor/SKILL.md +6 -0
- package/dist/{unref-stdin-C7d7_3va.js → telemetry-runtime-C9dZxrK_.js} +5 -23
- package/dist/unref-stdin-BKT_s38a.js +12 -0
- package/dist/{version-Bjql-CLM.js → version-yw_bHX_4.js} +4 -4
- package/dist/{why-BqG2EML8.js → why-CdGev87Z.js} +4 -4
- package/dist/with-run-span-CCVNobt7.js +110 -0
- package/package.json +9 -6
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { i as __toESM
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8065a42b-3c73-5f92-8b4f-29cb68d77940")}catch(e){}}();
|
|
3
|
+
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import * as path$1$1 from "node:path";
|
|
6
6
|
import path from "node:path";
|
|
@@ -25,7 +25,7 @@ import { convertToTSX } from "@astrojs/compiler/sync";
|
|
|
25
25
|
import { STATUS_CODES } from "node:http";
|
|
26
26
|
import { gzipSync } from "node:zlib";
|
|
27
27
|
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/constants.js
|
|
28
|
-
var require_constants$1 = /* @__PURE__ */ __commonJSMin
|
|
28
|
+
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
29
29
|
const WIN_SLASH = "\\\\/";
|
|
30
30
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
31
31
|
const DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
@@ -194,7 +194,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) =>
|
|
|
194
194
|
}));
|
|
195
195
|
//#endregion
|
|
196
196
|
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/utils.js
|
|
197
|
-
var require_utils = /* @__PURE__ */ __commonJSMin
|
|
197
|
+
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
198
198
|
const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$1();
|
|
199
199
|
exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
200
200
|
exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
|
|
@@ -242,7 +242,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
242
242
|
}));
|
|
243
243
|
//#endregion
|
|
244
244
|
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/scan.js
|
|
245
|
-
var require_scan = /* @__PURE__ */ __commonJSMin
|
|
245
|
+
var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
246
246
|
const utils = require_utils();
|
|
247
247
|
const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = require_constants$1();
|
|
248
248
|
const isPathSeparator = (code) => {
|
|
@@ -529,7 +529,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
529
529
|
}));
|
|
530
530
|
//#endregion
|
|
531
531
|
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/parse.js
|
|
532
|
-
var require_parse$2 = /* @__PURE__ */ __commonJSMin
|
|
532
|
+
var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
533
533
|
const constants = require_constants$1();
|
|
534
534
|
const utils = require_utils();
|
|
535
535
|
/**
|
|
@@ -1584,7 +1584,7 @@ var require_parse$2 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
1584
1584
|
}));
|
|
1585
1585
|
//#endregion
|
|
1586
1586
|
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/picomatch.js
|
|
1587
|
-
var require_picomatch$1 = /* @__PURE__ */ __commonJSMin
|
|
1587
|
+
var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1588
1588
|
const scan = require_scan();
|
|
1589
1589
|
const parse = require_parse$2();
|
|
1590
1590
|
const utils = require_utils();
|
|
@@ -1884,7 +1884,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) =>
|
|
|
1884
1884
|
}));
|
|
1885
1885
|
//#endregion
|
|
1886
1886
|
//#region ../core/dist/collect-unplugin-auto-import-global-scopes-Dno9RW5R.js
|
|
1887
|
-
var import_picomatch = /* @__PURE__ */ __toESM
|
|
1887
|
+
var import_picomatch = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1888
1888
|
const pico = require_picomatch$1();
|
|
1889
1889
|
const utils = require_utils();
|
|
1890
1890
|
function picomatch(glob, options, returnState = false) {
|
|
@@ -23377,7 +23377,7 @@ Union([
|
|
|
23377
23377
|
]);
|
|
23378
23378
|
//#endregion
|
|
23379
23379
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js
|
|
23380
|
-
var require_constants = /* @__PURE__ */ __commonJSMin
|
|
23380
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23381
23381
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
23382
23382
|
const MAX_LENGTH = 256;
|
|
23383
23383
|
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
@@ -23402,12 +23402,12 @@ var require_constants = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23402
23402
|
}));
|
|
23403
23403
|
//#endregion
|
|
23404
23404
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js
|
|
23405
|
-
var require_debug = /* @__PURE__ */ __commonJSMin
|
|
23405
|
+
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23406
23406
|
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
23407
23407
|
}));
|
|
23408
23408
|
//#endregion
|
|
23409
23409
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js
|
|
23410
|
-
var require_re = /* @__PURE__ */ __commonJSMin
|
|
23410
|
+
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23411
23411
|
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
23412
23412
|
const debug = require_debug();
|
|
23413
23413
|
exports = module.exports = {};
|
|
@@ -23486,7 +23486,7 @@ var require_re = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23486
23486
|
}));
|
|
23487
23487
|
//#endregion
|
|
23488
23488
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js
|
|
23489
|
-
var require_parse_options = /* @__PURE__ */ __commonJSMin
|
|
23489
|
+
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23490
23490
|
const looseOption = Object.freeze({ loose: true });
|
|
23491
23491
|
const emptyOpts = Object.freeze({});
|
|
23492
23492
|
const parseOptions = (options) => {
|
|
@@ -23498,7 +23498,7 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin$1(((exports, module) =
|
|
|
23498
23498
|
}));
|
|
23499
23499
|
//#endregion
|
|
23500
23500
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js
|
|
23501
|
-
var require_identifiers = /* @__PURE__ */ __commonJSMin
|
|
23501
|
+
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23502
23502
|
const numeric = /^[0-9]+$/;
|
|
23503
23503
|
const compareIdentifiers = (a, b) => {
|
|
23504
23504
|
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
@@ -23518,7 +23518,7 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin$1(((exports, module) =>
|
|
|
23518
23518
|
}));
|
|
23519
23519
|
//#endregion
|
|
23520
23520
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js
|
|
23521
|
-
var require_semver$1 = /* @__PURE__ */ __commonJSMin
|
|
23521
|
+
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23522
23522
|
const debug = require_debug();
|
|
23523
23523
|
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
23524
23524
|
const { safeRe: re, t } = require_re();
|
|
@@ -23696,7 +23696,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23696
23696
|
}));
|
|
23697
23697
|
//#endregion
|
|
23698
23698
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js
|
|
23699
|
-
var require_parse$1 = /* @__PURE__ */ __commonJSMin
|
|
23699
|
+
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23700
23700
|
const SemVer = require_semver$1();
|
|
23701
23701
|
const parse = (version, options, throwErrors = false) => {
|
|
23702
23702
|
if (version instanceof SemVer) return version;
|
|
@@ -23711,7 +23711,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23711
23711
|
}));
|
|
23712
23712
|
//#endregion
|
|
23713
23713
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js
|
|
23714
|
-
var require_valid$1 = /* @__PURE__ */ __commonJSMin
|
|
23714
|
+
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23715
23715
|
const parse = require_parse$1();
|
|
23716
23716
|
const valid = (version, options) => {
|
|
23717
23717
|
const v = parse(version, options);
|
|
@@ -23721,7 +23721,7 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23721
23721
|
}));
|
|
23722
23722
|
//#endregion
|
|
23723
23723
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js
|
|
23724
|
-
var require_clean = /* @__PURE__ */ __commonJSMin
|
|
23724
|
+
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23725
23725
|
const parse = require_parse$1();
|
|
23726
23726
|
const clean = (version, options) => {
|
|
23727
23727
|
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
@@ -23731,7 +23731,7 @@ var require_clean = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23731
23731
|
}));
|
|
23732
23732
|
//#endregion
|
|
23733
23733
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js
|
|
23734
|
-
var require_inc = /* @__PURE__ */ __commonJSMin
|
|
23734
|
+
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23735
23735
|
const SemVer = require_semver$1();
|
|
23736
23736
|
const inc = (version, release, options, identifier, identifierBase) => {
|
|
23737
23737
|
if (typeof options === "string") {
|
|
@@ -23749,7 +23749,7 @@ var require_inc = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23749
23749
|
}));
|
|
23750
23750
|
//#endregion
|
|
23751
23751
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js
|
|
23752
|
-
var require_diff = /* @__PURE__ */ __commonJSMin
|
|
23752
|
+
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23753
23753
|
const parse = require_parse$1();
|
|
23754
23754
|
const diff = (version1, version2) => {
|
|
23755
23755
|
const v1 = parse(version1, null, true);
|
|
@@ -23777,28 +23777,28 @@ var require_diff = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23777
23777
|
}));
|
|
23778
23778
|
//#endregion
|
|
23779
23779
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.js
|
|
23780
|
-
var require_major = /* @__PURE__ */ __commonJSMin
|
|
23780
|
+
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23781
23781
|
const SemVer = require_semver$1();
|
|
23782
23782
|
const major = (a, loose) => new SemVer(a, loose).major;
|
|
23783
23783
|
module.exports = major;
|
|
23784
23784
|
}));
|
|
23785
23785
|
//#endregion
|
|
23786
23786
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.js
|
|
23787
|
-
var require_minor = /* @__PURE__ */ __commonJSMin
|
|
23787
|
+
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23788
23788
|
const SemVer = require_semver$1();
|
|
23789
23789
|
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
23790
23790
|
module.exports = minor;
|
|
23791
23791
|
}));
|
|
23792
23792
|
//#endregion
|
|
23793
23793
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.js
|
|
23794
|
-
var require_patch = /* @__PURE__ */ __commonJSMin
|
|
23794
|
+
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23795
23795
|
const SemVer = require_semver$1();
|
|
23796
23796
|
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
23797
23797
|
module.exports = patch;
|
|
23798
23798
|
}));
|
|
23799
23799
|
//#endregion
|
|
23800
23800
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js
|
|
23801
|
-
var require_prerelease = /* @__PURE__ */ __commonJSMin
|
|
23801
|
+
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23802
23802
|
const parse = require_parse$1();
|
|
23803
23803
|
const prerelease = (version, options) => {
|
|
23804
23804
|
const parsed = parse(version, options);
|
|
@@ -23808,28 +23808,28 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23808
23808
|
}));
|
|
23809
23809
|
//#endregion
|
|
23810
23810
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js
|
|
23811
|
-
var require_compare = /* @__PURE__ */ __commonJSMin
|
|
23811
|
+
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23812
23812
|
const SemVer = require_semver$1();
|
|
23813
23813
|
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
23814
23814
|
module.exports = compare;
|
|
23815
23815
|
}));
|
|
23816
23816
|
//#endregion
|
|
23817
23817
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.js
|
|
23818
|
-
var require_rcompare = /* @__PURE__ */ __commonJSMin
|
|
23818
|
+
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23819
23819
|
const compare = require_compare();
|
|
23820
23820
|
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
23821
23821
|
module.exports = rcompare;
|
|
23822
23822
|
}));
|
|
23823
23823
|
//#endregion
|
|
23824
23824
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.js
|
|
23825
|
-
var require_compare_loose = /* @__PURE__ */ __commonJSMin
|
|
23825
|
+
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23826
23826
|
const compare = require_compare();
|
|
23827
23827
|
const compareLoose = (a, b) => compare(a, b, true);
|
|
23828
23828
|
module.exports = compareLoose;
|
|
23829
23829
|
}));
|
|
23830
23830
|
//#endregion
|
|
23831
23831
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.js
|
|
23832
|
-
var require_compare_build = /* @__PURE__ */ __commonJSMin
|
|
23832
|
+
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23833
23833
|
const SemVer = require_semver$1();
|
|
23834
23834
|
const compareBuild = (a, b, loose) => {
|
|
23835
23835
|
const versionA = new SemVer(a, loose);
|
|
@@ -23840,63 +23840,63 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin$1(((exports, module) =
|
|
|
23840
23840
|
}));
|
|
23841
23841
|
//#endregion
|
|
23842
23842
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.js
|
|
23843
|
-
var require_sort = /* @__PURE__ */ __commonJSMin
|
|
23843
|
+
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23844
23844
|
const compareBuild = require_compare_build();
|
|
23845
23845
|
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
23846
23846
|
module.exports = sort;
|
|
23847
23847
|
}));
|
|
23848
23848
|
//#endregion
|
|
23849
23849
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.js
|
|
23850
|
-
var require_rsort = /* @__PURE__ */ __commonJSMin
|
|
23850
|
+
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23851
23851
|
const compareBuild = require_compare_build();
|
|
23852
23852
|
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
23853
23853
|
module.exports = rsort;
|
|
23854
23854
|
}));
|
|
23855
23855
|
//#endregion
|
|
23856
23856
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js
|
|
23857
|
-
var require_gt = /* @__PURE__ */ __commonJSMin
|
|
23857
|
+
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23858
23858
|
const compare = require_compare();
|
|
23859
23859
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
23860
23860
|
module.exports = gt;
|
|
23861
23861
|
}));
|
|
23862
23862
|
//#endregion
|
|
23863
23863
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js
|
|
23864
|
-
var require_lt = /* @__PURE__ */ __commonJSMin
|
|
23864
|
+
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23865
23865
|
const compare = require_compare();
|
|
23866
23866
|
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
23867
23867
|
module.exports = lt;
|
|
23868
23868
|
}));
|
|
23869
23869
|
//#endregion
|
|
23870
23870
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js
|
|
23871
|
-
var require_eq = /* @__PURE__ */ __commonJSMin
|
|
23871
|
+
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23872
23872
|
const compare = require_compare();
|
|
23873
23873
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
23874
23874
|
module.exports = eq;
|
|
23875
23875
|
}));
|
|
23876
23876
|
//#endregion
|
|
23877
23877
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js
|
|
23878
|
-
var require_neq = /* @__PURE__ */ __commonJSMin
|
|
23878
|
+
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23879
23879
|
const compare = require_compare();
|
|
23880
23880
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
23881
23881
|
module.exports = neq;
|
|
23882
23882
|
}));
|
|
23883
23883
|
//#endregion
|
|
23884
23884
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js
|
|
23885
|
-
var require_gte = /* @__PURE__ */ __commonJSMin
|
|
23885
|
+
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23886
23886
|
const compare = require_compare();
|
|
23887
23887
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
23888
23888
|
module.exports = gte;
|
|
23889
23889
|
}));
|
|
23890
23890
|
//#endregion
|
|
23891
23891
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js
|
|
23892
|
-
var require_lte = /* @__PURE__ */ __commonJSMin
|
|
23892
|
+
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23893
23893
|
const compare = require_compare();
|
|
23894
23894
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
23895
23895
|
module.exports = lte;
|
|
23896
23896
|
}));
|
|
23897
23897
|
//#endregion
|
|
23898
23898
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.js
|
|
23899
|
-
var require_cmp = /* @__PURE__ */ __commonJSMin
|
|
23899
|
+
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23900
23900
|
const eq = require_eq();
|
|
23901
23901
|
const neq = require_neq();
|
|
23902
23902
|
const gt = require_gt();
|
|
@@ -23928,7 +23928,7 @@ var require_cmp = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23928
23928
|
}));
|
|
23929
23929
|
//#endregion
|
|
23930
23930
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js
|
|
23931
|
-
var require_coerce = /* @__PURE__ */ __commonJSMin
|
|
23931
|
+
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23932
23932
|
const SemVer = require_semver$1();
|
|
23933
23933
|
const parse = require_parse$1();
|
|
23934
23934
|
const { safeRe: re, t } = require_re();
|
|
@@ -23956,7 +23956,7 @@ var require_coerce = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23956
23956
|
}));
|
|
23957
23957
|
//#endregion
|
|
23958
23958
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js
|
|
23959
|
-
var require_lrucache = /* @__PURE__ */ __commonJSMin
|
|
23959
|
+
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23960
23960
|
var LRUCache = class {
|
|
23961
23961
|
constructor() {
|
|
23962
23962
|
this.max = 1e3;
|
|
@@ -23989,7 +23989,7 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23989
23989
|
}));
|
|
23990
23990
|
//#endregion
|
|
23991
23991
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js
|
|
23992
|
-
var require_range = /* @__PURE__ */ __commonJSMin
|
|
23992
|
+
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23993
23993
|
const SPACE_CHARACTERS = /\s+/g;
|
|
23994
23994
|
module.exports = class Range {
|
|
23995
23995
|
constructor(range, options) {
|
|
@@ -24261,7 +24261,7 @@ var require_range = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
24261
24261
|
}));
|
|
24262
24262
|
//#endregion
|
|
24263
24263
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js
|
|
24264
|
-
var require_comparator = /* @__PURE__ */ __commonJSMin
|
|
24264
|
+
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24265
24265
|
const ANY = Symbol("SemVer ANY");
|
|
24266
24266
|
module.exports = class Comparator {
|
|
24267
24267
|
static get ANY() {
|
|
@@ -24331,7 +24331,7 @@ var require_comparator = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
24331
24331
|
}));
|
|
24332
24332
|
//#endregion
|
|
24333
24333
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js
|
|
24334
|
-
var require_satisfies = /* @__PURE__ */ __commonJSMin
|
|
24334
|
+
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24335
24335
|
const Range = require_range();
|
|
24336
24336
|
const satisfies = (version, range, options) => {
|
|
24337
24337
|
try {
|
|
@@ -24345,14 +24345,14 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
24345
24345
|
}));
|
|
24346
24346
|
//#endregion
|
|
24347
24347
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.js
|
|
24348
|
-
var require_to_comparators = /* @__PURE__ */ __commonJSMin
|
|
24348
|
+
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24349
24349
|
const Range = require_range();
|
|
24350
24350
|
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
24351
24351
|
module.exports = toComparators;
|
|
24352
24352
|
}));
|
|
24353
24353
|
//#endregion
|
|
24354
24354
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.js
|
|
24355
|
-
var require_max_satisfying = /* @__PURE__ */ __commonJSMin
|
|
24355
|
+
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24356
24356
|
const SemVer = require_semver$1();
|
|
24357
24357
|
const Range = require_range();
|
|
24358
24358
|
const maxSatisfying = (versions, range, options) => {
|
|
@@ -24378,7 +24378,7 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin$1(((exports, module)
|
|
|
24378
24378
|
}));
|
|
24379
24379
|
//#endregion
|
|
24380
24380
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.js
|
|
24381
|
-
var require_min_satisfying = /* @__PURE__ */ __commonJSMin
|
|
24381
|
+
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24382
24382
|
const SemVer = require_semver$1();
|
|
24383
24383
|
const Range = require_range();
|
|
24384
24384
|
const minSatisfying = (versions, range, options) => {
|
|
@@ -24404,7 +24404,7 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin$1(((exports, module)
|
|
|
24404
24404
|
}));
|
|
24405
24405
|
//#endregion
|
|
24406
24406
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js
|
|
24407
|
-
var require_min_version = /* @__PURE__ */ __commonJSMin
|
|
24407
|
+
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24408
24408
|
const SemVer = require_semver$1();
|
|
24409
24409
|
const Range = require_range();
|
|
24410
24410
|
const gt = require_gt();
|
|
@@ -24444,7 +24444,7 @@ var require_min_version = /* @__PURE__ */ __commonJSMin$1(((exports, module) =>
|
|
|
24444
24444
|
}));
|
|
24445
24445
|
//#endregion
|
|
24446
24446
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.js
|
|
24447
|
-
var require_valid = /* @__PURE__ */ __commonJSMin
|
|
24447
|
+
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24448
24448
|
const Range = require_range();
|
|
24449
24449
|
const validRange = (range, options) => {
|
|
24450
24450
|
try {
|
|
@@ -24457,7 +24457,7 @@ var require_valid = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
24457
24457
|
}));
|
|
24458
24458
|
//#endregion
|
|
24459
24459
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.js
|
|
24460
|
-
var require_outside = /* @__PURE__ */ __commonJSMin
|
|
24460
|
+
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24461
24461
|
const SemVer = require_semver$1();
|
|
24462
24462
|
const Comparator = require_comparator();
|
|
24463
24463
|
const { ANY } = Comparator;
|
|
@@ -24510,21 +24510,21 @@ var require_outside = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
24510
24510
|
}));
|
|
24511
24511
|
//#endregion
|
|
24512
24512
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.js
|
|
24513
|
-
var require_gtr = /* @__PURE__ */ __commonJSMin
|
|
24513
|
+
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24514
24514
|
const outside = require_outside();
|
|
24515
24515
|
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
24516
24516
|
module.exports = gtr;
|
|
24517
24517
|
}));
|
|
24518
24518
|
//#endregion
|
|
24519
24519
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.js
|
|
24520
|
-
var require_ltr = /* @__PURE__ */ __commonJSMin
|
|
24520
|
+
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24521
24521
|
const outside = require_outside();
|
|
24522
24522
|
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
24523
24523
|
module.exports = ltr;
|
|
24524
24524
|
}));
|
|
24525
24525
|
//#endregion
|
|
24526
24526
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.js
|
|
24527
|
-
var require_intersects = /* @__PURE__ */ __commonJSMin
|
|
24527
|
+
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24528
24528
|
const Range = require_range();
|
|
24529
24529
|
const intersects = (r1, r2, options) => {
|
|
24530
24530
|
r1 = new Range(r1, options);
|
|
@@ -24535,7 +24535,7 @@ var require_intersects = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
24535
24535
|
}));
|
|
24536
24536
|
//#endregion
|
|
24537
24537
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.js
|
|
24538
|
-
var require_simplify = /* @__PURE__ */ __commonJSMin
|
|
24538
|
+
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24539
24539
|
const satisfies = require_satisfies();
|
|
24540
24540
|
const compare = require_compare();
|
|
24541
24541
|
module.exports = (versions, range, options) => {
|
|
@@ -24565,7 +24565,7 @@ var require_simplify = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
24565
24565
|
}));
|
|
24566
24566
|
//#endregion
|
|
24567
24567
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.js
|
|
24568
|
-
var require_subset = /* @__PURE__ */ __commonJSMin
|
|
24568
|
+
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24569
24569
|
const Range = require_range();
|
|
24570
24570
|
const Comparator = require_comparator();
|
|
24571
24571
|
const { ANY } = Comparator;
|
|
@@ -24660,7 +24660,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
24660
24660
|
}));
|
|
24661
24661
|
//#endregion
|
|
24662
24662
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.js
|
|
24663
|
-
var require_semver = /* @__PURE__ */ __commonJSMin
|
|
24663
|
+
var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24664
24664
|
const internalRe = require_re();
|
|
24665
24665
|
const constants = require_constants();
|
|
24666
24666
|
const SemVer = require_semver$1();
|
|
@@ -24715,7 +24715,7 @@ var require_semver = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
24715
24715
|
}));
|
|
24716
24716
|
//#endregion
|
|
24717
24717
|
//#region ../../node_modules/.pnpm/baseline-browser-mapping@2.9.19/node_modules/baseline-browser-mapping/dist/index.cjs
|
|
24718
|
-
var require_dist = /* @__PURE__ */ __commonJSMin
|
|
24718
|
+
var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
24719
24719
|
const s = {
|
|
24720
24720
|
chrome: { releases: [
|
|
24721
24721
|
[
|
|
@@ -43965,7 +43965,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
43965
43965
|
}));
|
|
43966
43966
|
//#endregion
|
|
43967
43967
|
//#region ../../node_modules/.pnpm/node-releases@2.0.27/node_modules/node-releases/data/processed/envs.json
|
|
43968
|
-
var require_envs = /* @__PURE__ */ __commonJSMin
|
|
43968
|
+
var require_envs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
43969
43969
|
module.exports = [
|
|
43970
43970
|
{
|
|
43971
43971
|
"name": "nodejs",
|
|
@@ -46747,7 +46747,7 @@ var require_envs = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
46747
46747
|
}));
|
|
46748
46748
|
//#endregion
|
|
46749
46749
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/data/browsers.js
|
|
46750
|
-
var require_browsers$1 = /* @__PURE__ */ __commonJSMin
|
|
46750
|
+
var require_browsers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
46751
46751
|
module.exports = {
|
|
46752
46752
|
A: "ie",
|
|
46753
46753
|
B: "edge",
|
|
@@ -46772,12 +46772,12 @@ var require_browsers$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
46772
46772
|
}));
|
|
46773
46773
|
//#endregion
|
|
46774
46774
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/browsers.js
|
|
46775
|
-
var require_browsers = /* @__PURE__ */ __commonJSMin
|
|
46775
|
+
var require_browsers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
46776
46776
|
module.exports.browsers = require_browsers$1();
|
|
46777
46777
|
}));
|
|
46778
46778
|
//#endregion
|
|
46779
46779
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/data/browserVersions.js
|
|
46780
|
-
var require_browserVersions$1 = /* @__PURE__ */ __commonJSMin
|
|
46780
|
+
var require_browserVersions$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
46781
46781
|
module.exports = {
|
|
46782
46782
|
"0": "117",
|
|
46783
46783
|
"1": "118",
|
|
@@ -47029,12 +47029,12 @@ var require_browserVersions$1 = /* @__PURE__ */ __commonJSMin$1(((exports, modul
|
|
|
47029
47029
|
}));
|
|
47030
47030
|
//#endregion
|
|
47031
47031
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/browserVersions.js
|
|
47032
|
-
var require_browserVersions = /* @__PURE__ */ __commonJSMin
|
|
47032
|
+
var require_browserVersions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
47033
47033
|
module.exports.browserVersions = require_browserVersions$1();
|
|
47034
47034
|
}));
|
|
47035
47035
|
//#endregion
|
|
47036
47036
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/data/agents.js
|
|
47037
|
-
var require_agents$1 = /* @__PURE__ */ __commonJSMin
|
|
47037
|
+
var require_agents$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
47038
47038
|
module.exports = {
|
|
47039
47039
|
A: {
|
|
47040
47040
|
A: {
|
|
@@ -51403,7 +51403,7 @@ var require_agents$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
51403
51403
|
}));
|
|
51404
51404
|
//#endregion
|
|
51405
51405
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/agents.js
|
|
51406
|
-
var require_agents = /* @__PURE__ */ __commonJSMin
|
|
51406
|
+
var require_agents = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51407
51407
|
const browsers = require_browsers().browsers;
|
|
51408
51408
|
const versions = require_browserVersions().browserVersions;
|
|
51409
51409
|
const agentsData = require_agents$1();
|
|
@@ -51436,7 +51436,7 @@ var require_agents = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
51436
51436
|
}));
|
|
51437
51437
|
//#endregion
|
|
51438
51438
|
//#region ../../node_modules/.pnpm/electron-to-chromium@1.5.286/node_modules/electron-to-chromium/versions.js
|
|
51439
|
-
var require_versions = /* @__PURE__ */ __commonJSMin
|
|
51439
|
+
var require_versions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51440
51440
|
module.exports = {
|
|
51441
51441
|
"0.20": "39",
|
|
51442
51442
|
"0.21": "41",
|
|
@@ -51670,7 +51670,7 @@ var require_versions = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
51670
51670
|
}));
|
|
51671
51671
|
//#endregion
|
|
51672
51672
|
//#region ../../node_modules/.pnpm/node-releases@2.0.27/node_modules/node-releases/data/release-schedule/release-schedule.json
|
|
51673
|
-
var require_release_schedule = /* @__PURE__ */ __commonJSMin
|
|
51673
|
+
var require_release_schedule = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51674
51674
|
module.exports = {
|
|
51675
51675
|
"v0.8": {
|
|
51676
51676
|
"start": "2012-06-25",
|
|
@@ -51827,7 +51827,7 @@ var require_release_schedule = /* @__PURE__ */ __commonJSMin$1(((exports, module
|
|
|
51827
51827
|
}));
|
|
51828
51828
|
//#endregion
|
|
51829
51829
|
//#region ../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/error.js
|
|
51830
|
-
var require_error = /* @__PURE__ */ __commonJSMin
|
|
51830
|
+
var require_error = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51831
51831
|
function BrowserslistError(message) {
|
|
51832
51832
|
this.name = "BrowserslistError";
|
|
51833
51833
|
this.message = message;
|
|
@@ -51839,7 +51839,7 @@ var require_error = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
51839
51839
|
}));
|
|
51840
51840
|
//#endregion
|
|
51841
51841
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/lib/statuses.js
|
|
51842
|
-
var require_statuses = /* @__PURE__ */ __commonJSMin
|
|
51842
|
+
var require_statuses = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51843
51843
|
module.exports = {
|
|
51844
51844
|
1: "ls",
|
|
51845
51845
|
2: "rec",
|
|
@@ -51852,7 +51852,7 @@ var require_statuses = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
51852
51852
|
}));
|
|
51853
51853
|
//#endregion
|
|
51854
51854
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/lib/supported.js
|
|
51855
|
-
var require_supported = /* @__PURE__ */ __commonJSMin
|
|
51855
|
+
var require_supported = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51856
51856
|
module.exports = {
|
|
51857
51857
|
y: 1,
|
|
51858
51858
|
n: 2,
|
|
@@ -51865,7 +51865,7 @@ var require_supported = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
51865
51865
|
}));
|
|
51866
51866
|
//#endregion
|
|
51867
51867
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/feature.js
|
|
51868
|
-
var require_feature = /* @__PURE__ */ __commonJSMin
|
|
51868
|
+
var require_feature = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51869
51869
|
const statuses = require_statuses();
|
|
51870
51870
|
const supported = require_supported();
|
|
51871
51871
|
const browsers = require_browsers().browsers;
|
|
@@ -51908,7 +51908,7 @@ var require_feature = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
51908
51908
|
}));
|
|
51909
51909
|
//#endregion
|
|
51910
51910
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/region.js
|
|
51911
|
-
var require_region = /* @__PURE__ */ __commonJSMin
|
|
51911
|
+
var require_region = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51912
51912
|
const browsers = require_browsers().browsers;
|
|
51913
51913
|
function unpackRegion(packed) {
|
|
51914
51914
|
return Object.keys(packed).reduce((list, browser) => {
|
|
@@ -51927,7 +51927,7 @@ var require_region = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
51927
51927
|
}));
|
|
51928
51928
|
//#endregion
|
|
51929
51929
|
//#region ../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node.js
|
|
51930
|
-
var require_node = /* @__PURE__ */ __commonJSMin
|
|
51930
|
+
var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51931
51931
|
var feature = require_feature().default;
|
|
51932
51932
|
var region = require_region().default;
|
|
51933
51933
|
var fs$2 = __require("fs");
|
|
@@ -52220,7 +52220,7 @@ var require_node = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
52220
52220
|
}));
|
|
52221
52221
|
//#endregion
|
|
52222
52222
|
//#region ../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/parse.js
|
|
52223
|
-
var require_parse = /* @__PURE__ */ __commonJSMin
|
|
52223
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
52224
52224
|
var AND_REGEXP = /^\s+and\s+(.*)/i;
|
|
52225
52225
|
var OR_REGEXP = /^(?:,\s*|\s+or\s+)(.*)/i;
|
|
52226
52226
|
function flatten(array) {
|
|
@@ -52286,7 +52286,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
52286
52286
|
}));
|
|
52287
52287
|
//#endregion
|
|
52288
52288
|
//#region ../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/index.js
|
|
52289
|
-
var require_browserslist = /* @__PURE__ */ __commonJSMin
|
|
52289
|
+
var require_browserslist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
52290
52290
|
var bbm = require_dist();
|
|
52291
52291
|
var jsReleases = require_envs();
|
|
52292
52292
|
var agents = require_agents().agents;
|
|
@@ -53308,8 +53308,8 @@ var require_browserslist = /* @__PURE__ */ __commonJSMin$1(((exports, module) =>
|
|
|
53308
53308
|
}));
|
|
53309
53309
|
//#endregion
|
|
53310
53310
|
//#region ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Brand.js
|
|
53311
|
-
var import_semver = /* @__PURE__ */ __toESM
|
|
53312
|
-
var import_browserslist = /* @__PURE__ */ __toESM
|
|
53311
|
+
var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
|
|
53312
|
+
var import_browserslist = /* @__PURE__ */ __toESM(require_browserslist(), 1);
|
|
53313
53313
|
/**
|
|
53314
53314
|
* Returns a `Constructor` that **does not apply any runtime checks** and just
|
|
53315
53315
|
* returns the provided value.
|
|
@@ -62294,6 +62294,72 @@ const warn$1 = (...args) => consoleWith((console) => sync$2(() => {
|
|
|
62294
62294
|
}));
|
|
62295
62295
|
//#endregion
|
|
62296
62296
|
//#region ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Cache.js
|
|
62297
|
+
var import_picocolors = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
62298
|
+
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
|
62299
|
+
let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
62300
|
+
let formatter = (open, close, replace = open) => (input) => {
|
|
62301
|
+
let string = "" + input, index = string.indexOf(close, open.length);
|
|
62302
|
+
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
62303
|
+
};
|
|
62304
|
+
let replaceClose = (string, close, replace, index) => {
|
|
62305
|
+
let result = "", cursor = 0;
|
|
62306
|
+
do {
|
|
62307
|
+
result += string.substring(cursor, index) + replace;
|
|
62308
|
+
cursor = index + close.length;
|
|
62309
|
+
index = string.indexOf(close, cursor);
|
|
62310
|
+
} while (~index);
|
|
62311
|
+
return result + string.substring(cursor);
|
|
62312
|
+
};
|
|
62313
|
+
let createColors = (enabled = isColorSupported) => {
|
|
62314
|
+
let f = enabled ? formatter : () => String;
|
|
62315
|
+
return {
|
|
62316
|
+
isColorSupported: enabled,
|
|
62317
|
+
reset: f("\x1B[0m", "\x1B[0m"),
|
|
62318
|
+
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
62319
|
+
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
62320
|
+
italic: f("\x1B[3m", "\x1B[23m"),
|
|
62321
|
+
underline: f("\x1B[4m", "\x1B[24m"),
|
|
62322
|
+
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
62323
|
+
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
62324
|
+
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
62325
|
+
black: f("\x1B[30m", "\x1B[39m"),
|
|
62326
|
+
red: f("\x1B[31m", "\x1B[39m"),
|
|
62327
|
+
green: f("\x1B[32m", "\x1B[39m"),
|
|
62328
|
+
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
62329
|
+
blue: f("\x1B[34m", "\x1B[39m"),
|
|
62330
|
+
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
62331
|
+
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
62332
|
+
white: f("\x1B[37m", "\x1B[39m"),
|
|
62333
|
+
gray: f("\x1B[90m", "\x1B[39m"),
|
|
62334
|
+
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
62335
|
+
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
62336
|
+
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
62337
|
+
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
62338
|
+
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
62339
|
+
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
62340
|
+
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
62341
|
+
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
62342
|
+
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
62343
|
+
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
62344
|
+
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
62345
|
+
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
62346
|
+
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
62347
|
+
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
62348
|
+
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
62349
|
+
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
62350
|
+
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
62351
|
+
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
62352
|
+
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
62353
|
+
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
62354
|
+
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
62355
|
+
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
62356
|
+
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
62357
|
+
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
62358
|
+
};
|
|
62359
|
+
};
|
|
62360
|
+
module.exports = createColors();
|
|
62361
|
+
module.exports.createColors = createColors;
|
|
62362
|
+
})))(), 1);
|
|
62297
62363
|
/**
|
|
62298
62364
|
* Caches values loaded by an Effect lookup function.
|
|
62299
62365
|
*
|
|
@@ -64263,34 +64329,13 @@ function traceSegmentInternal(segments, memo, line, column, bias) {
|
|
|
64263
64329
|
}
|
|
64264
64330
|
//#endregion
|
|
64265
64331
|
//#region ../core/dist/index.js
|
|
64266
|
-
var __create = Object.create;
|
|
64267
|
-
var __defProp = Object.defineProperty;
|
|
64268
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
64269
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
64270
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
64271
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
64272
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
64273
|
-
var __copyProps = (to, from, except, desc) => {
|
|
64274
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
64275
|
-
key = keys[i];
|
|
64276
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
64277
|
-
get: ((k) => from[k]).bind(null, key),
|
|
64278
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
64279
|
-
});
|
|
64280
|
-
}
|
|
64281
|
-
return to;
|
|
64282
|
-
};
|
|
64283
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
64284
|
-
value: mod,
|
|
64285
|
-
enumerable: true
|
|
64286
|
-
}) : target, mod));
|
|
64287
64332
|
var ProjectNotFoundError = class extends Error {
|
|
64288
64333
|
name = "ProjectNotFoundError";
|
|
64289
64334
|
directory;
|
|
64290
64335
|
kind;
|
|
64291
64336
|
constructor(directory, options) {
|
|
64292
64337
|
const kind = options?.kind ?? "no-project";
|
|
64293
|
-
super(kind === "missing-path" ? `Scan target "${directory}" does not exist. Check the path and try again.` : `No React project found in ${directory}. Expected a package.json at the directory root or a nested package.json with a React dependency.`, options);
|
|
64338
|
+
super(kind === "missing-path" ? `Scan target "${directory}" does not exist. Check the path and try again.` : `No React or Three.js project found in ${directory}. Expected a package.json at the directory root or a nested package.json with a React or Three.js dependency.`, options);
|
|
64294
64339
|
this.directory = directory;
|
|
64295
64340
|
this.kind = kind;
|
|
64296
64341
|
}
|
|
@@ -64324,7 +64369,7 @@ var AmbiguousProjectError = class extends Error {
|
|
|
64324
64369
|
directory;
|
|
64325
64370
|
candidates;
|
|
64326
64371
|
constructor(directory, candidates, options) {
|
|
64327
|
-
super(`Multiple React projects found under ${directory} (${candidates.length} candidates): ${candidates.join(", ")}. Re-run diagnose() with one of those subdirectories, or iterate them yourself.`, options);
|
|
64372
|
+
super(`Multiple React or Three.js projects found under ${directory} (${candidates.length} candidates): ${candidates.join(", ")}. Re-run diagnose() with one of those subdirectories, or iterate them yourself.`, options);
|
|
64328
64373
|
this.directory = directory;
|
|
64329
64374
|
this.candidates = candidates;
|
|
64330
64375
|
}
|
|
@@ -65664,15 +65709,29 @@ const detectPreES2023Target = (directory) => {
|
|
|
65664
65709
|
}
|
|
65665
65710
|
return false;
|
|
65666
65711
|
};
|
|
65712
|
+
const SHADCN_CONFIG_FILE_NAME = "components.json";
|
|
65713
|
+
const detectShadcnUi = (directory) => {
|
|
65714
|
+
if (isFile(path$1$1.join(directory, SHADCN_CONFIG_FILE_NAME))) return true;
|
|
65715
|
+
if (isProjectBoundary(directory)) return false;
|
|
65716
|
+
let ancestorDirectory = path$1$1.dirname(directory);
|
|
65717
|
+
while (ancestorDirectory !== path$1$1.dirname(ancestorDirectory)) {
|
|
65718
|
+
if (isFile(path$1$1.join(ancestorDirectory, SHADCN_CONFIG_FILE_NAME))) return true;
|
|
65719
|
+
if (isProjectBoundary(ancestorDirectory)) return false;
|
|
65720
|
+
ancestorDirectory = path$1$1.dirname(ancestorDirectory);
|
|
65721
|
+
}
|
|
65722
|
+
return false;
|
|
65723
|
+
};
|
|
65667
65724
|
const FRAMEWORK_PACKAGES = {
|
|
65668
65725
|
next: "nextjs",
|
|
65669
65726
|
"@tanstack/react-start": "tanstack-start",
|
|
65670
65727
|
"@remix-run/react": "remix",
|
|
65671
65728
|
gatsby: "gatsby",
|
|
65672
65729
|
astro: "astro",
|
|
65730
|
+
"@astrojs/react": "astro",
|
|
65673
65731
|
vite: "vite",
|
|
65674
65732
|
"react-scripts": "cra",
|
|
65675
65733
|
expo: "expo",
|
|
65734
|
+
"expo-router": "expo",
|
|
65676
65735
|
"react-native": "react-native"
|
|
65677
65736
|
};
|
|
65678
65737
|
const detectFramework = (dependencies) => {
|
|
@@ -66164,20 +66223,39 @@ const getDependencyDeclaration = ({ packageJson, packageName, sections }) => {
|
|
|
66164
66223
|
version: null
|
|
66165
66224
|
};
|
|
66166
66225
|
};
|
|
66167
|
-
const
|
|
66226
|
+
const REACT_PROJECT_DEPENDENCY_NAMES = new Set([
|
|
66168
66227
|
"react",
|
|
66228
|
+
"react-dom",
|
|
66169
66229
|
"react-native",
|
|
66170
66230
|
"next",
|
|
66171
|
-
"preact"
|
|
66231
|
+
"preact",
|
|
66232
|
+
"expo",
|
|
66233
|
+
"expo-router",
|
|
66234
|
+
"gatsby",
|
|
66235
|
+
"@remix-run/react",
|
|
66236
|
+
"@tanstack/react-start",
|
|
66237
|
+
"react-scripts",
|
|
66238
|
+
"@astrojs/react"
|
|
66172
66239
|
]);
|
|
66240
|
+
const REACT_THREE_FIBER_DEPENDENCY_NAMES = ["@react-three/fiber", "react-three-fiber"];
|
|
66241
|
+
const REACT_THREE_FIBER_ECOSYSTEM_DEPENDENCY_NAMES = [
|
|
66242
|
+
...REACT_THREE_FIBER_DEPENDENCY_NAMES,
|
|
66243
|
+
"@react-three/drei",
|
|
66244
|
+
"@react-three/rapier",
|
|
66245
|
+
"@react-three/postprocessing",
|
|
66246
|
+
"@react-three/xr",
|
|
66247
|
+
"@react-three/cannon"
|
|
66248
|
+
];
|
|
66249
|
+
const THREE_DEPENDENCY_NAMES = ["three", ...REACT_THREE_FIBER_ECOSYSTEM_DEPENDENCY_NAMES];
|
|
66173
66250
|
const hasReactDependency = (packageJson) => {
|
|
66174
66251
|
const allDependencies = {
|
|
66175
66252
|
...packageJson.peerDependencies,
|
|
66176
66253
|
...packageJson.dependencies,
|
|
66177
66254
|
...packageJson.devDependencies
|
|
66178
66255
|
};
|
|
66179
|
-
return Object.keys(allDependencies).some((packageName) =>
|
|
66256
|
+
return Object.keys(allDependencies).some((packageName) => REACT_PROJECT_DEPENDENCY_NAMES.has(packageName));
|
|
66180
66257
|
};
|
|
66258
|
+
const hasSupportedProjectDependency = (packageJson) => hasReactDependency(packageJson) || getDependencySpec(packageJson, "remotion") !== null || THREE_DEPENDENCY_NAMES.some((packageName) => getDependencySpec(packageJson, packageName) !== null);
|
|
66181
66259
|
const getPreactVersion = (packageJson) => getDependencySpec(packageJson, "preact");
|
|
66182
66260
|
const resolveCatalogBackedDependencyVersion = ({ rootDirectory, rootPackageJson, packageName, sourceDirectory = rootDirectory, sourcePackageJson = rootPackageJson, version }) => {
|
|
66183
66261
|
if (version === null || !isCatalogReference(version)) return version;
|
|
@@ -66368,7 +66446,7 @@ const listWorkspacePackages = (rootDirectory) => {
|
|
|
66368
66446
|
seenDirectories.add(workspacePackage.directory);
|
|
66369
66447
|
packages.push(workspacePackage);
|
|
66370
66448
|
};
|
|
66371
|
-
if (
|
|
66449
|
+
if (hasSupportedProjectDependency(packageJson)) pushIfNew({
|
|
66372
66450
|
name: packageJson.name ?? path$1$1.basename(rootDirectory),
|
|
66373
66451
|
directory: rootDirectory
|
|
66374
66452
|
});
|
|
@@ -66376,7 +66454,7 @@ const listWorkspacePackages = (rootDirectory) => {
|
|
|
66376
66454
|
const directories = resolveWorkspaceDirectories(rootDirectory, pattern);
|
|
66377
66455
|
for (const workspaceDirectory of directories) {
|
|
66378
66456
|
const workspacePackageJson = readPackageJson(path$1$1.join(workspaceDirectory, "package.json"));
|
|
66379
|
-
if (!
|
|
66457
|
+
if (!hasSupportedProjectDependency(workspacePackageJson)) continue;
|
|
66380
66458
|
pushIfNew({
|
|
66381
66459
|
name: workspacePackageJson.name ?? path$1$1.basename(workspaceDirectory),
|
|
66382
66460
|
directory: workspaceDirectory
|
|
@@ -66408,6 +66486,29 @@ const getTanStackQueryVersion = (packageJson) => {
|
|
|
66408
66486
|
packageNames: TANSTACK_REACT_QUERY_PACKAGES
|
|
66409
66487
|
});
|
|
66410
66488
|
};
|
|
66489
|
+
const hasAnyDependency = (packageJson, packageNames) => {
|
|
66490
|
+
const allDependencies = {
|
|
66491
|
+
...packageJson.peerDependencies,
|
|
66492
|
+
...packageJson.dependencies,
|
|
66493
|
+
...packageJson.devDependencies,
|
|
66494
|
+
...packageJson.optionalDependencies
|
|
66495
|
+
};
|
|
66496
|
+
return packageNames.some((packageName) => allDependencies[packageName] !== void 0);
|
|
66497
|
+
};
|
|
66498
|
+
const BASE_UI_PACKAGES = ["@base-ui-components/react", "@base-ui/react"];
|
|
66499
|
+
const hasBaseUiDependency = (packageJson) => hasAnyDependency(packageJson, BASE_UI_PACKAGES);
|
|
66500
|
+
const RADIX_UNIFIED_PACKAGE = "radix-ui";
|
|
66501
|
+
const RADIX_PRIMITIVE_PACKAGE_PREFIX = "@radix-ui/react-";
|
|
66502
|
+
const RADIX_NON_PRIMITIVE_PACKAGES = new Set(["@radix-ui/react-icons"]);
|
|
66503
|
+
const hasRadixUiDependency = (packageJson) => {
|
|
66504
|
+
const allDependencies = {
|
|
66505
|
+
...packageJson.peerDependencies,
|
|
66506
|
+
...packageJson.dependencies,
|
|
66507
|
+
...packageJson.devDependencies,
|
|
66508
|
+
...packageJson.optionalDependencies
|
|
66509
|
+
};
|
|
66510
|
+
return Object.keys(allDependencies).some((packageName) => packageName === RADIX_UNIFIED_PACKAGE || packageName.startsWith(RADIX_PRIMITIVE_PACKAGE_PREFIX) && !RADIX_NON_PRIMITIVE_PACKAGES.has(packageName));
|
|
66511
|
+
};
|
|
66411
66512
|
const STYLED_COMPONENTS_PACKAGES = ["styled-components"];
|
|
66412
66513
|
const getStyledComponentsVersion = (packageJson) => {
|
|
66413
66514
|
return getPreferredDependencyVersion({
|
|
@@ -66438,12 +66539,15 @@ const hasI18nDependency = (packageJson) => {
|
|
|
66438
66539
|
};
|
|
66439
66540
|
return I18N_PACKAGES.some((packageName) => allDependencies[packageName] !== void 0);
|
|
66440
66541
|
};
|
|
66542
|
+
const REACT_ARIA_COMPONENT_PACKAGES = ["react-aria-components"];
|
|
66543
|
+
const TANSTACK_TABLE_PACKAGES = ["@tanstack/react-table"];
|
|
66544
|
+
const TANSTACK_VIRTUAL_PACKAGES = ["@tanstack/react-virtual"];
|
|
66545
|
+
const TANSTACK_FORM_PACKAGES = ["@tanstack/react-form"];
|
|
66441
66546
|
const REANIMATED_DEPENDENCY_NAME = "react-native-reanimated";
|
|
66442
66547
|
const MOBX_REACT_PACKAGE_NAME = "mobx-react";
|
|
66443
66548
|
const MOBX_REACT_LITE_PACKAGE_NAME = "mobx-react-lite";
|
|
66444
66549
|
const MOBX_STATE_TREE_PACKAGE_NAME = "mobx-state-tree";
|
|
66445
66550
|
const MOBX_REACT_OBSERVER_PACKAGE_NAME = "mobx-react-observer";
|
|
66446
|
-
const REACT_THREE_FIBER_DEPENDENCY_NAMES = ["@react-three/fiber", "react-three-fiber"];
|
|
66447
66551
|
const REACT_THREE_FIBER_SECTIONS = [
|
|
66448
66552
|
"dependencies",
|
|
66449
66553
|
"peerDependencies",
|
|
@@ -66456,8 +66560,6 @@ const THREE_DEPENDENCY_SECTIONS = [
|
|
|
66456
66560
|
"optionalDependencies",
|
|
66457
66561
|
"devDependencies"
|
|
66458
66562
|
];
|
|
66459
|
-
const REACT_THREE_FIBER_ECOSYSTEM_DEPENDENCY_NAMES = [...REACT_THREE_FIBER_DEPENDENCY_NAMES, "@react-three/drei"];
|
|
66460
|
-
const THREE_DEPENDENCY_NAMES = [...REACT_THREE_FIBER_ECOSYSTEM_DEPENDENCY_NAMES, "three"];
|
|
66461
66563
|
const REACT_ROUTER_DEPENDENCY_NAMES = [
|
|
66462
66564
|
"@react-router/dev",
|
|
66463
66565
|
"react-router-dom",
|
|
@@ -66631,6 +66733,13 @@ const evaluateManifestFacts = (facts, packageJson, directory, rootDirectory, roo
|
|
|
66631
66733
|
});
|
|
66632
66734
|
if (styledComponentsVersion && shouldReplaceStyledComponentsVersion(facts.styledComponentsVersion, styledComponentsVersion)) facts.styledComponentsVersion = styledComponentsVersion;
|
|
66633
66735
|
facts.hasI18nLibrary = facts.hasI18nLibrary || hasI18nDependency(packageJson);
|
|
66736
|
+
facts.hasShadcnUi = facts.hasShadcnUi || detectShadcnUi(directory);
|
|
66737
|
+
facts.hasRadixUi = facts.hasRadixUi || hasRadixUiDependency(packageJson);
|
|
66738
|
+
facts.hasBaseUi = facts.hasBaseUi || hasBaseUiDependency(packageJson);
|
|
66739
|
+
facts.hasReactAriaComponents = facts.hasReactAriaComponents || hasAnyDependency(packageJson, REACT_ARIA_COMPONENT_PACKAGES);
|
|
66740
|
+
facts.hasTanstackTable = facts.hasTanstackTable || hasAnyDependency(packageJson, TANSTACK_TABLE_PACKAGES);
|
|
66741
|
+
facts.hasTanstackVirtual = facts.hasTanstackVirtual || hasAnyDependency(packageJson, TANSTACK_VIRTUAL_PACKAGES);
|
|
66742
|
+
facts.hasTanstackForm = facts.hasTanstackForm || hasAnyDependency(packageJson, TANSTACK_FORM_PACKAGES);
|
|
66634
66743
|
for (const packageName of REACT_THREE_FIBER_DEPENDENCY_NAMES) {
|
|
66635
66744
|
const version = resolveCatalogBackedDependencyVersion({
|
|
66636
66745
|
rootDirectory,
|
|
@@ -66733,6 +66842,13 @@ const collectWorkspaceFacts = (rootDirectory, rootPackageJson, { collectReactGro
|
|
|
66733
66842
|
tanstackQueryVersion: null,
|
|
66734
66843
|
styledComponentsVersion: null,
|
|
66735
66844
|
hasI18nLibrary: false,
|
|
66845
|
+
hasShadcnUi: false,
|
|
66846
|
+
hasRadixUi: false,
|
|
66847
|
+
hasBaseUi: false,
|
|
66848
|
+
hasReactAriaComponents: false,
|
|
66849
|
+
hasTanstackTable: false,
|
|
66850
|
+
hasTanstackVirtual: false,
|
|
66851
|
+
hasTanstackForm: false,
|
|
66736
66852
|
hasReactNativeAwarePackage: false,
|
|
66737
66853
|
hasReanimatedAwarePackage: false,
|
|
66738
66854
|
hasSsrDependency: false,
|
|
@@ -66961,13 +67077,13 @@ const detectTargetBlankOpenerProtection = (directory, packageJson) => {
|
|
|
66961
67077
|
if (browserslistRequirement === "noreferrer" || electronRequirement === "noreferrer") return "noreferrer";
|
|
66962
67078
|
if (browserslistRequirement === "noopener" || electronRequirement === "noopener") return "noopener";
|
|
66963
67079
|
};
|
|
66964
|
-
const
|
|
67080
|
+
const toSupportedWorkspacePackages = (directories) => {
|
|
66965
67081
|
const packages = [];
|
|
66966
67082
|
for (const directory of directories) {
|
|
66967
67083
|
const packageJsonPath = path$1$1.join(directory, "package.json");
|
|
66968
67084
|
if (!isFile(packageJsonPath)) continue;
|
|
66969
67085
|
const packageJson = readPackageJson(packageJsonPath);
|
|
66970
|
-
if (!
|
|
67086
|
+
if (!hasSupportedProjectDependency(packageJson)) continue;
|
|
66971
67087
|
const name = packageJson.name ?? path$1$1.basename(directory);
|
|
66972
67088
|
packages.push({
|
|
66973
67089
|
name,
|
|
@@ -66980,7 +67096,7 @@ const listManifestWorkspacePackages = (rootDirectory) => {
|
|
|
66980
67096
|
if (isFile(path$1$1.join(rootDirectory, "package.json"))) return listWorkspacePackages(rootDirectory);
|
|
66981
67097
|
const patterns = parsePnpmWorkspacePatterns(rootDirectory);
|
|
66982
67098
|
const nxPatterns = patterns.length > 0 ? [] : getNxWorkspaceDirectories(rootDirectory);
|
|
66983
|
-
return
|
|
67099
|
+
return toSupportedWorkspacePackages((patterns.length > 0 ? patterns : nxPatterns).flatMap((pattern) => resolveWorkspaceDirectories(rootDirectory, pattern)));
|
|
66984
67100
|
};
|
|
66985
67101
|
const NON_PROJECT_DIRECTORIES = new Set([
|
|
66986
67102
|
"AppData",
|
|
@@ -66988,7 +67104,7 @@ const NON_PROJECT_DIRECTORIES = new Set([
|
|
|
66988
67104
|
"Library"
|
|
66989
67105
|
]);
|
|
66990
67106
|
const MAX_SCAN_DEPTH = 6;
|
|
66991
|
-
const
|
|
67107
|
+
const discoverSupportedSubprojectsByFilesystem = (rootDirectory) => {
|
|
66992
67108
|
const packages = [];
|
|
66993
67109
|
const pendingDirectories = [{
|
|
66994
67110
|
directory: rootDirectory,
|
|
@@ -67001,7 +67117,7 @@ const discoverReactSubprojectsByFilesystem = (rootDirectory) => {
|
|
|
67001
67117
|
const packageJsonPath = path$1$1.join(currentDirectory, "package.json");
|
|
67002
67118
|
if (isFile(packageJsonPath)) {
|
|
67003
67119
|
const packageJson = readPackageJson(packageJsonPath);
|
|
67004
|
-
if (
|
|
67120
|
+
if (hasSupportedProjectDependency(packageJson)) {
|
|
67005
67121
|
const name = packageJson.name ?? path$1$1.basename(currentDirectory);
|
|
67006
67122
|
packages.push({
|
|
67007
67123
|
name,
|
|
@@ -67021,11 +67137,11 @@ const discoverReactSubprojectsByFilesystem = (rootDirectory) => {
|
|
|
67021
67137
|
}
|
|
67022
67138
|
return packages;
|
|
67023
67139
|
};
|
|
67024
|
-
const
|
|
67140
|
+
const discoverSupportedSubprojects = (rootDirectory) => {
|
|
67025
67141
|
if (!isDirectory(rootDirectory)) return [];
|
|
67026
67142
|
const manifestPackages = listManifestWorkspacePackages(rootDirectory);
|
|
67027
67143
|
if (manifestPackages.length > 0) return manifestPackages;
|
|
67028
|
-
return
|
|
67144
|
+
return discoverSupportedSubprojectsByFilesystem(rootDirectory);
|
|
67029
67145
|
};
|
|
67030
67146
|
const cachedProjectInfos = /* @__PURE__ */ new Map();
|
|
67031
67147
|
const clearProjectCache = () => {
|
|
@@ -67084,6 +67200,12 @@ const discoverProjectWithoutPackageJson = (directory, options) => {
|
|
|
67084
67200
|
remotionVersion: null,
|
|
67085
67201
|
remotionMajorVersion: null,
|
|
67086
67202
|
hasI18nLibrary: false,
|
|
67203
|
+
hasRadixUi: false,
|
|
67204
|
+
hasBaseUi: false,
|
|
67205
|
+
hasReactAriaComponents: false,
|
|
67206
|
+
hasTanstackTable: false,
|
|
67207
|
+
hasTanstackVirtual: false,
|
|
67208
|
+
hasTanstackForm: false,
|
|
67087
67209
|
tanstackQueryVersion: null,
|
|
67088
67210
|
styledComponentsVersion: null,
|
|
67089
67211
|
hasThree: false,
|
|
@@ -67105,6 +67227,7 @@ const discoverProjectWithoutPackageJson = (directory, options) => {
|
|
|
67105
67227
|
shopifyFlashListMajorVersion: null,
|
|
67106
67228
|
hasReanimated: false,
|
|
67107
67229
|
reanimatedVersion: null,
|
|
67230
|
+
hasShadcnUi: detectShadcnUi(directory),
|
|
67108
67231
|
isPreES2023Target: hasOwnTsConfig && detectPreES2023Target(directory),
|
|
67109
67232
|
isStaticExport: false,
|
|
67110
67233
|
sourceFileCount
|
|
@@ -67267,6 +67390,12 @@ const discoverProject = (directory, options = {}) => {
|
|
|
67267
67390
|
hasReactCompilerLintPlugin: detectReactCompilerLintPlugin(directory, packageJson),
|
|
67268
67391
|
hasTanStackQuery: tanstackQueryVersion !== null,
|
|
67269
67392
|
hasI18nLibrary: workspaceFacts.hasI18nLibrary,
|
|
67393
|
+
hasRadixUi: workspaceFacts.hasRadixUi,
|
|
67394
|
+
hasBaseUi: workspaceFacts.hasBaseUi,
|
|
67395
|
+
hasReactAriaComponents: workspaceFacts.hasReactAriaComponents,
|
|
67396
|
+
hasTanstackTable: workspaceFacts.hasTanstackTable,
|
|
67397
|
+
hasTanstackVirtual: workspaceFacts.hasTanstackVirtual,
|
|
67398
|
+
hasTanstackForm: workspaceFacts.hasTanstackForm,
|
|
67270
67399
|
tanstackQueryVersion,
|
|
67271
67400
|
styledComponentsVersion: workspaceFacts.styledComponentsVersion,
|
|
67272
67401
|
valtioVersion,
|
|
@@ -67293,6 +67422,7 @@ const discoverProject = (directory, options = {}) => {
|
|
|
67293
67422
|
shopifyFlashListMajorVersion: shopifyFlashListVersion === null ? null : getLowestDependencyMajor(shopifyFlashListVersion),
|
|
67294
67423
|
hasReanimated,
|
|
67295
67424
|
reanimatedVersion,
|
|
67425
|
+
hasShadcnUi: workspaceFacts.hasShadcnUi,
|
|
67296
67426
|
isPreES2023Target,
|
|
67297
67427
|
isStaticExport: framework === "nextjs" && detectNextjsStaticExport(workspaceFacts.next.sourceDirectory ?? directory),
|
|
67298
67428
|
sourceFileCount
|
|
@@ -67300,16 +67430,31 @@ const discoverProject = (directory, options = {}) => {
|
|
|
67300
67430
|
cachedProjectInfos.set(directory, projectInfo);
|
|
67301
67431
|
return projectInfo;
|
|
67302
67432
|
};
|
|
67433
|
+
const REACT_COMPATIBLE_FRAMEWORKS = new Set([
|
|
67434
|
+
"nextjs",
|
|
67435
|
+
"tanstack-start",
|
|
67436
|
+
"cra",
|
|
67437
|
+
"remix",
|
|
67438
|
+
"gatsby",
|
|
67439
|
+
"expo",
|
|
67440
|
+
"react-native",
|
|
67441
|
+
"preact"
|
|
67442
|
+
]);
|
|
67303
67443
|
/**
|
|
67304
|
-
*
|
|
67444
|
+
* Whether project discovery resolved a React-compatible runtime directly or
|
|
67445
|
+
* through a framework whose runtime is necessarily React-compatible.
|
|
67446
|
+
*/
|
|
67447
|
+
const hasReactRuntime = (project) => project.reactVersion !== null || project.preactVersion !== null || REACT_COMPATIBLE_FRAMEWORKS.has(project.framework);
|
|
67448
|
+
/**
|
|
67449
|
+
* A project is worth scanning when it has a supported runtime (the runtime-
|
|
67305
67450
|
* specific rules apply) OR it simply has source files to lint. The
|
|
67306
67451
|
* second arm is what lets a plain TypeScript/JavaScript codebase — no
|
|
67307
67452
|
* React dependency at all — run the framework-agnostic rules
|
|
67308
67453
|
* (security, architecture, zod, bundle-size, …) instead of hard-failing
|
|
67309
|
-
* with "No React dependency". Only a directory with neither
|
|
67310
|
-
* single source file has nothing to analyze.
|
|
67454
|
+
* with "No React dependency". Only a directory with neither a supported
|
|
67455
|
+
* runtime nor a single source file has nothing to analyze.
|
|
67311
67456
|
*/
|
|
67312
|
-
const isAnalyzableProject = (project) => project.
|
|
67457
|
+
const isAnalyzableProject = (project) => hasReactRuntime(project) || project.hasThree === true || project.hasRemotion === true || project.sourceFileCount > 0;
|
|
67313
67458
|
const LEGACY_RULE_KEY_TO_NATIVE_RULE_KEY = {
|
|
67314
67459
|
"deslop/circular-dependency": "react-doctor/circular-dependency",
|
|
67315
67460
|
"deslop/unused-dependency": "react-doctor/unused-dependency",
|
|
@@ -69227,11 +69372,11 @@ const resolveConfigRootDir = (config, configSourceDirectory) => {
|
|
|
69227
69372
|
};
|
|
69228
69373
|
const resolveDiagnoseTarget = (directory, options = {}) => {
|
|
69229
69374
|
if (isFile(path$1$1.join(directory, "package.json"))) return directory;
|
|
69230
|
-
const
|
|
69231
|
-
if (
|
|
69232
|
-
if (
|
|
69375
|
+
const subprojects = discoverSupportedSubprojects(directory);
|
|
69376
|
+
if (subprojects.length === 0) return null;
|
|
69377
|
+
if (subprojects.length === 1) return subprojects[0].directory;
|
|
69233
69378
|
if (options.allowAmbiguous === true) return null;
|
|
69234
|
-
throw new AmbiguousProjectError(directory,
|
|
69379
|
+
throw new AmbiguousProjectError(directory, subprojects.map((subproject) => path$1$1.relative(directory, subproject.directory)).toSorted());
|
|
69235
69380
|
};
|
|
69236
69381
|
/**
|
|
69237
69382
|
* The canonical entry-point translation shared by every public shell
|
|
@@ -70966,21 +71111,6 @@ function* collectSecurityScanFiles(rootDirectory, excludedDirectories = /* @__PU
|
|
|
70966
71111
|
}
|
|
70967
71112
|
}
|
|
70968
71113
|
}
|
|
70969
|
-
const REACT_COMPATIBLE_FRAMEWORKS = new Set([
|
|
70970
|
-
"nextjs",
|
|
70971
|
-
"tanstack-start",
|
|
70972
|
-
"cra",
|
|
70973
|
-
"remix",
|
|
70974
|
-
"gatsby",
|
|
70975
|
-
"expo",
|
|
70976
|
-
"react-native",
|
|
70977
|
-
"preact"
|
|
70978
|
-
]);
|
|
70979
|
-
/**
|
|
70980
|
-
* Whether project discovery resolved a React-compatible runtime directly or
|
|
70981
|
-
* through a framework whose runtime is necessarily React-compatible.
|
|
70982
|
-
*/
|
|
70983
|
-
const hasReactRuntime = (project) => project.reactVersion !== null || project.preactVersion !== null || REACT_COMPATIBLE_FRAMEWORKS.has(project.framework);
|
|
70984
71114
|
const CLIENT_ONLY_FRAMEWORKS = new Set([
|
|
70985
71115
|
"vite",
|
|
70986
71116
|
"cra",
|
|
@@ -71041,6 +71171,13 @@ const buildCapabilities = (project) => {
|
|
|
71041
71171
|
minor: 0
|
|
71042
71172
|
})) capabilities.add("tailwind:4");
|
|
71043
71173
|
}
|
|
71174
|
+
if (project.hasShadcnUi === true) capabilities.add("shadcn");
|
|
71175
|
+
if (project.hasRadixUi === true) capabilities.add("radix-ui");
|
|
71176
|
+
if (project.hasBaseUi === true) capabilities.add("base-ui");
|
|
71177
|
+
if (project.hasReactAriaComponents === true) capabilities.add("react-aria");
|
|
71178
|
+
if (project.hasTanstackTable === true) capabilities.add("tanstack-table");
|
|
71179
|
+
if (project.hasTanstackVirtual === true) capabilities.add("tanstack-virtual");
|
|
71180
|
+
if (project.hasTanstackForm === true) capabilities.add("tanstack-form");
|
|
71044
71181
|
if (project.zodVersion !== null) capabilities.add("zod");
|
|
71045
71182
|
if (project.zodMajorVersion !== null && project.zodMajorVersion >= 4) capabilities.add("zod:4");
|
|
71046
71183
|
if (project.mobxVersion !== void 0 && project.mobxVersion !== null || project.hasMobxReact === true || project.hasMobxReactLite === true || project.hasMobxStateTree === true || project.hasMobxReactObserver === true) capabilities.add("mobx");
|
|
@@ -71218,72 +71355,6 @@ const checkSecurityScanCooperative = async (rootDirectory, options = {}) => {
|
|
|
71218
71355
|
}
|
|
71219
71356
|
return session.diagnostics;
|
|
71220
71357
|
};
|
|
71221
|
-
var import_picocolors = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71222
|
-
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
|
71223
|
-
let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
71224
|
-
let formatter = (open, close, replace = open) => (input) => {
|
|
71225
|
-
let string = "" + input, index = string.indexOf(close, open.length);
|
|
71226
|
-
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
71227
|
-
};
|
|
71228
|
-
let replaceClose = (string, close, replace, index) => {
|
|
71229
|
-
let result = "", cursor = 0;
|
|
71230
|
-
do {
|
|
71231
|
-
result += string.substring(cursor, index) + replace;
|
|
71232
|
-
cursor = index + close.length;
|
|
71233
|
-
index = string.indexOf(close, cursor);
|
|
71234
|
-
} while (~index);
|
|
71235
|
-
return result + string.substring(cursor);
|
|
71236
|
-
};
|
|
71237
|
-
let createColors = (enabled = isColorSupported) => {
|
|
71238
|
-
let f = enabled ? formatter : () => String;
|
|
71239
|
-
return {
|
|
71240
|
-
isColorSupported: enabled,
|
|
71241
|
-
reset: f("\x1B[0m", "\x1B[0m"),
|
|
71242
|
-
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
71243
|
-
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
71244
|
-
italic: f("\x1B[3m", "\x1B[23m"),
|
|
71245
|
-
underline: f("\x1B[4m", "\x1B[24m"),
|
|
71246
|
-
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
71247
|
-
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
71248
|
-
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
71249
|
-
black: f("\x1B[30m", "\x1B[39m"),
|
|
71250
|
-
red: f("\x1B[31m", "\x1B[39m"),
|
|
71251
|
-
green: f("\x1B[32m", "\x1B[39m"),
|
|
71252
|
-
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
71253
|
-
blue: f("\x1B[34m", "\x1B[39m"),
|
|
71254
|
-
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
71255
|
-
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
71256
|
-
white: f("\x1B[37m", "\x1B[39m"),
|
|
71257
|
-
gray: f("\x1B[90m", "\x1B[39m"),
|
|
71258
|
-
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
71259
|
-
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
71260
|
-
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
71261
|
-
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
71262
|
-
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
71263
|
-
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
71264
|
-
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
71265
|
-
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
71266
|
-
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
71267
|
-
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
71268
|
-
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
71269
|
-
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
71270
|
-
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
71271
|
-
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
71272
|
-
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
71273
|
-
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
71274
|
-
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
71275
|
-
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
71276
|
-
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
71277
|
-
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
71278
|
-
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
71279
|
-
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
71280
|
-
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
71281
|
-
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
71282
|
-
};
|
|
71283
|
-
};
|
|
71284
|
-
module.exports = createColors();
|
|
71285
|
-
module.exports.createColors = createColors;
|
|
71286
|
-
})))(), 1);
|
|
71287
71358
|
const highlighter = {
|
|
71288
71359
|
error: import_picocolors.default.red,
|
|
71289
71360
|
warn: import_picocolors.default.yellow,
|
|
@@ -72601,7 +72672,11 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
72601
72672
|
const symref = yield* runGit(directory, ["symbolic-ref", "refs/remotes/origin/HEAD"]);
|
|
72602
72673
|
if (symref.status === 0) {
|
|
72603
72674
|
const trimmed = trimOrNull(symref.stdout);
|
|
72604
|
-
if (trimmed !== null)
|
|
72675
|
+
if (trimmed !== null) {
|
|
72676
|
+
const branchName = trimmed.replace("refs/remotes/origin/", "");
|
|
72677
|
+
const remoteBranch = `origin/${branchName}`;
|
|
72678
|
+
return (yield* branchExists(directory, remoteBranch)) ? remoteBranch : branchName;
|
|
72679
|
+
}
|
|
72605
72680
|
}
|
|
72606
72681
|
const candidates = yield* runGit(directory, [
|
|
72607
72682
|
"for-each-ref",
|
|
@@ -72609,7 +72684,10 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
72609
72684
|
...DEFAULT_BRANCH_CANDIDATES.map((candidate) => `refs/heads/${candidate}`)
|
|
72610
72685
|
]);
|
|
72611
72686
|
if (candidates.status !== 0) return null;
|
|
72612
|
-
|
|
72687
|
+
const localBranch = trimOrNull(candidates.stdout.split("\n")[0] ?? "");
|
|
72688
|
+
if (localBranch === null) return null;
|
|
72689
|
+
const remoteBranch = `origin/${localBranch}`;
|
|
72690
|
+
return (yield* branchExists(directory, remoteBranch)) ? remoteBranch : localBranch;
|
|
72613
72691
|
}).pipe(withSpan("Git.defaultBranch"));
|
|
72614
72692
|
const branchExists = (directory, branch) => runGit(directory, [
|
|
72615
72693
|
"rev-parse",
|
|
@@ -74505,7 +74583,7 @@ const buildRelatedLocations = (labels, filePath, sourceBuffer) => {
|
|
|
74505
74583
|
const isOxlintSpan = (value) => isRecord(value) && typeof value.offset === "number" && typeof value.length === "number" && typeof value.line === "number" && typeof value.column === "number";
|
|
74506
74584
|
const isOxlintLabel = (value) => isRecord(value) && isOxlintSpan(value.span);
|
|
74507
74585
|
const isMappableOxlintDiagnostic = (value) => isRecord(value) && typeof value.code === "string" && value.code.length > 0 && typeof value.filename === "string" && value.filename.length > 0 && (value.severity === "warning" || value.severity === "error") && Array.isArray(value.labels) && value.labels.every(isOxlintLabel);
|
|
74508
|
-
const isEngineFailureDiagnostic = (value) => !isRecord(value) || typeof value.filename !== "string" || value.filename.length === 0;
|
|
74586
|
+
const isEngineFailureDiagnostic = (value) => !isRecord(value) || typeof value.filename !== "string" || value.filename.length === 0 || typeof value.message === "string" && value.message.startsWith("Error running JS plugin.") && (typeof value.code !== "string" || value.code.length === 0) && Array.isArray(value.labels) && value.labels.length === 0;
|
|
74509
74587
|
const isOxlintOutput = (value) => isRecord(value) && Array.isArray(value.diagnostics);
|
|
74510
74588
|
/**
|
|
74511
74589
|
* Parses one oxlint subprocess's stdout into a flat `Diagnostic[]`.
|
|
@@ -74635,6 +74713,46 @@ const buildProfiledNodeArguments = (input) => [
|
|
|
74635
74713
|
...input.heapProfileDirectory ? ["--heap-prof", `--heap-prof-dir=${input.heapProfileDirectory}`] : [],
|
|
74636
74714
|
...input.argumentsList
|
|
74637
74715
|
];
|
|
74716
|
+
const buildOxlintTimingArguments = (argumentsList) => {
|
|
74717
|
+
const timingArguments = [...argumentsList];
|
|
74718
|
+
const formatFlagIndex = timingArguments.indexOf("--format");
|
|
74719
|
+
if (formatFlagIndex === -1 || formatFlagIndex + 1 >= timingArguments.length) throw new Error("Oxlint timing arguments require a --format value");
|
|
74720
|
+
timingArguments[formatFlagIndex + 1] = "default";
|
|
74721
|
+
timingArguments.push("--debug", "timings", "--quiet");
|
|
74722
|
+
return timingArguments;
|
|
74723
|
+
};
|
|
74724
|
+
const captureOxlintRuleTimings = (input) => new Promise((resolve, reject) => {
|
|
74725
|
+
const timingEnvironment = { ...input.environment };
|
|
74726
|
+
timingEnvironment.REACT_DOCTOR_RULE_TIMINGS_DIR = void 0;
|
|
74727
|
+
const timingChild = spawn(input.nodeBinaryPath, buildOxlintTimingArguments(input.argumentsList), {
|
|
74728
|
+
cwd: input.rootDirectory,
|
|
74729
|
+
env: timingEnvironment,
|
|
74730
|
+
stdio: [
|
|
74731
|
+
"ignore",
|
|
74732
|
+
"pipe",
|
|
74733
|
+
"pipe"
|
|
74734
|
+
]
|
|
74735
|
+
});
|
|
74736
|
+
const stdoutBuffers = [];
|
|
74737
|
+
const stderrBuffers = [];
|
|
74738
|
+
timingChild.stdout.on("data", (buffer) => stdoutBuffers.push(buffer));
|
|
74739
|
+
timingChild.stderr.on("data", (buffer) => stderrBuffers.push(buffer));
|
|
74740
|
+
timingChild.on("error", reject);
|
|
74741
|
+
timingChild.on("close", (_code, signal) => {
|
|
74742
|
+
if (signal) {
|
|
74743
|
+
reject(/* @__PURE__ */ new Error(`Oxlint timing pass was killed by ${signal}`));
|
|
74744
|
+
return;
|
|
74745
|
+
}
|
|
74746
|
+
const timingOutput = `${Buffer.concat(stdoutBuffers).toString("utf8")}\n${Buffer.concat(stderrBuffers).toString("utf8")}`;
|
|
74747
|
+
if (!timingOutput.includes("Rule timings:")) {
|
|
74748
|
+
resolve();
|
|
74749
|
+
return;
|
|
74750
|
+
}
|
|
74751
|
+
fs$1$3.mkdirSync(input.timingDirectory, { recursive: true });
|
|
74752
|
+
fs$1$3.writeFileSync(path$1$1.join(input.timingDirectory, `oxlint-${timingChild.pid ?? process.pid}.timings.txt`), timingOutput);
|
|
74753
|
+
resolve();
|
|
74754
|
+
});
|
|
74755
|
+
});
|
|
74638
74756
|
const lowerChildProcessPriority = (processId) => {
|
|
74639
74757
|
if (processId === void 0) return;
|
|
74640
74758
|
try {
|
|
@@ -74756,7 +74874,18 @@ const spawnOxlint = (args, rootDirectory, nodeBinaryPath, spawnTimeoutMs = OXLIN
|
|
|
74756
74874
|
return;
|
|
74757
74875
|
}
|
|
74758
74876
|
}
|
|
74759
|
-
|
|
74877
|
+
const timingDirectory = SANITIZED_ENV.REACT_DOCTOR_OXLINT_TIMINGS_DIR;
|
|
74878
|
+
if (timingDirectory === void 0) {
|
|
74879
|
+
resolve(output);
|
|
74880
|
+
return;
|
|
74881
|
+
}
|
|
74882
|
+
captureOxlintRuleTimings({
|
|
74883
|
+
argumentsList: args,
|
|
74884
|
+
environment: SANITIZED_ENV,
|
|
74885
|
+
nodeBinaryPath,
|
|
74886
|
+
rootDirectory,
|
|
74887
|
+
timingDirectory
|
|
74888
|
+
}).then(() => resolve(output), reject);
|
|
74760
74889
|
});
|
|
74761
74890
|
});
|
|
74762
74891
|
const PARALLELISM_EXHAUSTION_ERROR_CODES = new Set([
|
|
@@ -77864,4 +77993,4 @@ const toJsonReport = (result, options) => buildJsonReport({
|
|
|
77864
77993
|
export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
|
|
77865
77994
|
|
|
77866
77995
|
//# sourceMappingURL=index.js.map
|
|
77867
|
-
//# debugId=
|
|
77996
|
+
//# debugId=8065a42b-3c73-5f92-8b4f-29cb68d77940
|