nuxt-link-checker 2.1.3 → 2.1.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/module.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "bridge": false
6
6
  },
7
7
  "configKey": "linkChecker",
8
- "version": "2.1.3"
8
+ "version": "2.1.4"
9
9
  }
package/dist/module.mjs CHANGED
@@ -240,7 +240,7 @@ function createFilter(options = {}) {
240
240
  };
241
241
  }
242
242
  async function crawlFetch(link, options = {}) {
243
- const $ = options.fetch || $fetch;
243
+ const $ = options.fetch || $fetch.raw;
244
244
  const timeout = options.timeout || 5e3;
245
245
  const timeoutController = new AbortController();
246
246
  const abortRequestTimeout = setTimeout(() => timeoutController.abort(), timeout);
@@ -6,4 +6,8 @@ export declare function createFilter(options?: CreateFilterOptions): (path: stri
6
6
  export declare function crawlFetch(link: string, options?: {
7
7
  fetch?: typeof globalThis.fetch;
8
8
  timeout?: number;
9
- }): Promise<any>;
9
+ }): Promise<Response | {
10
+ status: number;
11
+ statusText: string;
12
+ headers: {};
13
+ }>;
@@ -27,7 +27,7 @@ export function createFilter(options = {}) {
27
27
  };
28
28
  }
29
29
  export async function crawlFetch(link, options = {}) {
30
- const $ = options.fetch || $fetch;
30
+ const $ = options.fetch || $fetch.raw;
31
31
  const timeout = options.timeout || 5e3;
32
32
  const timeoutController = new AbortController();
33
33
  const abortRequestTimeout = setTimeout(() => timeoutController.abort(), timeout);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-link-checker",
3
3
  "type": "module",
4
- "version": "2.1.3",
4
+ "version": "2.1.4",
5
5
  "packageManager": "pnpm@8.6.12",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",