@svelte-vitals/vite 0.36.0 → 0.36.1
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/hooks/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as parseHtmlHead, r as toOccurrenceMap, t as isLoopbackOrigin } from "../loopback-
|
|
1
|
+
import { i as parseHtmlHead, r as toOccurrenceMap, t as isLoopbackOrigin } from "../loopback-nE7_C-y_.js";
|
|
2
2
|
import { defineConfig } from "@svelte-vitals/core";
|
|
3
3
|
import { allRules, applyRuleSeverities, defaultProject, effectiveSeverity, formatFailedRuleWarning, isPenalized, runRules, selectRules, terminalSafe } from "@svelte-vitals/core/internal";
|
|
4
4
|
import { DEV } from "esm-env";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as collectRenderedHeads, t as isLoopbackOrigin } from "./loopback-
|
|
1
|
+
import { n as collectRenderedHeads, t as isLoopbackOrigin } from "./loopback-nE7_C-y_.js";
|
|
2
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
3
|
import { access, mkdir, readFile, writeFile } from "node:fs/promises";
|
|
4
4
|
import { basename, dirname, isAbsolute, join, relative, sep } from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readFile } from "node:fs/promises";
|
|
2
2
|
import { join } from "node:path";
|
|
3
|
-
import { IDREF_ATTRS, LANDMARK_ROLES, decodeFragmentId, isTopFragment, splitTokens, stripTextDirective } from "@svelte-vitals/core/internal";
|
|
3
|
+
import { IDREF_ATTRS, LANDMARK_ROLES, decodeFragmentId, isTopFragment, resolveRole, splitTokens, stripTextDirective } from "@svelte-vitals/core/internal";
|
|
4
4
|
import { glob } from "tinyglobby";
|
|
5
5
|
import { parse } from "node-html-parser";
|
|
6
6
|
//#region src/providers/rendered/parse-html.ts
|
|
@@ -56,7 +56,7 @@ function collectA11y(root) {
|
|
|
56
56
|
const roleAttr = el.getAttribute("role");
|
|
57
57
|
let landmark;
|
|
58
58
|
if (roleAttr !== void 0) {
|
|
59
|
-
const role = splitTokens(roleAttr)
|
|
59
|
+
const role = resolveRole(splitTokens(roleAttr));
|
|
60
60
|
landmark = role && LANDMARK_ROLES.has(role) ? role : void 0;
|
|
61
61
|
} else if (tag === "main") landmark = "main";
|
|
62
62
|
else if ((tag === "header" || tag === "footer") && ctx.sectioning === 0) landmark = tag === "header" ? "banner" : "contentinfo";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@svelte-vitals/vite",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.1",
|
|
4
4
|
"description": "Vite/SvelteKit plugin for svelte-vitals — analyzes prerendered HTML during vite build, plus a live dev dashboard.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"tinyglobby": "^0.2.17"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@svelte-vitals/core": "^0.50.
|
|
47
|
+
"@svelte-vitals/core": "^0.50.1",
|
|
48
48
|
"@sveltejs/kit": "^2.70.3",
|
|
49
|
-
"svelte-vitals": "^0.54.
|
|
49
|
+
"svelte-vitals": "^0.54.1",
|
|
50
50
|
"vite": "^8.2.2"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@svelte-vitals/core": "0.50.
|
|
58
|
+
"@svelte-vitals/core": "0.50.1",
|
|
59
59
|
"@sveltejs/kit": "^2.70.3",
|
|
60
60
|
"@types/node": "^24.13.3",
|
|
61
61
|
"happy-dom": "^20.11.6",
|
|
62
62
|
"svelte": "^5.56.10",
|
|
63
|
-
"svelte-vitals": "0.54.
|
|
63
|
+
"svelte-vitals": "0.54.1",
|
|
64
64
|
"vite": "^8.2.2"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|