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,22 @@
|
|
|
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]="037f7814-0cec-5242-a0c4-3296787f0847")}catch(e){}}();
|
|
3
|
+
import { Hn as gen, Rn as log, en as highlighter, m as VERSION } from "./record-metric-CpxOk4TS.js";
|
|
4
|
+
//#region src/cli/utils/print-branded-header.ts
|
|
5
|
+
/**
|
|
6
|
+
* Single branded line every command prints first when not in JSON
|
|
7
|
+
* / score mode. Keeps the visual signature consistent across
|
|
8
|
+
* `inspect`, `install`, and any future subcommand.
|
|
9
|
+
*
|
|
10
|
+
* Effect-typed: callers either `yield*` from inside `Effect.gen`
|
|
11
|
+
* (the canonical path) or bridge with `Effect.runSync(...)` when
|
|
12
|
+
* they're still inside an imperative function.
|
|
13
|
+
*/
|
|
14
|
+
const printBrandedHeader = gen(function* () {
|
|
15
|
+
yield* log(`${highlighter.bold("React Doctor")} ${highlighter.dim(`v${VERSION}`)}`);
|
|
16
|
+
yield* log("");
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { printBrandedHeader as t };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=print-branded-header-CPsrouR5.js.map
|
|
22
|
+
//# debugId=037f7814-0cec-5242-a0c4-3296787f0847
|
|
@@ -0,0 +1,24 @@
|
|
|
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]="41f24760-4fb3-5488-8b9c-5c073db9d08e")}catch(e){}}();
|
|
3
|
+
import { on as isPlainObject } from "./record-metric-CpxOk4TS.js";
|
|
4
|
+
import * as fs$1 from "node:fs";
|
|
5
|
+
import { parseJSON5 } from "confbox";
|
|
6
|
+
//#region src/cli/utils/read-object-file.ts
|
|
7
|
+
/**
|
|
8
|
+
* Reads a JSON / JSONC file as a plain object, or `null` when it is missing,
|
|
9
|
+
* unparseable, or not an object. JSON5 parsing tolerates comments and
|
|
10
|
+
* trailing commas so hand-edited config files round-trip.
|
|
11
|
+
*/
|
|
12
|
+
const readObjectFile = (filePath) => {
|
|
13
|
+
try {
|
|
14
|
+
const parsed = parseJSON5(fs$1.readFileSync(filePath, "utf-8"));
|
|
15
|
+
return isPlainObject(parsed) ? parsed : null;
|
|
16
|
+
} catch {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { readObjectFile as t };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=read-object-file-CAguhcIi.js.map
|
|
24
|
+
//# debugId=41f24760-4fb3-5488-8b9c-5c073db9d08e
|