react-doctor 0.6.2-dev.59e8178 → 0.6.2-dev.ac71a3b

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]="2921b8ff-14cf-5604-8ae5-b65b4f1347fc")}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]="d9bbcb80-9ea3-576e-8f35-8215ed87eca7")}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";
@@ -40172,7 +40172,6 @@ function* collectSecurityScanFiles(rootDirectory) {
40172
40172
  isGeneratedBundleByName: classification.isGeneratedBundleByName
40173
40173
  });
40174
40174
  }
40175
- yield null;
40176
40175
  }
40177
40176
  for (const candidates of [
40178
40177
  priorityCandidates,
@@ -40298,18 +40297,9 @@ const checkSecurityScanCooperative = async (rootDirectory, options = {}) => {
40298
40297
  const session = createSecurityScanSession(rootDirectory, options);
40299
40298
  if (session === null) return [];
40300
40299
  let sliceStartedAt = performance.now();
40301
- for (const file of collectSecurityScanFiles(rootDirectory)) {
40302
- if (file === null) {
40303
- if (performance.now() - sliceStartedAt >= 12) {
40304
- await yieldToEventLoop();
40305
- sliceStartedAt = performance.now();
40306
- }
40307
- continue;
40308
- }
40309
- for (const _ruleStep of session.scanFileByRule(file)) if (performance.now() - sliceStartedAt >= 12) {
40310
- await yieldToEventLoop();
40311
- sliceStartedAt = performance.now();
40312
- }
40300
+ for (const file of collectSecurityScanFiles(rootDirectory)) for (const _ruleStep of session.scanFileByRule(file)) if (performance.now() - sliceStartedAt >= 12) {
40301
+ await yieldToEventLoop();
40302
+ sliceStartedAt = performance.now();
40313
40303
  }
40314
40304
  return session.diagnostics;
40315
40305
  };
@@ -43276,7 +43266,6 @@ const runOxlint = async (options) => {
43276
43266
  "json",
43277
43267
  ...sharedArgs
43278
43268
  ];
43279
- await yieldToEventLoop();
43280
43269
  const sizedScanFiles = includePaths === void 0 ? listSourceFilesWithSize(rootDirectory) : null;
43281
43270
  const candidateFiles = includePaths !== void 0 ? includePaths : (sizedScanFiles ?? []).map((entry) => entry.path);
43282
43271
  const sizeByFile = sizedScanFiles !== null && lintBatchOrdering === "cost" ? new Map(sizedScanFiles.map((entry) => [entry.path, entry.sizeBytes])) : null;
@@ -43347,7 +43336,6 @@ const runOxlint = async (options) => {
43347
43336
  const cacheKeyByFile = /* @__PURE__ */ new Map();
43348
43337
  const missFiles = [];
43349
43338
  const replayedDiagnostics = [];
43350
- let hashSliceStartedAt = performance.now();
43351
43339
  for (const candidateFile of candidateFiles) {
43352
43340
  const contentHash = hashFileContents(Path.resolve(rootDirectory, candidateFile));
43353
43341
  if (contentHash === null) {
@@ -43359,10 +43347,6 @@ const runOxlint = async (options) => {
43359
43347
  const cachedDiagnostics = cache.lookup(cacheKey);
43360
43348
  if (cachedDiagnostics === null) missFiles.push(candidateFile);
43361
43349
  else replayedDiagnostics.push(...cachedDiagnostics);
43362
- if (performance.now() - hashSliceStartedAt >= 12) {
43363
- await yieldToEventLoop();
43364
- hashSliceStartedAt = performance.now();
43365
- }
43366
43350
  }
43367
43351
  const cacheHitFileCount = candidateFiles.length - missFiles.length;
43368
43352
  const fullResult = await runConfigOverFiles((overrides) => buildConfig({
@@ -45320,7 +45304,7 @@ const makeNoopConsole = () => ({
45320
45304
  });
45321
45305
  //#endregion
45322
45306
  //#region src/cli/utils/version.ts
45323
- const VERSION = "0.6.2-dev.59e8178";
45307
+ const VERSION = "0.6.2-dev.ac71a3b";
45324
45308
  //#endregion
45325
45309
  //#region src/cli/utils/json-mode.ts
45326
45310
  let context = null;
@@ -45689,13 +45673,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
45689
45673
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
45690
45674
  * standard `SENTRY_RELEASE` override.
45691
45675
  */
45692
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.6.2-dev.59e8178`;
45676
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.6.2-dev.ac71a3b`;
45693
45677
  /**
45694
45678
  * Deployment environment shown in Sentry's environment filter. Defaults to
45695
45679
  * `production` for tagged releases and `development` for dev/unbuilt versions,
45696
45680
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
45697
45681
  */
45698
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.6.2-dev.59e8178") ? "development" : "production");
45682
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.6.2-dev.ac71a3b") ? "development" : "production");
45699
45683
  /**
45700
45684
  * Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
45701
45685
  * (set to `0` to disable tracing) and falls back to
@@ -63678,4 +63662,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
63678
63662
  export {};
63679
63663
 
63680
63664
  //# sourceMappingURL=cli.js.map
63681
- //# debugId=2921b8ff-14cf-5604-8ae5-b65b4f1347fc
63665
+ //# debugId=d9bbcb80-9ea3-576e-8f35-8215ed87eca7
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]="8565c6ea-39f3-51e6-895a-ae9f7c026d0e")}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]="1b2a9bb2-d6bc-5c9b-afbb-5b639438c617")}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 * as NFS from "node:fs";
@@ -36945,7 +36945,6 @@ function* collectSecurityScanFiles(rootDirectory) {
36945
36945
  isGeneratedBundleByName: classification.isGeneratedBundleByName
36946
36946
  });
36947
36947
  }
36948
- yield null;
36949
36948
  }
36950
36949
  for (const candidates of [
36951
36950
  priorityCandidates,
@@ -37071,18 +37070,9 @@ const checkSecurityScanCooperative = async (rootDirectory, options = {}) => {
37071
37070
  const session = createSecurityScanSession(rootDirectory, options);
37072
37071
  if (session === null) return [];
37073
37072
  let sliceStartedAt = performance.now();
37074
- for (const file of collectSecurityScanFiles(rootDirectory)) {
37075
- if (file === null) {
37076
- if (performance.now() - sliceStartedAt >= 12) {
37077
- await yieldToEventLoop();
37078
- sliceStartedAt = performance.now();
37079
- }
37080
- continue;
37081
- }
37082
- for (const _ruleStep of session.scanFileByRule(file)) if (performance.now() - sliceStartedAt >= 12) {
37083
- await yieldToEventLoop();
37084
- sliceStartedAt = performance.now();
37085
- }
37073
+ for (const file of collectSecurityScanFiles(rootDirectory)) for (const _ruleStep of session.scanFileByRule(file)) if (performance.now() - sliceStartedAt >= 12) {
37074
+ await yieldToEventLoop();
37075
+ sliceStartedAt = performance.now();
37086
37076
  }
37087
37077
  return session.diagnostics;
37088
37078
  };
@@ -40033,7 +40023,6 @@ const runOxlint = async (options) => {
40033
40023
  "json",
40034
40024
  ...sharedArgs
40035
40025
  ];
40036
- await yieldToEventLoop();
40037
40026
  const sizedScanFiles = includePaths === void 0 ? listSourceFilesWithSize(rootDirectory) : null;
40038
40027
  const candidateFiles = includePaths !== void 0 ? includePaths : (sizedScanFiles ?? []).map((entry) => entry.path);
40039
40028
  const sizeByFile = sizedScanFiles !== null && lintBatchOrdering === "cost" ? new Map(sizedScanFiles.map((entry) => [entry.path, entry.sizeBytes])) : null;
@@ -40104,7 +40093,6 @@ const runOxlint = async (options) => {
40104
40093
  const cacheKeyByFile = /* @__PURE__ */ new Map();
40105
40094
  const missFiles = [];
40106
40095
  const replayedDiagnostics = [];
40107
- let hashSliceStartedAt = performance.now();
40108
40096
  for (const candidateFile of candidateFiles) {
40109
40097
  const contentHash = hashFileContents(Path.resolve(rootDirectory, candidateFile));
40110
40098
  if (contentHash === null) {
@@ -40116,10 +40104,6 @@ const runOxlint = async (options) => {
40116
40104
  const cachedDiagnostics = cache.lookup(cacheKey);
40117
40105
  if (cachedDiagnostics === null) missFiles.push(candidateFile);
40118
40106
  else replayedDiagnostics.push(...cachedDiagnostics);
40119
- if (performance.now() - hashSliceStartedAt >= 12) {
40120
- await yieldToEventLoop();
40121
- hashSliceStartedAt = performance.now();
40122
- }
40123
40107
  }
40124
40108
  const cacheHitFileCount = candidateFiles.length - missFiles.length;
40125
40109
  const fullResult = await runConfigOverFiles((overrides) => buildConfig({
@@ -41846,4 +41830,4 @@ const toJsonReport = (result, options) => buildJsonReport({
41846
41830
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
41847
41831
 
41848
41832
  //# sourceMappingURL=index.js.map
41849
- //# debugId=8565c6ea-39f3-51e6-895a-ae9f7c026d0e
41833
+ //# debugId=1b2a9bb2-d6bc-5c9b-afbb-5b639438c617
package/dist/lsp.js CHANGED
@@ -36930,7 +36930,6 @@ function* collectSecurityScanFiles(rootDirectory) {
36930
36930
  isGeneratedBundleByName: classification.isGeneratedBundleByName
36931
36931
  });
36932
36932
  }
36933
- yield null;
36934
36933
  }
36935
36934
  for (const candidates of [
36936
36935
  priorityCandidates,
@@ -37056,18 +37055,9 @@ const checkSecurityScanCooperative = async (rootDirectory, options = {}) => {
37056
37055
  const session = createSecurityScanSession(rootDirectory, options);
37057
37056
  if (session === null) return [];
37058
37057
  let sliceStartedAt = performance.now();
37059
- for (const file of collectSecurityScanFiles(rootDirectory)) {
37060
- if (file === null) {
37061
- if (performance.now() - sliceStartedAt >= 12) {
37062
- await yieldToEventLoop();
37063
- sliceStartedAt = performance.now();
37064
- }
37065
- continue;
37066
- }
37067
- for (const _ruleStep of session.scanFileByRule(file)) if (performance.now() - sliceStartedAt >= 12) {
37068
- await yieldToEventLoop();
37069
- sliceStartedAt = performance.now();
37070
- }
37058
+ for (const file of collectSecurityScanFiles(rootDirectory)) for (const _ruleStep of session.scanFileByRule(file)) if (performance.now() - sliceStartedAt >= 12) {
37059
+ await yieldToEventLoop();
37060
+ sliceStartedAt = performance.now();
37071
37061
  }
37072
37062
  return session.diagnostics;
37073
37063
  };
@@ -40018,7 +40008,6 @@ const runOxlint = async (options) => {
40018
40008
  "json",
40019
40009
  ...sharedArgs
40020
40010
  ];
40021
- await yieldToEventLoop();
40022
40011
  const sizedScanFiles = includePaths === void 0 ? listSourceFilesWithSize(rootDirectory) : null;
40023
40012
  const candidateFiles = includePaths !== void 0 ? includePaths : (sizedScanFiles ?? []).map((entry) => entry.path);
40024
40013
  const sizeByFile = sizedScanFiles !== null && lintBatchOrdering === "cost" ? new Map(sizedScanFiles.map((entry) => [entry.path, entry.sizeBytes])) : null;
@@ -40089,7 +40078,6 @@ const runOxlint = async (options) => {
40089
40078
  const cacheKeyByFile = /* @__PURE__ */ new Map();
40090
40079
  const missFiles = [];
40091
40080
  const replayedDiagnostics = [];
40092
- let hashSliceStartedAt = performance.now();
40093
40081
  for (const candidateFile of candidateFiles) {
40094
40082
  const contentHash = hashFileContents(Path.resolve(rootDirectory, candidateFile));
40095
40083
  if (contentHash === null) {
@@ -40101,10 +40089,6 @@ const runOxlint = async (options) => {
40101
40089
  const cachedDiagnostics = cache.lookup(cacheKey);
40102
40090
  if (cachedDiagnostics === null) missFiles.push(candidateFile);
40103
40091
  else replayedDiagnostics.push(...cachedDiagnostics);
40104
- if (performance.now() - hashSliceStartedAt >= 12) {
40105
- await yieldToEventLoop();
40106
- hashSliceStartedAt = performance.now();
40107
- }
40108
40092
  }
40109
40093
  const cacheHitFileCount = candidateFiles.length - missFiles.length;
40110
40094
  const fullResult = await runConfigOverFiles((overrides) => buildConfig({
@@ -43570,5 +43554,5 @@ const startLanguageServer = () => {
43570
43554
  };
43571
43555
  //#endregion
43572
43556
  export { startLanguageServer };
43573
- !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]="ec0a0a63-f78d-58b0-abbd-1faf2b2f859a")}catch(e){}}();
43574
- //# debugId=ec0a0a63-f78d-58b0-abbd-1faf2b2f859a
43557
+ !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]="75579803-66de-5f78-8ded-3ed584f2e100")}catch(e){}}();
43558
+ //# debugId=75579803-66de-5f78-8ded-3ed584f2e100
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.6.2-dev.59e8178",
3
+ "version": "0.6.2-dev.ac71a3b",
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.6.2",
69
- "oxlint-plugin-react-doctor": "0.6.2-dev.59e8178"
69
+ "oxlint-plugin-react-doctor": "0.6.2-dev.ac71a3b"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@types/babel__code-frame": "^7.27.0",