react-doctor 0.9.2-dev.3f3197f → 0.9.2-dev.b31fd85

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 +18 -6
  2. package/package.json +4 -4
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]="39a777fb-ba0c-53f8-b4d3-f5273ce2324f")}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]="3ced4c14-18cb-5b0c-811c-3448b5c2f139")}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";
@@ -78424,7 +78424,7 @@ const makeNoopConsole = () => ({
78424
78424
  });
78425
78425
  //#endregion
78426
78426
  //#region src/cli/utils/version.ts
78427
- const VERSION = "0.9.2-dev.3f3197f";
78427
+ const VERSION = "0.9.2-dev.b31fd85";
78428
78428
  //#endregion
78429
78429
  //#region src/cli/utils/json-mode.ts
78430
78430
  let context = null;
@@ -78782,13 +78782,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
78782
78782
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
78783
78783
  * standard `SENTRY_RELEASE` override.
78784
78784
  */
78785
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.2-dev.3f3197f`;
78785
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.2-dev.b31fd85`;
78786
78786
  /**
78787
78787
  * Deployment environment shown in Sentry's environment filter. Defaults to
78788
78788
  * `production` for tagged releases and `development` for dev/unbuilt versions,
78789
78789
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
78790
78790
  */
78791
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.2-dev.3f3197f") ? "development" : "production");
78791
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.2-dev.b31fd85") ? "development" : "production");
78792
78792
  /**
78793
78793
  * Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
78794
78794
  * (set to `0` to disable tracing) and falls back to
@@ -96241,7 +96241,19 @@ const inspectAction = async (directory, flags, invocationCommand = "inspect") =>
96241
96241
  }
96242
96242
  const projectDirectories = await selectProjects(resolvedDirectory, flags.project, skipPrompts, userConfig?.projects);
96243
96243
  const projectSelectionCompletedTime = performance$1.now();
96244
- const changedFilesDiffInfo = flags.changedFilesFrom ? buildChangedFilesDiffInfo(readChangedFilesFrom(Path.resolve(flags.changedFilesFrom))) : null;
96244
+ let changedFilesDiffInfo = flags.changedFilesFrom ? buildChangedFilesDiffInfo(readChangedFilesFrom(Path.resolve(flags.changedFilesFrom))) : null;
96245
+ if (changedFilesDiffInfo !== null && scanTarget.didRedirectViaRootDir) {
96246
+ const relativeProjectDirectory = resolveProjectRelativeDirectory(requestedDirectory, resolvedDirectory);
96247
+ if (relativeProjectDirectory) {
96248
+ const projectPrefix = `${relativeProjectDirectory}/`;
96249
+ changedFilesDiffInfo = {
96250
+ ...changedFilesDiffInfo,
96251
+ changedFiles: changedFilesDiffInfo.changedFiles.flatMap((filePath) => {
96252
+ return filePath.startsWith(projectPrefix) ? [filePath.slice(projectPrefix.length)] : [];
96253
+ })
96254
+ };
96255
+ }
96256
+ }
96245
96257
  const requestedScope = resolveScope(flags, userConfig);
96246
96258
  const includeUntracked = flags.includeUntracked ?? false;
96247
96259
  const scopeRequest = requestedScope.scope === void 0 && changedFilesDiffInfo !== null ? {
@@ -97601,4 +97613,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
97601
97613
  export { toForwardSlashes as A, getCategoryImpact as B, buildRulePriorityMap as C, resolveBlockingLevel as D, formatLearnMoreLine as E, TUI_REPORT_DETAIL_WIDTH_FRACTION as F, runPromise as G, mapWithConcurrency as H, isCiEnvironment as I, succeed$3 as J, sync as K, DIAGNOSTIC_CATEGORY_BUCKETS as L, isUnicodeSupported as M, METRIC as N, isReactDoctorWorkflowInstalled as O, TUI_REPORT_COMPACT_MAX_ROWS as P, Progress as R, hasLintHardFailure as S, formatFixRecipeLine as T, mergeReactDoctorConfigs as U, highlighter as V, resolveScanTarget as W, canAnimateOnboarding as _, resolveCliInspectOptions as a, buildCodeFrame as b, detectLaunchableAgents as c, launchCliAgent as d, isShareOptedOut as f, doctorFace as g, easeOutCubic as h, selectProjects as i, findNearestPackageDirectory as j, recordCount as k, CLI_AGENT_BINARIES as l, printFooter as m, shouldFailScanGate as n, countUniqueScannedFiles as o, inspect as p, void_ as q, discoverWorkspacePackages as r, setUpGitHubActions as s, exitGracefully as t, copyToClipboard as u, computeProjectedScore as v, buildSortedRuleGroups as w, buildNoScoreMessage as x, formatElapsedTime as y, Reporter as z };
97602
97614
 
97603
97615
  //# sourceMappingURL=cli.js.map
97604
- //# debugId=39a777fb-ba0c-53f8-b4d3-f5273ce2324f
97616
+ //# debugId=3ced4c14-18cb-5b0c-811c-3448b5c2f139
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.9.2-dev.3f3197f",
3
+ "version": "0.9.2-dev.b31fd85",
4
4
  "description": "Your agent writes bad React. This catches it",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -70,8 +70,8 @@
70
70
  "vscode-languageserver-textdocument": "^1.0.12",
71
71
  "vscode-uri": "^3.1.0",
72
72
  "yaml": "^2.9.0",
73
- "oxlint-plugin-react-doctor": "0.9.2-dev.3f3197f",
74
- "deslop-js": "0.9.2"
73
+ "deslop-js": "0.9.2",
74
+ "oxlint-plugin-react-doctor": "0.9.2-dev.b31fd85"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@types/babel__code-frame": "^7.27.0",
@@ -81,8 +81,8 @@
81
81
  "commander": "^14.0.3",
82
82
  "ink-testing-library": "^4.0.0",
83
83
  "ora": "^9.4.0",
84
- "@react-doctor/api": "0.9.2",
85
84
  "@react-doctor/core": "0.9.2",
85
+ "@react-doctor/api": "0.9.2",
86
86
  "@react-doctor/language-server": "0.9.2"
87
87
  },
88
88
  "engines": {