react-doctor 0.9.13-dev.1239043 → 0.9.13-dev.45c0df3
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/_react-doctor_require-typescript-DnwIzXJn.js +7 -0
- package/dist/{active-scan-abort-registry-DwG6tSPy.js → active-scan-abort-registry-B72ASBUh.js} +3 -3
- package/dist/build-section-divider-DUxdYc-w.js +80 -0
- package/dist/{ci-CUgNjCr-.js → ci-BwvrFxxP.js} +12 -12
- package/dist/cli.js +25 -26
- package/dist/constants-CKOk_Fa9.js +23 -0
- package/dist/{design-CX2j8ubS.js → design-kKNMVr1y.js} +4 -4
- package/dist/{devtools-CC2PAZ85.js → devtools-DOdrAPkZ.js} +3 -3
- package/dist/duplicate-jsx-worker.d.ts +1 -0
- package/dist/duplicate-jsx-worker.js +636 -0
- package/dist/{exit-gracefully-cGJM2g3O.js → exit-gracefully-rrcHzkUN.js} +7 -7
- package/dist/{get-east-asian-width-Bv2TD3Xj.js → get-east-asian-width-CM5BOEC-.js} +3 -3
- package/dist/{handle-error-BCI-Nv3P.js → handle-error-CkUL31OJ.js} +5 -5
- package/dist/index.js +2289 -1604
- package/dist/{inspect-Dq5krKWG.js → inspect-DA6s8FhA.js} +22 -20
- package/dist/{install-C0aiZKgf.js → install-6tMGZzFd.js} +9 -9
- package/dist/{install-doctor-script-CaTIms0r.js → install-doctor-script-CjJaGxqK.js} +5 -5
- package/dist/{install-github-workflow-DjPgXVqg.js → install-github-workflow-0aMzq1Ju.js} +5 -5
- package/dist/{install-react-doctor-C-PVDWXv.js → install-react-doctor-Dvq7uaam.js} +8 -8
- package/dist/{jsx-runtime-D_A4d39v.js → jsx-runtime-DmLigwoS.js} +7 -7
- package/dist/oxlint-worker.d.ts +1 -0
- package/dist/oxlint-worker.js +135 -0
- package/dist/{print-branded-header-Dz0SwyHQ.js → print-branded-header-2XLtwL_O.js} +4 -4
- package/dist/project-analysis-worker.js +452 -469
- package/dist/{prompt-runtime-scan-url-BXdY2Opw.js → prompt-runtime-scan-url-BqFheEqh.js} +5 -5
- package/dist/{read-object-file-CmMGK1uu.js → read-object-file-BC9KgyfB.js} +4 -4
- package/dist/{record-metric-B6T_Ej33.js → record-metric-DadXt-YJ.js} +1782 -1047
- package/dist/{report-error-DwL3b99q.js → report-error-RqZ4TcFp.js} +7 -7
- package/dist/{report-workflow-result-5PueDIAr.js → report-workflow-result-C-6ou3Yf.js} +5 -5
- package/dist/{resolve-scope-CTlLl7e6.js → resolve-scope-IralKJo7.js} +6 -6
- package/dist/{rules-DEbHKRag.js → rules-PiRhyXht.js} +6 -6
- package/dist/{run-scan-app-D3huvmXJ.js → run-scan-app-Bx3RR66H.js} +12 -12
- package/dist/{runtime-scan-CHFAEYg3.js → runtime-scan-CzLZG2SG.js} +11 -11
- package/dist/{sanitize-runtime-url-Bbq40iIp.js → sanitize-runtime-url-ChOwIs6Q.js} +4 -4
- package/dist/{scan-C7sCm7wi.js → scan-BsKjedB4.js} +9 -9
- package/dist/{semver-DFtnEmN-.js → semver-DlmXks31.js} +3 -3
- package/dist/{should-fail-scan-gate-CfG_ppAV.js → should-fail-scan-gate-DKuuz_Be.js} +86 -67
- package/dist/{should-skip-prompts-BuNtAVEs.js → should-skip-prompts-D49q53Ep.js} +4 -4
- package/dist/{should-use-tui-B-lCjXVG.js → should-use-tui-BSXNboYB.js} +4 -4
- package/dist/{telemetry-runtime-BF83aBFL.js → telemetry-runtime-DprfIwPW.js} +153 -5
- package/dist/unwrap-typescript-expression-CbO_6kmC.js +14 -0
- package/dist/{version-C27gr4Qj.js → version-DihZTmZU.js} +4 -4
- package/dist/{why-CYRkZ2VY.js → why-B8uIFoLE.js} +4 -4
- package/dist/{with-run-span-CdsXSJgE.js → with-run-span-JTZIIQT_.js} +5 -5
- package/package.json +4 -4
- package/dist/build-section-divider-C09RcJrc.js +0 -216
|
@@ -1,9 +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 { N as SENTRY_FLUSH_TIMEOUT_MS,
|
|
4
|
-
import { n as shutdownTelemetry,
|
|
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]="1e98afb3-97d6-519b-bc48-ed08df30c7da")}catch(e){}}();
|
|
3
|
+
import { N as SENTRY_FLUSH_TIMEOUT_MS, Qt as isReactDoctorError, T as METRIC, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-DadXt-YJ.js";
|
|
4
|
+
import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-DprfIwPW.js";
|
|
5
5
|
import { r as recordRunTraceId, t as getActiveRunTrace } from "./active-run-trace-dlIZeEvb.js";
|
|
6
|
-
import * as Sentry from "@sentry/node";
|
|
7
6
|
//#region src/cli/utils/report-error.ts
|
|
8
7
|
/**
|
|
9
8
|
* Sends an error to Sentry — enriched with a fresh snapshot of the current run
|
|
@@ -21,7 +20,8 @@ import * as Sentry from "@sentry/node";
|
|
|
21
20
|
* original error.
|
|
22
21
|
*/
|
|
23
22
|
const reportErrorToSentry = async (error) => {
|
|
24
|
-
|
|
23
|
+
const Sentry = await getSentry();
|
|
24
|
+
if (!Sentry?.isInitialized()) return void 0;
|
|
25
25
|
if (isExpectedUserError(error)) return void 0;
|
|
26
26
|
try {
|
|
27
27
|
const { tags, contexts } = buildSentryScope();
|
|
@@ -60,5 +60,5 @@ const reportErrorToSentry = async (error) => {
|
|
|
60
60
|
//#endregion
|
|
61
61
|
export { reportErrorToSentry as t };
|
|
62
62
|
|
|
63
|
-
//# sourceMappingURL=report-error-
|
|
64
|
-
//# debugId=
|
|
63
|
+
//# sourceMappingURL=report-error-RqZ4TcFp.js.map
|
|
64
|
+
//# debugId=1e98afb3-97d6-519b-bc48-ed08df30c7da
|
|
@@ -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 { O as REACT_DOCTOR_CONFIG_PROJECT_NAME, T as METRIC, t as recordCount } from "./record-metric-
|
|
4
|
-
import { u as isCommandAvailable } from "./install-github-workflow-
|
|
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]="c44c2196-4bbb-5c0d-9085-62f24097d1ce")}catch(e){}}();
|
|
3
|
+
import { O as REACT_DOCTOR_CONFIG_PROJECT_NAME, T as METRIC, t as recordCount } from "./record-metric-DadXt-YJ.js";
|
|
4
|
+
import { u as isCommandAvailable } from "./install-github-workflow-0aMzq1Ju.js";
|
|
5
5
|
import { spawn } from "node:child_process";
|
|
6
6
|
import * as path$1 from "node:path";
|
|
7
7
|
import process$1 from "node:process";
|
|
@@ -275,5 +275,5 @@ const reportWorkflowResult = (workflowSpinner, result, projectRoot) => {
|
|
|
275
275
|
//#endregion
|
|
276
276
|
export { recordGate as a, ACTION_UPGRADE_EVENT as c, INSTALL_AGENTS_PREFERENCE_ID as d, ONBOARDING_EVENT as f, detectAvailableAgents as h, readPreference as i, CI_PITCH_EVENT as l, computeDefaultSelectedAgents as m, openUrl as n, runMigrations as o, SETUP_HINT_EVENT as p, isGatePending as r, writePreference as s, reportWorkflowResult as t, HANDOFF_TARGET_PREFERENCE_ID as u };
|
|
277
277
|
|
|
278
|
-
//# sourceMappingURL=report-workflow-result-
|
|
279
|
-
//# debugId=
|
|
278
|
+
//# sourceMappingURL=report-workflow-result-C-6ou3Yf.js.map
|
|
279
|
+
//# debugId=c44c2196-4bbb-5c0d-9085-62f24097d1ce
|
|
@@ -1,9 +1,9 @@
|
|
|
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]="c701c094-9668-578e-8fa8-2577852e7363")}catch(e){}}();
|
|
3
|
+
import { Ft as filterSourceFiles, Xt as isPathInsideDirectory, or as toCanonicalPath } from "./record-metric-DadXt-YJ.js";
|
|
4
4
|
import { t as toForwardSlashes } from "./path-format-DnHpmJwG.js";
|
|
5
|
-
import { M as cliLogger } from "./install-doctor-script-
|
|
6
|
-
import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-
|
|
5
|
+
import { M as cliLogger } from "./install-doctor-script-CjJaGxqK.js";
|
|
6
|
+
import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-0aMzq1Ju.js";
|
|
7
7
|
import * as path$1 from "node:path";
|
|
8
8
|
//#region src/cli/utils/open-workflow-pull-request.ts
|
|
9
9
|
const NEW_BRANCH_PREFIX = "react-doctor/add-github-actions";
|
|
@@ -333,5 +333,5 @@ const finalizeScope = async ({ requested, diffInfo, skipPrompts, isQuiet }) => {
|
|
|
333
333
|
//#endregion
|
|
334
334
|
export { isValidBlockingLevel as a, openWorkflowPullRequest as c, warnDeprecatedDiff as i, stageWorkflowFile as l, isScopeValue as n, pickBlockingLevel as o, resolveScope as r, resolveBlockingLevel as s, finalizeScope as t };
|
|
335
335
|
|
|
336
|
-
//# sourceMappingURL=resolve-scope-
|
|
337
|
-
//# debugId=
|
|
336
|
+
//# sourceMappingURL=resolve-scope-IralKJo7.js.map
|
|
337
|
+
//# debugId=c701c094-9668-578e-8fa8-2577852e7363
|
|
@@ -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 {
|
|
4
|
-
import { M as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-
|
|
5
|
-
import { t as readObjectFile } from "./read-object-file-
|
|
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]="76170a78-fd0d-5d58-9ca4-db166ce43cc3")}catch(e){}}();
|
|
3
|
+
import { $t as isSameRuleKey, Ct as clearConfigCache, Jt as highlighter, Sn as validateConfigTypes, T as METRIC, Ut as getEquivalentRuleKeys, _t as buildRuleDocsUrl, an as loadConfigWithSource, dr as COMPILER_CLEANUP_BUCKET, fr as COMPILER_CLEANUP_RULE_KEYS, ir as isPlainObject, t as recordCount } from "./record-metric-DadXt-YJ.js";
|
|
4
|
+
import { M as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-CjJaGxqK.js";
|
|
5
|
+
import { t as readObjectFile } from "./read-object-file-BC9KgyfB.js";
|
|
6
6
|
import * as path$1 from "node:path";
|
|
7
7
|
import * as fs$1 from "node:fs";
|
|
8
8
|
import { REACT_DOCTOR_RULES } from "oxlint-plugin-react-doctor/core";
|
|
@@ -577,5 +577,5 @@ const rulesUnignoreTagAction = async (tag, options) => {
|
|
|
577
577
|
//#endregion
|
|
578
578
|
export { rulesCategoryAction, rulesDisableAction, rulesEnableAction, rulesExplainAction, rulesIgnoreTagAction, rulesListAction, rulesSetAction, rulesUnignoreTagAction };
|
|
579
579
|
|
|
580
|
-
//# sourceMappingURL=rules-
|
|
581
|
-
//# debugId=
|
|
580
|
+
//# sourceMappingURL=rules-PiRhyXht.js.map
|
|
581
|
+
//# debugId=76170a78-fd0d-5d58-9ca4-db166ce43cc3
|
|
@@ -1,13 +1,13 @@
|
|
|
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 { Bn as
|
|
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]="c8f9e261-e88c-537a-a373-2bfe7217b372")}catch(e){}}();
|
|
3
|
+
import { Bn as runPromise, Bt as getChangedLineRanges, C as CI_TRUST_COMPANIES, Dr as getCategoryImpact, G as isCiEnvironment, Gt as hasPublishedFixRecipe, Hn as sync, Ht as getDiffInfo, Jn as succeed, Jt as highlighter, L as TUI_REPORT_COMPACT_MAX_ROWS, R as TUI_REPORT_DETAIL_WIDTH_FRACTION, T as METRIC, V as isGitHookEnvironment, Wn as void_, _r as GITHUB_ACTIONS_SETUP_URL, _t as buildRuleDocsUrl, bt as calculateScore, ct as Reporter, er as yieldToEventLoop, ln as remainingDeadlineBudgetMs, mn as resolveScanTarget, mr as DIAGNOSTIC_CATEGORY_BUCKETS, n as recordDistribution, on as mapWithConcurrency, ot as Progress, t as recordCount, zt as getBaselineDiffPlan } from "./record-metric-DadXt-YJ.js";
|
|
4
4
|
import { t as toForwardSlashes } from "./path-format-DnHpmJwG.js";
|
|
5
|
-
import { M as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-
|
|
6
|
-
import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-
|
|
7
|
-
import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-
|
|
8
|
-
import { A as createInvocationInspect, B as hasIncompleteScoreAnalysis, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, F as formatSkippedCheckLabel, G as
|
|
9
|
-
import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-
|
|
10
|
-
import { a as useExitOnCtrlC, c as Spinner, d as useInput, f as Transform, h as Box, i as import_react, l as useStdout, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime, u as useApp } from "./jsx-runtime-
|
|
5
|
+
import { M as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-CjJaGxqK.js";
|
|
6
|
+
import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-0aMzq1Ju.js";
|
|
7
|
+
import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-IralKJo7.js";
|
|
8
|
+
import { A as createInvocationInspect, B as hasIncompleteScoreAnalysis, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, F as formatSkippedCheckLabel, G as hasLintHardFailure, H as buildNoScoreMessage, I as formatElapsedTime, J as formatFixRecipeLine, K as buildRulePriorityMap, L as printFooter, M as resolveMergeBaseRef, O as collectProjectSourceFiles, P as pluralize, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, Y as formatLearnMoreLine, _ as retryMissingProjectScores, b as filterScansForSurface, c as partitionProjectScanOutcomes, d as buildCodeFrame, f as resolveProjectScan, h as resolveProjectSourceFilePaths, i as validateIncludeUntrackedScope, k as deduplicateProjectScans, l as discoverWorkspacePackages, m as resolveProjectDiffIncludePaths, n as formatSkippedProjectsMessage, o as resolveExcludedProjectDirectories, p as resolveProjectChangedLineRanges, q as buildSortedRuleGroups, s as projectManifestChanged, t as shouldFailScanGate, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions, z as formatDiagnosticSite } from "./should-fail-scan-gate-DKuuz_Be.js";
|
|
9
|
+
import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-C-6ou3Yf.js";
|
|
10
|
+
import { a as useExitOnCtrlC, c as Spinner, d as useInput, f as Transform, h as Box, i as import_react, l as useStdout, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime, u as useApp } from "./jsx-runtime-DmLigwoS.js";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
import { performance } from "node:perf_hooks";
|
|
13
13
|
import isUnicodeSupported from "is-unicode-supported";
|
|
@@ -2362,7 +2362,7 @@ const runMultiProjectScan = async (rootScanTarget, directories, workspaceProject
|
|
|
2362
2362
|
});
|
|
2363
2363
|
context.store.setProgress(`Scanning ${projectCount} projects…`);
|
|
2364
2364
|
await yieldToEventLoop();
|
|
2365
|
-
const
|
|
2365
|
+
const precomputedSourceFiles = scopePlan.scope === "full" ? await collectProjectSourceFiles(rootDirectory, projectScans.map(({ projectScan }) => projectScan.directory)) : null;
|
|
2366
2366
|
const { completedScans, skippedScans } = partitionProjectScanOutcomes(await mapWithConcurrency(projectScans, 4, async ({ projectScan, scopeOptions }) => {
|
|
2367
2367
|
if (input.options?.deadlineEpochMs !== void 0 && remainingDeadlineBudgetMs(input.options.deadlineEpochMs) === 0) {
|
|
2368
2368
|
finishedCount += 1;
|
|
@@ -2386,7 +2386,7 @@ const runMultiProjectScan = async (rootScanTarget, directories, workspaceProject
|
|
|
2386
2386
|
isCi: isCiEnvironment(),
|
|
2387
2387
|
configOverride: projectScan.config,
|
|
2388
2388
|
configSourceDirectory: projectScan.configSourceDirectory ?? void 0,
|
|
2389
|
-
|
|
2389
|
+
precomputedSourceFiles: precomputedSourceFiles?.get(projectScan.directory),
|
|
2390
2390
|
uiLayers: {
|
|
2391
2391
|
reporter: Reporter.layerNoop,
|
|
2392
2392
|
progress: progressLayerForStore(context.store, {
|
|
@@ -2513,5 +2513,5 @@ const runScanApp = async (input) => {
|
|
|
2513
2513
|
//#endregion
|
|
2514
2514
|
export { runScanApp };
|
|
2515
2515
|
|
|
2516
|
-
//# sourceMappingURL=run-scan-app-
|
|
2517
|
-
//# debugId=
|
|
2516
|
+
//# sourceMappingURL=run-scan-app-Bx3RR66H.js.map
|
|
2517
|
+
//# debugId=c8f9e261-e88c-537a-a373-2bfe7217b372
|
|
@@ -1,16 +1,16 @@
|
|
|
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 {
|
|
4
|
-
import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-
|
|
5
|
-
import { t as reportErrorToSentry } from "./report-error-
|
|
6
|
-
import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-
|
|
7
|
-
import { _ as RUNTIME_SCAN_SNAPSHOT_TIMEOUT_MS, b as RUNTIME_SCAN_TRACING_COMPLETE_TIMEOUT_MS, f as RUNTIME_SCAN_PROBE_RELATIVE_PATH, g as RUNTIME_SCAN_SAFE_CDP_PAGE_URLS, h as RUNTIME_SCAN_PROBE_SNAPSHOT_TOKEN_PLACEHOLDER, l as RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES, m as RUNTIME_SCAN_PROBE_SNAPSHOT_BINDING_NAME_PLACEHOLDER, n as RUNTIME_SCAN_BROWSER_WIDTH_PX, o as RUNTIME_SCAN_MAX_COMPONENT_EVENTS, p as RUNTIME_SCAN_PROBE_SNAPSHOT_ATTRIBUTE_NAME_PLACEHOLDER, r as RUNTIME_SCAN_CONTROL_CHARACTERS_PATTERN, s as RUNTIME_SCAN_MAX_RECORDING_DURATION_MS, t as sanitizeRuntimeUrl, v as RUNTIME_SCAN_TRACE_CATEGORIES, y as RUNTIME_SCAN_TRACE_FILE_EXTENSION } from "./sanitize-runtime-url-
|
|
8
|
-
import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-
|
|
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]="20dd09bb-f938-57ff-b074-d58c4b531a31")}catch(e){}}();
|
|
3
|
+
import { Jt as highlighter, T as METRIC, t as recordCount, u as enableJsonMode, z as CliInputError } from "./record-metric-DadXt-YJ.js";
|
|
4
|
+
import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-B72ASBUh.js";
|
|
5
|
+
import { t as reportErrorToSentry } from "./report-error-RqZ4TcFp.js";
|
|
6
|
+
import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-JTZIIQT_.js";
|
|
7
|
+
import { _ as RUNTIME_SCAN_SNAPSHOT_TIMEOUT_MS, b as RUNTIME_SCAN_TRACING_COMPLETE_TIMEOUT_MS, f as RUNTIME_SCAN_PROBE_RELATIVE_PATH, g as RUNTIME_SCAN_SAFE_CDP_PAGE_URLS, h as RUNTIME_SCAN_PROBE_SNAPSHOT_TOKEN_PLACEHOLDER, l as RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES, m as RUNTIME_SCAN_PROBE_SNAPSHOT_BINDING_NAME_PLACEHOLDER, n as RUNTIME_SCAN_BROWSER_WIDTH_PX, o as RUNTIME_SCAN_MAX_COMPONENT_EVENTS, p as RUNTIME_SCAN_PROBE_SNAPSHOT_ATTRIBUTE_NAME_PLACEHOLDER, r as RUNTIME_SCAN_CONTROL_CHARACTERS_PATTERN, s as RUNTIME_SCAN_MAX_RECORDING_DURATION_MS, t as sanitizeRuntimeUrl, v as RUNTIME_SCAN_TRACE_CATEGORIES, y as RUNTIME_SCAN_TRACE_FILE_EXTENSION } from "./sanitize-runtime-url-ChOwIs6Q.js";
|
|
8
|
+
import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-BSXNboYB.js";
|
|
9
9
|
import * as path$1 from "node:path";
|
|
10
10
|
import * as fs$1 from "node:fs";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
|
-
import * as os$1 from "node:os";
|
|
13
12
|
import * as fsp from "node:fs/promises";
|
|
13
|
+
import * as os$1 from "node:os";
|
|
14
14
|
import { createGzip } from "node:zlib";
|
|
15
15
|
import { performance } from "node:perf_hooks";
|
|
16
16
|
import { pipeline } from "node:stream/promises";
|
|
@@ -719,7 +719,7 @@ const resolveRuntimeScanUrl = async (url) => {
|
|
|
719
719
|
if (url !== void 0) return url;
|
|
720
720
|
if (!isTuiEnvironmentSupported(resolveTuiEnvironment(process.stderr.isTTY === true))) throw new CliInputError("A URL is required outside an interactive terminal. Run `react-doctor scan <url>`.");
|
|
721
721
|
recordCount(METRIC.runtimeScanUrlPromptShown);
|
|
722
|
-
const { promptRuntimeScanUrl } = await import("./prompt-runtime-scan-url-
|
|
722
|
+
const { promptRuntimeScanUrl } = await import("./prompt-runtime-scan-url-BqFheEqh.js");
|
|
723
723
|
return promptRuntimeScanUrl();
|
|
724
724
|
};
|
|
725
725
|
const runtimeScanAction = async (url, flags) => {
|
|
@@ -766,5 +766,5 @@ const runtimeScanAction = async (url, flags) => {
|
|
|
766
766
|
//#endregion
|
|
767
767
|
export { runtimeScanAction };
|
|
768
768
|
|
|
769
|
-
//# sourceMappingURL=runtime-scan-
|
|
770
|
-
//# debugId=
|
|
769
|
+
//# sourceMappingURL=runtime-scan-CzLZG2SG.js.map
|
|
770
|
+
//# debugId=20dd09bb-f938-57ff-b074-d58c4b531a31
|
|
@@ -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 { z as CliInputError } 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]="cd646a83-8a82-55dd-9fd6-7810912fb44e")}catch(e){}}();
|
|
3
|
+
import { z as CliInputError } from "./record-metric-DadXt-YJ.js";
|
|
4
4
|
//#region src/cli/runtime-scan/constants.ts
|
|
5
5
|
const RUNTIME_SCAN_MAX_COMPONENT_EVENTS = 2e3;
|
|
6
6
|
const RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES = 5 * 1024 * 1024;
|
|
@@ -72,5 +72,5 @@ const sanitizeRuntimeUrl = (rawUrl) => {
|
|
|
72
72
|
//#endregion
|
|
73
73
|
export { RUNTIME_SCAN_SNAPSHOT_TIMEOUT_MS as _, RUNTIME_SCAN_LOCAL_DEV_PORTS as a, RUNTIME_SCAN_TRACING_COMPLETE_TIMEOUT_MS as b, RUNTIME_SCAN_MAX_SNAPSHOT_BYTES as c, RUNTIME_SCAN_MAX_TRACE_BYTES as d, RUNTIME_SCAN_PROBE_RELATIVE_PATH as f, RUNTIME_SCAN_SAFE_CDP_PAGE_URLS as g, RUNTIME_SCAN_PROBE_SNAPSHOT_TOKEN_PLACEHOLDER as h, RUNTIME_SCAN_LAYOUT_THRASH_RATIO as i, RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES as l, RUNTIME_SCAN_PROBE_SNAPSHOT_BINDING_NAME_PLACEHOLDER as m, RUNTIME_SCAN_BROWSER_WIDTH_PX as n, RUNTIME_SCAN_MAX_COMPONENT_EVENTS as o, RUNTIME_SCAN_PROBE_SNAPSHOT_ATTRIBUTE_NAME_PLACEHOLDER as p, RUNTIME_SCAN_CONTROL_CHARACTERS_PATTERN as r, RUNTIME_SCAN_MAX_RECORDING_DURATION_MS as s, sanitizeRuntimeUrl as t, RUNTIME_SCAN_MAX_STRING_LENGTH as u, RUNTIME_SCAN_TRACE_CATEGORIES as v, RUNTIME_SCAN_TRACE_FILE_EXTENSION as y };
|
|
74
74
|
|
|
75
|
-
//# sourceMappingURL=sanitize-runtime-url-
|
|
76
|
-
//# debugId=
|
|
75
|
+
//# sourceMappingURL=sanitize-runtime-url-ChOwIs6Q.js.map
|
|
76
|
+
//# debugId=cd646a83-8a82-55dd-9fd6-7810912fb44e
|
|
@@ -1,10 +1,10 @@
|
|
|
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 METRIC,
|
|
4
|
-
import { i as warnDeprecatedDiff } from "./resolve-scope-
|
|
5
|
-
import { a as validateModeFlags, r as validateFilePathSelectionFlags, y as resolveCliInspectOptions } from "./should-fail-scan-gate-
|
|
6
|
-
import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-
|
|
7
|
-
import { n as shouldUseTui, r as resolveTuiEnvironment } from "./should-use-tui-
|
|
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]="5cf94bc2-d4f8-5e5f-afaf-f9eeebffc7b7")}catch(e){}}();
|
|
3
|
+
import { T as METRIC, mn as resolveScanTarget, t as recordCount } from "./record-metric-DadXt-YJ.js";
|
|
4
|
+
import { i as warnDeprecatedDiff } from "./resolve-scope-IralKJo7.js";
|
|
5
|
+
import { a as validateModeFlags, r as validateFilePathSelectionFlags, y as resolveCliInspectOptions } from "./should-fail-scan-gate-DKuuz_Be.js";
|
|
6
|
+
import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-DA6s8FhA.js";
|
|
7
|
+
import { n as shouldUseTui, r as resolveTuiEnvironment } from "./should-use-tui-BSXNboYB.js";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
//#region src/cli/commands/scan.ts
|
|
10
10
|
const runScanCommand = async (input) => {
|
|
@@ -28,7 +28,7 @@ const runScanCommand = async (input) => {
|
|
|
28
28
|
warnDeprecatedFailOn(input.flags, scanTarget.userConfig);
|
|
29
29
|
warnDeprecatedDiff(input.flags, scanTarget.userConfig);
|
|
30
30
|
recordCount(METRIC.cliInvoked, 1, { command: input.invocationCommand });
|
|
31
|
-
const { runScanApp } = await import("./run-scan-app-
|
|
31
|
+
const { runScanApp } = await import("./run-scan-app-Bx3RR66H.js");
|
|
32
32
|
const { shouldFail } = await runScanApp({
|
|
33
33
|
directory: input.directory,
|
|
34
34
|
scanTarget,
|
|
@@ -43,5 +43,5 @@ const runScanCommand = async (input) => {
|
|
|
43
43
|
//#endregion
|
|
44
44
|
export { runScanCommand };
|
|
45
45
|
|
|
46
|
-
//# sourceMappingURL=scan-
|
|
47
|
-
//# debugId=
|
|
46
|
+
//# sourceMappingURL=scan-BsKjedB4.js.map
|
|
47
|
+
//# debugId=5cf94bc2-d4f8-5e5f-afaf-f9eeebffc7b7
|
|
@@ -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]="5d8e40f7-4111-5236-adfc-3b597f28e1e3")}catch(e){}}();
|
|
3
3
|
import { t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/constants.js
|
|
5
5
|
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -3215,5 +3215,5 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3215
3215
|
//#endregion
|
|
3216
3216
|
export { require_picomatch as n, require_semver as t };
|
|
3217
3217
|
|
|
3218
|
-
//# sourceMappingURL=semver-
|
|
3219
|
-
//# debugId=
|
|
3218
|
+
//# sourceMappingURL=semver-DlmXks31.js.map
|
|
3219
|
+
//# debugId=5d8e40f7-4111-5236-adfc-3b597f28e1e3
|