react-doctor 0.5.6-dev.15238de → 0.5.6-dev.f45cb29
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 -9
- package/dist/index.js +4 -6
- package/dist/lsp.js +4 -6
- 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]="bb93aaad-ea85-5f1d-b2db-584f48671f66")}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";
|
|
@@ -39986,12 +39986,11 @@ const collectKnipPatterns = (rootDirectory, settingName) => {
|
|
|
39986
39986
|
if (!config) return [];
|
|
39987
39987
|
return [...normalizePatternList(config[settingName]), ...collectKnipWorkspacePatterns(config.workspaces, settingName)];
|
|
39988
39988
|
};
|
|
39989
|
-
const collectDeadCodeIgnorePatterns = (rootDirectory
|
|
39989
|
+
const collectDeadCodeIgnorePatterns = (rootDirectory) => {
|
|
39990
39990
|
const seen = /* @__PURE__ */ new Set();
|
|
39991
39991
|
const sources = [
|
|
39992
39992
|
readIgnoreFile(path.join(rootDirectory, ".gitignore")),
|
|
39993
39993
|
collectIgnorePatterns(rootDirectory),
|
|
39994
|
-
userConfig?.ignore?.files ?? [],
|
|
39995
39994
|
collectKnipPatterns(rootDirectory, "ignore")
|
|
39996
39995
|
];
|
|
39997
39996
|
for (const source of sources) for (const pattern of source) seen.add(pattern);
|
|
@@ -40269,11 +40268,10 @@ const runDeadCodeWorkerWithTimeout = (handle, timeoutMs) => new Promise((resolve
|
|
|
40269
40268
|
});
|
|
40270
40269
|
});
|
|
40271
40270
|
const checkDeadCode = async (options) => {
|
|
40272
|
-
const { userConfig } = options;
|
|
40273
40271
|
const rootDirectory = toCanonicalPath(options.rootDirectory);
|
|
40274
40272
|
if (!NFS.existsSync(Path.join(rootDirectory, "package.json"))) return [];
|
|
40275
40273
|
const entryPatterns = collectDeadCodeEntryPatterns(rootDirectory);
|
|
40276
|
-
const ignorePatterns = collectDeadCodeIgnorePatterns(rootDirectory
|
|
40274
|
+
const ignorePatterns = collectDeadCodeIgnorePatterns(rootDirectory);
|
|
40277
40275
|
const result = parseDeadCodeWorkerResult(await runDeadCodeWorkerWithTimeout((options.createWorker ?? createDeadCodeWorker)({
|
|
40278
40276
|
rootDirectory,
|
|
40279
40277
|
entryPatterns,
|
|
@@ -43972,7 +43970,7 @@ const makeNoopConsole = () => ({
|
|
|
43972
43970
|
});
|
|
43973
43971
|
//#endregion
|
|
43974
43972
|
//#region src/cli/utils/version.ts
|
|
43975
|
-
const VERSION = "0.5.6-dev.
|
|
43973
|
+
const VERSION = "0.5.6-dev.f45cb29";
|
|
43976
43974
|
//#endregion
|
|
43977
43975
|
//#region src/cli/utils/json-mode.ts
|
|
43978
43976
|
let context = null;
|
|
@@ -44330,13 +44328,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
|
|
|
44330
44328
|
* uploads source-map artifacts under, so stack frames symbolicate. Honors the
|
|
44331
44329
|
* standard `SENTRY_RELEASE` override.
|
|
44332
44330
|
*/
|
|
44333
|
-
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.5.6-dev.
|
|
44331
|
+
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.5.6-dev.f45cb29`;
|
|
44334
44332
|
/**
|
|
44335
44333
|
* Deployment environment shown in Sentry's environment filter. Defaults to
|
|
44336
44334
|
* `production` for tagged releases and `development` for dev/unbuilt versions,
|
|
44337
44335
|
* overridable via the standard `SENTRY_ENVIRONMENT` env var.
|
|
44338
44336
|
*/
|
|
44339
|
-
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.5.6-dev.
|
|
44337
|
+
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.5.6-dev.f45cb29") ? "development" : "production");
|
|
44340
44338
|
/**
|
|
44341
44339
|
* Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
|
|
44342
44340
|
* (set to `0` to disable tracing) and falls back to
|
|
@@ -53948,4 +53946,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
|
|
|
53948
53946
|
export {};
|
|
53949
53947
|
|
|
53950
53948
|
//# sourceMappingURL=cli.js.map
|
|
53951
|
-
//# debugId=
|
|
53949
|
+
//# debugId=bb93aaad-ea85-5f1d-b2db-584f48671f66
|
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]="a4394ddc-4e6c-5a18-aeeb-d60322b1c0dd")}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 * as NFS from "node:fs";
|
|
@@ -36750,12 +36750,11 @@ const collectKnipPatterns = (rootDirectory, settingName) => {
|
|
|
36750
36750
|
if (!config) return [];
|
|
36751
36751
|
return [...normalizePatternList(config[settingName]), ...collectKnipWorkspacePatterns(config.workspaces, settingName)];
|
|
36752
36752
|
};
|
|
36753
|
-
const collectDeadCodeIgnorePatterns = (rootDirectory
|
|
36753
|
+
const collectDeadCodeIgnorePatterns = (rootDirectory) => {
|
|
36754
36754
|
const seen = /* @__PURE__ */ new Set();
|
|
36755
36755
|
const sources = [
|
|
36756
36756
|
readIgnoreFile(path.join(rootDirectory, ".gitignore")),
|
|
36757
36757
|
collectIgnorePatterns(rootDirectory),
|
|
36758
|
-
userConfig?.ignore?.files ?? [],
|
|
36759
36758
|
collectKnipPatterns(rootDirectory, "ignore")
|
|
36760
36759
|
];
|
|
36761
36760
|
for (const source of sources) for (const pattern of source) seen.add(pattern);
|
|
@@ -37033,11 +37032,10 @@ const runDeadCodeWorkerWithTimeout = (handle, timeoutMs) => new Promise((resolve
|
|
|
37033
37032
|
});
|
|
37034
37033
|
});
|
|
37035
37034
|
const checkDeadCode = async (options) => {
|
|
37036
|
-
const { userConfig } = options;
|
|
37037
37035
|
const rootDirectory = toCanonicalPath(options.rootDirectory);
|
|
37038
37036
|
if (!NFS.existsSync(Path.join(rootDirectory, "package.json"))) return [];
|
|
37039
37037
|
const entryPatterns = collectDeadCodeEntryPatterns(rootDirectory);
|
|
37040
|
-
const ignorePatterns = collectDeadCodeIgnorePatterns(rootDirectory
|
|
37038
|
+
const ignorePatterns = collectDeadCodeIgnorePatterns(rootDirectory);
|
|
37041
37039
|
const result = parseDeadCodeWorkerResult(await runDeadCodeWorkerWithTimeout((options.createWorker ?? createDeadCodeWorker)({
|
|
37042
37040
|
rootDirectory,
|
|
37043
37041
|
entryPatterns,
|
|
@@ -40573,4 +40571,4 @@ const toJsonReport = (result, options) => buildJsonReport({
|
|
|
40573
40571
|
export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
|
|
40574
40572
|
|
|
40575
40573
|
//# sourceMappingURL=index.js.map
|
|
40576
|
-
//# debugId=
|
|
40574
|
+
//# debugId=a4394ddc-4e6c-5a18-aeeb-d60322b1c0dd
|
package/dist/lsp.js
CHANGED
|
@@ -36736,12 +36736,11 @@ const collectKnipPatterns = (rootDirectory, settingName) => {
|
|
|
36736
36736
|
if (!config) return [];
|
|
36737
36737
|
return [...normalizePatternList(config[settingName]), ...collectKnipWorkspacePatterns(config.workspaces, settingName)];
|
|
36738
36738
|
};
|
|
36739
|
-
const collectDeadCodeIgnorePatterns = (rootDirectory
|
|
36739
|
+
const collectDeadCodeIgnorePatterns = (rootDirectory) => {
|
|
36740
36740
|
const seen = /* @__PURE__ */ new Set();
|
|
36741
36741
|
const sources = [
|
|
36742
36742
|
readIgnoreFile(path.join(rootDirectory, ".gitignore")),
|
|
36743
36743
|
collectIgnorePatterns(rootDirectory),
|
|
36744
|
-
userConfig?.ignore?.files ?? [],
|
|
36745
36744
|
collectKnipPatterns(rootDirectory, "ignore")
|
|
36746
36745
|
];
|
|
36747
36746
|
for (const source of sources) for (const pattern of source) seen.add(pattern);
|
|
@@ -37019,11 +37018,10 @@ const runDeadCodeWorkerWithTimeout = (handle, timeoutMs) => new Promise((resolve
|
|
|
37019
37018
|
});
|
|
37020
37019
|
});
|
|
37021
37020
|
const checkDeadCode = async (options) => {
|
|
37022
|
-
const { userConfig } = options;
|
|
37023
37021
|
const rootDirectory = toCanonicalPath(options.rootDirectory);
|
|
37024
37022
|
if (!NFS.existsSync(Path.join(rootDirectory, "package.json"))) return [];
|
|
37025
37023
|
const entryPatterns = collectDeadCodeEntryPatterns(rootDirectory);
|
|
37026
|
-
const ignorePatterns = collectDeadCodeIgnorePatterns(rootDirectory
|
|
37024
|
+
const ignorePatterns = collectDeadCodeIgnorePatterns(rootDirectory);
|
|
37027
37025
|
const result = parseDeadCodeWorkerResult(await runDeadCodeWorkerWithTimeout((options.createWorker ?? createDeadCodeWorker)({
|
|
37028
37026
|
rootDirectory,
|
|
37029
37027
|
entryPatterns,
|
|
@@ -42358,5 +42356,5 @@ const startLanguageServer = () => {
|
|
|
42358
42356
|
};
|
|
42359
42357
|
//#endregion
|
|
42360
42358
|
export { startLanguageServer };
|
|
42361
|
-
!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]="
|
|
42362
|
-
//# debugId=
|
|
42359
|
+
!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]="03349093-b1b2-5f21-bad3-7e212e5a7f91")}catch(e){}}();
|
|
42360
|
+
//# debugId=03349093-b1b2-5f21-bad3-7e212e5a7f91
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.5.6-dev.
|
|
3
|
+
"version": "0.5.6-dev.f45cb29",
|
|
4
4
|
"description": "Your agent writes bad React. This catches it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"vscode-languageserver": "^9.0.1",
|
|
65
65
|
"vscode-languageserver-textdocument": "^1.0.12",
|
|
66
66
|
"vscode-uri": "^3.1.0",
|
|
67
|
-
"oxlint-plugin-react-doctor": "0.5.6-dev.
|
|
67
|
+
"oxlint-plugin-react-doctor": "0.5.6-dev.f45cb29"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/babel__code-frame": "^7.27.0",
|