react-doctor 0.7.5-dev.dbd4067 → 0.7.5
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 -16
- package/dist/index.js +4 -13
- package/dist/lsp.js +4 -13
- package/package.json +5 -5
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]="26168f4d-471c-5b49-bec9-5b2ac01d7cd5")}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";
|
|
@@ -42404,7 +42404,7 @@ const resolveReactHooksJsPlugin = (hasReactCompiler, customRulesOnly) => {
|
|
|
42404
42404
|
} catch {
|
|
42405
42405
|
return null;
|
|
42406
42406
|
}
|
|
42407
|
-
const { ruleNames } = readPluginShape(pluginSpecifier, (
|
|
42407
|
+
const { ruleNames } = readPluginShape(pluginSpecifier, (spec) => bundledRequire$1(spec));
|
|
42408
42408
|
return {
|
|
42409
42409
|
entry: {
|
|
42410
42410
|
name: "react-hooks-js",
|
|
@@ -43692,11 +43692,6 @@ const buildOxlintChildEnv = (sourceEnv) => {
|
|
|
43692
43692
|
if (!isCompileCacheDisabled && !isCompileCacheAlreadySet) childEnv.NODE_COMPILE_CACHE = Path.join(os.tmpdir(), NODE_COMPILE_CACHE_DIR_NAME);
|
|
43693
43693
|
return childEnv;
|
|
43694
43694
|
};
|
|
43695
|
-
const buildProfiledNodeArguments = (input) => [
|
|
43696
|
-
...input.cpuProfileDirectory ? ["--cpu-prof", `--cpu-prof-dir=${input.cpuProfileDirectory}`] : [],
|
|
43697
|
-
...input.heapProfileDirectory ? ["--heap-prof", `--heap-prof-dir=${input.heapProfileDirectory}`] : [],
|
|
43698
|
-
...input.argumentsList
|
|
43699
|
-
];
|
|
43700
43695
|
const SANITIZED_ENV = buildOxlintChildEnv(process.env);
|
|
43701
43696
|
/**
|
|
43702
43697
|
* Spawn one oxlint subprocess with hard ceilings on wall time and
|
|
@@ -43721,11 +43716,7 @@ const spawnOxlint = (args, rootDirectory, nodeBinaryPath, spawnTimeoutMs = OXLIN
|
|
|
43721
43716
|
reject(new ReactDoctorError({ reason: new OxlintSpawnFailed({ cause: "lint phase aborted" }) }));
|
|
43722
43717
|
return;
|
|
43723
43718
|
}
|
|
43724
|
-
const child = spawn(nodeBinaryPath,
|
|
43725
|
-
argumentsList: args,
|
|
43726
|
-
cpuProfileDirectory: SANITIZED_ENV.REACT_DOCTOR_CPU_PROFILE_DIR,
|
|
43727
|
-
heapProfileDirectory: SANITIZED_ENV.REACT_DOCTOR_HEAP_PROFILE_DIR
|
|
43728
|
-
}), {
|
|
43719
|
+
const child = spawn(nodeBinaryPath, args, {
|
|
43729
43720
|
cwd: rootDirectory,
|
|
43730
43721
|
env: SANITIZED_ENV,
|
|
43731
43722
|
stdio: [
|
|
@@ -46638,7 +46629,7 @@ const makeNoopConsole = () => ({
|
|
|
46638
46629
|
});
|
|
46639
46630
|
//#endregion
|
|
46640
46631
|
//#region src/cli/utils/version.ts
|
|
46641
|
-
const VERSION = "0.7.5
|
|
46632
|
+
const VERSION = "0.7.5";
|
|
46642
46633
|
//#endregion
|
|
46643
46634
|
//#region src/cli/utils/json-mode.ts
|
|
46644
46635
|
let context = null;
|
|
@@ -47007,13 +46998,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
|
|
|
47007
46998
|
* uploads source-map artifacts under, so stack frames symbolicate. Honors the
|
|
47008
46999
|
* standard `SENTRY_RELEASE` override.
|
|
47009
47000
|
*/
|
|
47010
|
-
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.7.5
|
|
47001
|
+
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.7.5`;
|
|
47011
47002
|
/**
|
|
47012
47003
|
* Deployment environment shown in Sentry's environment filter. Defaults to
|
|
47013
47004
|
* `production` for tagged releases and `development` for dev/unbuilt versions,
|
|
47014
47005
|
* overridable via the standard `SENTRY_ENVIRONMENT` env var.
|
|
47015
47006
|
*/
|
|
47016
|
-
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.7.5
|
|
47007
|
+
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.7.5") ? "development" : "production");
|
|
47017
47008
|
/**
|
|
47018
47009
|
* Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
|
|
47019
47010
|
* (set to `0` to disable tracing) and falls back to
|
|
@@ -65202,4 +65193,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
|
|
|
65202
65193
|
export {};
|
|
65203
65194
|
|
|
65204
65195
|
//# sourceMappingURL=cli.js.map
|
|
65205
|
-
//# debugId=
|
|
65196
|
+
//# debugId=26168f4d-471c-5b49-bec9-5b2ac01d7cd5
|
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]="ab586686-464c-58e6-a96d-70f7b39b1c5d")}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 reactDoctorPlugin, { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, FRAMEWORK_SPECIFIC_RULE_KEYS, FRAMEWORK_TOKENS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_RULES, REACT_DOCTOR_RULES, classifySecurityScanFile, collectCrossFileDependencyProbes, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor";
|
|
@@ -39161,7 +39161,7 @@ const resolveReactHooksJsPlugin = (hasReactCompiler, customRulesOnly) => {
|
|
|
39161
39161
|
} catch {
|
|
39162
39162
|
return null;
|
|
39163
39163
|
}
|
|
39164
|
-
const { ruleNames } = readPluginShape(pluginSpecifier, (
|
|
39164
|
+
const { ruleNames } = readPluginShape(pluginSpecifier, (spec) => bundledRequire$1(spec));
|
|
39165
39165
|
return {
|
|
39166
39166
|
entry: {
|
|
39167
39167
|
name: "react-hooks-js",
|
|
@@ -40449,11 +40449,6 @@ const buildOxlintChildEnv = (sourceEnv) => {
|
|
|
40449
40449
|
if (!isCompileCacheDisabled && !isCompileCacheAlreadySet) childEnv.NODE_COMPILE_CACHE = Path.join(os.tmpdir(), NODE_COMPILE_CACHE_DIR_NAME);
|
|
40450
40450
|
return childEnv;
|
|
40451
40451
|
};
|
|
40452
|
-
const buildProfiledNodeArguments = (input) => [
|
|
40453
|
-
...input.cpuProfileDirectory ? ["--cpu-prof", `--cpu-prof-dir=${input.cpuProfileDirectory}`] : [],
|
|
40454
|
-
...input.heapProfileDirectory ? ["--heap-prof", `--heap-prof-dir=${input.heapProfileDirectory}`] : [],
|
|
40455
|
-
...input.argumentsList
|
|
40456
|
-
];
|
|
40457
40452
|
const SANITIZED_ENV = buildOxlintChildEnv(process.env);
|
|
40458
40453
|
/**
|
|
40459
40454
|
* Spawn one oxlint subprocess with hard ceilings on wall time and
|
|
@@ -40478,11 +40473,7 @@ const spawnOxlint = (args, rootDirectory, nodeBinaryPath, spawnTimeoutMs = OXLIN
|
|
|
40478
40473
|
reject(new ReactDoctorError({ reason: new OxlintSpawnFailed({ cause: "lint phase aborted" }) }));
|
|
40479
40474
|
return;
|
|
40480
40475
|
}
|
|
40481
|
-
const child = spawn(nodeBinaryPath,
|
|
40482
|
-
argumentsList: args,
|
|
40483
|
-
cpuProfileDirectory: SANITIZED_ENV.REACT_DOCTOR_CPU_PROFILE_DIR,
|
|
40484
|
-
heapProfileDirectory: SANITIZED_ENV.REACT_DOCTOR_HEAP_PROFILE_DIR
|
|
40485
|
-
}), {
|
|
40476
|
+
const child = spawn(nodeBinaryPath, args, {
|
|
40486
40477
|
cwd: rootDirectory,
|
|
40487
40478
|
env: SANITIZED_ENV,
|
|
40488
40479
|
stdio: [
|
|
@@ -43181,4 +43172,4 @@ const toJsonReport = (result, options) => buildJsonReport({
|
|
|
43181
43172
|
export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
|
|
43182
43173
|
|
|
43183
43174
|
//# sourceMappingURL=index.js.map
|
|
43184
|
-
//# debugId=
|
|
43175
|
+
//# debugId=ab586686-464c-58e6-a96d-70f7b39b1c5d
|
package/dist/lsp.js
CHANGED
|
@@ -39139,7 +39139,7 @@ const resolveReactHooksJsPlugin = (hasReactCompiler, customRulesOnly) => {
|
|
|
39139
39139
|
} catch {
|
|
39140
39140
|
return null;
|
|
39141
39141
|
}
|
|
39142
|
-
const { ruleNames } = readPluginShape(pluginSpecifier, (
|
|
39142
|
+
const { ruleNames } = readPluginShape(pluginSpecifier, (spec) => bundledRequire$1(spec));
|
|
39143
39143
|
return {
|
|
39144
39144
|
entry: {
|
|
39145
39145
|
name: "react-hooks-js",
|
|
@@ -40427,11 +40427,6 @@ const buildOxlintChildEnv = (sourceEnv) => {
|
|
|
40427
40427
|
if (!isCompileCacheDisabled && !isCompileCacheAlreadySet) childEnv.NODE_COMPILE_CACHE = Path.join(os.tmpdir(), NODE_COMPILE_CACHE_DIR_NAME);
|
|
40428
40428
|
return childEnv;
|
|
40429
40429
|
};
|
|
40430
|
-
const buildProfiledNodeArguments = (input) => [
|
|
40431
|
-
...input.cpuProfileDirectory ? ["--cpu-prof", `--cpu-prof-dir=${input.cpuProfileDirectory}`] : [],
|
|
40432
|
-
...input.heapProfileDirectory ? ["--heap-prof", `--heap-prof-dir=${input.heapProfileDirectory}`] : [],
|
|
40433
|
-
...input.argumentsList
|
|
40434
|
-
];
|
|
40435
40430
|
const SANITIZED_ENV = buildOxlintChildEnv(process.env);
|
|
40436
40431
|
/**
|
|
40437
40432
|
* Spawn one oxlint subprocess with hard ceilings on wall time and
|
|
@@ -40456,11 +40451,7 @@ const spawnOxlint = (args, rootDirectory, nodeBinaryPath, spawnTimeoutMs = OXLIN
|
|
|
40456
40451
|
reject(new ReactDoctorError({ reason: new OxlintSpawnFailed({ cause: "lint phase aborted" }) }));
|
|
40457
40452
|
return;
|
|
40458
40453
|
}
|
|
40459
|
-
const child = spawn(nodeBinaryPath,
|
|
40460
|
-
argumentsList: args,
|
|
40461
|
-
cpuProfileDirectory: SANITIZED_ENV.REACT_DOCTOR_CPU_PROFILE_DIR,
|
|
40462
|
-
heapProfileDirectory: SANITIZED_ENV.REACT_DOCTOR_HEAP_PROFILE_DIR
|
|
40463
|
-
}), {
|
|
40454
|
+
const child = spawn(nodeBinaryPath, args, {
|
|
40464
40455
|
cwd: rootDirectory,
|
|
40465
40456
|
env: SANITIZED_ENV,
|
|
40466
40457
|
stdio: [
|
|
@@ -44825,5 +44816,5 @@ const startLanguageServer = () => {
|
|
|
44825
44816
|
};
|
|
44826
44817
|
//#endregion
|
|
44827
44818
|
export { startLanguageServer };
|
|
44828
|
-
!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]="
|
|
44829
|
-
//# debugId=
|
|
44819
|
+
!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]="c7260006-9441-53b6-807e-078a5823b211")}catch(e){}}();
|
|
44820
|
+
//# debugId=c7260006-9441-53b6-807e-078a5823b211
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.7.5
|
|
3
|
+
"version": "0.7.5",
|
|
4
4
|
"description": "Your agent writes bad React. This catches it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"vscode-languageserver-textdocument": "^1.0.12",
|
|
66
66
|
"vscode-uri": "^3.1.0",
|
|
67
67
|
"yaml": "^2.9.0",
|
|
68
|
-
"
|
|
69
|
-
"
|
|
68
|
+
"deslop-js": "0.7.5",
|
|
69
|
+
"oxlint-plugin-react-doctor": "0.7.5"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/babel__code-frame": "^7.27.0",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"commander": "^14.0.3",
|
|
76
76
|
"ora": "^9.4.0",
|
|
77
77
|
"@react-doctor/api": "0.7.5",
|
|
78
|
-
"@react-doctor/
|
|
79
|
-
"@react-doctor/
|
|
78
|
+
"@react-doctor/core": "0.7.5",
|
|
79
|
+
"@react-doctor/language-server": "0.7.5"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": "^20.19.0 || >=22.13.0"
|