react-doctor 0.5.5-dev.5fc0e27 → 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 +11 -8
- package/dist/index.js +8 -5
- package/dist/lsp.js +8 -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";
|
|
@@ -42784,6 +42784,8 @@ const resolveConcreteVersion = (spec) => {
|
|
|
42784
42784
|
const trimmed = spec.trim();
|
|
42785
42785
|
if (trimmed.length === 0) return null;
|
|
42786
42786
|
if (trimmed.includes(":")) return null;
|
|
42787
|
+
const range = import_semver.validRange(trimmed);
|
|
42788
|
+
if (range === null || range === "*") return null;
|
|
42787
42789
|
return import_semver.minVersion(trimmed)?.version ?? null;
|
|
42788
42790
|
};
|
|
42789
42791
|
const locateDependencyKey = (packageJsonText, section, name) => {
|
|
@@ -43170,8 +43172,10 @@ const runInspect = (input, hooks = {}) => gen(function* () {
|
|
|
43170
43172
|
const lintFailureState = yield* get$2(lintFailure);
|
|
43171
43173
|
yield* afterLint(lintFailureState.didFail);
|
|
43172
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"}`;
|
|
43173
43177
|
const shouldRunDeadCode = input.runDeadCode && !isDiffMode && (showWarnings || deadCodeMaySurfaceWhenWarningsHidden(resolvedConfig.config));
|
|
43174
|
-
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({
|
|
43175
43179
|
rootDirectory: scanDirectory,
|
|
43176
43180
|
userConfig: resolvedConfig.config
|
|
43177
43181
|
}).pipe(catchTag("ReactDoctorError", (error) => unwrap(gen(function* () {
|
|
@@ -43184,10 +43188,9 @@ const runInspect = (input, hooks = {}) => gen(function* () {
|
|
|
43184
43188
|
const deadCodeFailureState = yield* get$2(deadCodeFailure);
|
|
43185
43189
|
const scanElapsedMilliseconds = Date.now() - scanStartTime;
|
|
43186
43190
|
const scanElapsedSeconds = (scanElapsedMilliseconds / 1e3).toFixed(1);
|
|
43187
|
-
const totalFileCount = lastReportedTotalFileCount || (lintIncludePaths?.length ?? project.sourceFileCount);
|
|
43188
43191
|
if (!lintFailureState.didFail) if (deadCodeFailureState.didFail) yield* scanProgress.fail(DEAD_CODE_FAIL_TEXT);
|
|
43189
43192
|
else if (input.suppressScanSummary) yield* scanProgress.stop();
|
|
43190
|
-
else yield* scanProgress.succeed(`Scanned ${
|
|
43193
|
+
else yield* scanProgress.succeed(`Scanned ${scannedFilesLabel} in ${scanElapsedSeconds}s${workerCountSuffix}`);
|
|
43191
43194
|
yield* reporterService.finalize;
|
|
43192
43195
|
const finalDiagnostics = [
|
|
43193
43196
|
...envCollected,
|
|
@@ -43969,7 +43972,7 @@ const makeNoopConsole = () => ({
|
|
|
43969
43972
|
});
|
|
43970
43973
|
//#endregion
|
|
43971
43974
|
//#region src/cli/utils/version.ts
|
|
43972
|
-
const VERSION = "0.5.5-dev.
|
|
43975
|
+
const VERSION = "0.5.5-dev.cf9e05b";
|
|
43973
43976
|
//#endregion
|
|
43974
43977
|
//#region src/cli/utils/json-mode.ts
|
|
43975
43978
|
let context = null;
|
|
@@ -44327,13 +44330,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
|
|
|
44327
44330
|
* uploads source-map artifacts under, so stack frames symbolicate. Honors the
|
|
44328
44331
|
* standard `SENTRY_RELEASE` override.
|
|
44329
44332
|
*/
|
|
44330
|
-
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`;
|
|
44331
44334
|
/**
|
|
44332
44335
|
* Deployment environment shown in Sentry's environment filter. Defaults to
|
|
44333
44336
|
* `production` for tagged releases and `development` for dev/unbuilt versions,
|
|
44334
44337
|
* overridable via the standard `SENTRY_ENVIRONMENT` env var.
|
|
44335
44338
|
*/
|
|
44336
|
-
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");
|
|
44337
44340
|
/**
|
|
44338
44341
|
* Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
|
|
44339
44342
|
* (set to `0` to disable tracing) and falls back to
|
|
@@ -53945,4 +53948,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
|
|
|
53945
53948
|
export {};
|
|
53946
53949
|
|
|
53947
53950
|
//# sourceMappingURL=cli.js.map
|
|
53948
|
-
//# 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";
|
|
@@ -39548,6 +39548,8 @@ const resolveConcreteVersion = (spec) => {
|
|
|
39548
39548
|
const trimmed = spec.trim();
|
|
39549
39549
|
if (trimmed.length === 0) return null;
|
|
39550
39550
|
if (trimmed.includes(":")) return null;
|
|
39551
|
+
const range = import_semver.validRange(trimmed);
|
|
39552
|
+
if (range === null || range === "*") return null;
|
|
39551
39553
|
return import_semver.minVersion(trimmed)?.version ?? null;
|
|
39552
39554
|
};
|
|
39553
39555
|
const locateDependencyKey = (packageJsonText, section, name) => {
|
|
@@ -39934,8 +39936,10 @@ const runInspect = (input, hooks = {}) => gen(function* () {
|
|
|
39934
39936
|
const lintFailureState = yield* get$2(lintFailure);
|
|
39935
39937
|
yield* afterLint(lintFailureState.didFail);
|
|
39936
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"}`;
|
|
39937
39941
|
const shouldRunDeadCode = input.runDeadCode && !isDiffMode && (showWarnings || deadCodeMaySurfaceWhenWarningsHidden(resolvedConfig.config));
|
|
39938
|
-
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({
|
|
39939
39943
|
rootDirectory: scanDirectory,
|
|
39940
39944
|
userConfig: resolvedConfig.config
|
|
39941
39945
|
}).pipe(catchTag("ReactDoctorError", (error) => unwrap(gen(function* () {
|
|
@@ -39948,10 +39952,9 @@ const runInspect = (input, hooks = {}) => gen(function* () {
|
|
|
39948
39952
|
const deadCodeFailureState = yield* get$2(deadCodeFailure);
|
|
39949
39953
|
const scanElapsedMilliseconds = Date.now() - scanStartTime;
|
|
39950
39954
|
const scanElapsedSeconds = (scanElapsedMilliseconds / 1e3).toFixed(1);
|
|
39951
|
-
const totalFileCount = lastReportedTotalFileCount || (lintIncludePaths?.length ?? project.sourceFileCount);
|
|
39952
39955
|
if (!lintFailureState.didFail) if (deadCodeFailureState.didFail) yield* scanProgress.fail(DEAD_CODE_FAIL_TEXT);
|
|
39953
39956
|
else if (input.suppressScanSummary) yield* scanProgress.stop();
|
|
39954
|
-
else yield* scanProgress.succeed(`Scanned ${
|
|
39957
|
+
else yield* scanProgress.succeed(`Scanned ${scannedFilesLabel} in ${scanElapsedSeconds}s${workerCountSuffix}`);
|
|
39955
39958
|
yield* reporterService.finalize;
|
|
39956
39959
|
const finalDiagnostics = [
|
|
39957
39960
|
...envCollected,
|
|
@@ -40570,4 +40573,4 @@ const toJsonReport = (result, options) => buildJsonReport({
|
|
|
40570
40573
|
export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
|
|
40571
40574
|
|
|
40572
40575
|
//# sourceMappingURL=index.js.map
|
|
40573
|
-
//# debugId=
|
|
40576
|
+
//# debugId=f55d58c3-c6f3-598b-bd99-d0abe85fd35e
|
package/dist/lsp.js
CHANGED
|
@@ -39534,6 +39534,8 @@ const resolveConcreteVersion = (spec) => {
|
|
|
39534
39534
|
const trimmed = spec.trim();
|
|
39535
39535
|
if (trimmed.length === 0) return null;
|
|
39536
39536
|
if (trimmed.includes(":")) return null;
|
|
39537
|
+
const range = import_semver.validRange(trimmed);
|
|
39538
|
+
if (range === null || range === "*") return null;
|
|
39537
39539
|
return import_semver.minVersion(trimmed)?.version ?? null;
|
|
39538
39540
|
};
|
|
39539
39541
|
const locateDependencyKey = (packageJsonText, section, name) => {
|
|
@@ -39920,8 +39922,10 @@ const runInspect = (input, hooks = {}) => gen(function* () {
|
|
|
39920
39922
|
const lintFailureState = yield* get$2(lintFailure);
|
|
39921
39923
|
yield* afterLint(lintFailureState.didFail);
|
|
39922
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"}`;
|
|
39923
39927
|
const shouldRunDeadCode = input.runDeadCode && !isDiffMode && (showWarnings || deadCodeMaySurfaceWhenWarningsHidden(resolvedConfig.config));
|
|
39924
|
-
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({
|
|
39925
39929
|
rootDirectory: scanDirectory,
|
|
39926
39930
|
userConfig: resolvedConfig.config
|
|
39927
39931
|
}).pipe(catchTag("ReactDoctorError", (error) => unwrap(gen(function* () {
|
|
@@ -39934,10 +39938,9 @@ const runInspect = (input, hooks = {}) => gen(function* () {
|
|
|
39934
39938
|
const deadCodeFailureState = yield* get$2(deadCodeFailure);
|
|
39935
39939
|
const scanElapsedMilliseconds = Date.now() - scanStartTime;
|
|
39936
39940
|
const scanElapsedSeconds = (scanElapsedMilliseconds / 1e3).toFixed(1);
|
|
39937
|
-
const totalFileCount = lastReportedTotalFileCount || (lintIncludePaths?.length ?? project.sourceFileCount);
|
|
39938
39941
|
if (!lintFailureState.didFail) if (deadCodeFailureState.didFail) yield* scanProgress.fail(DEAD_CODE_FAIL_TEXT);
|
|
39939
39942
|
else if (input.suppressScanSummary) yield* scanProgress.stop();
|
|
39940
|
-
else yield* scanProgress.succeed(`Scanned ${
|
|
39943
|
+
else yield* scanProgress.succeed(`Scanned ${scannedFilesLabel} in ${scanElapsedSeconds}s${workerCountSuffix}`);
|
|
39941
39944
|
yield* reporterService.finalize;
|
|
39942
39945
|
const finalDiagnostics = [
|
|
39943
39946
|
...envCollected,
|
|
@@ -42355,5 +42358,5 @@ const startLanguageServer = () => {
|
|
|
42355
42358
|
};
|
|
42356
42359
|
//#endregion
|
|
42357
42360
|
export { startLanguageServer };
|
|
42358
|
-
!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]="
|
|
42359
|
-
//# 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",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"commander": "^14.0.3",
|
|
74
74
|
"ora": "^9.4.0",
|
|
75
75
|
"@react-doctor/core": "0.5.5",
|
|
76
|
-
"@react-doctor/
|
|
77
|
-
"@react-doctor/
|
|
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"
|