react-doctor 0.9.11 → 0.9.12-dev.8c2f03a
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/README.md +1 -1
- package/bin/react-doctor.js +1 -9
- package/dist/{build-section-divider-sLcWe1hO.js → build-section-divider-DuozMmwU.js} +9 -10
- package/dist/{ci-DsrrD52i.js → ci-Bwd2LJZC.js} +12 -12
- package/dist/cli.js +29 -30
- package/dist/{design-CP25gyyg.js → design-Q4Umr_4T.js} +4 -4
- package/dist/{devtools-DPRVRu3S.js → devtools-D8NTVj81.js} +4 -4
- package/dist/{exit-gracefully-CVVkBxDS.js → exit-gracefully-vUI1H1zC.js} +6 -6
- package/dist/index.d.ts +36 -59
- package/dist/index.js +54539 -54310
- package/dist/{inspect-D6y8oLtg.js → inspect-RxIsB8bi.js} +20 -20
- package/dist/{install-afMFGeTB.js → install-CI0nvC_v.js} +8 -8
- package/dist/{install-doctor-script-Be7Mv3-l.js → install-doctor-script-BAmTZygh.js} +4 -4
- package/dist/{install-github-workflow-Dev2F6Ea.js → install-github-workflow-Dg2sosDx.js} +6 -6
- package/dist/{install-react-doctor-DIPVunY4.js → install-react-doctor-CIJcnTik.js} +8 -8
- package/dist/{print-branded-header-D5jLdo4p.js → print-branded-header-kwnSGrfR.js} +4 -4
- package/dist/project-analysis-worker.d.ts +1 -0
- package/dist/project-analysis-worker.js +51900 -0
- package/dist/{read-object-file-CEh1CqnD.js → read-object-file-m5uVvcBp.js} +4 -4
- package/dist/{record-metric-CJxSHfJD.js → record-metric-DospZkfP.js} +3093 -6149
- package/dist/{report-error-CAEixMg1.js → report-error-CAp5cil9.js} +5 -5
- package/dist/{report-workflow-result-C0jbKH8p.js → report-workflow-result-D0GvvJtT.js} +5 -5
- package/dist/{resolve-scope-DS7rcRRz.js → resolve-scope-eXawiGEH.js} +6 -6
- package/dist/{rules-BJynymuU.js → rules-C_xYDSz8.js} +6 -6
- package/dist/{run-scan-app-BGzlyiIB.js → run-scan-app-CeNk17wq.js} +189 -145
- package/dist/{scan-CgPRG6_z.js → scan-DIwsgV6M.js} +8 -8
- package/dist/semver-DFtnEmN-.js +3219 -0
- package/dist/{should-fail-scan-gate-4jf7ZRdL.js → should-fail-scan-gate-BWTNIU5h.js} +186 -91
- package/dist/{should-skip-prompts-C78r7Ww7.js → should-skip-prompts-oK3MwWyB.js} +4 -4
- package/dist/{unref-stdin-Dc8ipkaw.js → unref-stdin-BGZVK4sJ.js} +6 -12
- package/dist/{version-DDrwsTas.js → version-9-2T2YQf.js} +4 -4
- package/dist/{why-BRNrKY1b.js → why-BOiuB_qy.js} +4 -4
- package/package.json +6 -12
- package/dist/chunk-q7NCDQ7-.js +0 -28
- package/dist/lsp.js +0 -81114
|
@@ -1,6 +1,6 @@
|
|
|
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]="
|
|
3
|
-
import {
|
|
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]="36724664-8dc2-54b8-b2eb-4c3256af0c6c")}catch(e){}}();
|
|
3
|
+
import { Hn as buildWithScope, Jt as isProjectDiscoveryError, Kn as close, Ln as runPromise, On as make, Qt as layerObservability, R as CliInputError, Rn as runSync, Sr as messageFromUnknown, Yn as void_, Yt as isReactDoctorError, g as VERSION, i as isTelemetryEnabled, qn as makeUnsafe, yr as isErrnoException } from "./record-metric-DospZkfP.js";
|
|
4
4
|
//#region src/cli/utils/is-environment-error.ts
|
|
5
5
|
const ENVIRONMENT_ERROR_CODES = new Set([
|
|
6
6
|
"EACCES",
|
|
@@ -153,11 +153,8 @@ let pendingShutdown = null;
|
|
|
153
153
|
*
|
|
154
154
|
* Returns `null` when telemetry is disabled or unconfigured, which is what keeps
|
|
155
155
|
* `--no-telemetry` and unconfigured builds from opening a scope at all.
|
|
156
|
-
*
|
|
157
|
-
* `exportIntervalMs` lets a long-running process (the language server) ship
|
|
158
|
-
* telemetry periodically instead of only at shutdown.
|
|
159
156
|
*/
|
|
160
|
-
const getTelemetryContext = (
|
|
157
|
+
const getTelemetryContext = () => {
|
|
161
158
|
if (isBuilt) return telemetryContext;
|
|
162
159
|
isBuilt = true;
|
|
163
160
|
if (!isTelemetryEnabled()) return null;
|
|
@@ -165,10 +162,7 @@ const getTelemetryContext = (overrides = {}) => {
|
|
|
165
162
|
if (options === null && !isUserOtlpConfigured()) return null;
|
|
166
163
|
try {
|
|
167
164
|
const scope = makeUnsafe();
|
|
168
|
-
telemetryContext = runSync(buildWithScope(layerObservability(options
|
|
169
|
-
...options,
|
|
170
|
-
...overrides
|
|
171
|
-
}), scope));
|
|
165
|
+
telemetryContext = runSync(buildWithScope(layerObservability(options), scope));
|
|
172
166
|
telemetryScope = scope;
|
|
173
167
|
} catch {
|
|
174
168
|
telemetryContext = null;
|
|
@@ -223,5 +217,5 @@ const unrefStdin = () => {
|
|
|
223
217
|
//#endregion
|
|
224
218
|
export { setActiveRunTrace as a, isExpectedUserError as c, recordRunTraceId as i, formatEnvironmentError as l, getActiveRunTrace as n, getTelemetryContext as o, getLastRunTraceId as r, shutdownTelemetry as s, unrefStdin as t, isEnvironmentError as u };
|
|
225
219
|
|
|
226
|
-
//# sourceMappingURL=unref-stdin-
|
|
227
|
-
//# debugId=
|
|
220
|
+
//# sourceMappingURL=unref-stdin-BGZVK4sJ.js.map
|
|
221
|
+
//# debugId=36724664-8dc2-54b8-b2eb-4c3256af0c6c
|
|
@@ -1,6 +1,6 @@
|
|
|
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]="
|
|
3
|
-
import { g as VERSION, t as recordCount, w as METRIC } from "./record-metric-
|
|
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]="bcd2c07f-2279-5d72-9b3c-7a1566f6e77b")}catch(e){}}();
|
|
3
|
+
import { g as VERSION, t as recordCount, w as METRIC } from "./record-metric-DospZkfP.js";
|
|
4
4
|
//#region src/cli/commands/version.ts
|
|
5
5
|
/**
|
|
6
6
|
* oclif-style version line. 12-factor CLI Apps (#3, "What version am I
|
|
@@ -17,5 +17,5 @@ const versionAction = () => {
|
|
|
17
17
|
//#endregion
|
|
18
18
|
export { versionAction };
|
|
19
19
|
|
|
20
|
-
//# sourceMappingURL=version-
|
|
21
|
-
//# debugId=
|
|
20
|
+
//# sourceMappingURL=version-9-2T2YQf.js.map
|
|
21
|
+
//# debugId=bcd2c07f-2279-5d72-9b3c-7a1566f6e77b
|
|
@@ -1,6 +1,6 @@
|
|
|
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]="
|
|
3
|
-
import { t as inspectAction } from "./inspect-
|
|
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]="34895f04-2fd2-589a-8f54-5d7c9aa4e3f3")}catch(e){}}();
|
|
3
|
+
import { t as inspectAction } from "./inspect-RxIsB8bi.js";
|
|
4
4
|
//#region src/cli/commands/why.ts
|
|
5
5
|
/**
|
|
6
6
|
* `why <file:line>` — explains why a rule fired (or why a suppression didn't
|
|
@@ -17,5 +17,5 @@ const whyAction = async (location, options) => {
|
|
|
17
17
|
//#endregion
|
|
18
18
|
export { whyAction };
|
|
19
19
|
|
|
20
|
-
//# sourceMappingURL=why-
|
|
21
|
-
//# debugId=
|
|
20
|
+
//# sourceMappingURL=why-BOiuB_qy.js.map
|
|
21
|
+
//# debugId=34895f04-2fd2-589a-8f54-5d7c9aa4e3f3
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.12-dev.8c2f03a",
|
|
4
4
|
"description": "Your agent writes bad React. This catches it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -51,26 +51,21 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@astrojs/compiler": "^4.0.0",
|
|
54
|
-
"@babel/code-frame": "^7.29.0",
|
|
55
54
|
"@sentry/node": "^10.54.0",
|
|
56
55
|
"agent-install": "0.0.5",
|
|
57
56
|
"conf": "^15.1.0",
|
|
58
57
|
"confbox": "^0.2.4",
|
|
59
58
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
60
|
-
"figures": "^6.1.0",
|
|
61
59
|
"jiti": "^2.7.0",
|
|
62
60
|
"magicast": "^0.5.3",
|
|
61
|
+
"oxc-parser": "^0.143.0",
|
|
63
62
|
"oxc-resolver": "^11.24.2",
|
|
64
|
-
"oxlint": ">=1.
|
|
63
|
+
"oxlint": ">=1.77.0 <1.78.0",
|
|
65
64
|
"prompts": "^2.4.2",
|
|
66
65
|
"typescript": ">=5.0.4 <6",
|
|
67
|
-
"vscode-languageserver": "^9.0.1",
|
|
68
|
-
"vscode-languageserver-textdocument": "^1.0.12",
|
|
69
|
-
"vscode-uri": "^3.1.0",
|
|
70
66
|
"yaml": "^2.9.0",
|
|
71
67
|
"yoga-layout": "~3.2.1",
|
|
72
|
-
"oxlint-plugin-react-doctor": "0.9.
|
|
73
|
-
"deslop-js": "0.9.11"
|
|
68
|
+
"oxlint-plugin-react-doctor": "0.9.12-dev.8c2f03a"
|
|
74
69
|
},
|
|
75
70
|
"devDependencies": {
|
|
76
71
|
"@types/babel__code-frame": "^7.27.0",
|
|
@@ -83,9 +78,8 @@
|
|
|
83
78
|
"ora": "^9.4.0",
|
|
84
79
|
"react": "19.2.5",
|
|
85
80
|
"react-devtools-core": "^7.0.1",
|
|
86
|
-
"@react-doctor/api": "0.9.
|
|
87
|
-
"@react-doctor/core": "0.9.
|
|
88
|
-
"@react-doctor/language-server": "0.9.11"
|
|
81
|
+
"@react-doctor/api": "0.9.12",
|
|
82
|
+
"@react-doctor/core": "0.9.12"
|
|
89
83
|
},
|
|
90
84
|
"engines": {
|
|
91
85
|
"node": "^20.19.0 || >=22.13.0"
|
package/dist/chunk-q7NCDQ7-.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
//#region \0rolldown/runtime.js
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
-
key = keys[i];
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: ((k) => from[k]).bind(null, key),
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
21
|
-
value: mod,
|
|
22
|
-
enumerable: true
|
|
23
|
-
}) : target, mod));
|
|
24
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
25
|
-
//#endregion
|
|
26
|
-
export { __require as n, __toESM as r, __commonJSMin as t };
|
|
27
|
-
!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]="6bebfffd-1840-5d5d-b9fb-fdd0316ac477")}catch(e){}}();
|
|
28
|
-
//# debugId=6bebfffd-1840-5d5d-b9fb-fdd0316ac477
|