react-doctor 0.5.7-dev.242bf69 → 0.5.7-dev.350a6ed
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 +14 -9
- package/dist/index.js +11 -6
- package/dist/lsp.js +11 -6
- package/package.json +3 -3
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]="87ed2e7a-69a3-5a4d-a104-8ba680ac1aa2")}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";
|
|
@@ -39357,10 +39357,15 @@ const buildHardeningDiagnostic = (input) => ({
|
|
|
39357
39357
|
column: input.column ?? 0,
|
|
39358
39358
|
category: "Security"
|
|
39359
39359
|
});
|
|
39360
|
-
const checkPnpmHardening = (
|
|
39361
|
-
if (!isPnpmManagedProject(
|
|
39362
|
-
const workspacePath = Path.join(
|
|
39363
|
-
const
|
|
39360
|
+
const checkPnpmHardening = (scanDirectory) => {
|
|
39361
|
+
if (!isPnpmManagedProject(scanDirectory)) return [];
|
|
39362
|
+
const workspacePath = Path.join(scanDirectory, PNPM_WORKSPACE_FILE);
|
|
39363
|
+
const hasWorkspaceFile = isFile(workspacePath);
|
|
39364
|
+
if (!hasWorkspaceFile) {
|
|
39365
|
+
const monorepoRoot = findMonorepoRoot(scanDirectory);
|
|
39366
|
+
if (monorepoRoot !== null && isFile(Path.join(monorepoRoot, PNPM_WORKSPACE_FILE))) return [];
|
|
39367
|
+
}
|
|
39368
|
+
const settings = parseHardeningSettings(hasWorkspaceFile ? NFS.readFileSync(workspacePath, "utf-8") : "");
|
|
39364
39369
|
const diagnostics = [];
|
|
39365
39370
|
if (settings.minimumReleaseAge === null) diagnostics.push(buildHardeningDiagnostic({
|
|
39366
39371
|
message: "pnpm-workspace.yaml is missing `minimumReleaseAge` — newly published versions can ship malware that gets caught and unpublished within hours",
|
|
@@ -44142,7 +44147,7 @@ const makeNoopConsole = () => ({
|
|
|
44142
44147
|
});
|
|
44143
44148
|
//#endregion
|
|
44144
44149
|
//#region src/cli/utils/version.ts
|
|
44145
|
-
const VERSION = "0.5.7-dev.
|
|
44150
|
+
const VERSION = "0.5.7-dev.350a6ed";
|
|
44146
44151
|
//#endregion
|
|
44147
44152
|
//#region src/cli/utils/json-mode.ts
|
|
44148
44153
|
let context = null;
|
|
@@ -44504,13 +44509,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
|
|
|
44504
44509
|
* uploads source-map artifacts under, so stack frames symbolicate. Honors the
|
|
44505
44510
|
* standard `SENTRY_RELEASE` override.
|
|
44506
44511
|
*/
|
|
44507
|
-
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.5.7-dev.
|
|
44512
|
+
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.5.7-dev.350a6ed`;
|
|
44508
44513
|
/**
|
|
44509
44514
|
* Deployment environment shown in Sentry's environment filter. Defaults to
|
|
44510
44515
|
* `production` for tagged releases and `development` for dev/unbuilt versions,
|
|
44511
44516
|
* overridable via the standard `SENTRY_ENVIRONMENT` env var.
|
|
44512
44517
|
*/
|
|
44513
|
-
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.5.7-dev.
|
|
44518
|
+
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.5.7-dev.350a6ed") ? "development" : "production");
|
|
44514
44519
|
/**
|
|
44515
44520
|
* Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
|
|
44516
44521
|
* (set to `0` to disable tracing) and falls back to
|
|
@@ -54305,4 +54310,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
|
|
|
54305
54310
|
export {};
|
|
54306
54311
|
|
|
54307
54312
|
//# sourceMappingURL=cli.js.map
|
|
54308
|
-
//# debugId=
|
|
54313
|
+
//# debugId=87ed2e7a-69a3-5a4d-a104-8ba680ac1aa2
|
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]="0a49b285-88be-5b0e-803b-22151c5001c2")}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";
|
|
@@ -36138,10 +36138,15 @@ const buildHardeningDiagnostic = (input) => ({
|
|
|
36138
36138
|
column: input.column ?? 0,
|
|
36139
36139
|
category: "Security"
|
|
36140
36140
|
});
|
|
36141
|
-
const checkPnpmHardening = (
|
|
36142
|
-
if (!isPnpmManagedProject(
|
|
36143
|
-
const workspacePath = Path.join(
|
|
36144
|
-
const
|
|
36141
|
+
const checkPnpmHardening = (scanDirectory) => {
|
|
36142
|
+
if (!isPnpmManagedProject(scanDirectory)) return [];
|
|
36143
|
+
const workspacePath = Path.join(scanDirectory, PNPM_WORKSPACE_FILE);
|
|
36144
|
+
const hasWorkspaceFile = isFile(workspacePath);
|
|
36145
|
+
if (!hasWorkspaceFile) {
|
|
36146
|
+
const monorepoRoot = findMonorepoRoot(scanDirectory);
|
|
36147
|
+
if (monorepoRoot !== null && isFile(Path.join(monorepoRoot, PNPM_WORKSPACE_FILE))) return [];
|
|
36148
|
+
}
|
|
36149
|
+
const settings = parseHardeningSettings(hasWorkspaceFile ? NFS.readFileSync(workspacePath, "utf-8") : "");
|
|
36145
36150
|
const diagnostics = [];
|
|
36146
36151
|
if (settings.minimumReleaseAge === null) diagnostics.push(buildHardeningDiagnostic({
|
|
36147
36152
|
message: "pnpm-workspace.yaml is missing `minimumReleaseAge` — newly published versions can ship malware that gets caught and unpublished within hours",
|
|
@@ -40696,4 +40701,4 @@ const toJsonReport = (result, options) => buildJsonReport({
|
|
|
40696
40701
|
export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
|
|
40697
40702
|
|
|
40698
40703
|
//# sourceMappingURL=index.js.map
|
|
40699
|
-
//# debugId=
|
|
40704
|
+
//# debugId=0a49b285-88be-5b0e-803b-22151c5001c2
|
package/dist/lsp.js
CHANGED
|
@@ -36123,10 +36123,15 @@ const buildHardeningDiagnostic = (input) => ({
|
|
|
36123
36123
|
column: input.column ?? 0,
|
|
36124
36124
|
category: "Security"
|
|
36125
36125
|
});
|
|
36126
|
-
const checkPnpmHardening = (
|
|
36127
|
-
if (!isPnpmManagedProject(
|
|
36128
|
-
const workspacePath = Path.join(
|
|
36129
|
-
const
|
|
36126
|
+
const checkPnpmHardening = (scanDirectory) => {
|
|
36127
|
+
if (!isPnpmManagedProject(scanDirectory)) return [];
|
|
36128
|
+
const workspacePath = Path.join(scanDirectory, PNPM_WORKSPACE_FILE);
|
|
36129
|
+
const hasWorkspaceFile = isFile(workspacePath);
|
|
36130
|
+
if (!hasWorkspaceFile) {
|
|
36131
|
+
const monorepoRoot = findMonorepoRoot(scanDirectory);
|
|
36132
|
+
if (monorepoRoot !== null && isFile(Path.join(monorepoRoot, PNPM_WORKSPACE_FILE))) return [];
|
|
36133
|
+
}
|
|
36134
|
+
const settings = parseHardeningSettings(hasWorkspaceFile ? NFS.readFileSync(workspacePath, "utf-8") : "");
|
|
36130
36135
|
const diagnostics = [];
|
|
36131
36136
|
if (settings.minimumReleaseAge === null) diagnostics.push(buildHardeningDiagnostic({
|
|
36132
36137
|
message: "pnpm-workspace.yaml is missing `minimumReleaseAge` — newly published versions can ship malware that gets caught and unpublished within hours",
|
|
@@ -42476,5 +42481,5 @@ const startLanguageServer = () => {
|
|
|
42476
42481
|
};
|
|
42477
42482
|
//#endregion
|
|
42478
42483
|
export { startLanguageServer };
|
|
42479
|
-
!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]="
|
|
42480
|
-
//# debugId=
|
|
42484
|
+
!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]="d139c7ae-128c-5b80-90a7-3ae52c407bf7")}catch(e){}}();
|
|
42485
|
+
//# debugId=d139c7ae-128c-5b80-90a7-3ae52c407bf7
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.5.7-dev.
|
|
3
|
+
"version": "0.5.7-dev.350a6ed",
|
|
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.7-dev.
|
|
67
|
+
"oxlint-plugin-react-doctor": "0.5.7-dev.350a6ed"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/babel__code-frame": "^7.27.0",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"@xterm/headless": "^6.0.0",
|
|
73
73
|
"commander": "^14.0.3",
|
|
74
74
|
"ora": "^9.4.0",
|
|
75
|
-
"@react-doctor/core": "0.5.7",
|
|
76
75
|
"@react-doctor/api": "0.5.7",
|
|
76
|
+
"@react-doctor/core": "0.5.7",
|
|
77
77
|
"@react-doctor/language-server": "0.5.7"
|
|
78
78
|
},
|
|
79
79
|
"engines": {
|