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
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<
|
|
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);
|