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 CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  knownRuleIds,
7
7
  readPackageVersion,
8
8
  run
9
- } from "./chunk-U7HHKAJX.js";
9
+ } from "./chunk-QI6NLWDD.js";
10
10
 
11
11
  // src/bin.ts
12
12
  import mri from "mri";
@@ -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
- tags.push({ kind: "link", ...rel ? { rel } : {}, value: attrValue(node.attributes, "href") });
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
@@ -6,7 +6,7 @@ import {
6
6
  knownRuleIds,
7
7
  routeMatcher,
8
8
  run
9
- } from "./chunk-U7HHKAJX.js";
9
+ } from "./chunk-QI6NLWDD.js";
10
10
  export {
11
11
  ProjectError,
12
12
  analyzeProject,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-vitals",
3
- "version": "0.10.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.11.0"
45
+ "@svelte-vitals/core": "0.12.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^24.7.0"