react-doctor 0.5.6-dev.7d9e676 → 0.5.6-dev.8057497

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 +13 -5
  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]="3622d8e5-b640-5cae-addd-2b990604cce2")}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]="8ae2807f-ae0c-563d-8dfa-255b2314a783")}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";
@@ -44004,7 +44004,7 @@ const makeNoopConsole = () => ({
44004
44004
  });
44005
44005
  //#endregion
44006
44006
  //#region src/cli/utils/version.ts
44007
- const VERSION = "0.5.6-dev.7d9e676";
44007
+ const VERSION = "0.5.6-dev.8057497";
44008
44008
  //#endregion
44009
44009
  //#region src/cli/utils/json-mode.ts
44010
44010
  let context = null;
@@ -44362,13 +44362,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
44362
44362
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
44363
44363
  * standard `SENTRY_RELEASE` override.
44364
44364
  */
44365
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.5.6-dev.7d9e676`;
44365
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.5.6-dev.8057497`;
44366
44366
  /**
44367
44367
  * Deployment environment shown in Sentry's environment filter. Defaults to
44368
44368
  * `production` for tagged releases and `development` for dev/unbuilt versions,
44369
44369
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
44370
44370
  */
44371
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.5.6-dev.7d9e676") ? "development" : "production");
44371
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.5.6-dev.8057497") ? "development" : "production");
44372
44372
  /**
44373
44373
  * Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
44374
44374
  * (set to `0` to disable tracing) and falls back to
@@ -52606,6 +52606,14 @@ const runExplain = async (fileLineArgument, context) => {
52606
52606
  const colorizedRule = colorizeRuleByDiagnostic(ruleIdentifier, diagnostic.severity);
52607
52607
  const severityLabel = colorizeRuleByDiagnostic(diagnostic.severity, diagnostic.severity);
52608
52608
  cliLogger.log(`${severitySymbol} ${colorizedRule} ${highlighter.dim(`(${severityLabel})`)} — ${diagnostic.message}`);
52609
+ const codeFrame = buildCodeFrame({
52610
+ filePath: diagnostic.filePath,
52611
+ line: diagnostic.line,
52612
+ column: diagnostic.column,
52613
+ endLine: diagnostic.endLine,
52614
+ rootDirectory: targetDirectory
52615
+ });
52616
+ if (codeFrame) cliLogger.log(indentMultilineText(codeFrame, " "));
52609
52617
  if (diagnostic.category) cliLogger.dim(` Category: ${diagnostic.category}`);
52610
52618
  if (diagnostic.help) cliLogger.dim(` ${diagnostic.help}`);
52611
52619
  cliLogger.dim(` If this needs follow-up or looks like a false positive, open: ${buildDiagnosticIssueUrl({
@@ -54010,4 +54018,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
54010
54018
  export {};
54011
54019
 
54012
54020
  //# sourceMappingURL=cli.js.map
54013
- //# debugId=3622d8e5-b640-5cae-addd-2b990604cce2
54021
+ //# debugId=8ae2807f-ae0c-563d-8dfa-255b2314a783
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.5.6-dev.7d9e676",
3
+ "version": "0.5.6-dev.8057497",
4
4
  "description": "Your agent writes bad React. This catches it",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -64,7 +64,7 @@
64
64
  "vscode-languageserver": "^9.0.1",
65
65
  "vscode-languageserver-textdocument": "^1.0.12",
66
66
  "vscode-uri": "^3.1.0",
67
- "oxlint-plugin-react-doctor": "0.5.6-dev.7d9e676"
67
+ "oxlint-plugin-react-doctor": "0.5.6-dev.8057497"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@types/babel__code-frame": "^7.27.0",