svelte-vitals 0.10.0 → 0.11.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-U7HHKAJX.js → chunk-QI6NLWDD.js} +11 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -210,7 +210,17 @@ function tagsFromHead(head) {
|
|
|
210
210
|
});
|
|
211
211
|
} else if (node.name === "link") {
|
|
212
212
|
const rel = attrText(node.attributes, "rel");
|
|
213
|
-
|
|
213
|
+
const hasAs = findAttr(node.attributes, "as") !== void 0;
|
|
214
|
+
const asLiteral = attrText(node.attributes, "as");
|
|
215
|
+
const hasCrossorigin = findAttr(node.attributes, "crossorigin") !== void 0;
|
|
216
|
+
tags.push({
|
|
217
|
+
kind: "link",
|
|
218
|
+
...rel ? { rel } : {},
|
|
219
|
+
value: attrValue(node.attributes, "href"),
|
|
220
|
+
...hasAs ? { hasAs: true } : {},
|
|
221
|
+
...asLiteral ? { as: asLiteral } : {},
|
|
222
|
+
...hasCrossorigin ? { hasCrossorigin: true } : {}
|
|
223
|
+
});
|
|
214
224
|
} else if (node.name === "script" && attrText(node.attributes, "type") === "application/ld+json") {
|
|
215
225
|
tags.push({ kind: "jsonld", value: valueFromNodes(node.fragment?.nodes ?? []) });
|
|
216
226
|
}
|
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.11.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",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"mri": "^1.2.0",
|
|
43
43
|
"svelte": "^5.56.3",
|
|
44
44
|
"tinyglobby": "^0.2.17",
|
|
45
|
-
"@svelte-vitals/core": "0.
|
|
45
|
+
"@svelte-vitals/core": "0.12.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/node": "^24.7.0"
|