vite-doctor 0.0.4 → 0.0.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.mjs +4 -4
- package/dist/{config-BmPOr4h2.d.mts → config-CXNytHmY.d.mts} +1 -2
- package/dist/{config-Dnzvhp-h.mjs → config-cx1PzoSm.mjs} +3 -2
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +1 -1
- package/dist/{core-xDy0T1J2.mjs → core-DIaW0HIr.mjs} +20 -16
- package/dist/{doctor-Bg0UJqwf.mjs → doctor-yC2Ke8Ae.mjs} +7 -7
- package/dist/{index-DELTN2OW.d.mts → index-B8FjkmY1.d.mts} +1 -2
- package/dist/index-Benbi54b.d.mts +3 -0
- package/dist/{index-Cej8hbDn.d.mts → index-DxuqP4UF.d.mts} +1 -2
- package/dist/index-xAh4vxLh.d.mts +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{module-Bhfqw7wj.mjs → module-DHwkZLxN.mjs} +1 -1
- package/dist/{module-DpsQYVY7.d.mts → module-DtYfgazD.d.mts} +3 -2
- package/dist/nitro-BRgJaQgL.mjs +2 -0
- package/dist/nuxt.d.mts +1 -1
- package/dist/nuxt.mjs +1 -1
- package/dist/{plugin-BMTLuRfv.d.mts → plugin-Dnhz_kMz.d.mts} +3 -3
- package/dist/{plugin-B-mvNSii.mjs → plugin-tOk2jSfx.mjs} +2 -2
- package/dist/plugin.d.mts +1 -1
- package/dist/plugin.mjs +1 -1
- package/dist/{primitives-UOE4-YE8.d.mts → primitives-Nhpqd5ap.d.mts} +0 -1
- package/dist/rule-packs/nitro/index.d.mts +2 -1
- package/dist/rule-packs/nitro/index.mjs +2 -2
- package/dist/rule-packs/nitro/rules.d.mts +1 -1
- package/dist/rule-packs/nitro/rules.mjs +1 -1
- package/dist/rule-packs/nuxt/index.d.mts +2 -2
- package/dist/rule-packs/nuxt/index.mjs +1 -1
- package/dist/rule-packs/nuxt/module.d.mts +2 -2
- package/dist/rule-packs/nuxt/module.mjs +1 -1
- package/dist/rule-packs/nuxt/rules/index.d.mts +4 -2
- package/dist/rule-packs/nuxt/rules/index.mjs +2 -2
- package/dist/rule-packs/vite/index.d.mts +1 -1
- package/dist/rule-packs/vite/index.mjs +1 -1
- package/dist/rule-packs/vite/rules/index.d.mts +1 -1
- package/dist/rule-packs/vite/rules/index.mjs +1 -1
- package/dist/rule-packs/vue/index.d.mts +1 -1
- package/dist/rule-packs/vue/index.mjs +1 -1
- package/dist/rule-packs/vue/rules.d.mts +1 -1
- package/dist/rule-packs/vue/rules.mjs +1 -1
- package/dist/{rules-BY3D2U9g.mjs → rules-0AWH0_wP.mjs} +19 -18
- package/dist/rules-CPBmmZ0K.mjs +2 -0
- package/dist/{rules-drBDqot9.mjs → rules-CQY9fsh1.mjs} +21 -21
- package/dist/{rules-D233rRrp.mjs → rules-Cp2zeuza.mjs} +4 -4
- package/dist/{rules-D_ZBKNuF.d.mts → rules-D66KCcT1.d.mts} +1 -2
- package/dist/{rules-pUteKop1.mjs → rules-DPvqsm4U.mjs} +15 -14
- package/dist/rules.d.mts +1 -1
- package/dist/rules.mjs +2 -2
- package/package.json +29 -30
- package/dist/index-BKZ67WMa.d.mts +0 -1
- package/dist/index-BVVgDSdq.d.mts +0 -1
- package/dist/nitro-DP7qe6zn.mjs +0 -2
- package/dist/rules-DdChlCWs.mjs +0 -2
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as cleanCache, i as explainRule, l as evaluateRuleApplicability, n as createReport, r as createRulesReport, u as detectProject } from "./core-
|
|
3
|
-
import { i as viteDoctorVersion, n as shouldFailDoctorRun, r as viteDoctorRulePacks, t as runViteDoctor } from "./doctor-
|
|
2
|
+
import { c as cleanCache, i as explainRule, l as evaluateRuleApplicability, n as createReport, r as createRulesReport, u as detectProject } from "./core-DIaW0HIr.mjs";
|
|
3
|
+
import { i as viteDoctorVersion, n as shouldFailDoctorRun, r as viteDoctorRulePacks, t as runViteDoctor } from "./doctor-yC2Ke8Ae.mjs";
|
|
4
4
|
import { relative, resolve } from "pathe";
|
|
5
5
|
import { realpathSync, statSync } from "node:fs";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
@@ -278,7 +278,7 @@ function major(version) {
|
|
|
278
278
|
}
|
|
279
279
|
//#endregion
|
|
280
280
|
//#region src/cli-main.ts
|
|
281
|
-
const commands = new Set([
|
|
281
|
+
const commands = /* @__PURE__ */ new Set([
|
|
282
282
|
"scan",
|
|
283
283
|
"check",
|
|
284
284
|
"migrate",
|
|
@@ -286,7 +286,7 @@ const commands = new Set([
|
|
|
286
286
|
"explain",
|
|
287
287
|
"cache"
|
|
288
288
|
]);
|
|
289
|
-
const removedCommands = new Set(["run", "ci"]);
|
|
289
|
+
const removedCommands = /* @__PURE__ */ new Set(["run", "ci"]);
|
|
290
290
|
async function main(args = process.argv.slice(2), cwd = process.cwd()) {
|
|
291
291
|
if (args.includes("--version") || args.includes("-v")) {
|
|
292
292
|
process.stdout.write(`${viteDoctorVersion}\n`);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { i as DoctorSerializableConfig, n as DoctorFramework, s as RuntimeTarget, t as DoctorExtension } from "./primitives-
|
|
2
|
-
|
|
1
|
+
import { i as DoctorSerializableConfig, n as DoctorFramework, s as RuntimeTarget, t as DoctorExtension } from "./primitives-Nhpqd5ap.mjs";
|
|
3
2
|
//#region src/core/config.d.ts
|
|
4
3
|
interface DoctorConfig extends DoctorSerializableConfig {
|
|
5
4
|
extensions?: DoctorExtension[];
|
|
@@ -5,13 +5,14 @@ function defineDoctorConfig(config) {
|
|
|
5
5
|
return config;
|
|
6
6
|
}
|
|
7
7
|
async function loadDoctorConfig(options) {
|
|
8
|
-
|
|
8
|
+
const result = await loadConfig({
|
|
9
9
|
configFile: "doctor.config",
|
|
10
10
|
cwd: options.cwd,
|
|
11
11
|
dotenv: false,
|
|
12
12
|
globalRc: false,
|
|
13
13
|
name: "doctor"
|
|
14
|
-
})
|
|
14
|
+
});
|
|
15
|
+
return defu(result.config ?? {}, options.defaults ?? {});
|
|
15
16
|
}
|
|
16
17
|
//#endregion
|
|
17
18
|
export { loadDoctorConfig as n, defineDoctorConfig as t };
|
package/dist/config.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as loadDoctorConfig, i as defineDoctorConfig, n as DoctorRunOptions, r as LoadDoctorConfigOptions, t as DoctorConfig } from "./config-
|
|
1
|
+
import { a as loadDoctorConfig, i as defineDoctorConfig, n as DoctorRunOptions, r as LoadDoctorConfigOptions, t as DoctorConfig } from "./config-CXNytHmY.mjs";
|
|
2
2
|
export { type DoctorConfig, type DoctorRunOptions, type LoadDoctorConfigOptions, defineDoctorConfig, loadDoctorConfig };
|
package/dist/config.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as loadDoctorConfig, t as defineDoctorConfig } from "./config-
|
|
1
|
+
import { n as loadDoctorConfig, t as defineDoctorConfig } from "./config-cx1PzoSm.mjs";
|
|
2
2
|
export { defineDoctorConfig, loadDoctorConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./config-
|
|
1
|
+
import "./config-cx1PzoSm.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { dirname, join, relative, resolve } from "pathe";
|
|
4
4
|
import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -226,14 +226,14 @@ const packageCandidates = {
|
|
|
226
226
|
vue: ["vue"]
|
|
227
227
|
};
|
|
228
228
|
const acceptedIdentities = {
|
|
229
|
-
nuxt: new Set(["nuxt", "nuxt-nightly"]),
|
|
230
|
-
nitro: new Set([
|
|
229
|
+
nuxt: /* @__PURE__ */ new Set(["nuxt", "nuxt-nightly"]),
|
|
230
|
+
nitro: /* @__PURE__ */ new Set([
|
|
231
231
|
"nitro",
|
|
232
232
|
"nitropack",
|
|
233
233
|
"nitro-nightly"
|
|
234
234
|
]),
|
|
235
|
-
h3: new Set(["h3", "h3-nightly"]),
|
|
236
|
-
vue: new Set(["vue"])
|
|
235
|
+
h3: /* @__PURE__ */ new Set(["h3", "h3-nightly"]),
|
|
236
|
+
vue: /* @__PURE__ */ new Set(["vue"])
|
|
237
237
|
};
|
|
238
238
|
function resolveRuntimeGraph(root, framework) {
|
|
239
239
|
const rootManifest = join(root, "package.json");
|
|
@@ -816,7 +816,7 @@ function execFileText(command, args, cwd) {
|
|
|
816
816
|
//#endregion
|
|
817
817
|
//#region src/core/internal/visitor-keys.ts
|
|
818
818
|
const parserVisitorKeys = isVisitorKeyMap(oxcParser.visitorKeys) ? oxcParser.visitorKeys : {};
|
|
819
|
-
const ignoredFallbackKeys = new Set([
|
|
819
|
+
const ignoredFallbackKeys = /* @__PURE__ */ new Set([
|
|
820
820
|
"__doctorParent",
|
|
821
821
|
"comments",
|
|
822
822
|
"end",
|
|
@@ -923,7 +923,7 @@ function createHelpers() {
|
|
|
923
923
|
}
|
|
924
924
|
};
|
|
925
925
|
}
|
|
926
|
-
const CLIENT_LIFECYCLE_CALLEES = new Set([
|
|
926
|
+
const CLIENT_LIFECYCLE_CALLEES = /* @__PURE__ */ new Set([
|
|
927
927
|
"onMounted",
|
|
928
928
|
"onBeforeMount",
|
|
929
929
|
"onUnmounted",
|
|
@@ -931,7 +931,7 @@ const CLIENT_LIFECYCLE_CALLEES = new Set([
|
|
|
931
931
|
"onNuxtReady",
|
|
932
932
|
"onPrehydrate"
|
|
933
933
|
]);
|
|
934
|
-
const CLIENT_EVENT_CALLEES = new Set([
|
|
934
|
+
const CLIENT_EVENT_CALLEES = /* @__PURE__ */ new Set([
|
|
935
935
|
"addEventListener",
|
|
936
936
|
"window.addEventListener",
|
|
937
937
|
"document.addEventListener",
|
|
@@ -946,8 +946,8 @@ const CLIENT_EVENT_CALLEES = new Set([
|
|
|
946
946
|
"useIntersectionObserver",
|
|
947
947
|
"useResizeObserver"
|
|
948
948
|
]);
|
|
949
|
-
const DEFERRED_CALLBACK_CALLEES = new Set(["watch", "watchPostEffect"]);
|
|
950
|
-
const TIMER_CALLBACK_CALLEES = new Set([
|
|
949
|
+
const DEFERRED_CALLBACK_CALLEES = /* @__PURE__ */ new Set(["watch", "watchPostEffect"]);
|
|
950
|
+
const TIMER_CALLBACK_CALLEES = /* @__PURE__ */ new Set([
|
|
951
951
|
"setTimeout",
|
|
952
952
|
"setInterval",
|
|
953
953
|
"requestAnimationFrame",
|
|
@@ -1271,7 +1271,8 @@ function evaluateNuxtCompatibility(project, range) {
|
|
|
1271
1271
|
if (!validRange(range)) return unknown(`Invalid Nuxt compatibility range ${range}.`);
|
|
1272
1272
|
const compatibility = project.nuxtCompatibility;
|
|
1273
1273
|
if (compatibility?.state !== "resolved" || compatibility.version === void 0) return unknown(compatibility?.reason ?? "Nuxt compatibility behavior is unresolved.");
|
|
1274
|
-
|
|
1274
|
+
const version = `${compatibility.version}.0.0`;
|
|
1275
|
+
return satisfies(version, range) ? active() : inactive(`Nuxt compatibility ${compatibility.version} does not satisfy ${range}.`);
|
|
1275
1276
|
}
|
|
1276
1277
|
function combineApplicability(results) {
|
|
1277
1278
|
if (!results.length) return active();
|
|
@@ -2685,7 +2686,8 @@ function applyFixes(diagnostics, options = {}) {
|
|
|
2685
2686
|
byFile.set(diagnostic.file, list);
|
|
2686
2687
|
}
|
|
2687
2688
|
for (const [file, items] of byFile) {
|
|
2688
|
-
const
|
|
2689
|
+
const text = readFileSync(file, "utf8");
|
|
2690
|
+
const ms = new MagicString(text);
|
|
2689
2691
|
const edits = planNonOverlappingFixes(items).sort((a, b) => b.range.start - a.range.start);
|
|
2690
2692
|
for (const edit of edits) ms.overwrite(edit.range.start, edit.range.end, edit.text);
|
|
2691
2693
|
mkdirSync(dirname(file), { recursive: true });
|
|
@@ -2983,7 +2985,7 @@ function resolveImportTarget(session, from, specifier, byRelativePath) {
|
|
|
2983
2985
|
}
|
|
2984
2986
|
}
|
|
2985
2987
|
function aliasImportBases(session, base) {
|
|
2986
|
-
const roots = new Set([
|
|
2988
|
+
const roots = /* @__PURE__ */ new Set([
|
|
2987
2989
|
"",
|
|
2988
2990
|
"app",
|
|
2989
2991
|
"shared"
|
|
@@ -3000,7 +3002,7 @@ function aliasImportBases(session, base) {
|
|
|
3000
3002
|
return [...roots].flatMap((root) => root ? [`${root}/${base}`] : [base]);
|
|
3001
3003
|
}
|
|
3002
3004
|
function rootAliasImportBases(session, base) {
|
|
3003
|
-
const roots = new Set(["", ...workspacePackageRoots(session)]);
|
|
3005
|
+
const roots = /* @__PURE__ */ new Set(["", ...workspacePackageRoots(session)]);
|
|
3004
3006
|
const bases = [];
|
|
3005
3007
|
for (const root of roots) {
|
|
3006
3008
|
bases.push(root ? `${root}/${base}` : base);
|
|
@@ -3328,7 +3330,7 @@ function readPackageDeps(root) {
|
|
|
3328
3330
|
}
|
|
3329
3331
|
function findPackageJsonFiles(root) {
|
|
3330
3332
|
const files = [];
|
|
3331
|
-
const ignored = new Set([
|
|
3333
|
+
const ignored = /* @__PURE__ */ new Set([
|
|
3332
3334
|
"node_modules",
|
|
3333
3335
|
".git",
|
|
3334
3336
|
".nuxt",
|
|
@@ -3411,7 +3413,9 @@ function collectPackageExportEntries(packageRoot, value, candidates) {
|
|
|
3411
3413
|
function sourceCandidatesForPackageEntry(packageRoot, entry) {
|
|
3412
3414
|
if (!entry || entry.startsWith("#")) return [];
|
|
3413
3415
|
const clean = entry.replace(/^\.\//, "");
|
|
3414
|
-
|
|
3416
|
+
const direct = resolve(packageRoot, clean);
|
|
3417
|
+
const src = clean.replace(/^dist\//, "src/").replace(/\.d\.[cm]?ts$/, ".ts").replace(/\.[cm]?js$/, ".ts").replace(/\.mjs$/, ".ts").replace(/\.cjs$/, ".ts");
|
|
3418
|
+
return [direct, resolve(packageRoot, src)].flatMap((file) => importCandidates(relative(packageRoot, file)).map((item) => resolve(packageRoot, item))).filter((file) => existsSync(file));
|
|
3415
3419
|
}
|
|
3416
3420
|
function isLikelyForeignFrameworkFile(session, relativePath, deps) {
|
|
3417
3421
|
for (const root of deps.foreignRoots) if (root && (relativePath === root || relativePath.startsWith(`${root}/`))) return true;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as defineDoctorExtension, t as runDoctor } from "./core-
|
|
2
|
-
import { t as nitroRulePack } from "./rules-
|
|
3
|
-
import "./nitro-
|
|
4
|
-
import { t as vueRulePack } from "./rules-
|
|
5
|
-
import { n as nuxtRulePacks, t as nuxtDoctorExtensions } from "./rules-
|
|
6
|
-
import { t as viteRulePack } from "./rules-
|
|
7
|
-
import "./rules-
|
|
1
|
+
import { f as defineDoctorExtension, t as runDoctor } from "./core-DIaW0HIr.mjs";
|
|
2
|
+
import { t as nitroRulePack } from "./rules-Cp2zeuza.mjs";
|
|
3
|
+
import "./nitro-BRgJaQgL.mjs";
|
|
4
|
+
import { t as vueRulePack } from "./rules-DPvqsm4U.mjs";
|
|
5
|
+
import { n as nuxtRulePacks, t as nuxtDoctorExtensions } from "./rules-CQY9fsh1.mjs";
|
|
6
|
+
import { t as viteRulePack } from "./rules-0AWH0_wP.mjs";
|
|
7
|
+
import "./rules-CPBmmZ0K.mjs";
|
|
8
8
|
import { join } from "pathe";
|
|
9
9
|
import { existsSync, readFileSync } from "node:fs";
|
|
10
10
|
//#region src/version.ts
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { o as RulePack, r as DoctorRule } from "./primitives-
|
|
2
|
-
|
|
1
|
+
import { o as RulePack, r as DoctorRule } from "./primitives-Nhpqd5ap.mjs";
|
|
3
2
|
//#region src/rule-packs/nitro/rules/no-use-nuxt-app-in-nitro.d.ts
|
|
4
3
|
declare const noUseNuxtAppInNitro: DoctorRule;
|
|
5
4
|
//#endregion
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { o as RulePack, r as DoctorRule } from "./primitives-
|
|
2
|
-
|
|
1
|
+
import { o as RulePack, r as DoctorRule } from "./primitives-Nhpqd5ap.mjs";
|
|
3
2
|
//#region src/rule-packs/vite/rules/define.d.ts
|
|
4
3
|
declare const noUnusedDefine: DoctorRule;
|
|
5
4
|
declare const noUntypedDefine: DoctorRule;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index-B8FjkmY1.mjs";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as defineDoctorConfig, n as DoctorRunOptions, t as DoctorConfig } from "./config-
|
|
2
|
-
import { n as doctor, t as ViteDoctorSurfaceOptions } from "./plugin-
|
|
1
|
+
import { i as defineDoctorConfig, n as DoctorRunOptions, t as DoctorConfig } from "./config-CXNytHmY.mjs";
|
|
2
|
+
import { n as doctor, t as ViteDoctorSurfaceOptions } from "./plugin-Dnhz_kMz.mjs";
|
|
3
3
|
export { type DoctorConfig, type DoctorRunOptions, type ViteDoctorSurfaceOptions, defineDoctorConfig, doctor };
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as defineDoctorConfig } from "./config-
|
|
2
|
-
import { t as doctor } from "./plugin-
|
|
1
|
+
import { t as defineDoctorConfig } from "./config-cx1PzoSm.mjs";
|
|
2
|
+
import { t as doctor } from "./plugin-tOk2jSfx.mjs";
|
|
3
3
|
export { defineDoctorConfig, doctor };
|
|
@@ -97,7 +97,7 @@ async function writeManifest(nuxt, evidence) {
|
|
|
97
97
|
middleware: handler.middleware
|
|
98
98
|
})),
|
|
99
99
|
pages: evidence?.pages ?? [],
|
|
100
|
-
prerenderRoutes: [
|
|
100
|
+
prerenderRoutes: [.../* @__PURE__ */ new Set([...toArray(nuxt.options.nitro?.prerender?.routes).map(String), ...[...evidence?.prerenderRoutes ?? []].map(String)])].sort(),
|
|
101
101
|
buildManifest: evidence?.buildManifest ?? {
|
|
102
102
|
hasBuildManifest: false,
|
|
103
103
|
chunks: []
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { a as NuxtDoctorManifest, o as RulePack, t as DoctorExtension } from "./primitives-
|
|
2
|
-
import { t as DoctorConfig } from "./config-
|
|
1
|
+
import { a as NuxtDoctorManifest, o as RulePack, t as DoctorExtension } from "./primitives-Nhpqd5ap.mjs";
|
|
2
|
+
import { t as DoctorConfig } from "./config-CXNytHmY.mjs";
|
|
3
|
+
import "./index-Benbi54b.mjs";
|
|
3
4
|
//#region src/rule-packs/nuxt/module.d.ts
|
|
4
5
|
interface NuxtDoctorModuleOptions {
|
|
5
6
|
config?: DoctorConfig;
|
package/dist/nuxt.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as nuxtDoctorModule, t as NuxtDoctorModuleOptions } from "./module-
|
|
1
|
+
import { i as nuxtDoctorModule, t as NuxtDoctorModuleOptions } from "./module-DtYfgazD.mjs";
|
|
2
2
|
export { type NuxtDoctorModuleOptions, nuxtDoctorModule as default };
|
package/dist/nuxt.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { r as nuxtDoctorModule } from "./module-
|
|
1
|
+
import { r as nuxtDoctorModule } from "./module-DHwkZLxN.mjs";
|
|
2
2
|
export { nuxtDoctorModule as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as DoctorExtension } from "./primitives-
|
|
2
|
-
import { n as DoctorRunOptions, t as DoctorConfig } from "./config-
|
|
1
|
+
import { t as DoctorExtension } from "./primitives-Nhpqd5ap.mjs";
|
|
2
|
+
import { n as DoctorRunOptions, t as DoctorConfig } from "./config-CXNytHmY.mjs";
|
|
3
|
+
import "./index-Benbi54b.mjs";
|
|
3
4
|
import { Plugin } from "vite";
|
|
4
|
-
|
|
5
5
|
//#region src/plugin.d.ts
|
|
6
6
|
interface ViteDoctorSurfaceOptions {
|
|
7
7
|
enabled?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as defineDoctorExtension, n as createReport } from "./core-
|
|
2
|
-
import { n as shouldFailDoctorRun, t as runViteDoctor } from "./doctor-
|
|
1
|
+
import { f as defineDoctorExtension, n as createReport } from "./core-DIaW0HIr.mjs";
|
|
2
|
+
import { n as shouldFailDoctorRun, t as runViteDoctor } from "./doctor-yC2Ke8Ae.mjs";
|
|
3
3
|
import { resolve } from "pathe";
|
|
4
4
|
//#region src/plugin.ts
|
|
5
5
|
function doctor(options = {}) {
|
package/dist/plugin.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as doctor, t as ViteDoctorSurfaceOptions } from "./plugin-
|
|
1
|
+
import { n as doctor, t as ViteDoctorSurfaceOptions } from "./plugin-Dnhz_kMz.mjs";
|
|
2
2
|
export { ViteDoctorSurfaceOptions, doctor };
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as doctor } from "./plugin-
|
|
1
|
+
import { t as doctor } from "./plugin-tOk2jSfx.mjs";
|
|
2
2
|
export { doctor };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { _ as noUseNuxtAppInNitro, a as preferValidatedRouterParams, c as noBrowserApiInServer, d as preferH3RedirectResponse, f as noRemovedH3Send, g as noNavigateToInNitro, h as requireEventRuntimeConfigInServer, i as preferAssertMethod, l as noClientComposablesInServer, m as noEventRuntimeConfigInServer, n as preferGetRequestIp, o as preferValidatedQuery, p as noV2Imports, r as preferRouteMethodSuffix, s as preferValidatedBody, t as nitroRulePack, u as preferH3WithBase } from "../../index-
|
|
1
|
+
import { _ as noUseNuxtAppInNitro, a as preferValidatedRouterParams, c as noBrowserApiInServer, d as preferH3RedirectResponse, f as noRemovedH3Send, g as noNavigateToInNitro, h as requireEventRuntimeConfigInServer, i as preferAssertMethod, l as noClientComposablesInServer, m as noEventRuntimeConfigInServer, n as preferGetRequestIp, o as preferValidatedQuery, p as noV2Imports, r as preferRouteMethodSuffix, s as preferValidatedBody, t as nitroRulePack, u as preferH3WithBase } from "../../index-B8FjkmY1.mjs";
|
|
2
|
+
import "../../index-xAh4vxLh.mjs";
|
|
2
3
|
export { nitroRulePack, noBrowserApiInServer, noClientComposablesInServer, noEventRuntimeConfigInServer, noNavigateToInNitro, noRemovedH3Send, noUseNuxtAppInNitro, noV2Imports, preferAssertMethod, preferGetRequestIp, preferH3RedirectResponse, preferH3WithBase, preferRouteMethodSuffix, preferValidatedBody, preferValidatedQuery, preferValidatedRouterParams, requireEventRuntimeConfigInServer };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as noUseNuxtAppInNitro, a as preferValidatedRouterParams, c as noBrowserApiInServer, d as preferH3RedirectResponse, f as noRemovedH3Send, g as noNavigateToInNitro, h as requireEventRuntimeConfigInServer, i as preferAssertMethod, l as noClientComposablesInServer, m as noEventRuntimeConfigInServer, n as preferGetRequestIp, o as preferValidatedQuery, p as noV2Imports, r as preferRouteMethodSuffix, s as preferValidatedBody, t as nitroRulePack, u as preferH3WithBase } from "../../rules-
|
|
2
|
-
import "../../nitro-
|
|
1
|
+
import { _ as noUseNuxtAppInNitro, a as preferValidatedRouterParams, c as noBrowserApiInServer, d as preferH3RedirectResponse, f as noRemovedH3Send, g as noNavigateToInNitro, h as requireEventRuntimeConfigInServer, i as preferAssertMethod, l as noClientComposablesInServer, m as noEventRuntimeConfigInServer, n as preferGetRequestIp, o as preferValidatedQuery, p as noV2Imports, r as preferRouteMethodSuffix, s as preferValidatedBody, t as nitroRulePack, u as preferH3WithBase } from "../../rules-Cp2zeuza.mjs";
|
|
2
|
+
import "../../nitro-BRgJaQgL.mjs";
|
|
3
3
|
export { nitroRulePack, noBrowserApiInServer, noClientComposablesInServer, noEventRuntimeConfigInServer, noNavigateToInNitro, noRemovedH3Send, noUseNuxtAppInNitro, noV2Imports, preferAssertMethod, preferGetRequestIp, preferH3RedirectResponse, preferH3WithBase, preferRouteMethodSuffix, preferValidatedBody, preferValidatedQuery, preferValidatedRouterParams, requireEventRuntimeConfigInServer };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as noUseNuxtAppInNitro, a as preferValidatedRouterParams, c as noBrowserApiInServer, d as preferH3RedirectResponse, f as noRemovedH3Send, g as noNavigateToInNitro, h as requireEventRuntimeConfigInServer, i as preferAssertMethod, l as noClientComposablesInServer, m as noEventRuntimeConfigInServer, n as preferGetRequestIp, o as preferValidatedQuery, p as noV2Imports, r as preferRouteMethodSuffix, s as preferValidatedBody, t as nitroRulePack, u as preferH3WithBase } from "../../index-
|
|
1
|
+
import { _ as noUseNuxtAppInNitro, a as preferValidatedRouterParams, c as noBrowserApiInServer, d as preferH3RedirectResponse, f as noRemovedH3Send, g as noNavigateToInNitro, h as requireEventRuntimeConfigInServer, i as preferAssertMethod, l as noClientComposablesInServer, m as noEventRuntimeConfigInServer, n as preferGetRequestIp, o as preferValidatedQuery, p as noV2Imports, r as preferRouteMethodSuffix, s as preferValidatedBody, t as nitroRulePack, u as preferH3WithBase } from "../../index-B8FjkmY1.mjs";
|
|
2
2
|
export { nitroRulePack, noBrowserApiInServer, noClientComposablesInServer, noEventRuntimeConfigInServer, noNavigateToInNitro, noRemovedH3Send, noUseNuxtAppInNitro, noV2Imports, preferAssertMethod, preferGetRequestIp, preferH3RedirectResponse, preferH3WithBase, preferRouteMethodSuffix, preferValidatedBody, preferValidatedQuery, preferValidatedRouterParams, requireEventRuntimeConfigInServer };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as noUseNuxtAppInNitro, a as preferValidatedRouterParams, c as noBrowserApiInServer, d as preferH3RedirectResponse, f as noRemovedH3Send, g as noNavigateToInNitro, h as requireEventRuntimeConfigInServer, i as preferAssertMethod, l as noClientComposablesInServer, m as noEventRuntimeConfigInServer, n as preferGetRequestIp, o as preferValidatedQuery, p as noV2Imports, r as preferRouteMethodSuffix, s as preferValidatedBody, t as nitroRulePack, u as preferH3WithBase } from "../../rules-
|
|
1
|
+
import { _ as noUseNuxtAppInNitro, a as preferValidatedRouterParams, c as noBrowserApiInServer, d as preferH3RedirectResponse, f as noRemovedH3Send, g as noNavigateToInNitro, h as requireEventRuntimeConfigInServer, i as preferAssertMethod, l as noClientComposablesInServer, m as noEventRuntimeConfigInServer, n as preferGetRequestIp, o as preferValidatedQuery, p as noV2Imports, r as preferRouteMethodSuffix, s as preferValidatedBody, t as nitroRulePack, u as preferH3WithBase } from "../../rules-Cp2zeuza.mjs";
|
|
2
2
|
export { nitroRulePack, noBrowserApiInServer, noClientComposablesInServer, noEventRuntimeConfigInServer, noNavigateToInNitro, noRemovedH3Send, noUseNuxtAppInNitro, noV2Imports, preferAssertMethod, preferGetRequestIp, preferH3RedirectResponse, preferH3WithBase, preferRouteMethodSuffix, preferValidatedBody, preferValidatedQuery, preferValidatedRouterParams, requireEventRuntimeConfigInServer };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as NuxtDoctorManifest } from "../../primitives-
|
|
2
|
-
import { a as writeManifest, i as nuxtDoctorModule, n as collectNuxtDoctorExtensions, r as collectNuxtDoctorRulePacks, t as NuxtDoctorModuleOptions } from "../../module-
|
|
1
|
+
import { a as NuxtDoctorManifest } from "../../primitives-Nhpqd5ap.mjs";
|
|
2
|
+
import { a as writeManifest, i as nuxtDoctorModule, n as collectNuxtDoctorExtensions, r as collectNuxtDoctorRulePacks, t as NuxtDoctorModuleOptions } from "../../module-DtYfgazD.mjs";
|
|
3
3
|
export { type NuxtDoctorManifest, NuxtDoctorModuleOptions, collectNuxtDoctorExtensions, collectNuxtDoctorRulePacks, nuxtDoctorModule as default, writeManifest };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as writeManifest, n as collectNuxtDoctorRulePacks, r as nuxtDoctorModule, t as collectNuxtDoctorExtensions } from "../../module-
|
|
1
|
+
import { i as writeManifest, n as collectNuxtDoctorRulePacks, r as nuxtDoctorModule, t as collectNuxtDoctorExtensions } from "../../module-DHwkZLxN.mjs";
|
|
2
2
|
export { collectNuxtDoctorExtensions, collectNuxtDoctorRulePacks, nuxtDoctorModule as default, writeManifest };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as NuxtDoctorManifest } from "../../primitives-
|
|
2
|
-
import { a as writeManifest, i as nuxtDoctorModule, n as collectNuxtDoctorExtensions, r as collectNuxtDoctorRulePacks, t as NuxtDoctorModuleOptions } from "../../module-
|
|
1
|
+
import { a as NuxtDoctorManifest } from "../../primitives-Nhpqd5ap.mjs";
|
|
2
|
+
import { a as writeManifest, i as nuxtDoctorModule, n as collectNuxtDoctorExtensions, r as collectNuxtDoctorRulePacks, t as NuxtDoctorModuleOptions } from "../../module-DtYfgazD.mjs";
|
|
3
3
|
export { type NuxtDoctorManifest, NuxtDoctorModuleOptions, collectNuxtDoctorExtensions, collectNuxtDoctorRulePacks, nuxtDoctorModule as default, writeManifest };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as writeManifest, n as collectNuxtDoctorRulePacks, r as nuxtDoctorModule, t as collectNuxtDoctorExtensions } from "../../module-
|
|
1
|
+
import { i as writeManifest, n as collectNuxtDoctorRulePacks, r as nuxtDoctorModule, t as collectNuxtDoctorExtensions } from "../../module-DHwkZLxN.mjs";
|
|
2
2
|
export { collectNuxtDoctorExtensions, collectNuxtDoctorRulePacks, nuxtDoctorModule as default, writeManifest };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { o as RulePack, t as DoctorExtension } from "../../../primitives-
|
|
2
|
-
import
|
|
1
|
+
import { o as RulePack, t as DoctorExtension } from "../../../primitives-Nhpqd5ap.mjs";
|
|
2
|
+
import "../../../index-Benbi54b.mjs";
|
|
3
|
+
import { t as nitroRulePack } from "../../../index-B8FjkmY1.mjs";
|
|
4
|
+
import "../../../index-xAh4vxLh.mjs";
|
|
3
5
|
//#region src/rule-packs/nuxt/rules/nuxt/index.d.ts
|
|
4
6
|
declare const nuxtRulePack: RulePack;
|
|
5
7
|
//#endregion
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as nitroRulePack } from "../../../rules-
|
|
2
|
-
import { a as nuxtImageRulePack, c as nuxtScriptsRulePack, d as nuxtRulePack, i as nuxtHubRulePack, l as nuxtUiRulePack, n as nuxtRulePacks, o as nuxtBetterAuthRulePack, r as docusRulePack, s as vueUseRulePack, t as nuxtDoctorExtensions, u as nuxtContentRulePack } from "../../../rules-
|
|
1
|
+
import { t as nitroRulePack } from "../../../rules-Cp2zeuza.mjs";
|
|
2
|
+
import { a as nuxtImageRulePack, c as nuxtScriptsRulePack, d as nuxtRulePack, i as nuxtHubRulePack, l as nuxtUiRulePack, n as nuxtRulePacks, o as nuxtBetterAuthRulePack, r as docusRulePack, s as vueUseRulePack, t as nuxtDoctorExtensions, u as nuxtContentRulePack } from "../../../rules-CQY9fsh1.mjs";
|
|
3
3
|
export { docusRulePack, nitroRulePack, nuxtBetterAuthRulePack, nuxtContentRulePack, nuxtDoctorExtensions, nuxtHubRulePack, nuxtImageRulePack, nuxtRulePack, nuxtRulePacks, nuxtScriptsRulePack, nuxtUiRulePack, vueUseRulePack };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "../../index-
|
|
1
|
+
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "../../index-DxuqP4UF.mjs";
|
|
2
2
|
export { noBroadEnvPrefix, noBroadFsAllow, noBrowserGlobalInSsrEntry, noClientSecretPattern, noDisabledFsStrict, noDynamicNewUrl, noDynamicWorkerUrl, noEmptyEnvPrefix, noNodeApiInWorker, noPublicSrcImport, noRuntimeObjectDefine, noSecretDefine, noSrcAbsolutePublicUrl, noUntypedDefine, noUntypedEnv, noUnusedDefine, preferDirectImportMetaEnvAccess, preferTransformFilter, requireDisposeForSideEffects, requirePluginName, requireWorkerUrlPattern, viteRulePack };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "../../rules-
|
|
1
|
+
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "../../rules-0AWH0_wP.mjs";
|
|
2
2
|
export { noBroadEnvPrefix, noBroadFsAllow, noBrowserGlobalInSsrEntry, noClientSecretPattern, noDisabledFsStrict, noDynamicNewUrl, noDynamicWorkerUrl, noEmptyEnvPrefix, noNodeApiInWorker, noPublicSrcImport, noRuntimeObjectDefine, noSecretDefine, noSrcAbsolutePublicUrl, noUntypedDefine, noUntypedEnv, noUnusedDefine, preferDirectImportMetaEnvAccess, preferTransformFilter, requireDisposeForSideEffects, requirePluginName, requireWorkerUrlPattern, viteRulePack };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "../../../index-
|
|
1
|
+
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "../../../index-DxuqP4UF.mjs";
|
|
2
2
|
export { viteRulePack as default, noBroadEnvPrefix, noBroadFsAllow, noBrowserGlobalInSsrEntry, noClientSecretPattern, noDisabledFsStrict, noDynamicNewUrl, noDynamicWorkerUrl, noEmptyEnvPrefix, noNodeApiInWorker, noPublicSrcImport, noRuntimeObjectDefine, noSecretDefine, noSrcAbsolutePublicUrl, noUntypedDefine, noUntypedEnv, noUnusedDefine, preferDirectImportMetaEnvAccess, preferTransformFilter, requireDisposeForSideEffects, requirePluginName, requireWorkerUrlPattern };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "../../../rules-
|
|
1
|
+
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "../../../rules-0AWH0_wP.mjs";
|
|
2
2
|
export { viteRulePack as default, noBroadEnvPrefix, noBroadFsAllow, noBrowserGlobalInSsrEntry, noClientSecretPattern, noDisabledFsStrict, noDynamicNewUrl, noDynamicWorkerUrl, noEmptyEnvPrefix, noNodeApiInWorker, noPublicSrcImport, noRuntimeObjectDefine, noSecretDefine, noSrcAbsolutePublicUrl, noUntypedDefine, noUntypedEnv, noUnusedDefine, preferDirectImportMetaEnvAccess, preferTransformFilter, requireDisposeForSideEffects, requirePluginName, requireWorkerUrlPattern };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as htmlButtonHasType, E as definePropsWatchGetter, S as preferUseTemplateRef, T as noRefAsOperand, _ as noAsyncWatchEffectAfterAwaitRead, a as preferComposableRefReturn, b as noBrowserApiInSetup, c as preferDefineModel, d as preferUseIdForStableIds, f as requireLifecycleCleanup, g as requireWatcherCleanup, h as requirePostFlushForDomWatch, i as preferSameNamePropShorthand, l as dataAllowMismatchSurgical, m as preferUseEventListener, n as noUntranslatedText, o as preferTypeProps, p as noMutationInOnUpdated, r as noUnusedTranslations, s as preferPropsDestructureDefaults, t as vueRulePack, u as noRandomOrLocalTimeRender, v as noSetupPropsDestructure, w as noOnWatcherCleanupAfterAwait, x as preferTrueAttributeShorthand, y as restrictVHtml } from "../../rules-
|
|
1
|
+
import { C as htmlButtonHasType, E as definePropsWatchGetter, S as preferUseTemplateRef, T as noRefAsOperand, _ as noAsyncWatchEffectAfterAwaitRead, a as preferComposableRefReturn, b as noBrowserApiInSetup, c as preferDefineModel, d as preferUseIdForStableIds, f as requireLifecycleCleanup, g as requireWatcherCleanup, h as requirePostFlushForDomWatch, i as preferSameNamePropShorthand, l as dataAllowMismatchSurgical, m as preferUseEventListener, n as noUntranslatedText, o as preferTypeProps, p as noMutationInOnUpdated, r as noUnusedTranslations, s as preferPropsDestructureDefaults, t as vueRulePack, u as noRandomOrLocalTimeRender, v as noSetupPropsDestructure, w as noOnWatcherCleanupAfterAwait, x as preferTrueAttributeShorthand, y as restrictVHtml } from "../../rules-D66KCcT1.mjs";
|
|
2
2
|
export { dataAllowMismatchSurgical, definePropsWatchGetter, htmlButtonHasType, noAsyncWatchEffectAfterAwaitRead, noBrowserApiInSetup, noMutationInOnUpdated, noOnWatcherCleanupAfterAwait, noRandomOrLocalTimeRender, noRefAsOperand, noSetupPropsDestructure, noUntranslatedText, noUnusedTranslations, preferComposableRefReturn, preferDefineModel, preferPropsDestructureDefaults, preferSameNamePropShorthand, preferTrueAttributeShorthand, preferTypeProps, preferUseEventListener, preferUseIdForStableIds, preferUseTemplateRef, requireLifecycleCleanup, requirePostFlushForDomWatch, requireWatcherCleanup, restrictVHtml, vueRulePack };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as htmlButtonHasType, E as definePropsWatchGetter, S as preferUseTemplateRef, T as noRefAsOperand, _ as noAsyncWatchEffectAfterAwaitRead, a as preferComposableRefReturn, b as noBrowserApiInSetup, c as preferDefineModel, d as preferUseIdForStableIds, f as requireLifecycleCleanup, g as requireWatcherCleanup, h as requirePostFlushForDomWatch, i as preferSameNamePropShorthand, l as dataAllowMismatchSurgical, m as preferUseEventListener, n as noUntranslatedText, o as preferTypeProps, p as noMutationInOnUpdated, r as noUnusedTranslations, s as preferPropsDestructureDefaults, t as vueRulePack, u as noRandomOrLocalTimeRender, v as noSetupPropsDestructure, w as noOnWatcherCleanupAfterAwait, x as preferTrueAttributeShorthand, y as restrictVHtml } from "../../rules-
|
|
1
|
+
import { C as htmlButtonHasType, E as definePropsWatchGetter, S as preferUseTemplateRef, T as noRefAsOperand, _ as noAsyncWatchEffectAfterAwaitRead, a as preferComposableRefReturn, b as noBrowserApiInSetup, c as preferDefineModel, d as preferUseIdForStableIds, f as requireLifecycleCleanup, g as requireWatcherCleanup, h as requirePostFlushForDomWatch, i as preferSameNamePropShorthand, l as dataAllowMismatchSurgical, m as preferUseEventListener, n as noUntranslatedText, o as preferTypeProps, p as noMutationInOnUpdated, r as noUnusedTranslations, s as preferPropsDestructureDefaults, t as vueRulePack, u as noRandomOrLocalTimeRender, v as noSetupPropsDestructure, w as noOnWatcherCleanupAfterAwait, x as preferTrueAttributeShorthand, y as restrictVHtml } from "../../rules-DPvqsm4U.mjs";
|
|
2
2
|
export { dataAllowMismatchSurgical, definePropsWatchGetter, htmlButtonHasType, noAsyncWatchEffectAfterAwaitRead, noBrowserApiInSetup, noMutationInOnUpdated, noOnWatcherCleanupAfterAwait, noRandomOrLocalTimeRender, noRefAsOperand, noSetupPropsDestructure, noUntranslatedText, noUnusedTranslations, preferComposableRefReturn, preferDefineModel, preferPropsDestructureDefaults, preferSameNamePropShorthand, preferTrueAttributeShorthand, preferTypeProps, preferUseEventListener, preferUseIdForStableIds, preferUseTemplateRef, requireLifecycleCleanup, requirePostFlushForDomWatch, requireWatcherCleanup, restrictVHtml, vueRulePack };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as htmlButtonHasType, E as definePropsWatchGetter, S as preferUseTemplateRef, T as noRefAsOperand, _ as noAsyncWatchEffectAfterAwaitRead, a as preferComposableRefReturn, b as noBrowserApiInSetup, c as preferDefineModel, d as preferUseIdForStableIds, f as requireLifecycleCleanup, g as requireWatcherCleanup, h as requirePostFlushForDomWatch, i as preferSameNamePropShorthand, l as dataAllowMismatchSurgical, m as preferUseEventListener, n as noUntranslatedText, o as preferTypeProps, p as noMutationInOnUpdated, r as noUnusedTranslations, s as preferPropsDestructureDefaults, t as vueRulePack, u as noRandomOrLocalTimeRender, v as noSetupPropsDestructure, w as noOnWatcherCleanupAfterAwait, x as preferTrueAttributeShorthand, y as restrictVHtml } from "../../rules-
|
|
1
|
+
import { C as htmlButtonHasType, E as definePropsWatchGetter, S as preferUseTemplateRef, T as noRefAsOperand, _ as noAsyncWatchEffectAfterAwaitRead, a as preferComposableRefReturn, b as noBrowserApiInSetup, c as preferDefineModel, d as preferUseIdForStableIds, f as requireLifecycleCleanup, g as requireWatcherCleanup, h as requirePostFlushForDomWatch, i as preferSameNamePropShorthand, l as dataAllowMismatchSurgical, m as preferUseEventListener, n as noUntranslatedText, o as preferTypeProps, p as noMutationInOnUpdated, r as noUnusedTranslations, s as preferPropsDestructureDefaults, t as vueRulePack, u as noRandomOrLocalTimeRender, v as noSetupPropsDestructure, w as noOnWatcherCleanupAfterAwait, x as preferTrueAttributeShorthand, y as restrictVHtml } from "../../rules-D66KCcT1.mjs";
|
|
2
2
|
export { dataAllowMismatchSurgical, definePropsWatchGetter, htmlButtonHasType, noAsyncWatchEffectAfterAwaitRead, noBrowserApiInSetup, noMutationInOnUpdated, noOnWatcherCleanupAfterAwait, noRandomOrLocalTimeRender, noRefAsOperand, noSetupPropsDestructure, noUntranslatedText, noUnusedTranslations, preferComposableRefReturn, preferDefineModel, preferPropsDestructureDefaults, preferSameNamePropShorthand, preferTrueAttributeShorthand, preferTypeProps, preferUseEventListener, preferUseIdForStableIds, preferUseTemplateRef, requireLifecycleCleanup, requirePostFlushForDomWatch, requireWatcherCleanup, restrictVHtml, vueRulePack };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as htmlButtonHasType, E as definePropsWatchGetter, S as preferUseTemplateRef, T as noRefAsOperand, _ as noAsyncWatchEffectAfterAwaitRead, a as preferComposableRefReturn, b as noBrowserApiInSetup, c as preferDefineModel, d as preferUseIdForStableIds, f as requireLifecycleCleanup, g as requireWatcherCleanup, h as requirePostFlushForDomWatch, i as preferSameNamePropShorthand, l as dataAllowMismatchSurgical, m as preferUseEventListener, n as noUntranslatedText, o as preferTypeProps, p as noMutationInOnUpdated, r as noUnusedTranslations, s as preferPropsDestructureDefaults, t as vueRulePack, u as noRandomOrLocalTimeRender, v as noSetupPropsDestructure, w as noOnWatcherCleanupAfterAwait, x as preferTrueAttributeShorthand, y as restrictVHtml } from "../../rules-
|
|
1
|
+
import { C as htmlButtonHasType, E as definePropsWatchGetter, S as preferUseTemplateRef, T as noRefAsOperand, _ as noAsyncWatchEffectAfterAwaitRead, a as preferComposableRefReturn, b as noBrowserApiInSetup, c as preferDefineModel, d as preferUseIdForStableIds, f as requireLifecycleCleanup, g as requireWatcherCleanup, h as requirePostFlushForDomWatch, i as preferSameNamePropShorthand, l as dataAllowMismatchSurgical, m as preferUseEventListener, n as noUntranslatedText, o as preferTypeProps, p as noMutationInOnUpdated, r as noUnusedTranslations, s as preferPropsDestructureDefaults, t as vueRulePack, u as noRandomOrLocalTimeRender, v as noSetupPropsDestructure, w as noOnWatcherCleanupAfterAwait, x as preferTrueAttributeShorthand, y as restrictVHtml } from "../../rules-DPvqsm4U.mjs";
|
|
2
2
|
export { dataAllowMismatchSurgical, definePropsWatchGetter, htmlButtonHasType, noAsyncWatchEffectAfterAwaitRead, noBrowserApiInSetup, noMutationInOnUpdated, noOnWatcherCleanupAfterAwait, noRandomOrLocalTimeRender, noRefAsOperand, noSetupPropsDestructure, noUntranslatedText, noUnusedTranslations, preferComposableRefReturn, preferDefineModel, preferPropsDestructureDefaults, preferSameNamePropShorthand, preferTrueAttributeShorthand, preferTypeProps, preferUseEventListener, preferUseIdForStableIds, preferUseTemplateRef, requireLifecycleCleanup, requirePostFlushForDomWatch, requireWatcherCleanup, restrictVHtml, vueRulePack };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as createRule, o as defineDoctorDiagnostics, p as defineRulePack } from "./core-
|
|
1
|
+
import { d as createRule, o as defineDoctorDiagnostics, p as defineRulePack } from "./core-DIaW0HIr.mjs";
|
|
2
2
|
import { dirname, resolve } from "pathe";
|
|
3
3
|
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
4
4
|
import { glob } from "node:fs/promises";
|
|
@@ -517,7 +517,7 @@ const noBroadEnvPrefix = createRule({
|
|
|
517
517
|
} };
|
|
518
518
|
}
|
|
519
519
|
});
|
|
520
|
-
const builtInEnvKeys = new Set([
|
|
520
|
+
const builtInEnvKeys = /* @__PURE__ */ new Set([
|
|
521
521
|
"MODE",
|
|
522
522
|
"BASE_URL",
|
|
523
523
|
"PROD",
|
|
@@ -828,7 +828,7 @@ const noBrowserGlobalInSsrEntry = createRule({
|
|
|
828
828
|
} };
|
|
829
829
|
}
|
|
830
830
|
});
|
|
831
|
-
const browserGlobals = new Set([
|
|
831
|
+
const browserGlobals = /* @__PURE__ */ new Set([
|
|
832
832
|
"window",
|
|
833
833
|
"document",
|
|
834
834
|
"localStorage",
|
|
@@ -1044,26 +1044,27 @@ const rules = [
|
|
|
1044
1044
|
preferTransformFilter,
|
|
1045
1045
|
requireDisposeForSideEffects
|
|
1046
1046
|
];
|
|
1047
|
+
const recommended = [
|
|
1048
|
+
noSecretDefine,
|
|
1049
|
+
noClientSecretPattern,
|
|
1050
|
+
noEmptyEnvPrefix,
|
|
1051
|
+
noBroadEnvPrefix,
|
|
1052
|
+
noPublicSrcImport,
|
|
1053
|
+
noSrcAbsolutePublicUrl,
|
|
1054
|
+
noDynamicNewUrl,
|
|
1055
|
+
requireWorkerUrlPattern,
|
|
1056
|
+
noDynamicWorkerUrl,
|
|
1057
|
+
noBrowserGlobalInSsrEntry,
|
|
1058
|
+
noDisabledFsStrict,
|
|
1059
|
+
noBroadFsAllow,
|
|
1060
|
+
requireDisposeForSideEffects
|
|
1061
|
+
].map((rule) => rule.meta.id);
|
|
1047
1062
|
const viteRulePack = defineRulePack({
|
|
1048
1063
|
name: "vite-doctor/vite",
|
|
1049
1064
|
version: "0.0.0",
|
|
1050
1065
|
rules,
|
|
1051
1066
|
presets: {
|
|
1052
|
-
recommended
|
|
1053
|
-
noSecretDefine,
|
|
1054
|
-
noClientSecretPattern,
|
|
1055
|
-
noEmptyEnvPrefix,
|
|
1056
|
-
noBroadEnvPrefix,
|
|
1057
|
-
noPublicSrcImport,
|
|
1058
|
-
noSrcAbsolutePublicUrl,
|
|
1059
|
-
noDynamicNewUrl,
|
|
1060
|
-
requireWorkerUrlPattern,
|
|
1061
|
-
noDynamicWorkerUrl,
|
|
1062
|
-
noBrowserGlobalInSsrEntry,
|
|
1063
|
-
noDisabledFsStrict,
|
|
1064
|
-
noBroadFsAllow,
|
|
1065
|
-
requireDisposeForSideEffects
|
|
1066
|
-
].map((rule) => rule.meta.id),
|
|
1067
|
+
recommended,
|
|
1067
1068
|
strict: rules.map((rule) => rule.meta.id)
|
|
1068
1069
|
}
|
|
1069
1070
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as codeForRuleId, d as createRule, f as defineDoctorExtension, m as doctorInternalDiagnostics, o as defineDoctorDiagnostics, p as defineRulePack, s as diagnosticForCode } from "./core-
|
|
2
|
-
import { b as sourceForNode, t as nitroRulePack, v as findAncestor, x as walkScriptLocal, y as nearestFunctionOrProgram } from "./rules-
|
|
3
|
-
import "./nitro-
|
|
4
|
-
import { t as vueRulePack } from "./rules-
|
|
1
|
+
import { a as codeForRuleId, d as createRule, f as defineDoctorExtension, m as doctorInternalDiagnostics, o as defineDoctorDiagnostics, p as defineRulePack, s as diagnosticForCode } from "./core-DIaW0HIr.mjs";
|
|
2
|
+
import { b as sourceForNode, t as nitroRulePack, v as findAncestor, x as walkScriptLocal, y as nearestFunctionOrProgram } from "./rules-Cp2zeuza.mjs";
|
|
3
|
+
import "./nitro-BRgJaQgL.mjs";
|
|
4
|
+
import { t as vueRulePack } from "./rules-DPvqsm4U.mjs";
|
|
5
5
|
import { join, relative } from "pathe";
|
|
6
6
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
7
7
|
//#region src/rule-packs/nuxt/diagnostics.ts
|
|
@@ -303,7 +303,7 @@ const diagnostics = nuxtDiagnosticRegistry.diagnostics;
|
|
|
303
303
|
const diagnosticCodesByRuleId = nuxtDiagnosticRegistry.codesByRuleId;
|
|
304
304
|
//#endregion
|
|
305
305
|
//#region src/rule-packs/nuxt/rules/nuxt/file-classification.ts
|
|
306
|
-
const NUXT_APP_DIRS = new Set([
|
|
306
|
+
const NUXT_APP_DIRS = /* @__PURE__ */ new Set([
|
|
307
307
|
"assets",
|
|
308
308
|
"components",
|
|
309
309
|
"composables",
|
|
@@ -667,7 +667,7 @@ function escapeRegExp(value) {
|
|
|
667
667
|
}
|
|
668
668
|
//#endregion
|
|
669
669
|
//#region src/rule-packs/nuxt/rules/nuxt/shared.ts
|
|
670
|
-
const NUXT_AUTO_IMPORTS = new Set([
|
|
670
|
+
const NUXT_AUTO_IMPORTS = /* @__PURE__ */ new Set([
|
|
671
671
|
"useFetch",
|
|
672
672
|
"useAsyncData",
|
|
673
673
|
"useRoute",
|
|
@@ -679,13 +679,13 @@ const NUXT_AUTO_IMPORTS = new Set([
|
|
|
679
679
|
"defineNuxtRouteMiddleware",
|
|
680
680
|
"useState"
|
|
681
681
|
]);
|
|
682
|
-
const BROWSER_SIDE_EFFECTS = new Set([
|
|
682
|
+
const BROWSER_SIDE_EFFECTS = /* @__PURE__ */ new Set([
|
|
683
683
|
"localStorage.setItem",
|
|
684
684
|
"sessionStorage.setItem",
|
|
685
685
|
"document.write",
|
|
686
686
|
"document.title"
|
|
687
687
|
]);
|
|
688
|
-
const BROWSER_GLOBALS = new Set([
|
|
688
|
+
const BROWSER_GLOBALS = /* @__PURE__ */ new Set([
|
|
689
689
|
"window",
|
|
690
690
|
"document",
|
|
691
691
|
"localStorage",
|
|
@@ -970,19 +970,19 @@ const noRawFetchInSetup = createRule({
|
|
|
970
970
|
});
|
|
971
971
|
//#endregion
|
|
972
972
|
//#region src/rule-packs/nuxt/rules/nuxt/async-data.ts
|
|
973
|
-
const ASYNC_DATA_COMPOSABLES = new Set([
|
|
973
|
+
const ASYNC_DATA_COMPOSABLES = /* @__PURE__ */ new Set([
|
|
974
974
|
"useFetch",
|
|
975
975
|
"useLazyFetch",
|
|
976
976
|
"useAsyncData",
|
|
977
977
|
"useLazyAsyncData"
|
|
978
978
|
]);
|
|
979
|
-
const FETCH_ASYNC_DATA_COMPOSABLES = new Set(["useFetch", "useLazyFetch"]);
|
|
980
|
-
const MUTATING_METHODS = new Set([
|
|
979
|
+
const FETCH_ASYNC_DATA_COMPOSABLES = /* @__PURE__ */ new Set(["useFetch", "useLazyFetch"]);
|
|
980
|
+
const MUTATING_METHODS = /* @__PURE__ */ new Set([
|
|
981
981
|
"PATCH",
|
|
982
982
|
"PUT",
|
|
983
983
|
"DELETE"
|
|
984
984
|
]);
|
|
985
|
-
const WRITE_METHODS = new Set([
|
|
985
|
+
const WRITE_METHODS = /* @__PURE__ */ new Set([
|
|
986
986
|
"POST",
|
|
987
987
|
"PATCH",
|
|
988
988
|
"PUT",
|
|
@@ -2588,7 +2588,7 @@ const noComposableAfterAwait = createRule({
|
|
|
2588
2588
|
create(ctx) {
|
|
2589
2589
|
const evidence = createNuxtRuntimeEvidence(ctx);
|
|
2590
2590
|
if (!isNuxtRuntimeFile(ctx) || isClientOnlyPath(ctx.file.relativePath)) return;
|
|
2591
|
-
const composables = new Set([
|
|
2591
|
+
const composables = /* @__PURE__ */ new Set([
|
|
2592
2592
|
...NUXT_AUTO_IMPORTS,
|
|
2593
2593
|
"useSeoMeta",
|
|
2594
2594
|
"useHead",
|
|
@@ -2748,9 +2748,9 @@ const keyedComposableRegistrationRequired = createRule({
|
|
|
2748
2748
|
});
|
|
2749
2749
|
//#endregion
|
|
2750
2750
|
//#region src/rule-packs/nuxt/rules/nuxt/prefer-seo-composables.ts
|
|
2751
|
-
const SEO_HEAD_KEYS = new Set(["title", "titleTemplate"]);
|
|
2751
|
+
const SEO_HEAD_KEYS = /* @__PURE__ */ new Set(["title", "titleTemplate"]);
|
|
2752
2752
|
const SEO_META_NAMES = /^(description|keywords|author|robots|og:|twitter:|article:|book:|profile:)/i;
|
|
2753
|
-
const NON_SEO_META_NAMES = new Set([
|
|
2753
|
+
const NON_SEO_META_NAMES = /* @__PURE__ */ new Set([
|
|
2754
2754
|
"charset",
|
|
2755
2755
|
"viewport",
|
|
2756
2756
|
"theme-color",
|
|
@@ -2816,7 +2816,7 @@ function staticPropertyKey$1(property) {
|
|
|
2816
2816
|
}
|
|
2817
2817
|
//#endregion
|
|
2818
2818
|
//#region src/rule-packs/nuxt/rules/nuxt/no-unsafe-use-head-script.ts
|
|
2819
|
-
const NON_EXECUTABLE_SCRIPT_TYPES = new Set([
|
|
2819
|
+
const NON_EXECUTABLE_SCRIPT_TYPES = /* @__PURE__ */ new Set([
|
|
2820
2820
|
"application/importmap+json",
|
|
2821
2821
|
"application/json",
|
|
2822
2822
|
"application/ld+json",
|
|
@@ -2881,7 +2881,7 @@ function propertyKeyName(property) {
|
|
|
2881
2881
|
}
|
|
2882
2882
|
//#endregion
|
|
2883
2883
|
//#region src/rule-packs/nuxt/rules/nuxt/prefer-use-head-safe-for-untrusted-values.ts
|
|
2884
|
-
const UNTRUSTED_IDENTIFIERS = new Set([
|
|
2884
|
+
const UNTRUSTED_IDENTIFIERS = /* @__PURE__ */ new Set([
|
|
2885
2885
|
"route",
|
|
2886
2886
|
"params",
|
|
2887
2887
|
"query",
|
|
@@ -3023,7 +3023,7 @@ const nuxtContentRulePack = defineRulePack({
|
|
|
3023
3023
|
});
|
|
3024
3024
|
//#endregion
|
|
3025
3025
|
//#region src/rule-packs/nuxt/rules/nuxt-ui.ts
|
|
3026
|
-
const TEXT_INPUT_TYPES = new Set([
|
|
3026
|
+
const TEXT_INPUT_TYPES = /* @__PURE__ */ new Set([
|
|
3027
3027
|
"text",
|
|
3028
3028
|
"email",
|
|
3029
3029
|
"password",
|
|
@@ -3258,7 +3258,7 @@ const nuxtScriptsRulePack = defineRulePack({
|
|
|
3258
3258
|
});
|
|
3259
3259
|
//#endregion
|
|
3260
3260
|
//#region src/rule-packs/nuxt/rules/vueuse.ts
|
|
3261
|
-
const VUEUSE_BROWSER_COMPOSABLES = new Set([
|
|
3261
|
+
const VUEUSE_BROWSER_COMPOSABLES = /* @__PURE__ */ new Set([
|
|
3262
3262
|
"useEventListener",
|
|
3263
3263
|
"useIntersectionObserver",
|
|
3264
3264
|
"useResizeObserver",
|
|
@@ -3543,7 +3543,7 @@ const rules$4 = [
|
|
|
3543
3543
|
}
|
|
3544
3544
|
},
|
|
3545
3545
|
create(ctx) {
|
|
3546
|
-
const colliding = new Set([
|
|
3546
|
+
const colliding = /* @__PURE__ */ new Set([
|
|
3547
3547
|
"useFetch",
|
|
3548
3548
|
"useCookie",
|
|
3549
3549
|
"useHead",
|
|
@@ -3856,7 +3856,7 @@ const nuxtHubRulePack = defineRulePack({
|
|
|
3856
3856
|
});
|
|
3857
3857
|
//#endregion
|
|
3858
3858
|
//#region src/rule-packs/nuxt/rules/docus.ts
|
|
3859
|
-
const ALLOWED_DOCUS_APP_CONFIG_KEYS = new Set([
|
|
3859
|
+
const ALLOWED_DOCUS_APP_CONFIG_KEYS = /* @__PURE__ */ new Set([
|
|
3860
3860
|
"docus",
|
|
3861
3861
|
"ui",
|
|
3862
3862
|
"seo",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as codeForRuleId, d as createRule, m as doctorInternalDiagnostics, o as defineDoctorDiagnostics, p as defineRulePack, s as diagnosticForCode } from "./core-
|
|
1
|
+
import { a as codeForRuleId, d as createRule, m as doctorInternalDiagnostics, o as defineDoctorDiagnostics, p as defineRulePack, s as diagnosticForCode } from "./core-DIaW0HIr.mjs";
|
|
2
2
|
//#region src/rule-packs/nitro/diagnostics.ts
|
|
3
3
|
const nitroDiagnosticRegistry = defineDoctorDiagnostics([
|
|
4
4
|
{
|
|
@@ -74,7 +74,7 @@ const diagnostics = nitroDiagnosticRegistry.diagnostics;
|
|
|
74
74
|
const diagnosticCodesByRuleId = nitroDiagnosticRegistry.codesByRuleId;
|
|
75
75
|
//#endregion
|
|
76
76
|
//#region src/core/rule-authoring.ts
|
|
77
|
-
const FN_OR_PROG_TYPES = new Set([
|
|
77
|
+
const FN_OR_PROG_TYPES = /* @__PURE__ */ new Set([
|
|
78
78
|
"Program",
|
|
79
79
|
"FunctionDeclaration",
|
|
80
80
|
"FunctionExpression",
|
|
@@ -116,7 +116,7 @@ function sourceForNode(node, source) {
|
|
|
116
116
|
}
|
|
117
117
|
//#endregion
|
|
118
118
|
//#region src/rule-packs/nitro/rules/shared.ts
|
|
119
|
-
const BROWSER_GLOBALS = new Set([
|
|
119
|
+
const BROWSER_GLOBALS = /* @__PURE__ */ new Set([
|
|
120
120
|
"window",
|
|
121
121
|
"document",
|
|
122
122
|
"localStorage",
|
|
@@ -423,7 +423,7 @@ const noClientComposablesInServer = createRule({
|
|
|
423
423
|
},
|
|
424
424
|
create(ctx) {
|
|
425
425
|
if (!ctx.helpers.isNuxtServerFile(ctx.file.relativePath)) return;
|
|
426
|
-
const clientComposables = new Set([
|
|
426
|
+
const clientComposables = /* @__PURE__ */ new Set([
|
|
427
427
|
"useRoute",
|
|
428
428
|
"useRouter",
|
|
429
429
|
"useState",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { o as RulePack, r as DoctorRule } from "./primitives-
|
|
2
|
-
|
|
1
|
+
import { o as RulePack, r as DoctorRule } from "./primitives-Nhpqd5ap.mjs";
|
|
3
2
|
//#region src/rule-packs/vue/rules/vue/define-props-watch-getter.d.ts
|
|
4
3
|
declare const definePropsWatchGetter: DoctorRule;
|
|
5
4
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as codeForRuleId, d as createRule, m as doctorInternalDiagnostics, o as defineDoctorDiagnostics, p as defineRulePack, s as diagnosticForCode } from "./core-
|
|
1
|
+
import { a as codeForRuleId, d as createRule, m as doctorInternalDiagnostics, o as defineDoctorDiagnostics, p as defineRulePack, s as diagnosticForCode } from "./core-DIaW0HIr.mjs";
|
|
2
2
|
import { dirname, relative, resolve } from "pathe";
|
|
3
3
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
4
4
|
import { parseSync } from "oxc-parser";
|
|
@@ -113,7 +113,7 @@ const optionalImport = (specifier) => import(
|
|
|
113
113
|
/* @vite-ignore */
|
|
114
114
|
specifier
|
|
115
115
|
);
|
|
116
|
-
const BROWSER_GLOBALS = new Set([
|
|
116
|
+
const BROWSER_GLOBALS = /* @__PURE__ */ new Set([
|
|
117
117
|
"window",
|
|
118
118
|
"document",
|
|
119
119
|
"localStorage",
|
|
@@ -473,7 +473,7 @@ const preferUseTemplateRef = createRule({
|
|
|
473
473
|
//#endregion
|
|
474
474
|
//#region src/rule-packs/vue/rules/vue/prefer-true-attribute-shorthand.ts
|
|
475
475
|
const RULE_ID$2 = "vue/template/prefer-true-attribute-shorthand";
|
|
476
|
-
const BOOLEAN_ATTRIBUTES = new Set([
|
|
476
|
+
const BOOLEAN_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
477
477
|
"allowfullscreen",
|
|
478
478
|
"async",
|
|
479
479
|
"autofocus",
|
|
@@ -716,13 +716,13 @@ function isNuxtVueRuntimePath$2(path) {
|
|
|
716
716
|
//#endregion
|
|
717
717
|
//#region src/rule-packs/vue/rules/vue/prefer-use-event-listener.ts
|
|
718
718
|
const RULE_ID$1 = "vue/lifecycle/prefer-use-event-listener";
|
|
719
|
-
const WATCH_CALLBACK_CALLEES = new Set(["watch"]);
|
|
720
|
-
const WATCH_EFFECT_CALLBACK_CALLEES = new Set([
|
|
719
|
+
const WATCH_CALLBACK_CALLEES = /* @__PURE__ */ new Set(["watch"]);
|
|
720
|
+
const WATCH_EFFECT_CALLBACK_CALLEES = /* @__PURE__ */ new Set([
|
|
721
721
|
"watchEffect",
|
|
722
722
|
"watchPostEffect",
|
|
723
723
|
"watchSyncEffect"
|
|
724
724
|
]);
|
|
725
|
-
const LIFECYCLE_CLEANUP_CALLEES = new Set([
|
|
725
|
+
const LIFECYCLE_CLEANUP_CALLEES = /* @__PURE__ */ new Set([
|
|
726
726
|
"onBeforeUnmount",
|
|
727
727
|
"onScopeDispose",
|
|
728
728
|
"onUnmounted"
|
|
@@ -785,8 +785,8 @@ function watcherCleanupCallees(functionNode) {
|
|
|
785
785
|
if (call?.type !== "CallExpression") return null;
|
|
786
786
|
const name = calleeName(call);
|
|
787
787
|
const args = call.arguments ?? [];
|
|
788
|
-
if (name && WATCH_CALLBACK_CALLEES.has(name) && args[1] === functionNode) return new Set(["onWatcherCleanup", ...bindingNames(functionNode.params?.[2])]);
|
|
789
|
-
if (name && WATCH_EFFECT_CALLBACK_CALLEES.has(name) && args[0] === functionNode) return new Set(["onWatcherCleanup", ...bindingNames(functionNode.params?.[0])]);
|
|
788
|
+
if (name && WATCH_CALLBACK_CALLEES.has(name) && args[1] === functionNode) return /* @__PURE__ */ new Set(["onWatcherCleanup", ...bindingNames(functionNode.params?.[2])]);
|
|
789
|
+
if (name && WATCH_EFFECT_CALLBACK_CALLEES.has(name) && args[0] === functionNode) return /* @__PURE__ */ new Set(["onWatcherCleanup", ...bindingNames(functionNode.params?.[0])]);
|
|
790
790
|
return null;
|
|
791
791
|
}
|
|
792
792
|
function hasListenerCleanup(scope, cleanupCallees, source, listener) {
|
|
@@ -830,7 +830,7 @@ function hasRemoveEventListenerCall(scope, source, listener) {
|
|
|
830
830
|
}
|
|
831
831
|
function listenerKey(call, method, source) {
|
|
832
832
|
const name = calleeName(call);
|
|
833
|
-
if (!name || !matchesCallee(name, new Set([method]))) return null;
|
|
833
|
+
if (!name || !matchesCallee(name, /* @__PURE__ */ new Set([method]))) return null;
|
|
834
834
|
const args = call.arguments ?? [];
|
|
835
835
|
const event = expressionKey(args[0], source);
|
|
836
836
|
const handler = expressionKey(args[1], source);
|
|
@@ -857,7 +857,7 @@ function expressionKey(node, source) {
|
|
|
857
857
|
return nodeSource(node, source).replace(/\s+/g, " ").trim();
|
|
858
858
|
}
|
|
859
859
|
function isAddEventListenerCall(node, name) {
|
|
860
|
-
return node.type === "CallExpression" && !!name && matchesCallee(name, new Set(["addEventListener"]));
|
|
860
|
+
return node.type === "CallExpression" && !!name && matchesCallee(name, /* @__PURE__ */ new Set(["addEventListener"]));
|
|
861
861
|
}
|
|
862
862
|
function matchesCallee(name, callees) {
|
|
863
863
|
for (const callee of callees) if (name === callee || name.endsWith(`.${callee}`)) return true;
|
|
@@ -909,7 +909,7 @@ function isNuxtVueRuntimePath$1(ctx) {
|
|
|
909
909
|
}
|
|
910
910
|
function nuxtRuntimePathCandidates(ctx) {
|
|
911
911
|
const path = toPosixPath(ctx.file.relativePath);
|
|
912
|
-
const candidates = new Set([path]);
|
|
912
|
+
const candidates = /* @__PURE__ */ new Set([path]);
|
|
913
913
|
for (const root of nuxtRuntimeRoots(ctx)) {
|
|
914
914
|
const relativeRoot = relativeProjectPath(ctx, root);
|
|
915
915
|
if (!relativeRoot || relativeRoot === ".") continue;
|
|
@@ -1447,8 +1447,8 @@ function langFromFile(file) {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
//#endregion
|
|
1449
1449
|
//#region src/rule-packs/vue/rules/vue/i18n.ts
|
|
1450
|
-
const I18N_PACKAGE_NAMES = new Set(["vue-i18n", "@nuxtjs/i18n"]);
|
|
1451
|
-
const STATIC_TEXT_ATTRIBUTES = new Set([
|
|
1450
|
+
const I18N_PACKAGE_NAMES = /* @__PURE__ */ new Set(["vue-i18n", "@nuxtjs/i18n"]);
|
|
1451
|
+
const STATIC_TEXT_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
1452
1452
|
"alt",
|
|
1453
1453
|
"aria-label",
|
|
1454
1454
|
"label",
|
|
@@ -1584,7 +1584,8 @@ function collectLocaleFiles(root) {
|
|
|
1584
1584
|
];
|
|
1585
1585
|
const files = /* @__PURE__ */ new Set();
|
|
1586
1586
|
for (const dir of dirs) {
|
|
1587
|
-
|
|
1587
|
+
const absoluteDir = resolve(root, dir);
|
|
1588
|
+
if (!statSync(absoluteDir, { throwIfNoEntry: false })?.isDirectory()) continue;
|
|
1588
1589
|
for (const pattern of [
|
|
1589
1590
|
"*.json",
|
|
1590
1591
|
"*.js",
|
package/dist/rules.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "./index-
|
|
1
|
+
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "./index-DxuqP4UF.mjs";
|
|
2
2
|
export { noBroadEnvPrefix, noBroadFsAllow, noBrowserGlobalInSsrEntry, noClientSecretPattern, noDisabledFsStrict, noDynamicNewUrl, noDynamicWorkerUrl, noEmptyEnvPrefix, noNodeApiInWorker, noPublicSrcImport, noRuntimeObjectDefine, noSecretDefine, noSrcAbsolutePublicUrl, noUntypedDefine, noUntypedEnv, noUnusedDefine, preferDirectImportMetaEnvAccess, preferTransformFilter, requireDisposeForSideEffects, requirePluginName, requireWorkerUrlPattern, viteRulePack };
|
package/dist/rules.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "./rules-
|
|
2
|
-
import "./rules-
|
|
1
|
+
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "./rules-0AWH0_wP.mjs";
|
|
2
|
+
import "./rules-CPBmmZ0K.mjs";
|
|
3
3
|
export { noBroadEnvPrefix, noBroadFsAllow, noBrowserGlobalInSsrEntry, noClientSecretPattern, noDisabledFsStrict, noDynamicNewUrl, noDynamicWorkerUrl, noEmptyEnvPrefix, noNodeApiInWorker, noPublicSrcImport, noRuntimeObjectDefine, noSecretDefine, noSrcAbsolutePublicUrl, noUntypedDefine, noUntypedEnv, noUnusedDefine, preferDirectImportMetaEnvAccess, preferTransformFilter, requireDisposeForSideEffects, requirePluginName, requireWorkerUrlPattern, viteRulePack };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-doctor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Small Vite Doctor CLI for project diagnostics.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -46,46 +46,45 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@typescript-eslint/parser": "^8.
|
|
50
|
-
"@vue/compiler-sfc": "^3.5.
|
|
49
|
+
"@typescript-eslint/parser": "^8.66.0",
|
|
50
|
+
"@vue/compiler-sfc": "^3.5.40",
|
|
51
51
|
"c12": "4.0.0-beta.5",
|
|
52
52
|
"cac": "^7.0.0",
|
|
53
53
|
"consola": "^3.4.2",
|
|
54
54
|
"defu": "^6.1.7",
|
|
55
|
-
"eslint": "^10.
|
|
56
|
-
"eslint-plugin-vue": "^10.
|
|
57
|
-
"magic-string": "^
|
|
58
|
-
"nostics": "
|
|
59
|
-
"oxc-parser": "^0.
|
|
55
|
+
"eslint": "^10.8.0",
|
|
56
|
+
"eslint-plugin-vue": "^10.10.0",
|
|
57
|
+
"magic-string": "^1.1.0",
|
|
58
|
+
"nostics": "1.2.0",
|
|
59
|
+
"oxc-parser": "^0.143.0",
|
|
60
60
|
"pathe": "^2.0.3",
|
|
61
61
|
"picocolors": "^1.1.1",
|
|
62
|
-
"semver": "^7.8.
|
|
63
|
-
"vue-eslint-parser": "^10.4.
|
|
62
|
+
"semver": "^7.8.5",
|
|
63
|
+
"vue-eslint-parser": "^10.4.1"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@cloudflare/workers-types": "^
|
|
67
|
-
"@nuxt/content": "^3.
|
|
68
|
-
"@nuxt/scripts": "^1.
|
|
69
|
-
"@nuxt/test-utils": "^4.0
|
|
70
|
-
"@nuxt/ui": "^4.
|
|
66
|
+
"@cloudflare/workers-types": "^5.20260804.1",
|
|
67
|
+
"@nuxt/content": "^3.15.2",
|
|
68
|
+
"@nuxt/scripts": "^1.3.2",
|
|
69
|
+
"@nuxt/test-utils": "^4.1.0",
|
|
70
|
+
"@nuxt/ui": "^4.10.0",
|
|
71
71
|
"@testing-library/vue": "^8.1.0",
|
|
72
|
-
"@tiptap/core": "^3.
|
|
73
|
-
"@tiptap/extensions": "^3.
|
|
74
|
-
"@tiptap/pm": "^3.
|
|
75
|
-
"@tiptap/y-tiptap": "^3.0.
|
|
76
|
-
"@types/semver": "^7.
|
|
77
|
-
"@vue/test-utils": "^2.4.
|
|
78
|
-
"@vueuse/core": "^14.
|
|
79
|
-
"better-auth": "^1.6.
|
|
80
|
-
"bumpp": "^
|
|
81
|
-
"happy-dom": "^20.
|
|
82
|
-
"nuxt": "^4.
|
|
72
|
+
"@tiptap/core": "^3.29.2",
|
|
73
|
+
"@tiptap/extensions": "^3.29.2",
|
|
74
|
+
"@tiptap/pm": "^3.29.2",
|
|
75
|
+
"@tiptap/y-tiptap": "^3.0.8",
|
|
76
|
+
"@types/semver": "^7.8.0",
|
|
77
|
+
"@vue/test-utils": "^2.4.11",
|
|
78
|
+
"@vueuse/core": "^14.4.0",
|
|
79
|
+
"better-auth": "^1.6.25",
|
|
80
|
+
"bumpp": "^12.1.1",
|
|
81
|
+
"happy-dom": "^20.11.1",
|
|
82
|
+
"nuxt": "^4.5.1",
|
|
83
83
|
"nuxt-better-auth": "^0.6.0",
|
|
84
|
-
"pkg-pr-new": "^0.0.
|
|
85
|
-
"tsdown": "^0.22.
|
|
84
|
+
"pkg-pr-new": "^0.0.86",
|
|
85
|
+
"tsdown": "^0.22.14",
|
|
86
86
|
"vite": "npm:@voidzero-dev/vite-plus-core@latest",
|
|
87
|
-
"vite-plus": "
|
|
88
|
-
"vitest": "npm:@voidzero-dev/vite-plus-test@latest"
|
|
87
|
+
"vite-plus": "^0.2.7"
|
|
89
88
|
},
|
|
90
89
|
"peerDependencies": {
|
|
91
90
|
"nuxt": ">=4",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/nitro-DP7qe6zn.mjs
DELETED
package/dist/rules-DdChlCWs.mjs
DELETED