nuxt-link-checker 1.0.0 → 1.0.2

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/README.md CHANGED
@@ -81,7 +81,9 @@ You'll need to provide the host of your site so that the crawler can resolve abs
81
81
  export default defineNuxtConfig({
82
82
  // Recommended
83
83
  runtimeConfig: {
84
- siteUrl: 'https://example.com',
84
+ public: {
85
+ siteUrl: 'https://example.com',
86
+ }
85
87
  },
86
88
  // OR
87
89
  linkChecker: {
package/dist/module.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "bridge": false
6
6
  },
7
7
  "configKey": "linkChecker",
8
- "version": "1.0.0"
8
+ "version": "1.0.2"
9
9
  }
package/dist/module.mjs CHANGED
@@ -21,6 +21,10 @@ function extractLinks(html, from, { host, trailingSlash }) {
21
21
  const url = parseURL(href);
22
22
  if (hasProtocol(href) && !href.startsWith("/") && url.host !== hostname)
23
23
  return;
24
+ if (href.startsWith("#"))
25
+ return;
26
+ if (el.tagName === "link" && el.attribs.rel === "canonical")
27
+ return;
24
28
  if (!allowedExtensions.has(getExtension(href)))
25
29
  return;
26
30
  links.push({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-link-checker",
3
3
  "type": "module",
4
- "version": "1.0.0",
4
+ "version": "1.0.2",
5
5
  "packageManager": "pnpm@7.18.0",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",
@@ -26,24 +26,24 @@
26
26
  "dist"
27
27
  ],
28
28
  "dependencies": {
29
- "@nuxt/kit": "3.0.0",
29
+ "@nuxt/kit": "3.1.1",
30
30
  "chalk": "^5.2.0",
31
31
  "cheerio": "1.0.0-rc.12",
32
32
  "radix3": "^1.0.0",
33
33
  "ufo": "^1.0.1"
34
34
  },
35
35
  "devDependencies": {
36
- "@antfu/eslint-config": "^0.34.1",
36
+ "@antfu/eslint-config": "^0.35.1",
37
37
  "@nuxt/kit": "3.0.0",
38
38
  "@nuxt/module-builder": "^0.2.1",
39
- "@nuxt/test-utils": "3.0.0",
39
+ "@nuxt/test-utils": "3.1.1",
40
40
  "@nuxtjs/eslint-config-typescript": "^12.0.0",
41
41
  "bumpp": "^8.2.1",
42
- "eslint": "8.32.0",
42
+ "eslint": "8.33.0",
43
43
  "execa": "^6.1.0",
44
- "nuxt": "^3.0.0",
44
+ "nuxt": "^3.1.1",
45
45
  "pathe": "^1.1.0",
46
- "vitest": "^0.28.1"
46
+ "vitest": "^0.28.3"
47
47
  },
48
48
  "scripts": {
49
49
  "lint": "eslint \"**/*.{ts,vue,json,yml}\" --fix",