react-doctor 0.9.13-dev.ff7dd67 → 0.9.14-dev.922616f

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/dist/_react-doctor_require-typescript-DXQDYeWK.js +16 -0
  2. package/dist/{active-run-trace-dlIZeEvb.js → active-run-trace-Dewycxda.js} +3 -3
  3. package/dist/{active-scan-abort-registry-DwG6tSPy.js → active-scan-abort-registry-CCTgal0O.js} +3 -3
  4. package/dist/build-section-divider-CNFcGNYm.js +81 -0
  5. package/dist/{ci-ByM_SFTq.js → ci-CbTOIIel.js} +14 -13
  6. package/dist/cli.js +31 -30
  7. package/dist/constants-CW_854PH.js +1035 -0
  8. package/dist/constants-DNh19qg9.js +23 -0
  9. package/dist/{design-2hjOmtV1.js → design-CPav17ye.js} +4 -4
  10. package/dist/{devtools-CC2PAZ85.js → devtools-D20sefkm.js} +3 -3
  11. package/dist/duplicate-jsx-worker.d.ts +1 -0
  12. package/dist/duplicate-jsx-worker.js +636 -0
  13. package/dist/{exit-gracefully-niPFXq9Y.js → exit-gracefully-De_DePvj.js} +7 -7
  14. package/dist/fs-utils-C88IbqFa.js +45 -0
  15. package/dist/{get-east-asian-width-Bv2TD3Xj.js → get-east-asian-width-DRPy7dqz.js} +4 -4
  16. package/dist/{handle-error-D-4lexec.js → handle-error-B3GWdtbq.js} +6 -5
  17. package/dist/index.d.ts +8511 -8509
  18. package/dist/index.js +61693 -60580
  19. package/dist/{inspect-BrctG7ql.js → inspect-vT3G27FR.js} +38 -27
  20. package/dist/{install-CcFc56OK.js → install-C-_xdS80.js} +10 -9
  21. package/dist/{install-doctor-script-Coa2ErCg.js → install-doctor-script-BFv3Iiwe.js} +17 -8
  22. package/dist/{install-github-workflow-DlfdrYkQ.js → install-github-workflow-C-rhKOiP.js} +10 -10
  23. package/dist/{install-react-doctor-BWxqZMX-.js → install-react-doctor-BvU99j_I.js} +15 -11
  24. package/dist/is-cache-globally-disabled-CoHiYz2i.js +10 -0
  25. package/dist/{jsx-runtime-Njm7vAoN.js → jsx-runtime-CiJj554e.js} +11 -10
  26. package/dist/oxlint-worker.d.ts +1 -0
  27. package/dist/oxlint-worker.js +225 -0
  28. package/dist/{path-format-DnHpmJwG.js → path-format-By20mo8A.js} +3 -3
  29. package/dist/{print-branded-header-DFkeG4BS.js → print-branded-header-DJMuy9Hr.js} +4 -4
  30. package/dist/project-analysis-worker.js +461 -480
  31. package/dist/{prompt-runtime-scan-url-BenBNq25.js → prompt-runtime-scan-url-1YpMskOr.js} +6 -6
  32. package/dist/react-compiler-detection-worker.d.ts +1 -0
  33. package/dist/react-compiler-detection-worker.js +1029 -0
  34. package/dist/{read-object-file-CqMtxcfF.js → read-object-file-CWvQd5ls.js} +4 -4
  35. package/dist/{record-metric-Bkorhx43.js → record-metric-DSQY-qOh.js} +12998 -12770
  36. package/dist/{report-error-DPjmfRi9.js → report-error-C1g5jtl7.js} +9 -8
  37. package/dist/{report-workflow-result-CBL6CrLY.js → report-workflow-result-it0G879R.js} +24 -11
  38. package/dist/{resolve-scope-BFloAClV.js → resolve-scope-DmsEUxUn.js} +7 -7
  39. package/dist/{rules-BKNy9YIl.js → rules-BXkqekjc.js} +8 -7
  40. package/dist/{run-scan-app-Bc70ozp-.js → run-scan-app-wCfH8LdA.js} +30 -23
  41. package/dist/{runtime-scan-ODrdp5mV.js → runtime-scan-CXmDoQ2W.js} +13 -12
  42. package/dist/{sanitize-runtime-url-BYOmPSdm.js → sanitize-runtime-url-kA6U9dQF.js} +4 -4
  43. package/dist/{scan-BfcGHHkI.js → scan-Dd-VVq_7.js} +10 -9
  44. package/dist/{semver-DFtnEmN-.js → semver-BZIuy1gP.js} +3 -3
  45. package/dist/{should-fail-scan-gate-CCPDoHaM.js → should-fail-scan-gate-YK9VAFNu.js} +1339 -1283
  46. package/dist/{should-skip-prompts-D-ClPHHR.js → should-skip-prompts-SdC04R_e.js} +4 -4
  47. package/dist/{should-use-tui-BaCVIPPN.js → should-use-tui-D2fEl9q2.js} +4 -4
  48. package/dist/start-scan-preamble-D0QepYZ_.js +68 -0
  49. package/dist/start-scan-preamble-DVhXIPc0.d.ts +1 -0
  50. package/dist/start-scan-preamble.d.ts +1 -0
  51. package/dist/start-scan-preamble.js +4 -0
  52. package/dist/{telemetry-runtime-BGWa_GB9.js → telemetry-runtime-DOCJCTsL.js} +154 -5
  53. package/dist/{unref-stdin-SK3WfwxS.js → unref-stdin-D-NZBFpg.js} +3 -3
  54. package/dist/unwrap-typescript-expression-CrEPQUWz.js +14 -0
  55. package/dist/{version-DN1N-oZy.js → version-WpL8zILr.js} +5 -4
  56. package/dist/{why-CyioXUF2.js → why-CnQMoK2D.js} +4 -4
  57. package/dist/{with-run-span-GsCWW2_X.js → with-run-span-B0SMAP_Z.js} +7 -6
  58. package/package.json +9 -7
  59. package/dist/build-section-divider-BRuN44fL.js +0 -216
@@ -0,0 +1,45 @@
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]="1136a40a-1f61-5692-99b2-3333cd8344be")}catch(e){}}();
3
+ import fs from "node:fs";
4
+ //#region ../core/src/utils/is-errno-exception.ts
5
+ const isErrnoException = (error) => error instanceof Error && "code" in error;
6
+ //#endregion
7
+ //#region ../core/src/project-info/fs-utils.ts
8
+ const IGNORABLE_READDIR_ERROR_CODES = new Set([
9
+ "EACCES",
10
+ "EBUSY",
11
+ "EPERM",
12
+ "ENOENT",
13
+ "ENOTDIR",
14
+ "EINVAL",
15
+ "ELOOP",
16
+ "ENAMETOOLONG",
17
+ "ETIMEDOUT",
18
+ "UNKNOWN"
19
+ ]);
20
+ const isIgnorableReaddirError = (error) => isErrnoException(error) && typeof error.code === "string" && IGNORABLE_READDIR_ERROR_CODES.has(error.code);
21
+ const readDirectoryEntries = (directoryPath) => {
22
+ try {
23
+ return fs.readdirSync(directoryPath, { withFileTypes: true });
24
+ } catch (error) {
25
+ if (isIgnorableReaddirError(error)) return [];
26
+ throw error;
27
+ }
28
+ };
29
+ const isFile = (filePath) => {
30
+ try {
31
+ return fs.statSync(filePath, { throwIfNoEntry: false })?.isFile() ?? false;
32
+ } catch {
33
+ return false;
34
+ }
35
+ };
36
+ const isPlainObject = (value) => {
37
+ if (typeof value !== "object" || value === null || Array.isArray(value)) return false;
38
+ const prototype = Object.getPrototypeOf(value);
39
+ return prototype === null || prototype === Object.prototype;
40
+ };
41
+ //#endregion
42
+ export { isErrnoException as i, isPlainObject as n, readDirectoryEntries as r, isFile as t };
43
+
44
+ //# sourceMappingURL=fs-utils-C88IbqFa.js.map
45
+ //# debugId=1136a40a-1f61-5692-99b2-3333cd8344be
@@ -1,7 +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]="db817079-8f8f-50ee-bae1-5d0182c74255")}catch(e){}}();
3
- import process from "node:process";
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]="70b802b1-ad2a-5159-b53c-75b55bfdbad2")}catch(e){}}();
4
3
  import os from "node:os";
4
+ import process from "node:process";
5
5
  import tty from "node:tty";
6
6
  //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
7
7
  const ANSI_BACKGROUND_OFFSET = 10;
@@ -440,5 +440,5 @@ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
440
440
  //#endregion
441
441
  export { chalk as a, stripAnsi as i, isFullWidth as n, isWide as r, eastAsianWidth as t };
442
442
 
443
- //# sourceMappingURL=get-east-asian-width-Bv2TD3Xj.js.map
444
- //# debugId=db817079-8f8f-50ee-bae1-5d0182c74255
443
+ //# sourceMappingURL=get-east-asian-width-DRPy7dqz.js.map
444
+ //# debugId=70b802b1-ad2a-5159-b53c-75b55bfdbad2
@@ -1,7 +1,8 @@
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]="8a9fb188-5b65-5876-ab86-aae909fc31e7")}catch(e){}}();
3
- import { $n as CANONICAL_DISCORD_URL, An as gen, Cn as error, Ft as formatErrorChain, It as formatReactDoctorError, Kt as highlighter, T as METRIC, Xt as isReactDoctorError, _ as VERSION, br as isErrnoException, er as CANONICAL_GITHUB_URL, t as recordCount, zn as runSync } from "./record-metric-Bkorhx43.js";
4
- import { a as isNpmCacheCorruptionError, i as formatNpmCacheCorruptionError, o as formatEnvironmentError, s as isEnvironmentError } from "./telemetry-runtime-BGWa_GB9.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]="155c936d-72bc-502c-a684-a76d0e891aa7")}catch(e){}}();
3
+ import { ct as CANONICAL_DISCORD_URL, lt as CANONICAL_GITHUB_URL, u as METRIC } from "./constants-CW_854PH.js";
4
+ import { Ln as isErrnoException, Ot as highlighter, _ as VERSION, _t as formatErrorChain, jt as isReactDoctorError, rn as error, t as recordCount, un as gen, vt as formatReactDoctorError, yn as runSync } from "./record-metric-DSQY-qOh.js";
5
+ import { c as isNpmCacheCorruptionError, l as formatEnvironmentError, s as formatNpmCacheCorruptionError, u as isEnvironmentError } from "./telemetry-runtime-DOCJCTsL.js";
5
6
  //#region src/cli/utils/handle-error.ts
6
7
  const OTLP_ENDPOINT_ENVIRONMENT_VARIABLE = "REACT_DOCTOR_OTLP_ENDPOINT";
7
8
  const OTLP_AUTH_HEADER_ENVIRONMENT_VARIABLE = "REACT_DOCTOR_OTLP_AUTH_HEADER";
@@ -110,5 +111,5 @@ const handleUserError = (error$1, options = {}) => {
110
111
  //#endregion
111
112
  export { handleUserError as n, handleError as t };
112
113
 
113
- //# sourceMappingURL=handle-error-D-4lexec.js.map
114
- //# debugId=8a9fb188-5b65-5876-ab86-aae909fc31e7
114
+ //# sourceMappingURL=handle-error-B3GWdtbq.js.map
115
+ //# debugId=155c936d-72bc-502c-a684-a76d0e891aa7