react-doctor 0.9.13 → 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.
- package/dist/_react-doctor_require-typescript-DXQDYeWK.js +16 -0
- package/dist/{active-run-trace-dlIZeEvb.js → active-run-trace-Dewycxda.js} +3 -3
- package/dist/{active-scan-abort-registry-DwG6tSPy.js → active-scan-abort-registry-CCTgal0O.js} +3 -3
- package/dist/build-section-divider-CNFcGNYm.js +81 -0
- package/dist/{ci-DqnZCnrL.js → ci-CbTOIIel.js} +14 -13
- package/dist/cli.js +31 -30
- package/dist/constants-CW_854PH.js +1035 -0
- package/dist/constants-DNh19qg9.js +23 -0
- package/dist/{design-DqUidb1f.js → design-CPav17ye.js} +4 -4
- package/dist/{devtools-CC2PAZ85.js → devtools-D20sefkm.js} +3 -3
- package/dist/duplicate-jsx-worker.d.ts +1 -0
- package/dist/duplicate-jsx-worker.js +636 -0
- package/dist/{exit-gracefully-CrpeIbra.js → exit-gracefully-De_DePvj.js} +7 -7
- package/dist/fs-utils-C88IbqFa.js +45 -0
- package/dist/{get-east-asian-width-Bv2TD3Xj.js → get-east-asian-width-DRPy7dqz.js} +4 -4
- package/dist/{handle-error-BEYYtsCl.js → handle-error-B3GWdtbq.js} +6 -5
- package/dist/index.d.ts +8511 -8509
- package/dist/index.js +61698 -60577
- package/dist/{inspect-BjMaC5WV.js → inspect-vT3G27FR.js} +38 -27
- package/dist/{install-DxLmASQ5.js → install-C-_xdS80.js} +10 -9
- package/dist/{install-doctor-script-4EWviJL8.js → install-doctor-script-BFv3Iiwe.js} +17 -8
- package/dist/{install-github-workflow-BPznUbbo.js → install-github-workflow-C-rhKOiP.js} +10 -10
- package/dist/{install-react-doctor-Baq9hjoF.js → install-react-doctor-BvU99j_I.js} +15 -11
- package/dist/is-cache-globally-disabled-CoHiYz2i.js +10 -0
- package/dist/{jsx-runtime-DvynQ_wu.js → jsx-runtime-CiJj554e.js} +11 -10
- package/dist/oxlint-worker.d.ts +1 -0
- package/dist/oxlint-worker.js +225 -0
- package/dist/{path-format-DnHpmJwG.js → path-format-By20mo8A.js} +3 -3
- package/dist/{print-branded-header-DSB6i3kk.js → print-branded-header-DJMuy9Hr.js} +4 -4
- package/dist/project-analysis-worker.js +466 -481
- package/dist/{prompt-runtime-scan-url-BibDt9O1.js → prompt-runtime-scan-url-1YpMskOr.js} +6 -6
- package/dist/react-compiler-detection-worker.d.ts +1 -0
- package/dist/react-compiler-detection-worker.js +1029 -0
- package/dist/{read-object-file-DfWpkle4.js → read-object-file-CWvQd5ls.js} +4 -4
- package/dist/{record-metric-Cckscwg_.js → record-metric-DSQY-qOh.js} +57476 -57240
- package/dist/{report-error-C1YnoRNl.js → report-error-C1g5jtl7.js} +9 -8
- package/dist/{report-workflow-result-IdGRoBFN.js → report-workflow-result-it0G879R.js} +24 -11
- package/dist/{resolve-scope-Bb6fljxd.js → resolve-scope-DmsEUxUn.js} +7 -7
- package/dist/{rules-BcFekwN4.js → rules-BXkqekjc.js} +8 -7
- package/dist/{run-scan-app-CKHynQx8.js → run-scan-app-wCfH8LdA.js} +30 -23
- package/dist/{runtime-scan-7Y_mbqEa.js → runtime-scan-CXmDoQ2W.js} +16 -15
- package/dist/{sanitize-runtime-url-DzyBLbi3.js → sanitize-runtime-url-kA6U9dQF.js} +5 -5
- package/dist/{scan-DQCwBx6p.js → scan-Dd-VVq_7.js} +10 -9
- package/dist/{semver-DFtnEmN-.js → semver-BZIuy1gP.js} +3 -3
- package/dist/{should-fail-scan-gate-BYPsKIde.js → should-fail-scan-gate-YK9VAFNu.js} +1339 -1283
- package/dist/{should-skip-prompts-CKkbB3rC.js → should-skip-prompts-SdC04R_e.js} +4 -4
- package/dist/{should-use-tui-Crfoao-l.js → should-use-tui-D2fEl9q2.js} +4 -4
- package/dist/start-scan-preamble-D0QepYZ_.js +68 -0
- package/dist/start-scan-preamble-DVhXIPc0.d.ts +1 -0
- package/dist/start-scan-preamble.d.ts +1 -0
- package/dist/start-scan-preamble.js +4 -0
- package/dist/{telemetry-runtime-DKJyjz9o.js → telemetry-runtime-DOCJCTsL.js} +154 -5
- package/dist/{unref-stdin-SK3WfwxS.js → unref-stdin-D-NZBFpg.js} +3 -3
- package/dist/unwrap-typescript-expression-CrEPQUWz.js +14 -0
- package/dist/{version-CMkUAGmw.js → version-WpL8zILr.js} +5 -4
- package/dist/{why-By3I6_Ex.js → why-CnQMoK2D.js} +4 -4
- package/dist/{with-run-span-DxFGyW7k.js → with-run-span-B0SMAP_Z.js} +7 -6
- package/package.json +9 -7
- package/dist/build-section-divider-DELfSn3p.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]="
|
|
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-
|
|
444
|
-
//# debugId=
|
|
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]="
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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-
|
|
114
|
-
//# debugId=
|
|
114
|
+
//# sourceMappingURL=handle-error-B3GWdtbq.js.map
|
|
115
|
+
//# debugId=155c936d-72bc-502c-a684-a76d0e891aa7
|