react-doctor 0.5.5-dev.bac7c82 → 0.5.5-dev.cf9e05b
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/cli.js +9 -8
- package/dist/index.js +6 -5
- package/dist/lsp.js +6 -5
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -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]="fd7e91f8-8458-50a2-99d9-a1ea8f8bfaff")}catch(e){}}();
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import * as NodeChildProcess from "node:child_process";
|
|
5
5
|
import { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
|
|
@@ -43172,8 +43172,10 @@ const runInspect = (input, hooks = {}) => gen(function* () {
|
|
|
43172
43172
|
const lintFailureState = yield* get$2(lintFailure);
|
|
43173
43173
|
yield* afterLint(lintFailureState.didFail);
|
|
43174
43174
|
if (lintFailureState.didFail) yield* scanProgress.fail(formatLintFailText(lintFailureState.reasonTag, process.version));
|
|
43175
|
+
const totalFileCount = lastReportedTotalFileCount || (lintIncludePaths?.length ?? project.sourceFileCount);
|
|
43176
|
+
const scannedFilesLabel = `${totalFileCount} ${totalFileCount === 1 ? "file" : "files"}`;
|
|
43175
43177
|
const shouldRunDeadCode = input.runDeadCode && !isDiffMode && (showWarnings || deadCodeMaySurfaceWhenWarningsHidden(resolvedConfig.config));
|
|
43176
|
-
const deadCodeCollected = lintFailureState.didFail || !shouldRunDeadCode ? [] : yield* scanProgress.update(
|
|
43178
|
+
const deadCodeCollected = lintFailureState.didFail || !shouldRunDeadCode ? [] : yield* scanProgress.update(`Scanned ${scannedFilesLabel}, analyzing dead code...`).pipe(andThen(runCollect(applyPerElementPipeline(deadCodeService.run({
|
|
43177
43179
|
rootDirectory: scanDirectory,
|
|
43178
43180
|
userConfig: resolvedConfig.config
|
|
43179
43181
|
}).pipe(catchTag("ReactDoctorError", (error) => unwrap(gen(function* () {
|
|
@@ -43186,10 +43188,9 @@ const runInspect = (input, hooks = {}) => gen(function* () {
|
|
|
43186
43188
|
const deadCodeFailureState = yield* get$2(deadCodeFailure);
|
|
43187
43189
|
const scanElapsedMilliseconds = Date.now() - scanStartTime;
|
|
43188
43190
|
const scanElapsedSeconds = (scanElapsedMilliseconds / 1e3).toFixed(1);
|
|
43189
|
-
const totalFileCount = lastReportedTotalFileCount || (lintIncludePaths?.length ?? project.sourceFileCount);
|
|
43190
43191
|
if (!lintFailureState.didFail) if (deadCodeFailureState.didFail) yield* scanProgress.fail(DEAD_CODE_FAIL_TEXT);
|
|
43191
43192
|
else if (input.suppressScanSummary) yield* scanProgress.stop();
|
|
43192
|
-
else yield* scanProgress.succeed(`Scanned ${
|
|
43193
|
+
else yield* scanProgress.succeed(`Scanned ${scannedFilesLabel} in ${scanElapsedSeconds}s${workerCountSuffix}`);
|
|
43193
43194
|
yield* reporterService.finalize;
|
|
43194
43195
|
const finalDiagnostics = [
|
|
43195
43196
|
...envCollected,
|
|
@@ -43971,7 +43972,7 @@ const makeNoopConsole = () => ({
|
|
|
43971
43972
|
});
|
|
43972
43973
|
//#endregion
|
|
43973
43974
|
//#region src/cli/utils/version.ts
|
|
43974
|
-
const VERSION = "0.5.5-dev.
|
|
43975
|
+
const VERSION = "0.5.5-dev.cf9e05b";
|
|
43975
43976
|
//#endregion
|
|
43976
43977
|
//#region src/cli/utils/json-mode.ts
|
|
43977
43978
|
let context = null;
|
|
@@ -44329,13 +44330,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
|
|
|
44329
44330
|
* uploads source-map artifacts under, so stack frames symbolicate. Honors the
|
|
44330
44331
|
* standard `SENTRY_RELEASE` override.
|
|
44331
44332
|
*/
|
|
44332
|
-
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.5.5-dev.
|
|
44333
|
+
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.5.5-dev.cf9e05b`;
|
|
44333
44334
|
/**
|
|
44334
44335
|
* Deployment environment shown in Sentry's environment filter. Defaults to
|
|
44335
44336
|
* `production` for tagged releases and `development` for dev/unbuilt versions,
|
|
44336
44337
|
* overridable via the standard `SENTRY_ENVIRONMENT` env var.
|
|
44337
44338
|
*/
|
|
44338
|
-
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.5.5-dev.
|
|
44339
|
+
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.5.5-dev.cf9e05b") ? "development" : "production");
|
|
44339
44340
|
/**
|
|
44340
44341
|
* Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
|
|
44341
44342
|
* (set to `0` to disable tracing) and falls back to
|
|
@@ -53947,4 +53948,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
|
|
|
53947
53948
|
export {};
|
|
53948
53949
|
|
|
53949
53950
|
//# sourceMappingURL=cli.js.map
|
|
53950
|
-
//# debugId=
|
|
53951
|
+
//# debugId=fd7e91f8-8458-50a2-99d9-a1ea8f8bfaff
|
package/dist/index.js
CHANGED
|
@@ -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]="f55d58c3-c6f3-598b-bd99-d0abe85fd35e")}catch(e){}}();
|
|
3
3
|
import { r as __toESM$1, t as __commonJSMin$1 } from "./chunk-N93fKeF6.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import * as NFS from "node:fs";
|
|
@@ -39936,8 +39936,10 @@ const runInspect = (input, hooks = {}) => gen(function* () {
|
|
|
39936
39936
|
const lintFailureState = yield* get$2(lintFailure);
|
|
39937
39937
|
yield* afterLint(lintFailureState.didFail);
|
|
39938
39938
|
if (lintFailureState.didFail) yield* scanProgress.fail(formatLintFailText(lintFailureState.reasonTag, process.version));
|
|
39939
|
+
const totalFileCount = lastReportedTotalFileCount || (lintIncludePaths?.length ?? project.sourceFileCount);
|
|
39940
|
+
const scannedFilesLabel = `${totalFileCount} ${totalFileCount === 1 ? "file" : "files"}`;
|
|
39939
39941
|
const shouldRunDeadCode = input.runDeadCode && !isDiffMode && (showWarnings || deadCodeMaySurfaceWhenWarningsHidden(resolvedConfig.config));
|
|
39940
|
-
const deadCodeCollected = lintFailureState.didFail || !shouldRunDeadCode ? [] : yield* scanProgress.update(
|
|
39942
|
+
const deadCodeCollected = lintFailureState.didFail || !shouldRunDeadCode ? [] : yield* scanProgress.update(`Scanned ${scannedFilesLabel}, analyzing dead code...`).pipe(andThen(runCollect(applyPerElementPipeline(deadCodeService.run({
|
|
39941
39943
|
rootDirectory: scanDirectory,
|
|
39942
39944
|
userConfig: resolvedConfig.config
|
|
39943
39945
|
}).pipe(catchTag("ReactDoctorError", (error) => unwrap(gen(function* () {
|
|
@@ -39950,10 +39952,9 @@ const runInspect = (input, hooks = {}) => gen(function* () {
|
|
|
39950
39952
|
const deadCodeFailureState = yield* get$2(deadCodeFailure);
|
|
39951
39953
|
const scanElapsedMilliseconds = Date.now() - scanStartTime;
|
|
39952
39954
|
const scanElapsedSeconds = (scanElapsedMilliseconds / 1e3).toFixed(1);
|
|
39953
|
-
const totalFileCount = lastReportedTotalFileCount || (lintIncludePaths?.length ?? project.sourceFileCount);
|
|
39954
39955
|
if (!lintFailureState.didFail) if (deadCodeFailureState.didFail) yield* scanProgress.fail(DEAD_CODE_FAIL_TEXT);
|
|
39955
39956
|
else if (input.suppressScanSummary) yield* scanProgress.stop();
|
|
39956
|
-
else yield* scanProgress.succeed(`Scanned ${
|
|
39957
|
+
else yield* scanProgress.succeed(`Scanned ${scannedFilesLabel} in ${scanElapsedSeconds}s${workerCountSuffix}`);
|
|
39957
39958
|
yield* reporterService.finalize;
|
|
39958
39959
|
const finalDiagnostics = [
|
|
39959
39960
|
...envCollected,
|
|
@@ -40572,4 +40573,4 @@ const toJsonReport = (result, options) => buildJsonReport({
|
|
|
40572
40573
|
export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
|
|
40573
40574
|
|
|
40574
40575
|
//# sourceMappingURL=index.js.map
|
|
40575
|
-
//# debugId=
|
|
40576
|
+
//# debugId=f55d58c3-c6f3-598b-bd99-d0abe85fd35e
|
package/dist/lsp.js
CHANGED
|
@@ -39922,8 +39922,10 @@ const runInspect = (input, hooks = {}) => gen(function* () {
|
|
|
39922
39922
|
const lintFailureState = yield* get$2(lintFailure);
|
|
39923
39923
|
yield* afterLint(lintFailureState.didFail);
|
|
39924
39924
|
if (lintFailureState.didFail) yield* scanProgress.fail(formatLintFailText(lintFailureState.reasonTag, process.version));
|
|
39925
|
+
const totalFileCount = lastReportedTotalFileCount || (lintIncludePaths?.length ?? project.sourceFileCount);
|
|
39926
|
+
const scannedFilesLabel = `${totalFileCount} ${totalFileCount === 1 ? "file" : "files"}`;
|
|
39925
39927
|
const shouldRunDeadCode = input.runDeadCode && !isDiffMode && (showWarnings || deadCodeMaySurfaceWhenWarningsHidden(resolvedConfig.config));
|
|
39926
|
-
const deadCodeCollected = lintFailureState.didFail || !shouldRunDeadCode ? [] : yield* scanProgress.update(
|
|
39928
|
+
const deadCodeCollected = lintFailureState.didFail || !shouldRunDeadCode ? [] : yield* scanProgress.update(`Scanned ${scannedFilesLabel}, analyzing dead code...`).pipe(andThen(runCollect(applyPerElementPipeline(deadCodeService.run({
|
|
39927
39929
|
rootDirectory: scanDirectory,
|
|
39928
39930
|
userConfig: resolvedConfig.config
|
|
39929
39931
|
}).pipe(catchTag("ReactDoctorError", (error) => unwrap(gen(function* () {
|
|
@@ -39936,10 +39938,9 @@ const runInspect = (input, hooks = {}) => gen(function* () {
|
|
|
39936
39938
|
const deadCodeFailureState = yield* get$2(deadCodeFailure);
|
|
39937
39939
|
const scanElapsedMilliseconds = Date.now() - scanStartTime;
|
|
39938
39940
|
const scanElapsedSeconds = (scanElapsedMilliseconds / 1e3).toFixed(1);
|
|
39939
|
-
const totalFileCount = lastReportedTotalFileCount || (lintIncludePaths?.length ?? project.sourceFileCount);
|
|
39940
39941
|
if (!lintFailureState.didFail) if (deadCodeFailureState.didFail) yield* scanProgress.fail(DEAD_CODE_FAIL_TEXT);
|
|
39941
39942
|
else if (input.suppressScanSummary) yield* scanProgress.stop();
|
|
39942
|
-
else yield* scanProgress.succeed(`Scanned ${
|
|
39943
|
+
else yield* scanProgress.succeed(`Scanned ${scannedFilesLabel} in ${scanElapsedSeconds}s${workerCountSuffix}`);
|
|
39943
39944
|
yield* reporterService.finalize;
|
|
39944
39945
|
const finalDiagnostics = [
|
|
39945
39946
|
...envCollected,
|
|
@@ -42357,5 +42358,5 @@ const startLanguageServer = () => {
|
|
|
42357
42358
|
};
|
|
42358
42359
|
//#endregion
|
|
42359
42360
|
export { startLanguageServer };
|
|
42360
|
-
!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]="
|
|
42361
|
-
//# debugId=
|
|
42361
|
+
!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]="92dcee82-4313-54ce-b5e2-af10644ca8a2")}catch(e){}}();
|
|
42362
|
+
//# debugId=92dcee82-4313-54ce-b5e2-af10644ca8a2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.5.5-dev.
|
|
3
|
+
"version": "0.5.5-dev.cf9e05b",
|
|
4
4
|
"description": "Your agent writes bad React. This catches it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"vscode-languageserver": "^9.0.1",
|
|
65
65
|
"vscode-languageserver-textdocument": "^1.0.12",
|
|
66
66
|
"vscode-uri": "^3.1.0",
|
|
67
|
-
"oxlint-plugin-react-doctor": "0.5.5-dev.
|
|
67
|
+
"oxlint-plugin-react-doctor": "0.5.5-dev.cf9e05b"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/babel__code-frame": "^7.27.0",
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"@xterm/headless": "^6.0.0",
|
|
73
73
|
"commander": "^14.0.3",
|
|
74
74
|
"ora": "^9.4.0",
|
|
75
|
-
"@react-doctor/language-server": "0.5.5",
|
|
76
75
|
"@react-doctor/core": "0.5.5",
|
|
77
|
-
"@react-doctor/api": "0.5.5"
|
|
76
|
+
"@react-doctor/api": "0.5.5",
|
|
77
|
+
"@react-doctor/language-server": "0.5.5"
|
|
78
78
|
},
|
|
79
79
|
"engines": {
|
|
80
80
|
"node": "^20.19.0 || >=22.13.0"
|