react-doctor 0.9.14-dev.bcf8062 → 0.9.15-dev.23d6160

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 (59) hide show
  1. package/README.md +3 -0
  2. package/dist/_react-doctor_require-typescript-DXQDYeWK.js +16 -0
  3. package/dist/{active-run-trace-dlIZeEvb.js → active-run-trace-Dewycxda.js} +3 -3
  4. package/dist/{active-scan-abort-registry-B72ASBUh.js → active-scan-abort-registry-CCTgal0O.js} +3 -3
  5. package/dist/{build-section-divider-v7NN_cR8.js → build-section-divider-Bt7znRi8.js} +5 -4
  6. package/dist/{ci-BnQkEEV1.js → ci-vktx9bIK.js} +14 -13
  7. package/dist/cli.js +32 -29
  8. package/dist/constants-DJ3RtEMu.js +1035 -0
  9. package/dist/{constants-CKOk_Fa9.js → constants-DNh19qg9.js} +3 -3
  10. package/dist/{design-Du1rV5hV.js → design-CH3L5hSZ.js} +4 -4
  11. package/dist/{devtools-DOdrAPkZ.js → devtools-D20sefkm.js} +3 -3
  12. package/dist/duplicate-jsx-worker.js +62 -62
  13. package/dist/{exit-gracefully-D9ffPCDJ.js → exit-gracefully-Y5XyTvxu.js} +7 -7
  14. package/dist/fs-utils-C88IbqFa.js +45 -0
  15. package/dist/{get-east-asian-width-CM5BOEC-.js → get-east-asian-width-DRPy7dqz.js} +4 -4
  16. package/dist/{handle-error-BWHTahSo.js → handle-error-8NlzFVoW.js} +6 -5
  17. package/dist/index.d.ts +8511 -8509
  18. package/dist/index.js +12734 -12338
  19. package/dist/{inspect-fWFs2jtk.js → inspect-Cs2Ojloa.js} +28 -21
  20. package/dist/{install-DWpPYvxU.js → install-C4JkqZoO.js} +10 -9
  21. package/dist/{install-doctor-script-wNnu5y_f.js → install-doctor-script-Dr4O5HID.js} +17 -8
  22. package/dist/{install-github-workflow-DsgMnbqe.js → install-github-workflow-Dtf07ISQ.js} +10 -10
  23. package/dist/{install-react-doctor-hFwI2elO.js → install-react-doctor-Bi_Dav6m.js} +15 -11
  24. package/dist/is-cache-globally-disabled-De19063F.js +10 -0
  25. package/dist/{jsx-runtime-DCJqkm-B.js → jsx-runtime-CND_0px2.js} +11 -10
  26. package/dist/oxlint-worker.js +95 -5
  27. package/dist/{path-format-DnHpmJwG.js → path-format-By20mo8A.js} +3 -3
  28. package/dist/{print-branded-header-BcXGdtml.js → print-branded-header-DqaKyGKm.js} +4 -4
  29. package/dist/project-analysis-worker.js +459 -461
  30. package/dist/{prompt-runtime-scan-url-s4NKC5nM.js → prompt-runtime-scan-url-DiI3_zIx.js} +6 -6
  31. package/dist/react-compiler-detection-worker.d.ts +1 -0
  32. package/dist/react-compiler-detection-worker.js +1029 -0
  33. package/dist/{read-object-file-Be3X79OD.js → read-object-file-DBJkVOGK.js} +4 -4
  34. package/dist/{record-metric-D8ltm-Oh.js → record-metric-C-ZZzzDc.js} +12589 -13129
  35. package/dist/{report-error-5LSXHGJq.js → report-error-_C-eJJHZ.js} +7 -6
  36. package/dist/{report-workflow-result-2aLf7RhF.js → report-workflow-result-BA_xTdWY.js} +24 -11
  37. package/dist/{resolve-scope-BXJ4WEdf.js → resolve-scope-Cl4BiTkm.js} +7 -7
  38. package/dist/{rules-C71aHICA.js → rules-DAQXfBXb.js} +8 -7
  39. package/dist/{run-scan-app-BqzvDO2G.js → run-scan-app-CN5nwdB-.js} +12 -11
  40. package/dist/{runtime-scan-TcGr2CHS.js → runtime-scan-DFdypOyE.js} +13 -12
  41. package/dist/{sanitize-runtime-url-LBQ4amZg.js → sanitize-runtime-url-yCL8ZAFd.js} +4 -4
  42. package/dist/{scan-8j0aKndg.js → scan-C6U_DFdI.js} +10 -9
  43. package/dist/{semver-DlmXks31.js → semver-BZIuy1gP.js} +3 -3
  44. package/dist/{should-fail-scan-gate-fjfa2sYx.js → should-fail-scan-gate-2mIY6wHj.js} +1848 -1825
  45. package/dist/{should-skip-prompts-BZZxI1vY.js → should-skip-prompts-CuyyYvRd.js} +4 -4
  46. package/dist/{should-use-tui-C59qAiOG.js → should-use-tui-CbbIdX9b.js} +4 -4
  47. package/dist/start-scan-preamble-DVhXIPc0.d.ts +1 -0
  48. package/dist/start-scan-preamble-DZknzhHU.js +68 -0
  49. package/dist/start-scan-preamble.d.ts +1 -0
  50. package/dist/start-scan-preamble.js +4 -0
  51. package/dist/{telemetry-runtime-CmlSXXfi.js → telemetry-runtime-DLq3FDzI.js} +7 -6
  52. package/dist/{unref-stdin-SK3WfwxS.js → unref-stdin-D-NZBFpg.js} +3 -3
  53. package/dist/unwrap-typescript-expression-CrEPQUWz.js +14 -0
  54. package/dist/{version-DRDcTlA9.js → version-DO7dtT21.js} +5 -4
  55. package/dist/{why-DthVqP00.js → why-uxPDWtZO.js} +4 -4
  56. package/dist/{with-run-span-D4-folvM.js → with-run-span-BCopjALe.js} +7 -6
  57. package/package.json +7 -5
  58. package/dist/_react-doctor_require-typescript-DnwIzXJn.js +0 -7
  59. package/dist/unwrap-typescript-expression-CbO_6kmC.js +0 -14
@@ -1,10 +1,10 @@
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]="3e96635f-c34c-51c7-8773-42bbe470a635")}catch(e){}}();
3
- import { B as isNonInteractiveEnvironment } from "./record-metric-D8ltm-Oh.js";
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]="a4fec69c-1552-514f-9d1c-6d01b6c26fe6")}catch(e){}}();
3
+ import { b as isNonInteractiveEnvironment } from "./record-metric-C-ZZzzDc.js";
4
4
  //#region src/cli/utils/should-skip-prompts.ts
5
5
  const shouldSkipPrompts = (input = {}) => Boolean(input.yes) || Boolean(input.json) || isNonInteractiveEnvironment() || !process.stdin.isTTY;
6
6
  //#endregion
7
7
  export { shouldSkipPrompts as t };
8
8
 
9
- //# sourceMappingURL=should-skip-prompts-BZZxI1vY.js.map
10
- //# debugId=3e96635f-c34c-51c7-8773-42bbe470a635
9
+ //# sourceMappingURL=should-skip-prompts-CuyyYvRd.js.map
10
+ //# debugId=a4fec69c-1552-514f-9d1c-6d01b6c26fe6
@@ -1,6 +1,6 @@
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]="cde98874-f8bf-54f9-87f6-a217df99b944")}catch(e){}}();
3
- import { B as isNonInteractiveEnvironment } from "./record-metric-D8ltm-Oh.js";
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]="66cf6350-6800-52c4-bb1c-b331448e497a")}catch(e){}}();
3
+ import { b as isNonInteractiveEnvironment } from "./record-metric-C-ZZzzDc.js";
4
4
  //#region src/cli/utils/resolve-tui-environment.ts
5
5
  const resolveTuiEnvironment = (outputIsTty = process.stdout.isTTY === true) => ({
6
6
  isNonInteractiveEnvironment: isNonInteractiveEnvironment(),
@@ -21,5 +21,5 @@ const shouldUseTui = (input) => {
21
21
  //#endregion
22
22
  export { shouldUseTui as n, resolveTuiEnvironment as r, isTuiEnvironmentSupported as t };
23
23
 
24
- //# sourceMappingURL=should-use-tui-C59qAiOG.js.map
25
- //# debugId=cde98874-f8bf-54f9-87f6-a217df99b944
24
+ //# sourceMappingURL=should-use-tui-CbbIdX9b.js.map
25
+ //# debugId=66cf6350-6800-52c4-bb1c-b331448e497a
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,68 @@
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]="10098a6a-5bb9-5790-b430-2a139a9f406e")}catch(e){}}();
3
+ import { $ as warmReactCompilerDetection, A as buildGitSourceListingRequest, I as prefetchGitCommand, K as resolveReactDoctorCacheDir, L as prespawnOxlintWorkers, M as buildOxlintWorkerSpawnSpec, W as resolveOxlintWorkerRuntime, _ as SCAN_PREAMBLE_SKIP_FLAGS, g as RUN_GIT_MAX_BUFFER_BYTES, j as buildOxlintChildEnv, q as resolveScanConcurrency, y as SCAN_RESULT_CACHE_GIT_ARGUMENTS, z as resolveConfiguredScanConcurrency } from "./constants-DJ3RtEMu.js";
4
+ import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-De19063F.js";
5
+ import * as fs$1 from "node:fs";
6
+ import * as path$1 from "node:path";
7
+ //#region src/cli/utils/resolve-prefetch-scan-directory.ts
8
+ const isExistingDirectory = (absolutePath) => {
9
+ try {
10
+ return fs$1.statSync(absolutePath).isDirectory();
11
+ } catch {
12
+ return false;
13
+ }
14
+ };
15
+ const resolvePrefetchScanDirectory = (argv, currentDirectory) => {
16
+ const directoryCandidates = [];
17
+ let previousToken = null;
18
+ for (const token of argv) {
19
+ if (SCAN_PREAMBLE_SKIP_FLAGS.has(token)) return null;
20
+ if (!token.startsWith("-")) {
21
+ if (isExistingDirectory(path$1.resolve(currentDirectory, token))) directoryCandidates.push(token);
22
+ else if (previousToken === null || !previousToken.startsWith("-")) return null;
23
+ }
24
+ previousToken = token;
25
+ }
26
+ if (directoryCandidates.length > 1) return null;
27
+ return path$1.resolve(currentDirectory, directoryCandidates[0] ?? ".");
28
+ };
29
+ //#endregion
30
+ //#region src/cli/start-scan-preamble.ts
31
+ const prespawnOxlintWorkersForScan = () => {
32
+ if (process.argv.includes("--no-lint")) return;
33
+ const workerRuntime = resolveOxlintWorkerRuntime();
34
+ if (workerRuntime === null) return;
35
+ const workerCount = process.argv.includes("--no-parallel") ? resolveScanConcurrency(1) : resolveConfiguredScanConcurrency();
36
+ prespawnOxlintWorkers(buildOxlintWorkerSpawnSpec({
37
+ nodeBinaryPath: process.execPath,
38
+ maxWorkers: workerCount,
39
+ workerScriptPath: workerRuntime.workerScriptPath,
40
+ oxlintPackageDirectory: workerRuntime.oxlintPackageDirectory,
41
+ pluginPath: workerRuntime.pluginPath,
42
+ environment: buildOxlintChildEnv(process.env)
43
+ }), workerCount);
44
+ };
45
+ const startScanPreamble = () => {
46
+ const prefetchDirectory = resolvePrefetchScanDirectory(process.argv.slice(2), process.cwd());
47
+ if (prefetchDirectory === null) return;
48
+ if (process.argv.includes("--no-cache")) process.env.REACT_DOCTOR_NO_CACHE = "1";
49
+ prefetchGitCommand(buildGitSourceListingRequest(prefetchDirectory));
50
+ const isCacheDisabled = isCacheGloballyDisabled();
51
+ if (!isCacheDisabled) for (const args of SCAN_RESULT_CACHE_GIT_ARGUMENTS) prefetchGitCommand({
52
+ directory: prefetchDirectory,
53
+ args,
54
+ maxBufferBytes: RUN_GIT_MAX_BUFFER_BYTES
55
+ });
56
+ if (!(!isCacheDisabled && fs$1.existsSync(path$1.join(resolveReactDoctorCacheDir(prefetchDirectory), "scan-cache.json")))) {
57
+ warmReactCompilerDetection(prefetchDirectory);
58
+ prespawnOxlintWorkersForScan();
59
+ }
60
+ };
61
+ try {
62
+ startScanPreamble();
63
+ } catch {}
64
+ //#endregion
65
+ export {};
66
+
67
+ //# sourceMappingURL=start-scan-preamble-DZknzhHU.js.map
68
+ //# debugId=10098a6a-5bb9-5790-b430-2a139a9f406e
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,4 @@
1
+ import "./start-scan-preamble-DZknzhHU.js";
2
+ export {};
3
+ !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]="26d5637b-5707-5b83-8bf7-9b01e6c50e8b")}catch(e){}}();
4
+ //# debugId=26d5637b-5707-5b83-8bf7-9b01e6c50e8b
@@ -1,6 +1,7 @@
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]="fe9fd3ac-1722-508e-b83e-d30968bc877b")}catch(e){}}();
3
- import { Bn as runPromise, Gn as buildWithScope, N as SENTRY_FLUSH_TIMEOUT_MS, Qn as void_, Qt as isReactDoctorError, Vn as runSync, Xn as makeUnsafe, Yn as close, Zt as isProjectDiscoveryError, _ as VERSION, _n as scrubSensitivePaths, a as isEnvFlagEnabled, ar as messageFromUnknown, i as isTelemetryEnabled, jn as make, mt as anonymizeText, nr as isErrnoException, o as buildSentryScope, pt as anonymizeInPlace, tn as layerObservability, z as CliInputError } from "./record-metric-D8ltm-Oh.js";
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]="83279ce8-d455-5d77-8d93-e3af7a44f81d")}catch(e){}}();
3
+ import { S as SENTRY_FLUSH_TIMEOUT_MS } from "./constants-DJ3RtEMu.js";
4
+ import { An as void_, At as isProjectDiscoveryError, Cn as buildWithScope, Dn as close, J as anonymizeText, Jt as scrubSensitivePaths, Ln as isErrnoException, On as makeUnsafe, Pn as messageFromUnknown, Pt as layerObservability, _ as VERSION, a as isEnvFlagEnabled, i as isTelemetryEnabled, jt as isReactDoctorError, ln as make, o as buildSentryScope, q as anonymizeInPlace, vn as runPromise, y as CliInputError, yn as runSync } from "./record-metric-C-ZZzzDc.js";
4
5
  //#region src/cli/utils/is-environment-error.ts
5
6
  const ENVIRONMENT_ERROR_CODES = new Set([
6
7
  "EACCES",
@@ -211,13 +212,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
211
212
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
212
213
  * standard `SENTRY_RELEASE` override.
213
214
  */
214
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.14-dev.bcf8062`;
215
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.15-dev.23d6160`;
215
216
  /**
216
217
  * Deployment environment shown in Sentry's environment filter. Defaults to
217
218
  * `production` for tagged releases and `development` for dev/unbuilt versions,
218
219
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
219
220
  */
220
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.14-dev.bcf8062") ? "development" : "production");
221
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.15-dev.23d6160") ? "development" : "production");
221
222
  //#endregion
222
223
  //#region src/instrument.ts
223
224
  let sentryPromise = null;
@@ -395,5 +396,5 @@ const shutdownTelemetry = async () => {
395
396
  //#endregion
396
397
  export { initializeSentry as a, isNpmCacheCorruptionError as c, getSentry as i, formatEnvironmentError as l, shutdownTelemetry as n, isExpectedUserError as o, flushSentry as r, formatNpmCacheCorruptionError as s, getTelemetryContext as t, isEnvironmentError as u };
397
398
 
398
- //# sourceMappingURL=telemetry-runtime-CmlSXXfi.js.map
399
- //# debugId=fe9fd3ac-1722-508e-b83e-d30968bc877b
399
+ //# sourceMappingURL=telemetry-runtime-DLq3FDzI.js.map
400
+ //# debugId=83279ce8-d455-5d77-8d93-e3af7a44f81d
@@ -1,6 +1,6 @@
1
1
  //#region src/cli/utils/unref-stdin.ts
2
2
 
3
- !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]="8f48a2ed-e79f-5438-90a2-8ef096b5fd64")}catch(e){}}();
3
+ !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]="d3e46509-a9b9-569a-a558-625cd0ef7026")}catch(e){}}();
4
4
  const unrefStdin = () => {
5
5
  if (process.stdin.isTTY) return;
6
6
  process.stdin.unref?.();
@@ -8,5 +8,5 @@ const unrefStdin = () => {
8
8
  //#endregion
9
9
  export { unrefStdin as t };
10
10
 
11
- //# sourceMappingURL=unref-stdin-SK3WfwxS.js.map
12
- //# debugId=8f48a2ed-e79f-5438-90a2-8ef096b5fd64
11
+ //# sourceMappingURL=unref-stdin-D-NZBFpg.js.map
12
+ //# debugId=d3e46509-a9b9-569a-a558-625cd0ef7026
@@ -0,0 +1,14 @@
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]="5c0b38d2-ff8c-52b8-baeb-518d4534f99a")}catch(e){}}();
3
+ import { t as typescriptBinding } from "./_react-doctor_require-typescript-DXQDYeWK.js";
4
+ //#region ../core/src/utils/unwrap-typescript-expression.ts
5
+ const unwrapTypescriptExpression = (expression) => {
6
+ let currentExpression = expression;
7
+ while (typescriptBinding.isParenthesizedExpression(currentExpression) || typescriptBinding.isAsExpression(currentExpression) || typescriptBinding.isSatisfiesExpression(currentExpression) || typescriptBinding.isNonNullExpression(currentExpression) || typescriptBinding.isTypeAssertionExpression(currentExpression)) currentExpression = currentExpression.expression;
8
+ return currentExpression;
9
+ };
10
+ //#endregion
11
+ export { unwrapTypescriptExpression as t };
12
+
13
+ //# sourceMappingURL=unwrap-typescript-expression-CrEPQUWz.js.map
14
+ //# debugId=5c0b38d2-ff8c-52b8-baeb-518d4534f99a
@@ -1,6 +1,7 @@
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]="729a8ce2-93e0-5d5c-a2e3-5c54ca419d1c")}catch(e){}}();
3
- import { T as METRIC, _ as VERSION, t as recordCount } from "./record-metric-D8ltm-Oh.js";
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]="4358da4a-096d-5522-8374-056c860c694f")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-DJ3RtEMu.js";
4
+ import { _ as VERSION, t as recordCount } from "./record-metric-C-ZZzzDc.js";
4
5
  //#region src/cli/commands/version.ts
5
6
  /**
6
7
  * oclif-style version line. 12-factor CLI Apps (#3, "What version am I
@@ -17,5 +18,5 @@ const versionAction = () => {
17
18
  //#endregion
18
19
  export { versionAction };
19
20
 
20
- //# sourceMappingURL=version-DRDcTlA9.js.map
21
- //# debugId=729a8ce2-93e0-5d5c-a2e3-5c54ca419d1c
21
+ //# sourceMappingURL=version-DO7dtT21.js.map
22
+ //# debugId=4358da4a-096d-5522-8374-056c860c694f
@@ -1,6 +1,6 @@
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]="599b7d13-6027-5233-99c3-51ba590f9644")}catch(e){}}();
3
- import { t as inspectAction } from "./inspect-fWFs2jtk.js";
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]="f3e000ed-0c0d-5e4f-b522-b7a70b873178")}catch(e){}}();
3
+ import { t as inspectAction } from "./inspect-Cs2Ojloa.js";
4
4
  //#region src/cli/commands/why.ts
5
5
  /**
6
6
  * `why <file:line>` — explains why a rule fired (or why a suppression didn't
@@ -17,5 +17,5 @@ const whyAction = async (location, options) => {
17
17
  //#endregion
18
18
  export { whyAction };
19
19
 
20
- //# sourceMappingURL=why-DthVqP00.js.map
21
- //# debugId=599b7d13-6027-5233-99c3-51ba590f9644
20
+ //# sourceMappingURL=why-uxPDWtZO.js.map
21
+ //# debugId=f3e000ed-0c0d-5e4f-b522-b7a70b873178
@@ -1,8 +1,9 @@
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]="4c27c659-0022-52b6-bafa-461e7268b9f5")}catch(e){}}();
3
- import { D as NANOSECONDS_PER_MILLISECOND, Nn as makeSpan, Qn as void_, Rn as provideContext, Vn as runSync, Zn as fail, c as setSentryProjectInfo, o as buildSentryScope, r as toSpanAttributes, s as buildSentryProjectContext } from "./record-metric-D8ltm-Oh.js";
4
- import { t as getTelemetryContext } from "./telemetry-runtime-CmlSXXfi.js";
5
- import { i as setActiveRunTrace, r as recordRunTraceId } from "./active-run-trace-dlIZeEvb.js";
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]="f846fae9-3dd6-5ec7-92ba-9c9fc34fbc0e")}catch(e){}}();
3
+ import { p as NANOSECONDS_PER_MILLISECOND } from "./constants-DJ3RtEMu.js";
4
+ import { An as void_, c as setSentryProjectInfo, dn as makeSpan, gn as provideContext, kn as fail, o as buildSentryScope, r as toSpanAttributes, s as buildSentryProjectContext, yn as runSync } from "./record-metric-C-ZZzzDc.js";
5
+ import { t as getTelemetryContext } from "./telemetry-runtime-DLq3FDzI.js";
6
+ import { i as setActiveRunTrace, r as recordRunTraceId } from "./active-run-trace-Dewycxda.js";
6
7
  //#region src/cli/utils/with-run-span.ts
7
8
  /**
8
9
  * Ends the run span without letting a telemetry failure change the run's
@@ -106,5 +107,5 @@ const recordSentryProjectContext = (projectInfo, rootSpan, options = {}) => {
106
107
  //#endregion
107
108
  export { resetSentryRunState as n, withRunSpan as r, recordSentryProjectContext as t };
108
109
 
109
- //# sourceMappingURL=with-run-span-D4-folvM.js.map
110
- //# debugId=4c27c659-0022-52b6-bafa-461e7268b9f5
110
+ //# sourceMappingURL=with-run-span-BCopjALe.js.map
111
+ //# debugId=f846fae9-3dd6-5ec7-92ba-9c9fc34fbc0e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.9.14-dev.bcf8062",
3
+ "version": "0.9.15-dev.23d6160",
4
4
  "description": "Your agent writes bad React. This catches it",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -38,7 +38,9 @@
38
38
  "LICENSE"
39
39
  ],
40
40
  "type": "module",
41
- "sideEffects": false,
41
+ "sideEffects": [
42
+ "**/start-scan-preamble*"
43
+ ],
42
44
  "exports": {
43
45
  ".": {
44
46
  "types": "./dist/cli.d.ts",
@@ -68,7 +70,7 @@
68
70
  "typescript": ">=5.0.4 <6",
69
71
  "yaml": "^2.9.0",
70
72
  "yoga-layout": "~3.2.1",
71
- "oxlint-plugin-react-doctor": "0.9.14-dev.bcf8062"
73
+ "oxlint-plugin-react-doctor": "0.9.15-dev.23d6160"
72
74
  },
73
75
  "devDependencies": {
74
76
  "@types/babel__code-frame": "^7.27.0",
@@ -81,8 +83,8 @@
81
83
  "ora": "^9.4.0",
82
84
  "react": "19.2.5",
83
85
  "react-devtools-core": "^7.0.1",
84
- "@react-doctor/api": "0.9.14",
85
- "@react-doctor/core": "0.9.14"
86
+ "@react-doctor/api": "0.9.15",
87
+ "@react-doctor/core": "0.9.15"
86
88
  },
87
89
  "engines": {
88
90
  "node": "^20.19.0 || >=22.13.0"
@@ -1,7 +0,0 @@
1
- import { createRequire } from "node:module";
2
- //#region \0react-doctor:require-typescript
3
- var _react_doctor_require_typescript_default = createRequire(import.meta.url)("typescript");
4
- //#endregion
5
- export { _react_doctor_require_typescript_default as t };
6
- !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]="ddeb2d92-7bfa-5c33-a47c-43e79ea45d45")}catch(e){}}();
7
- //# debugId=ddeb2d92-7bfa-5c33-a47c-43e79ea45d45
@@ -1,14 +0,0 @@
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]="3f276705-c59b-5820-9c67-3379b6bd67f5")}catch(e){}}();
3
- import { t as _react_doctor_require_typescript_default } from "./_react-doctor_require-typescript-DnwIzXJn.js";
4
- //#region ../core/src/utils/unwrap-typescript-expression.ts
5
- const unwrapTypescriptExpression = (expression) => {
6
- let currentExpression = expression;
7
- while (_react_doctor_require_typescript_default.isParenthesizedExpression(currentExpression) || _react_doctor_require_typescript_default.isAsExpression(currentExpression) || _react_doctor_require_typescript_default.isSatisfiesExpression(currentExpression) || _react_doctor_require_typescript_default.isNonNullExpression(currentExpression) || _react_doctor_require_typescript_default.isTypeAssertionExpression(currentExpression)) currentExpression = currentExpression.expression;
8
- return currentExpression;
9
- };
10
- //#endregion
11
- export { unwrapTypescriptExpression as t };
12
-
13
- //# sourceMappingURL=unwrap-typescript-expression-CbO_6kmC.js.map
14
- //# debugId=3f276705-c59b-5820-9c67-3379b6bd67f5