react-doctor 0.7.4-dev.b686594 → 0.7.4-dev.dfccac4
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 +7 -19
- package/dist/index.d.ts +1 -8
- package/dist/index.js +4 -16
- package/dist/lsp.js +4 -16
- 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]="f9a61243-36ed-57c7-ba8a-6c5318b59172")}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";
|
|
@@ -8,7 +8,7 @@ import path from "node:path";
|
|
|
8
8
|
import * as NFS from "node:fs";
|
|
9
9
|
import fs, { mkdtempSync, rmSync } from "node:fs";
|
|
10
10
|
import process$1 from "node:process";
|
|
11
|
-
import ts from "typescript";
|
|
11
|
+
import * as ts from "typescript";
|
|
12
12
|
import reactDoctorPlugin, { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, FRAMEWORK_SPECIFIC_RULE_KEYS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_RULES, REACT_DOCTOR_RULES, classifySecurityScanFile, collectCrossFileDependencyProbes, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor";
|
|
13
13
|
import * as OS from "node:os";
|
|
14
14
|
import os, { tmpdir } from "node:os";
|
|
@@ -38687,14 +38687,6 @@ var AmbiguousProject = class extends TaggedErrorClass()("AmbiguousProject", {
|
|
|
38687
38687
|
return `Ambiguous project at ${this.directory}: found ${this.candidates.length} candidates (${this.candidates.join(", ")})`;
|
|
38688
38688
|
}
|
|
38689
38689
|
};
|
|
38690
|
-
var ProjectDiscoveryFailed = class extends TaggedErrorClass()("ProjectDiscoveryFailed", {
|
|
38691
|
-
directory: String$1,
|
|
38692
|
-
cause: Unknown
|
|
38693
|
-
}) {
|
|
38694
|
-
get message() {
|
|
38695
|
-
return `Project discovery failed for ${this.directory}: ${pretty(fail$6(this.cause))}`;
|
|
38696
|
-
}
|
|
38697
|
-
};
|
|
38698
38690
|
var DeadCodeAnalysisFailed = class extends TaggedErrorClass()("DeadCodeAnalysisFailed", { cause: Unknown }) {
|
|
38699
38691
|
get message() {
|
|
38700
38692
|
return `Dead-code analysis failed: ${pretty(fail$6(this.cause))}`;
|
|
@@ -38729,7 +38721,6 @@ const ReactDoctorErrorReason = Union([
|
|
|
38729
38721
|
ProjectNotFound,
|
|
38730
38722
|
NoReactDependency,
|
|
38731
38723
|
AmbiguousProject,
|
|
38732
|
-
ProjectDiscoveryFailed,
|
|
38733
38724
|
DeadCodeAnalysisFailed,
|
|
38734
38725
|
GitInvocationFailed,
|
|
38735
38726
|
GitBaseBranchMissing,
|
|
@@ -44599,10 +44590,7 @@ const translateProjectInfoError = (cause, directory) => {
|
|
|
44599
44590
|
directory: cause.directory,
|
|
44600
44591
|
candidates: cause.candidates
|
|
44601
44592
|
}) });
|
|
44602
|
-
return new ReactDoctorError({ reason: new
|
|
44603
|
-
directory,
|
|
44604
|
-
cause
|
|
44605
|
-
}) });
|
|
44593
|
+
return new ReactDoctorError({ reason: new ProjectNotFound({ directory }) });
|
|
44606
44594
|
};
|
|
44607
44595
|
var Project = class Project extends Service()("react-doctor/Project") {
|
|
44608
44596
|
static layerNode = succeed$3(Project, Project.of({ discover: fn("Project.discover")(function* (directory) {
|
|
@@ -46446,7 +46434,7 @@ const makeNoopConsole = () => ({
|
|
|
46446
46434
|
});
|
|
46447
46435
|
//#endregion
|
|
46448
46436
|
//#region src/cli/utils/version.ts
|
|
46449
|
-
const VERSION = "0.7.4-dev.
|
|
46437
|
+
const VERSION = "0.7.4-dev.dfccac4";
|
|
46450
46438
|
//#endregion
|
|
46451
46439
|
//#region src/cli/utils/json-mode.ts
|
|
46452
46440
|
let context = null;
|
|
@@ -46815,13 +46803,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
|
|
|
46815
46803
|
* uploads source-map artifacts under, so stack frames symbolicate. Honors the
|
|
46816
46804
|
* standard `SENTRY_RELEASE` override.
|
|
46817
46805
|
*/
|
|
46818
|
-
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.7.4-dev.
|
|
46806
|
+
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.7.4-dev.dfccac4`;
|
|
46819
46807
|
/**
|
|
46820
46808
|
* Deployment environment shown in Sentry's environment filter. Defaults to
|
|
46821
46809
|
* `production` for tagged releases and `development` for dev/unbuilt versions,
|
|
46822
46810
|
* overridable via the standard `SENTRY_ENVIRONMENT` env var.
|
|
46823
46811
|
*/
|
|
46824
|
-
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.7.4-dev.
|
|
46812
|
+
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.7.4-dev.dfccac4") ? "development" : "production");
|
|
46825
46813
|
/**
|
|
46826
46814
|
* Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
|
|
46827
46815
|
* (set to `0` to disable tracing) and falls back to
|
|
@@ -64996,4 +64984,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
|
|
|
64996
64984
|
export {};
|
|
64997
64985
|
|
|
64998
64986
|
//# sourceMappingURL=cli.js.map
|
|
64999
|
-
//# debugId=
|
|
64987
|
+
//# debugId=f9a61243-36ed-57c7-ba8a-6c5318b59172
|
package/dist/index.d.ts
CHANGED
|
@@ -10098,13 +10098,6 @@ declare const AmbiguousProject_base: Class<AmbiguousProject, TaggedStruct<"Ambig
|
|
|
10098
10098
|
declare class AmbiguousProject extends AmbiguousProject_base {
|
|
10099
10099
|
get message(): string;
|
|
10100
10100
|
}
|
|
10101
|
-
declare const ProjectDiscoveryFailed_base: Class<ProjectDiscoveryFailed, TaggedStruct<"ProjectDiscoveryFailed", {
|
|
10102
|
-
readonly directory: String;
|
|
10103
|
-
readonly cause: Unknown;
|
|
10104
|
-
}>, YieldableError>;
|
|
10105
|
-
declare class ProjectDiscoveryFailed extends ProjectDiscoveryFailed_base {
|
|
10106
|
-
get message(): string;
|
|
10107
|
-
}
|
|
10108
10101
|
declare const DeadCodeAnalysisFailed_base: Class<DeadCodeAnalysisFailed, TaggedStruct<"DeadCodeAnalysisFailed", {
|
|
10109
10102
|
readonly cause: Unknown;
|
|
10110
10103
|
}>, YieldableError>;
|
|
@@ -10132,7 +10125,7 @@ declare class GitBaseBranchInvalid extends GitBaseBranchInvalid_base {
|
|
|
10132
10125
|
get message(): string;
|
|
10133
10126
|
}
|
|
10134
10127
|
declare const ReactDoctorError_base: Class<ReactDoctorError, TaggedStruct<"ReactDoctorError", {
|
|
10135
|
-
readonly reason: Union<readonly [typeof OxlintUnavailable, typeof OxlintBatchExceeded, typeof ScanDeadlineExceeded, typeof OxlintSpawnFailed, typeof OxlintOutputUnparseable, typeof ConfigParseFailed, typeof ProjectNotFound, typeof NoReactDependency, typeof AmbiguousProject, typeof
|
|
10128
|
+
readonly reason: Union<readonly [typeof OxlintUnavailable, typeof OxlintBatchExceeded, typeof ScanDeadlineExceeded, typeof OxlintSpawnFailed, typeof OxlintOutputUnparseable, typeof ConfigParseFailed, typeof ProjectNotFound, typeof NoReactDependency, typeof AmbiguousProject, typeof DeadCodeAnalysisFailed, typeof GitInvocationFailed, typeof GitBaseBranchMissing, typeof GitBaseBranchInvalid]>;
|
|
10136
10129
|
}>, YieldableError>;
|
|
10137
10130
|
declare class ReactDoctorError extends ReactDoctorError_base {
|
|
10138
10131
|
get message(): string;
|
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]="e047abe8-ac42-570c-8465-e0f0dcb0715c")}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";
|
|
@@ -8,7 +8,7 @@ import * as Path from "node:path";
|
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import * as NodeChildProcess from "node:child_process";
|
|
10
10
|
import { execFileSync, spawn, spawnSync } from "node:child_process";
|
|
11
|
-
import ts from "typescript";
|
|
11
|
+
import * as ts from "typescript";
|
|
12
12
|
import reactDoctorPlugin, { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, FRAMEWORK_SPECIFIC_RULE_KEYS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_RULES, REACT_DOCTOR_RULES, classifySecurityScanFile, collectCrossFileDependencyProbes, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor";
|
|
13
13
|
import * as OS from "node:os";
|
|
14
14
|
import os from "node:os";
|
|
@@ -35488,14 +35488,6 @@ var AmbiguousProject = class extends TaggedErrorClass()("AmbiguousProject", {
|
|
|
35488
35488
|
return `Ambiguous project at ${this.directory}: found ${this.candidates.length} candidates (${this.candidates.join(", ")})`;
|
|
35489
35489
|
}
|
|
35490
35490
|
};
|
|
35491
|
-
var ProjectDiscoveryFailed = class extends TaggedErrorClass()("ProjectDiscoveryFailed", {
|
|
35492
|
-
directory: String$1,
|
|
35493
|
-
cause: Unknown
|
|
35494
|
-
}) {
|
|
35495
|
-
get message() {
|
|
35496
|
-
return `Project discovery failed for ${this.directory}: ${pretty(fail$6(this.cause))}`;
|
|
35497
|
-
}
|
|
35498
|
-
};
|
|
35499
35491
|
var DeadCodeAnalysisFailed = class extends TaggedErrorClass()("DeadCodeAnalysisFailed", { cause: Unknown }) {
|
|
35500
35492
|
get message() {
|
|
35501
35493
|
return `Dead-code analysis failed: ${pretty(fail$6(this.cause))}`;
|
|
@@ -35530,7 +35522,6 @@ const ReactDoctorErrorReason = Union([
|
|
|
35530
35522
|
ProjectNotFound,
|
|
35531
35523
|
NoReactDependency,
|
|
35532
35524
|
AmbiguousProject,
|
|
35533
|
-
ProjectDiscoveryFailed,
|
|
35534
35525
|
DeadCodeAnalysisFailed,
|
|
35535
35526
|
GitInvocationFailed,
|
|
35536
35527
|
GitBaseBranchMissing,
|
|
@@ -41356,10 +41347,7 @@ const translateProjectInfoError = (cause, directory) => {
|
|
|
41356
41347
|
directory: cause.directory,
|
|
41357
41348
|
candidates: cause.candidates
|
|
41358
41349
|
}) });
|
|
41359
|
-
return new ReactDoctorError({ reason: new
|
|
41360
|
-
directory,
|
|
41361
|
-
cause
|
|
41362
|
-
}) });
|
|
41350
|
+
return new ReactDoctorError({ reason: new ProjectNotFound({ directory }) });
|
|
41363
41351
|
};
|
|
41364
41352
|
var Project = class Project extends Service()("react-doctor/Project") {
|
|
41365
41353
|
static layerNode = succeed$3(Project, Project.of({ discover: fn("Project.discover")(function* (directory) {
|
|
@@ -42985,4 +42973,4 @@ const toJsonReport = (result, options) => buildJsonReport({
|
|
|
42985
42973
|
export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
|
|
42986
42974
|
|
|
42987
42975
|
//# sourceMappingURL=index.js.map
|
|
42988
|
-
//# debugId=
|
|
42976
|
+
//# debugId=e047abe8-ac42-570c-8465-e0f0dcb0715c
|
package/dist/lsp.js
CHANGED
|
@@ -7,7 +7,7 @@ import * as Path from "node:path";
|
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import * as NodeChildProcess from "node:child_process";
|
|
9
9
|
import { execFileSync, spawn, spawnSync } from "node:child_process";
|
|
10
|
-
import ts from "typescript";
|
|
10
|
+
import * as ts from "typescript";
|
|
11
11
|
import reactDoctorPlugin, { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, FRAMEWORK_SPECIFIC_RULE_KEYS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_RULES, REACT_DOCTOR_RULES, classifySecurityScanFile, collectCrossFileDependencyProbes, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor";
|
|
12
12
|
import { parseJSON5 } from "confbox";
|
|
13
13
|
import * as NodeUrl from "node:url";
|
|
@@ -35543,14 +35543,6 @@ var AmbiguousProject = class extends TaggedErrorClass()("AmbiguousProject", {
|
|
|
35543
35543
|
return `Ambiguous project at ${this.directory}: found ${this.candidates.length} candidates (${this.candidates.join(", ")})`;
|
|
35544
35544
|
}
|
|
35545
35545
|
};
|
|
35546
|
-
var ProjectDiscoveryFailed = class extends TaggedErrorClass()("ProjectDiscoveryFailed", {
|
|
35547
|
-
directory: String$1,
|
|
35548
|
-
cause: Unknown
|
|
35549
|
-
}) {
|
|
35550
|
-
get message() {
|
|
35551
|
-
return `Project discovery failed for ${this.directory}: ${pretty(fail$6(this.cause))}`;
|
|
35552
|
-
}
|
|
35553
|
-
};
|
|
35554
35546
|
var DeadCodeAnalysisFailed = class extends TaggedErrorClass()("DeadCodeAnalysisFailed", { cause: Unknown }) {
|
|
35555
35547
|
get message() {
|
|
35556
35548
|
return `Dead-code analysis failed: ${pretty(fail$6(this.cause))}`;
|
|
@@ -35585,7 +35577,6 @@ const ReactDoctorErrorReason = Union([
|
|
|
35585
35577
|
ProjectNotFound,
|
|
35586
35578
|
NoReactDependency,
|
|
35587
35579
|
AmbiguousProject,
|
|
35588
|
-
ProjectDiscoveryFailed,
|
|
35589
35580
|
DeadCodeAnalysisFailed,
|
|
35590
35581
|
GitInvocationFailed,
|
|
35591
35582
|
GitBaseBranchMissing,
|
|
@@ -41341,10 +41332,7 @@ const translateProjectInfoError = (cause, directory) => {
|
|
|
41341
41332
|
directory: cause.directory,
|
|
41342
41333
|
candidates: cause.candidates
|
|
41343
41334
|
}) });
|
|
41344
|
-
return new ReactDoctorError({ reason: new
|
|
41345
|
-
directory,
|
|
41346
|
-
cause
|
|
41347
|
-
}) });
|
|
41335
|
+
return new ReactDoctorError({ reason: new ProjectNotFound({ directory }) });
|
|
41348
41336
|
};
|
|
41349
41337
|
var Project = class Project extends Service()("react-doctor/Project") {
|
|
41350
41338
|
static layerNode = succeed$3(Project, Project.of({ discover: fn("Project.discover")(function* (directory) {
|
|
@@ -44675,5 +44663,5 @@ const startLanguageServer = () => {
|
|
|
44675
44663
|
};
|
|
44676
44664
|
//#endregion
|
|
44677
44665
|
export { startLanguageServer };
|
|
44678
|
-
!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]="
|
|
44679
|
-
//# debugId=
|
|
44666
|
+
!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]="bc30542b-b95d-5630-bd67-52e3d1367e54")}catch(e){}}();
|
|
44667
|
+
//# debugId=bc30542b-b95d-5630-bd67-52e3d1367e54
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.7.4-dev.
|
|
3
|
+
"version": "0.7.4-dev.dfccac4",
|
|
4
4
|
"description": "Your agent writes bad React. This catches it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"vscode-uri": "^3.1.0",
|
|
67
67
|
"yaml": "^2.9.0",
|
|
68
68
|
"deslop-js": "0.7.4",
|
|
69
|
-
"oxlint-plugin-react-doctor": "0.7.4-dev.
|
|
69
|
+
"oxlint-plugin-react-doctor": "0.7.4-dev.dfccac4"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/babel__code-frame": "^7.27.0",
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"@xterm/headless": "^6.0.0",
|
|
75
75
|
"commander": "^14.0.3",
|
|
76
76
|
"ora": "^9.4.0",
|
|
77
|
-
"@react-doctor/language-server": "0.7.4",
|
|
78
77
|
"@react-doctor/core": "0.7.4",
|
|
79
|
-
"@react-doctor/api": "0.7.4"
|
|
78
|
+
"@react-doctor/api": "0.7.4",
|
|
79
|
+
"@react-doctor/language-server": "0.7.4"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": "^20.19.0 || >=22.13.0"
|