svelte-vitals 0.37.1 → 0.38.0
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/bin.js +1 -1
- package/dist/{chunk-I2MKPWWT.js → chunk-2WDZJQGD.js} +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/bin.js
CHANGED
|
@@ -1493,7 +1493,7 @@ async function analyzeProject(opts = {}) {
|
|
|
1493
1493
|
),
|
|
1494
1494
|
config
|
|
1495
1495
|
);
|
|
1496
|
-
return { results, config, version: readPackageVersion(), warnings };
|
|
1496
|
+
return { results, config, version: readPackageVersion(), ruleIds: rules.map((r) => r.id), warnings };
|
|
1497
1497
|
}
|
|
1498
1498
|
async function applyScope(results, opts) {
|
|
1499
1499
|
const errorLog = opts.errorLog ?? ((line) => console.error(line));
|
|
@@ -1673,7 +1673,7 @@ async function run(opts = {}) {
|
|
|
1673
1673
|
);
|
|
1674
1674
|
}
|
|
1675
1675
|
if (reporter === "json") {
|
|
1676
|
-
log(formatJsonReport(results, config, { version }));
|
|
1676
|
+
log(formatJsonReport(results, config, { version }, analysis.ruleIds));
|
|
1677
1677
|
} else if (reporter === "agent") {
|
|
1678
1678
|
log(formatAgentReport(results, config));
|
|
1679
1679
|
} else if (reporter === "sarif") {
|
package/dist/index.d.ts
CHANGED
|
@@ -199,6 +199,8 @@ interface AnalyzeResult {
|
|
|
199
199
|
results: Result[];
|
|
200
200
|
config: Config;
|
|
201
201
|
version: string;
|
|
202
|
+
/** Ids of the rules that ran, after `--category` narrowing. The JSON report lists these so a rule that found nothing stays distinguishable from one that was never selected. */
|
|
203
|
+
ruleIds: string[];
|
|
202
204
|
/** Non-fatal config-file issues (unknown top-level keys, invalid enum values). Empty when no config file or none found. */
|
|
203
205
|
warnings: string[];
|
|
204
206
|
}
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-vitals",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"description": "A SvelteKit SEO checker — not a runtime Web Vitals reporter. Static analysis of your routes' head metadata.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@clack/prompts": "^1.7.0",
|
|
43
43
|
"log-update": "^8.0.0",
|
|
44
|
-
"magicast": "^0.5.
|
|
44
|
+
"magicast": "^0.5.4",
|
|
45
45
|
"mri": "^1.2.0",
|
|
46
46
|
"svelte": "^5.56.8",
|
|
47
47
|
"tinyglobby": "^0.2.17",
|
|
48
|
-
"@svelte-vitals/core": "0.
|
|
48
|
+
"@svelte-vitals/core": "0.33.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/estree": "^1.0.9",
|