nuxt-link-checker 4.3.0 → 4.3.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.
Files changed (64) hide show
  1. package/dist/client/200.html +1 -16
  2. package/dist/client/404.html +1 -16
  3. package/dist/client/_nuxt/BMMyXqK5.js +1 -0
  4. package/dist/client/_nuxt/C0TmlKXo.js +1 -0
  5. package/dist/client/_nuxt/Cp-IABpG.js +1 -0
  6. package/dist/client/_nuxt/DwBeYsww.js +1 -0
  7. package/dist/client/_nuxt/KzQJPfR6.js +1 -0
  8. package/dist/client/_nuxt/builds/latest.json +1 -1
  9. package/dist/client/_nuxt/builds/meta/39b7bce5-7190-467c-b61e-c416161e0cdc.json +1 -0
  10. package/dist/client/_nuxt/entry.8dt3UohH.css +1 -0
  11. package/dist/client/_nuxt/error-404.B_XScZJK.css +1 -0
  12. package/dist/client/_nuxt/error-500.Dydzk0Zl.css +1 -0
  13. package/dist/client/_nuxt/n57rOy2v.js +1 -0
  14. package/dist/client/_nuxt/zuc5zdCx.js +181 -0
  15. package/dist/client/index.html +1 -16
  16. package/dist/module.d.mts +2 -1
  17. package/dist/module.json +4 -5
  18. package/dist/module.mjs +19 -4
  19. package/dist/runtime/app/plugins/view/Main.d.vue.ts +9 -0
  20. package/dist/runtime/app/plugins/view/Main.vue +20 -28
  21. package/dist/runtime/app/plugins/view/Main.vue.d.ts +9 -0
  22. package/dist/runtime/app/plugins/view/Squiggle.d.vue.ts +7 -0
  23. package/dist/runtime/app/plugins/view/Squiggle.vue +16 -20
  24. package/dist/runtime/app/plugins/view/Squiggle.vue.d.ts +7 -0
  25. package/dist/runtime/server/content-compat.d.ts +1 -0
  26. package/dist/runtime/server/content-compat.js +2 -0
  27. package/dist/runtime/server/providers/content-v3.d.ts +5 -1
  28. package/dist/runtime/server/providers/content-v3.js +2 -2
  29. package/dist/runtime/server/routes/__link-checker__/inspect.d.ts +1 -1
  30. package/dist/runtime/server/routes/__link-checker__/links.d.ts +1 -1
  31. package/dist/runtime/server/routes/__link-checker__/links.js +2 -1
  32. package/dist/runtime/shared/crawl.d.ts +1 -1
  33. package/dist/runtime/shared/inspections/absolute-site-urls.d.ts +1 -1
  34. package/dist/runtime/shared/inspections/link-text.d.ts +1 -1
  35. package/dist/runtime/shared/inspections/missing-hash.d.ts +1 -1
  36. package/dist/runtime/shared/inspections/missing-hash.js +3 -1
  37. package/dist/runtime/shared/inspections/no-baseless.d.ts +1 -1
  38. package/dist/runtime/shared/inspections/no-double-slashes.d.ts +1 -1
  39. package/dist/runtime/shared/inspections/no-duplicate-query-params.d.ts +1 -1
  40. package/dist/runtime/shared/inspections/no-error-response.d.ts +1 -1
  41. package/dist/runtime/shared/inspections/no-javascript.d.ts +1 -1
  42. package/dist/runtime/shared/inspections/no-missing-href.d.ts +1 -1
  43. package/dist/runtime/shared/inspections/no-non-ascii-chars.d.ts +1 -1
  44. package/dist/runtime/shared/inspections/no-underscores.d.ts +1 -1
  45. package/dist/runtime/shared/inspections/no-uppercase-chars.d.ts +1 -1
  46. package/dist/runtime/shared/inspections/no-whitespace.d.ts +1 -1
  47. package/dist/runtime/shared/inspections/trailing-slash.d.ts +1 -1
  48. package/dist/runtime/shared/redirects.d.ts +1 -1
  49. package/dist/types.d.mts +4 -2
  50. package/package.json +47 -41
  51. package/dist/client/_nuxt/5p_Oaa9g.js +0 -181
  52. package/dist/client/_nuxt/B9GrqE__.js +0 -1
  53. package/dist/client/_nuxt/BFWaZzNn.js +0 -1
  54. package/dist/client/_nuxt/BGB1r09n.js +0 -1
  55. package/dist/client/_nuxt/BLmTiKMJ.js +0 -1
  56. package/dist/client/_nuxt/Cj6XDDRd.js +0 -1
  57. package/dist/client/_nuxt/DFxyEsuO.js +0 -1
  58. package/dist/client/_nuxt/builds/meta/958252ce-e0d2-4b11-8149-9f7e96bca1a3.json +0 -1
  59. package/dist/client/_nuxt/entry.xKNhWsNM.css +0 -1
  60. package/dist/client/_nuxt/error-404.C6U-TOR-.css +0 -1
  61. package/dist/client/_nuxt/error-500.BAgFwF30.css +0 -1
  62. package/dist/module.cjs +0 -5
  63. package/dist/module.d.ts +0 -92
  64. package/dist/types.d.ts +0 -7
@@ -1,16 +1 @@
1
- <!DOCTYPE html><html><head><meta charset="utf-8">
2
- <meta name="viewport" content="width=device-width, initial-scale=1">
3
- <link rel="stylesheet" href="/__nuxt-link-checker/_nuxt/entry.xKNhWsNM.css" crossorigin>
4
- <link rel="modulepreload" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/5p_Oaa9g.js">
5
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/CVO1_9PV.js">
6
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/D0r3Knsf.js">
7
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/B9GrqE__.js">
8
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/DFxyEsuO.js">
9
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/BLmTiKMJ.js">
10
- <link rel="prefetch" as="style" crossorigin href="/__nuxt-link-checker/_nuxt/error-404.C6U-TOR-.css">
11
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/BGB1r09n.js">
12
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/BFWaZzNn.js">
13
- <link rel="prefetch" as="style" crossorigin href="/__nuxt-link-checker/_nuxt/error-500.BAgFwF30.css">
14
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/Cj6XDDRd.js">
15
- <script type="module" src="/__nuxt-link-checker/_nuxt/5p_Oaa9g.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},1742303210600,false]</script>
16
- <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-link-checker",buildId:"958252ce-e0d2-4b11-8149-9f7e96bca1a3",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-link-checker/_nuxt/zuc5zdCx.js"}}</script><link rel="stylesheet" href="/__nuxt-link-checker/_nuxt/entry.8dt3UohH.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/zuc5zdCx.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/CVO1_9PV.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/D0r3Knsf.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/C0TmlKXo.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/BMMyXqK5.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/Cp-IABpG.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-link-checker/_nuxt/error-404.B_XScZJK.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/KzQJPfR6.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/n57rOy2v.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-link-checker/_nuxt/error-500.Dydzk0Zl.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-link-checker/_nuxt/DwBeYsww.js"><script type="module" src="/__nuxt-link-checker/_nuxt/zuc5zdCx.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},1758085162630,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-link-checker",buildId:"39b7bce5-7190-467c-b61e-c416161e0cdc",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
package/dist/module.d.mts CHANGED
@@ -89,4 +89,5 @@ interface ModuleHooks {
89
89
  }
90
90
  declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
91
91
 
92
- export { type ModuleHooks, type ModuleOptions, _default as default };
92
+ export { _default as default };
93
+ export type { ModuleHooks, ModuleOptions };
package/dist/module.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "nuxt-link-checker",
3
3
  "compatibility": {
4
- "nuxt": ">=3.9.0",
5
- "bridge": false
4
+ "nuxt": ">=3.9.0"
6
5
  },
7
6
  "configKey": "linkChecker",
8
- "version": "4.2.0",
7
+ "version": "4.3.2",
9
8
  "builder": {
10
- "@nuxt/module-builder": "0.8.4",
11
- "unbuild": "2.0.0"
9
+ "@nuxt/module-builder": "1.0.2",
10
+ "unbuild": "3.6.1"
12
11
  }
13
12
  }
package/dist/module.mjs CHANGED
@@ -1881,15 +1881,27 @@ const module = defineNuxtModule({
1881
1881
  meta: {
1882
1882
  name: "nuxt-link-checker",
1883
1883
  compatibility: {
1884
- nuxt: ">=3.9.0",
1885
- bridge: false
1884
+ nuxt: ">=3.9.0"
1886
1885
  },
1887
1886
  configKey: "linkChecker"
1888
1887
  },
1888
+ moduleDependencies: {
1889
+ "nuxt-site-config": {
1890
+ version: ">=3"
1891
+ },
1892
+ "@nuxt/content": {
1893
+ version: ">=2",
1894
+ optional: true
1895
+ },
1896
+ "@nuxtjs/sitemap": {
1897
+ version: ">=7",
1898
+ optional: true
1899
+ }
1900
+ },
1889
1901
  defaults(nuxt) {
1890
1902
  return {
1891
1903
  strictNuxtContentPaths: false,
1892
- fetchRemoteUrls: nuxt.options._build && provider !== "stackblitz",
1904
+ fetchRemoteUrls: !nuxt.options._prepare && !nuxt.options.dev && provider !== "stackblitz",
1893
1905
  runOnBuild: true,
1894
1906
  debug: false,
1895
1907
  showLiveInspections: false,
@@ -1951,8 +1963,11 @@ const module = defineNuxtModule({
1951
1963
  const isNuxtContentV3 = usingNuxtContent && await hasNuxtModuleCompatibility("@nuxt/content", "^3");
1952
1964
  if (usingNuxtContent) {
1953
1965
  if (isNuxtContentV3) {
1966
+ if (await hasNuxtModuleCompatibility("@nuxt/content", "<3.6.0")) {
1967
+ nuxt.options.alias["@nuxt/content/nitro"] = resolve("./runtime/server/content-compat");
1968
+ nuxt.options.alias["#link-checker/content-v3-nitro-path"] = resolve(dirname(resolveModule("@nuxt/content")), "runtime/nitro");
1969
+ }
1954
1970
  nuxt.options.nitro.alias["#link-checker/content-provider"] = resolve("./runtime/server/providers/content-v3");
1955
- nuxt.options.alias["#sitemap/content-v3-nitro-path"] = resolve(dirname(resolveModule("@nuxt/content")), "runtime/nitro");
1956
1971
  } else {
1957
1972
  nuxt.options.nitro.alias["#link-checker/content-provider"] = resolve("./runtime/server/providers/content-v2");
1958
1973
  }
@@ -0,0 +1,9 @@
1
+ import type { Ref } from 'vue';
2
+ import type { NuxtLinkCheckerClient } from '../../../types.js';
3
+ type __VLS_Props = {
4
+ client: NuxtLinkCheckerClient;
5
+ highlightedLink: Ref<string | null>;
6
+ inspections: NuxtLinkCheckerClient['inspectionEls'];
7
+ };
8
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -1,35 +1,27 @@
1
- <script setup lang="ts">
2
- import type { Ref } from 'vue'
3
- import type { NuxtLinkCheckerClient } from '../../../types'
4
- import { computed, ref } from 'vue'
5
- import Squiggle from './Squiggle.vue'
6
- import { useEventListener } from './utils'
7
-
8
- const props = defineProps<{
9
- client: NuxtLinkCheckerClient
10
- highlightedLink: Ref<string | null>
11
- inspections: NuxtLinkCheckerClient['inspectionEls']
12
- }>()
13
-
14
- function openDevtools(link: string) {
15
- return props.client.openDevtoolsToLink(link)
1
+ <script setup>
2
+ import { computed, ref } from "vue";
3
+ import Squiggle from "./Squiggle.vue";
4
+ import { useEventListener } from "./utils";
5
+ const props = defineProps({
6
+ client: { type: Object, required: true },
7
+ highlightedLink: { type: Object, required: true },
8
+ inspections: { type: Object, required: true }
9
+ });
10
+ function openDevtools(link) {
11
+ return props.client.openDevtoolsToLink(link);
16
12
  }
17
-
18
- const renderKey = ref(0)
19
-
13
+ const renderKey = ref(0);
20
14
  if (import.meta.hot) {
21
- import.meta.hot.on('vite:afterUpdate', () => {
22
- renderKey.value++
23
- })
15
+ import.meta.hot.on("vite:afterUpdate", () => {
16
+ renderKey.value++;
17
+ });
24
18
  }
25
-
26
- useEventListener(window, 'resize', () => {
27
- renderKey.value++
28
- })
29
-
19
+ useEventListener(window, "resize", () => {
20
+ renderKey.value++;
21
+ });
30
22
  const showInspections = computed(() => {
31
- return props.client.showInspections.value
32
- })
23
+ return props.client.showInspections.value;
24
+ });
33
25
  </script>
34
26
 
35
27
  <template>
@@ -0,0 +1,9 @@
1
+ import type { Ref } from 'vue';
2
+ import type { NuxtLinkCheckerClient } from '../../../types.js';
3
+ type __VLS_Props = {
4
+ client: NuxtLinkCheckerClient;
5
+ highlightedLink: Ref<string | null>;
6
+ inspections: NuxtLinkCheckerClient['inspectionEls'];
7
+ };
8
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ el: Element;
3
+ color: string;
4
+ highlighted: boolean;
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -1,28 +1,24 @@
1
- <script lang="ts" setup>
2
- import { onMounted, ref, watchEffect } from '#imports'
3
-
4
- const props = defineProps<{
5
- el: Element
6
- color: string
7
- highlighted: boolean
8
- }>()
9
-
10
- defineEmits(['click'])
11
-
12
- const box = ref({ x: 0, y: 0, width: 0, height: 0 })
13
- const position = ref({ top: '0px', left: '0px', width: '0px' })
14
-
1
+ <script setup>
2
+ import { onMounted, ref, watchEffect } from "#imports";
3
+ const props = defineProps({
4
+ el: { type: null, required: true },
5
+ color: { type: String, required: true },
6
+ highlighted: { type: Boolean, required: true }
7
+ });
8
+ defineEmits(["click"]);
9
+ const box = ref({ x: 0, y: 0, width: 0, height: 0 });
10
+ const position = ref({ top: "0px", left: "0px", width: "0px" });
15
11
  onMounted(() => {
16
- box.value = props.el.getBoundingClientRect()
12
+ box.value = props.el.getBoundingClientRect();
17
13
  watchEffect(() => {
18
- const { x, y, width, height } = box.value
14
+ const { x, y, width, height } = box.value;
19
15
  position.value = {
20
16
  top: `${document.documentElement.scrollTop + y + height}px`,
21
17
  left: `${x}px`,
22
- width: `${width}px`,
23
- }
24
- })
25
- })
18
+ width: `${width}px`
19
+ };
20
+ });
21
+ });
26
22
  </script>
27
23
 
28
24
  <template>
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ el: Element;
3
+ color: string;
4
+ highlighted: boolean;
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const queryCollection: any;
@@ -0,0 +1,2 @@
1
+ import { queryCollectionWithEvent } from "#link-checker/content-v3-nitro-path";
2
+ export const queryCollection = queryCollectionWithEvent;
@@ -1,3 +1,7 @@
1
1
  import type { H3Event } from 'h3';
2
- declare const _default: (e: H3Event) => Promise<any>;
2
+ declare const _default: (e: H3Event) => Promise<{
3
+ link: never;
4
+ title: never;
5
+ file: never;
6
+ }[]>;
3
7
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import manifest from "#content/manifest";
2
- import { queryCollectionWithEvent } from "#sitemap/content-v3-nitro-path";
2
+ import { queryCollection } from "@nuxt/content/server";
3
3
  export default async (e) => {
4
4
  const collections = [];
5
5
  for (const collection in manifest) {
@@ -9,7 +9,7 @@ export default async (e) => {
9
9
  }
10
10
  const contentList = [];
11
11
  for (const collection of collections) {
12
- contentList.push(queryCollectionWithEvent(e, collection).select("id", "path", "title").where("path", "IS NOT NULL").all());
12
+ contentList.push(queryCollection(e, collection).select("id", "path", "title").where("path", "IS NOT NULL").all());
13
13
  }
14
14
  const results = await Promise.all(contentList);
15
15
  return results.flat().map((d) => {
@@ -1,2 +1,2 @@
1
- declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<Partial<import("../../../types").LinkInspectionResult>[]>>;
1
+ declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<Partial<import("../../../types.js").LinkInspectionResult>[]>>;
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: import("h3").EventHandler<Omit<import("h3").EventHandlerRequest, "body">, Promise<any[]>>;
2
2
  export default _default;
@@ -1,6 +1,7 @@
1
- import { defineCachedEventHandler, useRuntimeConfig } from "#imports";
1
+ import { useRuntimeConfig } from "#imports";
2
2
  import contentLinkProvider from "#link-checker/content-provider";
3
3
  import pagePaths from "#nuxt-link-checker-sitemap/pages.mjs";
4
+ import { defineCachedEventHandler } from "nitropack/runtime";
4
5
  export default defineCachedEventHandler(async (e) => {
5
6
  const runtimeConfig = useRuntimeConfig().public["nuxt-link-checker"] || {};
6
7
  const linkDb = [
@@ -9,7 +9,7 @@ export declare function getLinkResponse({ link, timeout, fetchRemoteUrls, baseUR
9
9
  timeout?: number;
10
10
  fetchRemoteUrls?: boolean;
11
11
  isInStorage: () => boolean;
12
- }): Promise<LinkResponse | null>;
12
+ }): Promise<LinkResponse | null | undefined>;
13
13
  export declare function setLinkResponse(link: string, response: Promise<{
14
14
  status: number;
15
15
  statusText: string;
@@ -1 +1 @@
1
- export default function RuleAbsoluteSiteUrls(): import("../../types").Rule;
1
+ export default function RuleAbsoluteSiteUrls(): import("../../types.js").Rule;
@@ -1 +1 @@
1
- export default function RuleDescriptiveLinkText(): import("../../types").Rule;
1
+ export default function RuleDescriptiveLinkText(): import("../../types.js").Rule;
@@ -1 +1 @@
1
- export default function RuleMissingHash(): import("../../types").Rule;
1
+ export default function RuleMissingHash(): import("../../types.js").Rule;
@@ -6,9 +6,11 @@ export default function RuleMissingHash() {
6
6
  id: "missing-hash",
7
7
  test({ link, report, ids, fromPath }) {
8
8
  const [path, hash] = link.split("#");
9
+ if (!path)
10
+ return;
9
11
  if (!link.includes("#") || link.endsWith("#top") || fixSlashes(false, path) !== fromPath)
10
12
  return;
11
- if (ids.includes(hash))
13
+ if (!hash || ids.includes(hash))
12
14
  return;
13
15
  const fuse = new Fuse(ids, {
14
16
  threshold: 0.6
@@ -1 +1 @@
1
- export default function RuleNoDocumentRelative(): import("../../types").Rule;
1
+ export default function RuleNoDocumentRelative(): import("../../types.js").Rule;
@@ -1 +1 @@
1
- export default function RuleNoDoubleSlashes(): import("../../types").Rule;
1
+ export default function RuleNoDoubleSlashes(): import("../../types.js").Rule;
@@ -1 +1 @@
1
- export default function RuleNoDuplicateQueryParams(): import("../../types").Rule;
1
+ export default function RuleNoDuplicateQueryParams(): import("../../types.js").Rule;
@@ -1 +1 @@
1
- export default function RuleNoErrorResponse(): import("../../types").Rule;
1
+ export default function RuleNoErrorResponse(): import("../../types.js").Rule;
@@ -1 +1 @@
1
- export default function RuleNoJavascript(): import("../../types").Rule;
1
+ export default function RuleNoJavascript(): import("../../types.js").Rule;
@@ -1 +1 @@
1
- export default function RuleNoMissingHref(): import("../../types").Rule;
1
+ export default function RuleNoMissingHref(): import("../../types.js").Rule;
@@ -1 +1 @@
1
- export default function RuleNoNonAsciiChars(): import("../../types").Rule;
1
+ export default function RuleNoNonAsciiChars(): import("../../types.js").Rule;
@@ -1 +1 @@
1
- export default function RuleNoUnderscores(): import("../../types").Rule;
1
+ export default function RuleNoUnderscores(): import("../../types.js").Rule;
@@ -1 +1 @@
1
- export default function RuleNoUppercaseChars(): import("../../types").Rule;
1
+ export default function RuleNoUppercaseChars(): import("../../types.js").Rule;
@@ -1 +1 @@
1
- export default function RuleNoWhitespace(): import("../../types").Rule;
1
+ export default function RuleNoWhitespace(): import("../../types.js").Rule;
@@ -1 +1 @@
1
- export default function RuleTrailingSlash(): import("../../types").Rule;
1
+ export default function RuleTrailingSlash(): import("../../types.js").Rule;
@@ -1 +1 @@
1
- export default function RuleRedirects(): import("../types").Rule;
1
+ export default function RuleRedirects(): import("../types.js").Rule;
package/dist/types.d.mts CHANGED
@@ -1,7 +1,9 @@
1
- import type { ModuleHooks } from './module.js'
1
+ import type { ModuleHooks } from './module.mjs'
2
2
 
3
3
  declare module '@nuxt/schema' {
4
4
  interface NuxtHooks extends ModuleHooks {}
5
5
  }
6
6
 
7
- export { type ModuleHooks, type ModuleOptions, default } from './module.js'
7
+ export { default } from './module.mjs'
8
+
9
+ export { type ModuleHooks, type ModuleOptions } from './module.mjs'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-link-checker",
3
3
  "type": "module",
4
- "version": "4.3.0",
4
+ "version": "4.3.2",
5
5
  "description": "Find and magically fix links that may be negatively effecting your Nuxt sites SEO.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -20,72 +20,78 @@
20
20
  },
21
21
  "exports": {
22
22
  ".": {
23
- "types": "./dist/types.d.ts",
24
- "import": "./dist/module.mjs",
25
- "require": "./dist/module.cjs"
23
+ "types": "./dist/types.d.mts",
24
+ "import": "./dist/module.mjs"
26
25
  }
27
26
  },
28
27
  "build": {
29
28
  "externals": [
30
- "ofetch",
31
- "std-env",
32
- "unstorage",
33
29
  "unstorage/drivers/fs"
34
30
  ]
35
31
  },
36
- "main": "./dist/module.cjs",
37
- "types": "./dist/types.d.ts",
32
+ "main": "./dist/module.mjs",
33
+ "types": "./dist/types.d.mts",
34
+ "typesVersions": {
35
+ "*": {
36
+ ".": [
37
+ "./dist/types.d.mts"
38
+ ]
39
+ }
40
+ },
38
41
  "files": [
39
42
  "dist"
40
43
  ],
41
44
  "dependencies": {
42
- "@nuxt/devtools-kit": "^2.3.0",
43
- "@nuxt/kit": "^3.16.0",
44
- "@vueuse/core": "^13.0.0",
45
+ "@nuxt/devtools-kit": "^2.6.3",
46
+ "@nuxt/kit": "^4.1.2",
47
+ "@vueuse/core": "^13.9.0",
45
48
  "consola": "^3.4.2",
46
- "diff": "^7.0.0",
49
+ "diff": "^8.0.2",
47
50
  "fuse.js": "^7.1.0",
48
- "magic-string": "^0.30.17",
49
- "nuxt-site-config": "^3.1.6",
51
+ "magic-string": "^0.30.19",
52
+ "nuxt-site-config": "^3.2.5",
53
+ "ofetch": "^1.4.1",
50
54
  "pathe": "^2.0.3",
51
- "pkg-types": "^2.1.0",
55
+ "pkg-types": "^2.3.0",
52
56
  "radix3": "^1.1.2",
53
- "sirv": "^3.0.1",
54
- "ufo": "^1.5.4",
55
- "ultrahtml": "^1.5.3"
57
+ "sirv": "^3.0.2",
58
+ "std-env": "^3.9.0",
59
+ "ufo": "^1.6.1",
60
+ "ultrahtml": "^1.6.0",
61
+ "unstorage": "^1.17.1"
56
62
  },
57
63
  "devDependencies": {
58
- "@antfu/eslint-config": "^4.10.1",
59
- "@nuxt/content": "3.3.0",
60
- "@nuxt/devtools": "^2.3.0",
61
- "@nuxt/module-builder": "^0.8.4",
62
- "@nuxt/test-utils": "^3.17.2",
64
+ "@antfu/eslint-config": "^5.3.0",
65
+ "@nuxt/content": "^3.7.1",
66
+ "@nuxt/devtools": "^2.6.3",
67
+ "@nuxt/module-builder": "^1.0.2",
68
+ "@nuxt/test-utils": "^3.19.2",
63
69
  "@nuxtjs/eslint-config-typescript": "^12.1.0",
64
- "@nuxtjs/sitemap": "^7.2.9",
65
- "@types/diff": "^7.0.1",
66
- "bumpp": "^10.1.0",
67
- "eslint": "^9.22.0",
68
- "execa": "^9.5.2",
69
- "nuxt": "^3.16.0",
70
- "typescript": "5.8.2",
71
- "vitest": "^3.0.9"
70
+ "@nuxtjs/sitemap": "^7.4.7",
71
+ "better-sqlite3": "^12.2.0",
72
+ "bumpp": "^10.2.3",
73
+ "eslint": "^9.35.0",
74
+ "execa": "^9.6.0",
75
+ "nuxt": "^4.1.2",
76
+ "typescript": "5.9.2",
77
+ "vitest": "^3.2.4",
78
+ "vue-tsc": "^3.0.7"
72
79
  },
73
80
  "resolutions": {
74
- "nuxt-link-checker": "workspace:*",
75
- "typescript": "5.6.3"
81
+ "nuxt-link-checker": "workspace:*"
76
82
  },
77
83
  "scripts": {
78
84
  "build": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt-module-build build && npm run client:build",
79
- "client:build": "nuxi generate client",
80
- "client:dev": "nuxi dev client --port 3030",
85
+ "client:build": "nuxt generate client",
86
+ "client:dev": "nuxt dev client --port 3030",
81
87
  "dev": "npm run play:dev",
82
- "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare client && nuxi prepare playground",
83
- "play:dev": "nuxi dev playground",
84
- "play:prod": "npm run build && nuxi dev playground",
85
- "release": "pnpm build && bumpp && pnpm -r publish",
88
+ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare client && nuxt prepare playground",
89
+ "play:dev": "nuxt dev playground",
90
+ "play:prod": "npm run build && nuxt dev playground",
91
+ "release": "pnpm build && bumpp -x \"npx changelogen --output=CHANGELOG.md\"",
86
92
  "lint": "eslint . --fix",
87
93
  "test": "vitest run",
88
- "test:types": "npx nuxi typecheck",
94
+ "typecheck": "nuxt typecheck",
89
95
  "test:watch": "vitest watch"
90
96
  }
91
97
  }