react-doctor 0.9.22 → 0.9.23-dev.05dfafe
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-JXerAqjw.js → build-section-divider-B3l6DXTH.js} +5 -5
- package/dist/{ci-BWu53Ijl.js → ci-DUDuv_KL.js} +13 -13
- package/dist/cli.js +25 -25
- package/dist/{constants-lt2tTZjE.js → constants-BmD_c3Yq.js} +12 -6
- package/dist/{constants-DNh19qg9.js → constants-T2clfs7L.js} +4 -4
- package/dist/{design-CN12FgvK.js → design-Bj9aMiuv.js} +4 -4
- package/dist/duplicate-jsx-worker.js +17 -10
- package/dist/{exit-gracefully-BMgB2pVu.js → exit-gracefully-cCXyQl3i.js} +6 -6
- package/dist/{handle-error-CoIUQwLf.js → handle-error-lgLxrA8y.js} +6 -6
- package/dist/index.d.ts +20 -2
- package/dist/index.js +247 -41
- package/dist/{inspect-D4QLdCtm.js → inspect-Bb1HyA7w.js} +16 -16
- package/dist/{install-R6-fv9t4.js → install-Ctq7ew69.js} +10 -10
- package/dist/{install-doctor-script-D9-Bdbx6.js → install-doctor-script-C8URs5z8.js} +5 -5
- package/dist/{install-github-workflow-B01vSPPa.js → install-github-workflow-4uZez_Ux.js} +6 -6
- package/dist/{install-react-doctor-DZnPIaiY.js → install-react-doctor-z8YCZ_ln.js} +9 -9
- package/dist/{is-cache-globally-disabled-af0VF8nQ.js → is-cache-globally-disabled-CveNGcRi.js} +4 -4
- package/dist/{jsx-runtime-D_p1BwrV.js → jsx-runtime-DGgjHKxp.js} +6 -6
- package/dist/oxlint-worker.js +1 -1
- package/dist/{print-branded-header-BegpykMJ.js → print-branded-header-DMHPLUaY.js} +4 -4
- package/dist/project-analysis-worker.js +1 -1
- package/dist/{prompt-runtime-scan-url-OIHMChS6.js → prompt-runtime-scan-url-Bjf8oUgu.js} +5 -5
- package/dist/{read-object-file-Bd06Y-EV.js → read-object-file-1GYa4MDG.js} +4 -4
- package/dist/{record-metric-5SPbuLyj.js → record-metric-9Q_AofQZ.js} +232 -43
- package/dist/{report-error-DayUUIc-.js → report-error-D8MXuEuX.js} +6 -6
- package/dist/{report-workflow-result-tdrT9lW-.js → report-workflow-result-CoKQrvw3.js} +6 -6
- package/dist/{resolve-scan-exit-code-DWrr-Xuv.js → resolve-scan-exit-code-B8M3Cm1y.js} +42 -30
- package/dist/{resolve-scope-OdFJKZGv.js → resolve-scope-mO5jhToI.js} +6 -6
- package/dist/{rules-DNgtXPXx.js → rules-DfsolVSa.js} +7 -7
- package/dist/{run-scan-app-COJWBnqC.js → run-scan-app-C_1vEytD.js} +45 -16
- package/dist/{runtime-scan-CkpS56h8.js → runtime-scan-DO6eZB9B.js} +10 -10
- package/dist/{sanitize-runtime-url-fwyTS789.js → sanitize-runtime-url-B_DTc6vp.js} +4 -4
- package/dist/{scan-iZF-ydER.js → scan-zowhHQj5.js} +10 -10
- package/dist/{should-skip-prompts-BvvlROWq.js → should-skip-prompts-DWFgbnKE.js} +4 -4
- package/dist/{should-use-tui-BjzxYIbC.js → should-use-tui-CTkAbfEk.js} +4 -4
- package/dist/skills/react-doctor/references/explain.md +26 -0
- package/dist/{start-scan-preamble-CQy0CKXS.js → start-scan-preamble-DDAT_0oB.js} +5 -5
- package/dist/start-scan-preamble.js +3 -3
- package/dist/{telemetry-runtime-DQLNzRNG.js → telemetry-runtime-CdsvqQbi.js} +13 -7
- package/dist/{version-BasyRE1W.js → version-5cBv0dgb.js} +5 -5
- package/dist/{why-ni8gAKZe.js → why-BD6q7PxE.js} +4 -4
- package/dist/{with-run-span-eDYTicUo.js → with-run-span-qr6tFfqD.js} +6 -6
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
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 { S as SENTRY_FLUSH_TIMEOUT_MS } from "./constants-
|
|
4
|
-
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]="7603664b-39f7-520e-8ff1-2da59effbe4b")}catch(e){}}();
|
|
3
|
+
import { S as SENTRY_FLUSH_TIMEOUT_MS } from "./constants-BmD_c3Yq.js";
|
|
4
|
+
import { An as buildWithScope, En as runSync, Fn as makeUnsafe, Ft as isProjectDiscoveryError, It as isReactDoctorError, J as anonymizeInPlace, Ln as void_, Pn as close, Tn as runPromise, Vn as messageFromUnknown, Wn as isErrnoException, Y as anonymizeText, _ as VERSION, a as isEnvFlagEnabled, en as scrubSensitivePaths, gn as make, i as isTelemetryEnabled, o as buildSentryScope, y as CliInputError, zt as layerObservability } from "./record-metric-9Q_AofQZ.js";
|
|
5
5
|
//#region src/cli/utils/is-environment-error.ts
|
|
6
6
|
const ENVIRONMENT_ERROR_CODES = new Set([
|
|
7
7
|
"EACCES",
|
|
@@ -164,6 +164,8 @@ const scrubSentryEvent = (event) => {
|
|
|
164
164
|
try {
|
|
165
165
|
delete event.server_name;
|
|
166
166
|
delete event.user;
|
|
167
|
+
delete event.modules;
|
|
168
|
+
if (event.debug_meta) anonymizeInPlace(event.debug_meta);
|
|
167
169
|
const device = event.contexts?.device;
|
|
168
170
|
if (device) delete device.name;
|
|
169
171
|
if (event.contexts) anonymizeInPlace(event.contexts);
|
|
@@ -178,6 +180,9 @@ const scrubSentryEvent = (event) => {
|
|
|
178
180
|
if (typeof exception.value === "string") exception.value = anonymizeText(exception.value);
|
|
179
181
|
for (const frame of exception.stacktrace?.frames ?? []) {
|
|
180
182
|
delete frame.vars;
|
|
183
|
+
delete frame.pre_context;
|
|
184
|
+
delete frame.context_line;
|
|
185
|
+
delete frame.post_context;
|
|
181
186
|
if (typeof frame.filename === "string") frame.filename = scrubSensitivePaths(frame.filename);
|
|
182
187
|
if (typeof frame.abs_path === "string") frame.abs_path = scrubSensitivePaths(frame.abs_path);
|
|
183
188
|
if (typeof frame.module === "string") frame.module = scrubSensitivePaths(frame.module);
|
|
@@ -212,13 +217,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
|
|
|
212
217
|
* uploads source-map artifacts under, so stack frames symbolicate. Honors the
|
|
213
218
|
* standard `SENTRY_RELEASE` override.
|
|
214
219
|
*/
|
|
215
|
-
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.
|
|
220
|
+
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.23-dev.05dfafe`;
|
|
216
221
|
/**
|
|
217
222
|
* Deployment environment shown in Sentry's environment filter. Defaults to
|
|
218
223
|
* `production` for tagged releases and `development` for dev/unbuilt versions,
|
|
219
224
|
* overridable via the standard `SENTRY_ENVIRONMENT` env var.
|
|
220
225
|
*/
|
|
221
|
-
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.
|
|
226
|
+
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.23-dev.05dfafe") ? "development" : "production");
|
|
222
227
|
//#endregion
|
|
223
228
|
//#region src/instrument.ts
|
|
224
229
|
let sentryPromise = null;
|
|
@@ -251,6 +256,7 @@ const initializeSentryModule = (Sentry) => {
|
|
|
251
256
|
release: resolveSentryRelease(),
|
|
252
257
|
environment: resolveSentryEnvironment(),
|
|
253
258
|
sendDefaultPii: false,
|
|
259
|
+
integrations: (integrations) => integrations.filter((integration) => integration.name !== "ContextLines" && integration.name !== "Modules"),
|
|
254
260
|
tracesSampleRate: 0,
|
|
255
261
|
registerEsmLoaderHooks: false,
|
|
256
262
|
debug: isEnvFlagEnabled(process.env.SENTRY_DEBUG),
|
|
@@ -396,5 +402,5 @@ const shutdownTelemetry = async () => {
|
|
|
396
402
|
//#endregion
|
|
397
403
|
export { initializeSentry as a, isNpmCacheCorruptionError as c, getSentry as i, formatEnvironmentError as l, shutdownTelemetry as n, isExpectedUserError as o, flushSentry as r, formatNpmCacheCorruptionError as s, getTelemetryContext as t, isEnvironmentError as u };
|
|
398
404
|
|
|
399
|
-
//# sourceMappingURL=telemetry-runtime-
|
|
400
|
-
//# debugId=
|
|
405
|
+
//# sourceMappingURL=telemetry-runtime-CdsvqQbi.js.map
|
|
406
|
+
//# debugId=7603664b-39f7-520e-8ff1-2da59effbe4b
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { u as METRIC } from "./constants-
|
|
4
|
-
import { _ as VERSION, t as recordCount } 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]="e4cf10dd-4a6e-59eb-972d-1e490940e748")}catch(e){}}();
|
|
3
|
+
import { u as METRIC } from "./constants-BmD_c3Yq.js";
|
|
4
|
+
import { _ as VERSION, t as recordCount } from "./record-metric-9Q_AofQZ.js";
|
|
5
5
|
//#region src/cli/commands/version.ts
|
|
6
6
|
/**
|
|
7
7
|
* oclif-style version line. 12-factor CLI Apps (#3, "What version am I
|
|
@@ -18,5 +18,5 @@ const versionAction = () => {
|
|
|
18
18
|
//#endregion
|
|
19
19
|
export { versionAction };
|
|
20
20
|
|
|
21
|
-
//# sourceMappingURL=version-
|
|
22
|
-
//# debugId=
|
|
21
|
+
//# sourceMappingURL=version-5cBv0dgb.js.map
|
|
22
|
+
//# debugId=e4cf10dd-4a6e-59eb-972d-1e490940e748
|
|
@@ -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]="ba1c5ddc-f130-521a-9bd9-084b095ae358")}catch(e){}}();
|
|
3
|
+
import { t as inspectAction } from "./inspect-Bb1HyA7w.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-BD6q7PxE.js.map
|
|
21
|
+
//# debugId=ba1c5ddc-f130-521a-9bd9-084b095ae358
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { p as NANOSECONDS_PER_MILLISECOND } from "./constants-
|
|
4
|
-
import {
|
|
5
|
-
import { t as getTelemetryContext } from "./telemetry-runtime-
|
|
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]="44373a3f-29bd-55cd-9b81-c94abdcb3ec8")}catch(e){}}();
|
|
3
|
+
import { p as NANOSECONDS_PER_MILLISECOND } from "./constants-BmD_c3Yq.js";
|
|
4
|
+
import { Cn as provideContext, En as runSync, In as fail, Ln as void_, c as setSentryProjectInfo, o as buildSentryScope, r as toSpanAttributes, s as buildSentryProjectContext, vn as makeSpan } from "./record-metric-9Q_AofQZ.js";
|
|
5
|
+
import { t as getTelemetryContext } from "./telemetry-runtime-CdsvqQbi.js";
|
|
6
6
|
import { i as setActiveRunTrace, r as recordRunTraceId } from "./active-run-trace-Dewycxda.js";
|
|
7
7
|
//#region src/cli/utils/with-run-span.ts
|
|
8
8
|
/**
|
|
@@ -107,5 +107,5 @@ const recordSentryProjectContext = (projectInfo, rootSpan, options = {}) => {
|
|
|
107
107
|
//#endregion
|
|
108
108
|
export { resetSentryRunState as n, withRunSpan as r, recordSentryProjectContext as t };
|
|
109
109
|
|
|
110
|
-
//# sourceMappingURL=with-run-span-
|
|
111
|
-
//# debugId=
|
|
110
|
+
//# sourceMappingURL=with-run-span-qr6tFfqD.js.map
|
|
111
|
+
//# debugId=44373a3f-29bd-55cd-9b81-c94abdcb3ec8
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.23-dev.05dfafe",
|
|
4
4
|
"description": "Your agent writes bad React. This catches it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"typescript": ">=5.0.4 <6",
|
|
71
71
|
"yaml": "^2.9.0",
|
|
72
72
|
"yoga-layout": "~3.2.1",
|
|
73
|
-
"oxlint-plugin-react-doctor": "0.9.
|
|
73
|
+
"oxlint-plugin-react-doctor": "0.9.23-dev.05dfafe"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@types/babel__code-frame": "^7.27.0",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"ora": "^9.4.0",
|
|
84
84
|
"react": "19.2.5",
|
|
85
85
|
"react-devtools-core": "^7.0.1",
|
|
86
|
-
"@react-doctor/api": "0.9.
|
|
87
|
-
"@react-doctor/core": "0.9.
|
|
86
|
+
"@react-doctor/api": "0.9.23",
|
|
87
|
+
"@react-doctor/core": "0.9.23"
|
|
88
88
|
},
|
|
89
89
|
"engines": {
|
|
90
90
|
"node": "^20.19.0 || >=22.13.0"
|