nuxt-link-checker 4.0.3 → 4.0.4
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/client/200.html +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/a53b28bf-c826-4e83-9338-ce0095e592a9.json +1 -0
- package/dist/client/index.html +2 -2
- package/dist/module.json +1 -1
- package/dist/runtime/shared/inspect.js +3 -2
- package/dist/runtime/shared/inspections/no-javascript.js +1 -0
- package/dist/runtime/types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/client/_nuxt/builds/meta/1ba7dc8d-101d-417f-a64e-8c1733157dde.json +0 -1
package/dist/client/200.html
CHANGED
|
@@ -279,5 +279,5 @@
|
|
|
279
279
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/nwKJGxdW.js">
|
|
280
280
|
<link rel="prefetch" as="style" crossorigin href="/__nuxt-link-checker/_nuxt/error-500.CynZ8CnK.css">
|
|
281
281
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/CTcgGpPV.js">
|
|
282
|
-
<script type="module" src="/__nuxt-link-checker/_nuxt/BelmBgl_.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},
|
|
283
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-link-checker",buildId:"
|
|
282
|
+
<script type="module" src="/__nuxt-link-checker/_nuxt/BelmBgl_.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1734366343977,false]</script>
|
|
283
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-link-checker",buildId:"a53b28bf-c826-4e83-9338-ce0095e592a9",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/client/404.html
CHANGED
|
@@ -279,5 +279,5 @@
|
|
|
279
279
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/nwKJGxdW.js">
|
|
280
280
|
<link rel="prefetch" as="style" crossorigin href="/__nuxt-link-checker/_nuxt/error-500.CynZ8CnK.css">
|
|
281
281
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/CTcgGpPV.js">
|
|
282
|
-
<script type="module" src="/__nuxt-link-checker/_nuxt/BelmBgl_.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},
|
|
283
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-link-checker",buildId:"
|
|
282
|
+
<script type="module" src="/__nuxt-link-checker/_nuxt/BelmBgl_.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1734366343978,false]</script>
|
|
283
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-link-checker",buildId:"a53b28bf-c826-4e83-9338-ce0095e592a9",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"a53b28bf-c826-4e83-9338-ce0095e592a9","timestamp":1734366339093}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"a53b28bf-c826-4e83-9338-ce0095e592a9","timestamp":1734366339093,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
package/dist/client/index.html
CHANGED
|
@@ -279,5 +279,5 @@
|
|
|
279
279
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/nwKJGxdW.js">
|
|
280
280
|
<link rel="prefetch" as="style" crossorigin href="/__nuxt-link-checker/_nuxt/error-500.CynZ8CnK.css">
|
|
281
281
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/CTcgGpPV.js">
|
|
282
|
-
<script type="module" src="/__nuxt-link-checker/_nuxt/BelmBgl_.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},
|
|
283
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-link-checker",buildId:"
|
|
282
|
+
<script type="module" src="/__nuxt-link-checker/_nuxt/BelmBgl_.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1734366343978,false]</script>
|
|
283
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-link-checker",buildId:"a53b28bf-c826-4e83-9338-ce0095e592a9",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { parseURL } from "ufo";
|
|
1
|
+
import { hasProtocol, parseURL } from "ufo";
|
|
2
2
|
import RuleAbsoluteSiteUrls from "./inspections/absolute-site-urls.js";
|
|
3
3
|
import RuleDescriptiveLinkText from "./inspections/link-text.js";
|
|
4
4
|
import RuleMissingHash from "./inspections/missing-hash.js";
|
|
@@ -41,7 +41,8 @@ export function inspect(ctx, rules) {
|
|
|
41
41
|
let processing = true;
|
|
42
42
|
for (const rule of validInspections) {
|
|
43
43
|
const isFakeAbsolute = link.startsWith("//") && !link.includes(".");
|
|
44
|
-
const
|
|
44
|
+
const hasNonHttpProtocol = hasProtocol(link) && !link.startsWith("http");
|
|
45
|
+
const isExternalLink = hasNonHttpProtocol || url.host && url.host !== siteConfigHost && !isFakeAbsolute;
|
|
45
46
|
if (!rule.externalLinks && isExternalLink) {
|
|
46
47
|
continue;
|
|
47
48
|
}
|
package/dist/runtime/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"1ba7dc8d-101d-417f-a64e-8c1733157dde","timestamp":1734258221743,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|