react-doctor 0.7.5-dev.0f07133 → 0.7.5-dev.20cd922
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 +16 -7
- package/dist/index.js +13 -4
- package/dist/lsp.js +13 -4
- package/package.json +2 -2
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]="72ed96f2-03b8-5285-a0e9-be502d986219")}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, (specifier) => bundledRequire$1(specifier));
|
|
42408
42408
|
return {
|
|
42409
42409
|
entry: {
|
|
42410
42410
|
name: "react-hooks-js",
|
|
@@ -43692,6 +43692,11 @@ 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
|
+
];
|
|
43695
43700
|
const SANITIZED_ENV = buildOxlintChildEnv(process.env);
|
|
43696
43701
|
/**
|
|
43697
43702
|
* Spawn one oxlint subprocess with hard ceilings on wall time and
|
|
@@ -43716,7 +43721,11 @@ const spawnOxlint = (args, rootDirectory, nodeBinaryPath, spawnTimeoutMs = OXLIN
|
|
|
43716
43721
|
reject(new ReactDoctorError({ reason: new OxlintSpawnFailed({ cause: "lint phase aborted" }) }));
|
|
43717
43722
|
return;
|
|
43718
43723
|
}
|
|
43719
|
-
const child = spawn(nodeBinaryPath,
|
|
43724
|
+
const child = spawn(nodeBinaryPath, buildProfiledNodeArguments({
|
|
43725
|
+
argumentsList: args,
|
|
43726
|
+
cpuProfileDirectory: SANITIZED_ENV.REACT_DOCTOR_CPU_PROFILE_DIR,
|
|
43727
|
+
heapProfileDirectory: SANITIZED_ENV.REACT_DOCTOR_HEAP_PROFILE_DIR
|
|
43728
|
+
}), {
|
|
43720
43729
|
cwd: rootDirectory,
|
|
43721
43730
|
env: SANITIZED_ENV,
|
|
43722
43731
|
stdio: [
|
|
@@ -46629,7 +46638,7 @@ const makeNoopConsole = () => ({
|
|
|
46629
46638
|
});
|
|
46630
46639
|
//#endregion
|
|
46631
46640
|
//#region src/cli/utils/version.ts
|
|
46632
|
-
const VERSION = "0.7.5-dev.
|
|
46641
|
+
const VERSION = "0.7.5-dev.20cd922";
|
|
46633
46642
|
//#endregion
|
|
46634
46643
|
//#region src/cli/utils/json-mode.ts
|
|
46635
46644
|
let context = null;
|
|
@@ -46998,13 +47007,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
|
|
|
46998
47007
|
* uploads source-map artifacts under, so stack frames symbolicate. Honors the
|
|
46999
47008
|
* standard `SENTRY_RELEASE` override.
|
|
47000
47009
|
*/
|
|
47001
|
-
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.7.5-dev.
|
|
47010
|
+
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.7.5-dev.20cd922`;
|
|
47002
47011
|
/**
|
|
47003
47012
|
* Deployment environment shown in Sentry's environment filter. Defaults to
|
|
47004
47013
|
* `production` for tagged releases and `development` for dev/unbuilt versions,
|
|
47005
47014
|
* overridable via the standard `SENTRY_ENVIRONMENT` env var.
|
|
47006
47015
|
*/
|
|
47007
|
-
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.7.5-dev.
|
|
47016
|
+
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.7.5-dev.20cd922") ? "development" : "production");
|
|
47008
47017
|
/**
|
|
47009
47018
|
* Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
|
|
47010
47019
|
* (set to `0` to disable tracing) and falls back to
|
|
@@ -65193,4 +65202,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
|
|
|
65193
65202
|
export {};
|
|
65194
65203
|
|
|
65195
65204
|
//# sourceMappingURL=cli.js.map
|
|
65196
|
-
//# debugId=
|
|
65205
|
+
//# debugId=72ed96f2-03b8-5285-a0e9-be502d986219
|
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]="6430a76b-a36a-5cf5-9ca0-cc1ca8952f41")}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, (specifier) => bundledRequire$1(specifier));
|
|
39165
39165
|
return {
|
|
39166
39166
|
entry: {
|
|
39167
39167
|
name: "react-hooks-js",
|
|
@@ -40449,6 +40449,11 @@ 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
|
+
];
|
|
40452
40457
|
const SANITIZED_ENV = buildOxlintChildEnv(process.env);
|
|
40453
40458
|
/**
|
|
40454
40459
|
* Spawn one oxlint subprocess with hard ceilings on wall time and
|
|
@@ -40473,7 +40478,11 @@ const spawnOxlint = (args, rootDirectory, nodeBinaryPath, spawnTimeoutMs = OXLIN
|
|
|
40473
40478
|
reject(new ReactDoctorError({ reason: new OxlintSpawnFailed({ cause: "lint phase aborted" }) }));
|
|
40474
40479
|
return;
|
|
40475
40480
|
}
|
|
40476
|
-
const child = spawn(nodeBinaryPath,
|
|
40481
|
+
const child = spawn(nodeBinaryPath, buildProfiledNodeArguments({
|
|
40482
|
+
argumentsList: args,
|
|
40483
|
+
cpuProfileDirectory: SANITIZED_ENV.REACT_DOCTOR_CPU_PROFILE_DIR,
|
|
40484
|
+
heapProfileDirectory: SANITIZED_ENV.REACT_DOCTOR_HEAP_PROFILE_DIR
|
|
40485
|
+
}), {
|
|
40477
40486
|
cwd: rootDirectory,
|
|
40478
40487
|
env: SANITIZED_ENV,
|
|
40479
40488
|
stdio: [
|
|
@@ -43172,4 +43181,4 @@ const toJsonReport = (result, options) => buildJsonReport({
|
|
|
43172
43181
|
export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
|
|
43173
43182
|
|
|
43174
43183
|
//# sourceMappingURL=index.js.map
|
|
43175
|
-
//# debugId=
|
|
43184
|
+
//# debugId=6430a76b-a36a-5cf5-9ca0-cc1ca8952f41
|
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, (specifier) => bundledRequire$1(specifier));
|
|
39143
39143
|
return {
|
|
39144
39144
|
entry: {
|
|
39145
39145
|
name: "react-hooks-js",
|
|
@@ -40427,6 +40427,11 @@ 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
|
+
];
|
|
40430
40435
|
const SANITIZED_ENV = buildOxlintChildEnv(process.env);
|
|
40431
40436
|
/**
|
|
40432
40437
|
* Spawn one oxlint subprocess with hard ceilings on wall time and
|
|
@@ -40451,7 +40456,11 @@ const spawnOxlint = (args, rootDirectory, nodeBinaryPath, spawnTimeoutMs = OXLIN
|
|
|
40451
40456
|
reject(new ReactDoctorError({ reason: new OxlintSpawnFailed({ cause: "lint phase aborted" }) }));
|
|
40452
40457
|
return;
|
|
40453
40458
|
}
|
|
40454
|
-
const child = spawn(nodeBinaryPath,
|
|
40459
|
+
const child = spawn(nodeBinaryPath, buildProfiledNodeArguments({
|
|
40460
|
+
argumentsList: args,
|
|
40461
|
+
cpuProfileDirectory: SANITIZED_ENV.REACT_DOCTOR_CPU_PROFILE_DIR,
|
|
40462
|
+
heapProfileDirectory: SANITIZED_ENV.REACT_DOCTOR_HEAP_PROFILE_DIR
|
|
40463
|
+
}), {
|
|
40455
40464
|
cwd: rootDirectory,
|
|
40456
40465
|
env: SANITIZED_ENV,
|
|
40457
40466
|
stdio: [
|
|
@@ -44816,5 +44825,5 @@ const startLanguageServer = () => {
|
|
|
44816
44825
|
};
|
|
44817
44826
|
//#endregion
|
|
44818
44827
|
export { startLanguageServer };
|
|
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]="
|
|
44820
|
-
//# debugId=
|
|
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]="7af68c1a-91df-56eb-982a-161195d345fc")}catch(e){}}();
|
|
44829
|
+
//# debugId=7af68c1a-91df-56eb-982a-161195d345fc
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.7.5-dev.
|
|
3
|
+
"version": "0.7.5-dev.20cd922",
|
|
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.5",
|
|
69
|
-
"oxlint-plugin-react-doctor": "0.7.5-dev.
|
|
69
|
+
"oxlint-plugin-react-doctor": "0.7.5-dev.20cd922"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/babel__code-frame": "^7.27.0",
|