react-doctor 0.4.0-dev.dc35070 → 0.4.0-dev.ee9ab33

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.js CHANGED
@@ -1,5 +1,5 @@
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]="301c4437-ca87-5afb-b69d-b7a7c3678175")}catch(e){}}();
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]="234f49e5-7510-5a79-ba10-9366aecc015b")}catch(e){}}();
3
3
  import { createRequire } from "node:module";
4
4
  import { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
5
5
  import * as path$1 from "node:path";
@@ -8394,6 +8394,7 @@ const checkReducedMotion = (rootDirectory) => {
8394
8394
  if (!hasMotionLibrary) return [];
8395
8395
  const result = spawnSync("git", [
8396
8396
  "grep",
8397
+ "--untracked",
8397
8398
  "-ql",
8398
8399
  "-E",
8399
8400
  REDUCED_MOTION_GREP_PATTERN,
@@ -10708,7 +10709,12 @@ const SANITIZED_ENV = (() => {
10708
10709
  const spawnOxlint = (args, rootDirectory, nodeBinaryPath, spawnTimeoutMs = OXLINT_SPAWN_TIMEOUT_MS, outputMaxBytes = OXLINT_OUTPUT_MAX_BYTES) => new Promise((resolve, reject) => {
10709
10710
  const child = spawn(nodeBinaryPath, args, {
10710
10711
  cwd: rootDirectory,
10711
- env: SANITIZED_ENV
10712
+ env: SANITIZED_ENV,
10713
+ stdio: [
10714
+ "ignore",
10715
+ "pipe",
10716
+ "pipe"
10717
+ ]
10712
10718
  });
10713
10719
  const timeoutHandle = setTimeout(() => {
10714
10720
  child.kill("SIGKILL");
@@ -12191,7 +12197,7 @@ const makeNoopConsole = () => ({
12191
12197
  });
12192
12198
  //#endregion
12193
12199
  //#region src/cli/utils/version.ts
12194
- const VERSION = "0.4.0-dev.dc35070";
12200
+ const VERSION = "0.4.0-dev.ee9ab33";
12195
12201
  //#endregion
12196
12202
  //#region src/cli/utils/json-mode.ts
12197
12203
  let context = null;
@@ -12549,13 +12555,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
12549
12555
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
12550
12556
  * standard `SENTRY_RELEASE` override.
12551
12557
  */
12552
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.4.0-dev.dc35070`;
12558
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.4.0-dev.ee9ab33`;
12553
12559
  /**
12554
12560
  * Deployment environment shown in Sentry's environment filter. Defaults to
12555
12561
  * `production` for tagged releases and `development` for dev/unbuilt versions,
12556
12562
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
12557
12563
  */
12558
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.4.0-dev.dc35070") ? "development" : "production");
12564
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.4.0-dev.ee9ab33") ? "development" : "production");
12559
12565
  /**
12560
12566
  * Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
12561
12567
  * (set to `0` to disable tracing) and falls back to
@@ -21448,4 +21454,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
21448
21454
  export {};
21449
21455
 
21450
21456
  //# sourceMappingURL=cli.js.map
21451
- //# debugId=301c4437-ca87-5afb-b69d-b7a7c3678175
21457
+ //# debugId=234f49e5-7510-5a79-ba10-9366aecc015b
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
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]="44e73f8d-b81f-599b-a04e-22497cd72bb2")}catch(e){}}();
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]="89213cff-26e1-5f16-a3b2-135fc4f96aab")}catch(e){}}();
3
3
  import { createRequire } from "node:module";
4
4
  import * as Schema from "effect/Schema";
5
5
  import * as fs$1 from "node:fs";
@@ -5343,6 +5343,7 @@ const checkReducedMotion = (rootDirectory) => {
5343
5343
  if (!hasMotionLibrary) return [];
5344
5344
  const result = spawnSync("git", [
5345
5345
  "grep",
5346
+ "--untracked",
5346
5347
  "-ql",
5347
5348
  "-E",
5348
5349
  REDUCED_MOTION_GREP_PATTERN,
@@ -7641,7 +7642,12 @@ const SANITIZED_ENV = (() => {
7641
7642
  const spawnOxlint = (args, rootDirectory, nodeBinaryPath, spawnTimeoutMs = OXLINT_SPAWN_TIMEOUT_MS, outputMaxBytes = OXLINT_OUTPUT_MAX_BYTES) => new Promise((resolve, reject) => {
7642
7643
  const child = spawn(nodeBinaryPath, args, {
7643
7644
  cwd: rootDirectory,
7644
- env: SANITIZED_ENV
7645
+ env: SANITIZED_ENV,
7646
+ stdio: [
7647
+ "ignore",
7648
+ "pipe",
7649
+ "pipe"
7650
+ ]
7645
7651
  });
7646
7652
  const timeoutHandle = setTimeout(() => {
7647
7653
  child.kill("SIGKILL");
@@ -8929,4 +8935,4 @@ const toJsonReport = (result, options) => buildJsonReport({
8929
8935
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, diagnose, filterSourceFiles, getDiffInfo, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
8930
8936
 
8931
8937
  //# sourceMappingURL=index.js.map
8932
- //# debugId=44e73f8d-b81f-599b-a04e-22497cd72bb2
8938
+ //# debugId=89213cff-26e1-5f16-a3b2-135fc4f96aab
package/dist/lsp.js CHANGED
@@ -5280,6 +5280,7 @@ const checkReducedMotion = (rootDirectory) => {
5280
5280
  if (!hasMotionLibrary) return [];
5281
5281
  const result = spawnSync("git", [
5282
5282
  "grep",
5283
+ "--untracked",
5283
5284
  "-ql",
5284
5285
  "-E",
5285
5286
  REDUCED_MOTION_GREP_PATTERN,
@@ -7578,7 +7579,12 @@ const SANITIZED_ENV = (() => {
7578
7579
  const spawnOxlint = (args, rootDirectory, nodeBinaryPath, spawnTimeoutMs = OXLINT_SPAWN_TIMEOUT_MS, outputMaxBytes = OXLINT_OUTPUT_MAX_BYTES) => new Promise((resolve, reject) => {
7579
7580
  const child = spawn(nodeBinaryPath, args, {
7580
7581
  cwd: rootDirectory,
7581
- env: SANITIZED_ENV
7582
+ env: SANITIZED_ENV,
7583
+ stdio: [
7584
+ "ignore",
7585
+ "pipe",
7586
+ "pipe"
7587
+ ]
7582
7588
  });
7583
7589
  const timeoutHandle = setTimeout(() => {
7584
7590
  child.kill("SIGKILL");
@@ -10800,5 +10806,5 @@ const startLanguageServer = () => {
10800
10806
  };
10801
10807
  //#endregion
10802
10808
  export { startLanguageServer };
10803
- !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]="367f0c6f-8633-512f-b006-f1bb7ab5a35a")}catch(e){}}();
10804
- //# debugId=367f0c6f-8633-512f-b006-f1bb7ab5a35a
10809
+ !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]="3810554d-573f-57e0-8b16-216e38ece1e2")}catch(e){}}();
10810
+ //# debugId=3810554d-573f-57e0-8b16-216e38ece1e2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.4.0-dev.dc35070",
3
+ "version": "0.4.0-dev.ee9ab33",
4
4
  "description": "Diagnose and fix React codebases for security, performance, correctness, accessibility, bundle-size, and architecture issues",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -55,7 +55,7 @@
55
55
  "agent-install": "0.0.5",
56
56
  "conf": "^15.1.0",
57
57
  "confbox": "^0.2.4",
58
- "deslop-js": "^0.0.19",
58
+ "deslop-js": "^0.0.20",
59
59
  "effect": "4.0.0-beta.70",
60
60
  "eslint-plugin-react-hooks": "^7.1.1",
61
61
  "jiti": "^2.7.0",
@@ -66,7 +66,7 @@
66
66
  "vscode-languageserver": "^9.0.1",
67
67
  "vscode-languageserver-textdocument": "^1.0.12",
68
68
  "vscode-uri": "^3.1.0",
69
- "oxlint-plugin-react-doctor": "0.4.0-dev.dc35070"
69
+ "oxlint-plugin-react-doctor": "0.4.0-dev.ee9ab33"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@types/babel__code-frame": "^7.27.0",
@@ -74,9 +74,9 @@
74
74
  "@xterm/headless": "^6.0.0",
75
75
  "commander": "^14.0.3",
76
76
  "ora": "^9.4.0",
77
- "@react-doctor/api": "0.2.20",
78
77
  "@react-doctor/core": "0.3.0",
79
- "@react-doctor/language-server": "0.2.12"
78
+ "@react-doctor/language-server": "0.2.12",
79
+ "@react-doctor/api": "0.2.20"
80
80
  },
81
81
  "engines": {
82
82
  "node": "^20.19.0 || >=22.12.0"