nuxt-link-checker 1.0.4 → 2.0.0-beta.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.
Files changed (53) hide show
  1. package/README.md +2 -2
  2. package/dist/client/200.html +7 -0
  3. package/dist/client/404.html +7 -0
  4. package/dist/client/_nuxt/entry.1b0db56f.js +17 -0
  5. package/dist/client/_nuxt/entry.5bd27bba.css +1 -0
  6. package/dist/client/_nuxt/error-404.a11d42ac.js +1 -0
  7. package/dist/client/_nuxt/error-404.d7252154.css +1 -0
  8. package/dist/client/_nuxt/error-500.06915589.css +1 -0
  9. package/dist/client/_nuxt/error-500.d396da88.js +1 -0
  10. package/dist/client/index.html +7 -0
  11. package/dist/module.d.ts +26 -9
  12. package/dist/module.json +2 -2
  13. package/dist/module.mjs +267 -70
  14. package/dist/runtime/inspect.d.ts +2 -0
  15. package/dist/runtime/inspect.mjs +41 -0
  16. package/dist/runtime/inspections/absolute-site-urls.d.ts +1 -0
  17. package/dist/runtime/inspections/absolute-site-urls.mjs +19 -0
  18. package/dist/runtime/inspections/missing-hash.d.ts +1 -0
  19. package/dist/runtime/inspections/missing-hash.mjs +28 -0
  20. package/dist/runtime/inspections/no-baseless.d.ts +1 -0
  21. package/dist/runtime/inspections/no-baseless.mjs +19 -0
  22. package/dist/runtime/inspections/no-error-response-status.d.ts +1 -0
  23. package/dist/runtime/inspections/no-error-response-status.mjs +25 -0
  24. package/dist/runtime/inspections/no-javascript.d.ts +1 -0
  25. package/dist/runtime/inspections/no-javascript.mjs +15 -0
  26. package/dist/runtime/inspections/redirects.d.ts +1 -0
  27. package/dist/runtime/inspections/redirects.mjs +21 -0
  28. package/dist/runtime/inspections/trailing-slash.d.ts +1 -0
  29. package/dist/runtime/inspections/trailing-slash.mjs +34 -0
  30. package/dist/runtime/inspections/util.d.ts +2 -0
  31. package/dist/runtime/inspections/util.mjs +3 -0
  32. package/dist/runtime/plugin/search.nitro.d.ts +2 -0
  33. package/dist/runtime/plugin/search.nitro.mjs +10 -0
  34. package/dist/runtime/plugin/ui.client.d.ts +2 -0
  35. package/dist/runtime/plugin/ui.client.mjs +21 -0
  36. package/dist/runtime/plugin/view/Main.vue +42 -0
  37. package/dist/runtime/plugin/view/Squiggle.vue +47 -0
  38. package/dist/runtime/plugin/view/client.d.ts +4 -0
  39. package/dist/runtime/plugin/view/client.mjs +173 -0
  40. package/dist/runtime/plugin/view/state.d.ts +0 -0
  41. package/dist/runtime/plugin/view/state.mjs +2 -0
  42. package/dist/runtime/plugin/view/utils.d.ts +3 -0
  43. package/dist/runtime/plugin/view/utils.mjs +31 -0
  44. package/dist/runtime/server/api/inspect.d.ts +2 -0
  45. package/dist/runtime/server/api/inspect.mjs +44 -0
  46. package/dist/runtime/server/api/links.d.ts +2 -0
  47. package/dist/runtime/server/api/links.mjs +12 -0
  48. package/dist/runtime/server/util.d.ts +31 -0
  49. package/dist/runtime/server/util.mjs +75 -0
  50. package/dist/runtime/types.d.ts +71 -0
  51. package/dist/runtime/types.mjs +0 -0
  52. package/dist/types.d.ts +6 -0
  53. package/package.json +35 -21
package/README.md CHANGED
@@ -79,13 +79,13 @@ You'll need to provide the host of your site so that the crawler can resolve abs
79
79
 
80
80
  ```ts
81
81
  export default defineNuxtConfig({
82
- // Recommended
82
+ // Recommended
83
83
  runtimeConfig: {
84
84
  public: {
85
85
  siteUrl: process.env.NUXT_PUBLIC_SITE_URL || 'https://example.com',
86
86
  }
87
87
  },
88
- // OR
88
+ // OR
89
89
  linkChecker: {
90
90
  host: 'https://example.com',
91
91
  },
@@ -0,0 +1,7 @@
1
+ <!DOCTYPE html>
2
+ <html >
3
+ <head><meta charset="utf-8">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/entry.1b0db56f.js"><link rel="preload" as="style" href="/__nuxt-link-checker/_nuxt/entry.5bd27bba.css"><link rel="prefetch" as="style" href="/__nuxt-link-checker/_nuxt/error-404.d7252154.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/error-404.a11d42ac.js"><link rel="prefetch" as="style" href="/__nuxt-link-checker/_nuxt/error-500.06915589.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/error-500.d396da88.js"><link rel="stylesheet" href="/__nuxt-link-checker/_nuxt/entry.5bd27bba.css"><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
5
+ </script></head>
6
+ <body ><div id="__nuxt"><svg class="nuxt-spa-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 25" fill="none" width="80"><path d="M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567"></path></svg><style>.nuxt-spa-loading{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.nuxt-spa-loading>path{fill:none;stroke:#00DC82;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128;animation:nuxt-spa-loading-move 3s linear infinite}@keyframes nuxt-spa-loading-move{100%{stroke-dashoffset:-128}}</style></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-link-checker",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="module" src="/__nuxt-link-checker/_nuxt/entry.1b0db56f.js" crossorigin></script></body>
7
+ </html>
@@ -0,0 +1,7 @@
1
+ <!DOCTYPE html>
2
+ <html >
3
+ <head><meta charset="utf-8">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/entry.1b0db56f.js"><link rel="preload" as="style" href="/__nuxt-link-checker/_nuxt/entry.5bd27bba.css"><link rel="prefetch" as="style" href="/__nuxt-link-checker/_nuxt/error-404.d7252154.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/error-404.a11d42ac.js"><link rel="prefetch" as="style" href="/__nuxt-link-checker/_nuxt/error-500.06915589.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/error-500.d396da88.js"><link rel="stylesheet" href="/__nuxt-link-checker/_nuxt/entry.5bd27bba.css"><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
5
+ </script></head>
6
+ <body ><div id="__nuxt"><svg class="nuxt-spa-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 25" fill="none" width="80"><path d="M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567"></path></svg><style>.nuxt-spa-loading{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.nuxt-spa-loading>path{fill:none;stroke:#00DC82;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128;animation:nuxt-spa-loading-move 3s linear infinite}@keyframes nuxt-spa-loading-move{100%{stroke-dashoffset:-128}}</style></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-link-checker",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="module" src="/__nuxt-link-checker/_nuxt/entry.1b0db56f.js" crossorigin></script></body>
7
+ </html>