react-doctor 0.4.2-dev.547e1e4 → 0.4.2-dev.5e9cc3b

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.
Files changed (2) hide show
  1. package/dist/cli.js +9 -6
  2. package/package.json +2 -2
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]="2ea4b3e1-2440-54c8-ae15-199dbd57bbe6")}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]="7beb6e39-972a-50b2-8e64-d808dcdb3925")}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";
@@ -12247,7 +12247,7 @@ const makeNoopConsole = () => ({
12247
12247
  });
12248
12248
  //#endregion
12249
12249
  //#region src/cli/utils/version.ts
12250
- const VERSION = "0.4.2-dev.547e1e4";
12250
+ const VERSION = "0.4.2-dev.5e9cc3b";
12251
12251
  //#endregion
12252
12252
  //#region src/cli/utils/json-mode.ts
12253
12253
  let context = null;
@@ -12605,13 +12605,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
12605
12605
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
12606
12606
  * standard `SENTRY_RELEASE` override.
12607
12607
  */
12608
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.4.2-dev.547e1e4`;
12608
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.4.2-dev.5e9cc3b`;
12609
12609
  /**
12610
12610
  * Deployment environment shown in Sentry's environment filter. Defaults to
12611
12611
  * `production` for tagged releases and `development` for dev/unbuilt versions,
12612
12612
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
12613
12613
  */
12614
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.4.2-dev.547e1e4") ? "development" : "production");
12614
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.4.2-dev.5e9cc3b") ? "development" : "production");
12615
12615
  /**
12616
12616
  * Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
12617
12617
  * (set to `0` to disable tracing) and falls back to
@@ -15874,13 +15874,14 @@ const buildRuntimeLayers = (input) => {
15874
15874
  const linterLayer = input.shouldSkipLint ? Linter.layerOf([]) : Linter.layerOxlint;
15875
15875
  const deadCodeLayer = input.shouldRunDeadCode ? DeadCode.layerNode : DeadCode.layerOf([]);
15876
15876
  const scoreLayer = input.shouldComputeScore ? Score.layerHttp : Score.layerOf(null);
15877
+ const projectLayer = input.projectInfoOverride === void 0 ? Project.layerNode : Project.layerOf(input.projectInfoOverride);
15877
15878
  const progressLayer = input.shouldShowProgressSpinners ? Progress.layerOra(buildSpinnerProgressHandle) : Progress.layerNoop;
15878
15879
  const configLayer = input.hasConfigOverride ? Config.layerOf({
15879
15880
  config: input.userConfig,
15880
15881
  resolvedDirectory: input.directory,
15881
15882
  configSourceDirectory: input.configSourceDirectory
15882
15883
  }) : Config.layerNode;
15883
- const baseLayers = Layer.mergeAll(Project.layerNode, configLayer, Files.layerNode, Git.layerNode, linterLayer, LintPartialFailures.layerLive, deadCodeLayer, progressLayer, Reporter.layerNoop, scoreLayer);
15884
+ const baseLayers = Layer.mergeAll(projectLayer, configLayer, Files.layerNode, Git.layerNode, linterLayer, LintPartialFailures.layerLive, deadCodeLayer, progressLayer, Reporter.layerNoop, scoreLayer);
15884
15885
  return input.oxlintConcurrency === void 0 ? baseLayers : Layer.mergeAll(baseLayers, Layer.succeed(OxlintConcurrency, input.oxlintConcurrency));
15885
15886
  };
15886
15887
  //#endregion
@@ -17347,6 +17348,7 @@ const runBaselineComparison = async (params) => {
17347
17348
  hasConfigOverride: true,
17348
17349
  userConfig: params.userConfig,
17349
17350
  configSourceDirectory: null,
17351
+ projectInfoOverride: params.headProjectInfo,
17350
17352
  shouldSkipLint: !params.options.lint || !params.resolvedNodeBinaryPath,
17351
17353
  shouldRunDeadCode: false,
17352
17354
  shouldComputeScore: false,
@@ -17446,6 +17448,7 @@ const runInspectWithRuntime = async (directory, options, userConfig, hasConfigOv
17446
17448
  directory,
17447
17449
  options,
17448
17450
  userConfig,
17451
+ headProjectInfo: output.project,
17449
17452
  headDiagnostics: output.diagnostics,
17450
17453
  resolvedNodeBinaryPath,
17451
17454
  baselineRef: options.baseline.ref
@@ -21574,4 +21577,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
21574
21577
  export {};
21575
21578
 
21576
21579
  //# sourceMappingURL=cli.js.map
21577
- //# debugId=2ea4b3e1-2440-54c8-ae15-199dbd57bbe6
21580
+ //# debugId=7beb6e39-972a-50b2-8e64-d808dcdb3925
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.4.2-dev.547e1e4",
3
+ "version": "0.4.2-dev.5e9cc3b",
4
4
  "description": "Your agent writes bad React. This catches it",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -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.2-dev.547e1e4"
69
+ "oxlint-plugin-react-doctor": "0.4.2-dev.5e9cc3b"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@types/babel__code-frame": "^7.27.0",