react-doctor 0.7.6-dev.778f1a2 → 0.7.6-dev.81e6647

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]="c3f08fa5-b97a-564f-9c58-cdb72d8eab8f")}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]="9a5c1a3c-7706-5a23-bca4-ddddd2f085af")}catch(e){}}();
3
3
  import { createRequire } from "node:module";
4
4
  import * as NodeChildProcess from "node:child_process";
5
5
  import { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
@@ -36341,10 +36341,12 @@ const listSourceFilesViaFilesystem = (rootDirectory) => {
36341
36341
  const listSourceFilesWithSize = (rootDirectory) => collectSizedSourceFiles(rootDirectory, (listSourceFilesViaGit(rootDirectory) ?? listSourceFilesViaFilesystem(rootDirectory)).sort());
36342
36342
  const listSourceFiles = (rootDirectory) => listSourceFilesWithSize(rootDirectory).map((entry) => entry.path);
36343
36343
  const countSourceFiles = (rootDirectory) => listSourceFilesWithSize(rootDirectory).length;
36344
+ const UTF8_BOM_CHARACTER = "";
36345
+ const stripUtf8Bom = (content) => content.startsWith(UTF8_BOM_CHARACTER) ? content.slice(1) : content;
36344
36346
  const cachedPackageJsons = /* @__PURE__ */ new Map();
36345
36347
  const readPackageJsonUncached = (packageJsonPath) => {
36346
36348
  try {
36347
- return JSON.parse(NFS.readFileSync(packageJsonPath, "utf-8"));
36349
+ return JSON.parse(stripUtf8Bom(NFS.readFileSync(packageJsonPath, "utf-8")));
36348
36350
  } catch (error) {
36349
36351
  if (error instanceof SyntaxError) return {};
36350
36352
  if (isErrnoException(error)) {
@@ -40017,7 +40019,6 @@ const PNPM_WORKSPACE_FILE = "pnpm-workspace.yaml";
40017
40019
  const PNPM_LOCKFILE = "pnpm-lock.yaml";
40018
40020
  const PACKAGE_JSON_FILE = "package.json";
40019
40021
  const PNPM_HARDENING_RULE_KEY = "require-pnpm-hardening";
40020
- const UTF8_BOM_CHAR = "";
40021
40022
  const HARDENING_SETTING_KEYS = new Set([
40022
40023
  "minimumReleaseAge",
40023
40024
  "blockExoticSubdeps",
@@ -40042,12 +40043,11 @@ const stripInlineComment = (rawValue) => {
40042
40043
  return rawValue;
40043
40044
  };
40044
40045
  const unquote = (rawValue) => rawValue.replace(/^["']|["']$/g, "");
40045
- const stripBom = (rawContent) => rawContent.startsWith(UTF8_BOM_CHAR) ? rawContent.slice(1) : rawContent;
40046
40046
  const parseHardeningSettings = (content) => {
40047
40047
  let minimumReleaseAge = null;
40048
40048
  let blockExoticSubdeps = null;
40049
40049
  let trustPolicy = null;
40050
- const lines = stripBom(content).split(/\r?\n/);
40050
+ const lines = stripUtf8Bom(content).split(/\r?\n/);
40051
40051
  for (let lineIndex = 0; lineIndex < lines.length; lineIndex += 1) {
40052
40052
  const lineText = lines[lineIndex];
40053
40053
  if (lineText === void 0) continue;
@@ -40081,7 +40081,7 @@ const isPnpmManagedProject = (rootDirectory) => {
40081
40081
  const packageJsonPath = Path.join(rootDirectory, PACKAGE_JSON_FILE);
40082
40082
  if (!isFile(packageJsonPath)) return false;
40083
40083
  try {
40084
- const packageJsonRaw = NFS.readFileSync(packageJsonPath, "utf-8");
40084
+ const packageJsonRaw = stripUtf8Bom(NFS.readFileSync(packageJsonPath, "utf-8"));
40085
40085
  const packageJson = JSON.parse(packageJsonRaw);
40086
40086
  if (packageJson !== null && typeof packageJson === "object" && "packageManager" in packageJson && typeof packageJson.packageManager === "string" && packageJson.packageManager.startsWith("pnpm@")) return true;
40087
40087
  } catch {
@@ -46699,7 +46699,7 @@ const makeNoopConsole = () => ({
46699
46699
  });
46700
46700
  //#endregion
46701
46701
  //#region src/cli/utils/version.ts
46702
- const VERSION = "0.7.6-dev.778f1a2";
46702
+ const VERSION = "0.7.6-dev.81e6647";
46703
46703
  //#endregion
46704
46704
  //#region src/cli/utils/json-mode.ts
46705
46705
  let context = null;
@@ -47068,13 +47068,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
47068
47068
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
47069
47069
  * standard `SENTRY_RELEASE` override.
47070
47070
  */
47071
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.7.6-dev.778f1a2`;
47071
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.7.6-dev.81e6647`;
47072
47072
  /**
47073
47073
  * Deployment environment shown in Sentry's environment filter. Defaults to
47074
47074
  * `production` for tagged releases and `development` for dev/unbuilt versions,
47075
47075
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
47076
47076
  */
47077
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.7.6-dev.778f1a2") ? "development" : "production");
47077
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.7.6-dev.81e6647") ? "development" : "production");
47078
47078
  /**
47079
47079
  * Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
47080
47080
  * (set to `0` to disable tracing) and falls back to
@@ -65271,4 +65271,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
65271
65271
  export {};
65272
65272
 
65273
65273
  //# sourceMappingURL=cli.js.map
65274
- //# debugId=c3f08fa5-b97a-564f-9c58-cdb72d8eab8f
65274
+ //# debugId=9a5c1a3c-7706-5a23-bca4-ddddd2f085af
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]="fc1129a0-9ad2-5802-a82e-4982d9572eed")}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]="11364a34-6c8b-5bd3-b9e8-aaa7c0ea264c")}catch(e){}}();
3
3
  import { r as __toESM$1, t as __commonJSMin$1 } from "./chunk-N93fKeF6.js";
4
4
  import { createRequire } from "node:module";
5
5
  import reactDoctorPlugin, { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, FRAMEWORK_SPECIFIC_RULE_KEYS, FRAMEWORK_TOKENS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_RULES, REACT_DOCTOR_RULES, classifySecurityScanFile, collectCrossFileDependencyProbes, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor";
@@ -33142,13 +33142,15 @@ const listSourceFilesViaFilesystem = (rootDirectory) => {
33142
33142
  const listSourceFilesWithSize = (rootDirectory) => collectSizedSourceFiles(rootDirectory, (listSourceFilesViaGit(rootDirectory) ?? listSourceFilesViaFilesystem(rootDirectory)).sort());
33143
33143
  const listSourceFiles = (rootDirectory) => listSourceFilesWithSize(rootDirectory).map((entry) => entry.path);
33144
33144
  const countSourceFiles = (rootDirectory) => listSourceFilesWithSize(rootDirectory).length;
33145
+ const UTF8_BOM_CHARACTER = "";
33146
+ const stripUtf8Bom = (content) => content.startsWith(UTF8_BOM_CHARACTER) ? content.slice(1) : content;
33145
33147
  const cachedPackageJsons = /* @__PURE__ */ new Map();
33146
33148
  const clearPackageJsonCache = () => {
33147
33149
  cachedPackageJsons.clear();
33148
33150
  };
33149
33151
  const readPackageJsonUncached = (packageJsonPath) => {
33150
33152
  try {
33151
- return JSON.parse(NFS.readFileSync(packageJsonPath, "utf-8"));
33153
+ return JSON.parse(stripUtf8Bom(NFS.readFileSync(packageJsonPath, "utf-8")));
33152
33154
  } catch (error) {
33153
33155
  if (error instanceof SyntaxError) return {};
33154
33156
  if (isErrnoException(error)) {
@@ -36789,7 +36791,6 @@ const PNPM_WORKSPACE_FILE = "pnpm-workspace.yaml";
36789
36791
  const PNPM_LOCKFILE = "pnpm-lock.yaml";
36790
36792
  const PACKAGE_JSON_FILE = "package.json";
36791
36793
  const PNPM_HARDENING_RULE_KEY = "require-pnpm-hardening";
36792
- const UTF8_BOM_CHAR = "";
36793
36794
  const HARDENING_SETTING_KEYS = new Set([
36794
36795
  "minimumReleaseAge",
36795
36796
  "blockExoticSubdeps",
@@ -36814,12 +36815,11 @@ const stripInlineComment = (rawValue) => {
36814
36815
  return rawValue;
36815
36816
  };
36816
36817
  const unquote = (rawValue) => rawValue.replace(/^["']|["']$/g, "");
36817
- const stripBom = (rawContent) => rawContent.startsWith(UTF8_BOM_CHAR) ? rawContent.slice(1) : rawContent;
36818
36818
  const parseHardeningSettings = (content) => {
36819
36819
  let minimumReleaseAge = null;
36820
36820
  let blockExoticSubdeps = null;
36821
36821
  let trustPolicy = null;
36822
- const lines = stripBom(content).split(/\r?\n/);
36822
+ const lines = stripUtf8Bom(content).split(/\r?\n/);
36823
36823
  for (let lineIndex = 0; lineIndex < lines.length; lineIndex += 1) {
36824
36824
  const lineText = lines[lineIndex];
36825
36825
  if (lineText === void 0) continue;
@@ -36853,7 +36853,7 @@ const isPnpmManagedProject = (rootDirectory) => {
36853
36853
  const packageJsonPath = Path.join(rootDirectory, PACKAGE_JSON_FILE);
36854
36854
  if (!isFile(packageJsonPath)) return false;
36855
36855
  try {
36856
- const packageJsonRaw = NFS.readFileSync(packageJsonPath, "utf-8");
36856
+ const packageJsonRaw = stripUtf8Bom(NFS.readFileSync(packageJsonPath, "utf-8"));
36857
36857
  const packageJson = JSON.parse(packageJsonRaw);
36858
36858
  if (packageJson !== null && typeof packageJson === "object" && "packageManager" in packageJson && typeof packageJson.packageManager === "string" && packageJson.packageManager.startsWith("pnpm@")) return true;
36859
36859
  } catch {
@@ -43241,4 +43241,4 @@ const toJsonReport = (result, options) => buildJsonReport({
43241
43241
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
43242
43242
 
43243
43243
  //# sourceMappingURL=index.js.map
43244
- //# debugId=fc1129a0-9ad2-5802-a82e-4982d9572eed
43244
+ //# debugId=11364a34-6c8b-5bd3-b9e8-aaa7c0ea264c
package/dist/lsp.js CHANGED
@@ -33194,13 +33194,15 @@ const listSourceFilesViaFilesystem = (rootDirectory) => {
33194
33194
  const listSourceFilesWithSize = (rootDirectory) => collectSizedSourceFiles(rootDirectory, (listSourceFilesViaGit(rootDirectory) ?? listSourceFilesViaFilesystem(rootDirectory)).sort());
33195
33195
  const listSourceFiles = (rootDirectory) => listSourceFilesWithSize(rootDirectory).map((entry) => entry.path);
33196
33196
  const countSourceFiles = (rootDirectory) => listSourceFilesWithSize(rootDirectory).length;
33197
+ const UTF8_BOM_CHARACTER = "";
33198
+ const stripUtf8Bom = (content) => content.startsWith(UTF8_BOM_CHARACTER) ? content.slice(1) : content;
33197
33199
  const cachedPackageJsons = /* @__PURE__ */ new Map();
33198
33200
  const clearPackageJsonCache = () => {
33199
33201
  cachedPackageJsons.clear();
33200
33202
  };
33201
33203
  const readPackageJsonUncached = (packageJsonPath) => {
33202
33204
  try {
33203
- return JSON.parse(NFS.readFileSync(packageJsonPath, "utf-8"));
33205
+ return JSON.parse(stripUtf8Bom(NFS.readFileSync(packageJsonPath, "utf-8")));
33204
33206
  } catch (error) {
33205
33207
  if (error instanceof SyntaxError) return {};
33206
33208
  if (isErrnoException(error)) {
@@ -36767,7 +36769,6 @@ const PNPM_WORKSPACE_FILE = "pnpm-workspace.yaml";
36767
36769
  const PNPM_LOCKFILE = "pnpm-lock.yaml";
36768
36770
  const PACKAGE_JSON_FILE = "package.json";
36769
36771
  const PNPM_HARDENING_RULE_KEY = "require-pnpm-hardening";
36770
- const UTF8_BOM_CHAR = "";
36771
36772
  const HARDENING_SETTING_KEYS = new Set([
36772
36773
  "minimumReleaseAge",
36773
36774
  "blockExoticSubdeps",
@@ -36792,12 +36793,11 @@ const stripInlineComment = (rawValue) => {
36792
36793
  return rawValue;
36793
36794
  };
36794
36795
  const unquote = (rawValue) => rawValue.replace(/^["']|["']$/g, "");
36795
- const stripBom = (rawContent) => rawContent.startsWith(UTF8_BOM_CHAR) ? rawContent.slice(1) : rawContent;
36796
36796
  const parseHardeningSettings = (content) => {
36797
36797
  let minimumReleaseAge = null;
36798
36798
  let blockExoticSubdeps = null;
36799
36799
  let trustPolicy = null;
36800
- const lines = stripBom(content).split(/\r?\n/);
36800
+ const lines = stripUtf8Bom(content).split(/\r?\n/);
36801
36801
  for (let lineIndex = 0; lineIndex < lines.length; lineIndex += 1) {
36802
36802
  const lineText = lines[lineIndex];
36803
36803
  if (lineText === void 0) continue;
@@ -36831,7 +36831,7 @@ const isPnpmManagedProject = (rootDirectory) => {
36831
36831
  const packageJsonPath = Path.join(rootDirectory, PACKAGE_JSON_FILE);
36832
36832
  if (!isFile(packageJsonPath)) return false;
36833
36833
  try {
36834
- const packageJsonRaw = NFS.readFileSync(packageJsonPath, "utf-8");
36834
+ const packageJsonRaw = stripUtf8Bom(NFS.readFileSync(packageJsonPath, "utf-8"));
36835
36835
  const packageJson = JSON.parse(packageJsonRaw);
36836
36836
  if (packageJson !== null && typeof packageJson === "object" && "packageManager" in packageJson && typeof packageJson.packageManager === "string" && packageJson.packageManager.startsWith("pnpm@")) return true;
36837
36837
  } catch {
@@ -44878,5 +44878,5 @@ const startLanguageServer = () => {
44878
44878
  };
44879
44879
  //#endregion
44880
44880
  export { startLanguageServer };
44881
- !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]="e43f1571-2fdb-5f22-88b7-df9f86c3af31")}catch(e){}}();
44882
- //# debugId=e43f1571-2fdb-5f22-88b7-df9f86c3af31
44881
+ !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]="f9337714-b38f-5f28-ac00-c9d7d79ebaea")}catch(e){}}();
44882
+ //# debugId=f9337714-b38f-5f28-ac00-c9d7d79ebaea
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.7.6-dev.778f1a2",
3
+ "version": "0.7.6-dev.81e6647",
4
4
  "description": "Your agent writes bad React. This catches it",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -66,7 +66,7 @@
66
66
  "vscode-uri": "^3.1.0",
67
67
  "yaml": "^2.9.0",
68
68
  "deslop-js": "0.7.6",
69
- "oxlint-plugin-react-doctor": "0.7.6-dev.778f1a2"
69
+ "oxlint-plugin-react-doctor": "0.7.6-dev.81e6647"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@types/babel__code-frame": "^7.27.0",
@@ -75,8 +75,8 @@
75
75
  "commander": "^14.0.3",
76
76
  "ora": "^9.4.0",
77
77
  "@react-doctor/api": "0.7.6",
78
- "@react-doctor/language-server": "0.7.6",
79
- "@react-doctor/core": "0.7.6"
78
+ "@react-doctor/core": "0.7.6",
79
+ "@react-doctor/language-server": "0.7.6"
80
80
  },
81
81
  "engines": {
82
82
  "node": "^20.19.0 || >=22.13.0"