react-doctor 0.9.7 → 0.9.8
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/build-section-divider-D6YhaO90.js +312 -0
- package/dist/ci-CoQk_MQ1.js +7501 -0
- package/dist/cli.js +96 -10780
- package/dist/design-BE99dFpx.js +14 -0
- package/dist/{devtools-BQATi33M.js → devtools-DPRVRu3S.js} +3 -3
- package/dist/exit-gracefully-D1TCcDw0.js +47 -0
- package/dist/index.d.ts +4703 -4081
- package/dist/index.js +6070 -4387
- package/dist/inspect-IJod-62c.js +1443 -0
- package/dist/install-dHInOlZL.js +32 -0
- package/dist/install-doctor-script-BZFdcUt5.js +3251 -0
- package/dist/install-github-workflow-DPeWgeyr.js +267 -0
- package/dist/install-react-doctor-Uw9TNjgb.js +1154 -0
- package/dist/lsp.js +6183 -4512
- package/dist/print-branded-header-CPsrouR5.js +22 -0
- package/dist/read-object-file-CAguhcIi.js +24 -0
- package/dist/{exit-gracefully-BJRsqdaK.js → record-metric-CpxOk4TS.js} +6252 -11955
- package/dist/report-error-Dv9fVp8g.js +158 -0
- package/dist/report-workflow-result-CewNfhNQ.js +279 -0
- package/dist/resolve-scope-DDv5EOL5.js +339 -0
- package/dist/rules-9VwJ8cD1.js +581 -0
- package/dist/{run-scan-app-DawD5rhU.js → run-scan-app-CTdQcsHL.js} +36 -29
- package/dist/scan-oJcyCYJo.js +53 -0
- package/dist/should-fail-scan-gate-BzNtUw8N.js +3075 -0
- package/dist/should-skip-prompts-BzAkz0il.js +10 -0
- package/dist/unref-stdin-C9KAUvH3.js +120 -0
- package/dist/version-C3ug2bM7.js +21 -0
- package/dist/why-PgYaYMYc.js +21 -0
- package/package.json +6 -7
|
@@ -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]="69879cb4-26e7-5ecf-a863-e803c2c7b7d2")}catch(e){}}();
|
|
3
|
+
import { t as inspectAction } from "./inspect-IJod-62c.js";
|
|
4
|
+
//#region src/cli/commands/design.ts
|
|
5
|
+
const designAction = async (directory, flags) => inspectAction(directory, {
|
|
6
|
+
...flags,
|
|
7
|
+
design: true,
|
|
8
|
+
lint: flags.lint ?? true
|
|
9
|
+
}, "design");
|
|
10
|
+
//#endregion
|
|
11
|
+
export { designAction };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=design-BE99dFpx.js.map
|
|
14
|
+
//# debugId=69879cb4-26e7-5ecf-a863-e803c2c7b7d2
|
|
@@ -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]="
|
|
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]="de65e4d1-46e8-5d95-92bc-2e867613f003")}catch(e){}}();
|
|
3
3
|
import { n as __require, r as __toESM, t as __commonJSMin } from "./chunk-q7NCDQ7-.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/constants.js
|
|
5
5
|
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -16999,5 +16999,5 @@ if (await isDevToolsReachable()) {
|
|
|
16999
16999
|
//#endregion
|
|
17000
17000
|
export {};
|
|
17001
17001
|
|
|
17002
|
-
//# sourceMappingURL=devtools-
|
|
17003
|
-
//# debugId=
|
|
17002
|
+
//# sourceMappingURL=devtools-DPRVRu3S.js.map
|
|
17003
|
+
//# debugId=de65e4d1-46e8-5d95-92bc-2e867613f003
|
|
@@ -0,0 +1,47 @@
|
|
|
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]="d48bcd90-9138-5493-81a4-2c363c321a67")}catch(e){}}();
|
|
3
|
+
import { f as writeJsonErrorReport, l as isJsonModeActive } from "./record-metric-CpxOk4TS.js";
|
|
4
|
+
import { i as flushSentry, n as buildFooterLinkLines, r as activeScanAbortRegistry, t as buildSectionDivider } from "./build-section-divider-D6YhaO90.js";
|
|
5
|
+
//#region src/cli/utils/active-tui-renderer.ts
|
|
6
|
+
let activeTuiRenderer = null;
|
|
7
|
+
const registerActiveTuiRenderer = (renderer) => {
|
|
8
|
+
activeTuiRenderer = renderer;
|
|
9
|
+
return () => {
|
|
10
|
+
if (activeTuiRenderer === renderer) activeTuiRenderer = null;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
const preserveActiveTuiRendererOutput = () => {
|
|
14
|
+
const renderer = activeTuiRenderer;
|
|
15
|
+
activeTuiRenderer = null;
|
|
16
|
+
renderer?.preserveOutput();
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/cli/utils/exit-gracefully.ts
|
|
20
|
+
let didStartExiting = false;
|
|
21
|
+
const exitGracefully = () => {
|
|
22
|
+
if (didStartExiting) return process.exit(130);
|
|
23
|
+
didStartExiting = true;
|
|
24
|
+
try {
|
|
25
|
+
activeScanAbortRegistry.abortAll();
|
|
26
|
+
} catch {}
|
|
27
|
+
try {
|
|
28
|
+
preserveActiveTuiRendererOutput();
|
|
29
|
+
} catch {}
|
|
30
|
+
try {
|
|
31
|
+
if (isJsonModeActive()) writeJsonErrorReport(/* @__PURE__ */ new Error("Scan cancelled by user (SIGINT/SIGTERM)"));
|
|
32
|
+
else console.log([
|
|
33
|
+
"",
|
|
34
|
+
"Cancelled.",
|
|
35
|
+
"",
|
|
36
|
+
buildSectionDivider(),
|
|
37
|
+
"",
|
|
38
|
+
...buildFooterLinkLines({ shareUrl: null })
|
|
39
|
+
].join("\n"));
|
|
40
|
+
} catch {}
|
|
41
|
+
flushSentry().finally(() => process.exit(130));
|
|
42
|
+
};
|
|
43
|
+
//#endregion
|
|
44
|
+
export { registerActiveTuiRenderer as n, exitGracefully as t };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=exit-gracefully-D1TCcDw0.js.map
|
|
47
|
+
//# debugId=d48bcd90-9138-5493-81a4-2c363c321a67
|