@djangocfg/nextjs 2.1.16 → 2.1.18
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/config/index.mjs +35 -35
- package/dist/config/index.mjs.map +1 -1
- package/dist/index.mjs +35 -35
- package/dist/index.mjs.map +1 -1
- package/dist/scripts/index.d.mts +45 -0
- package/dist/scripts/index.mjs +40381 -0
- package/dist/scripts/index.mjs.map +1 -0
- package/package.json +38 -38
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Smart Link Checker using linkinator
|
|
3
|
+
*
|
|
4
|
+
* Checks all links on a website with proper error handling,
|
|
5
|
+
* timeout management, and filtering of problematic URLs.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```bash
|
|
9
|
+
* node check-links.ts https://example.com
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
interface CheckLinksOptions {
|
|
13
|
+
/** Base URL to check */
|
|
14
|
+
url: string;
|
|
15
|
+
/** Timeout in milliseconds (default: 60000) */
|
|
16
|
+
timeout?: number;
|
|
17
|
+
/** URLs to skip (regex pattern) */
|
|
18
|
+
skipPattern?: string;
|
|
19
|
+
/** Show only broken links (default: true) */
|
|
20
|
+
showOnlyBroken?: boolean;
|
|
21
|
+
/** Maximum number of concurrent requests (default: 50) */
|
|
22
|
+
concurrency?: number;
|
|
23
|
+
/** Output file path for report (optional) */
|
|
24
|
+
outputFile?: string;
|
|
25
|
+
/** Report format: 'json', 'markdown', 'text' (default: 'text') */
|
|
26
|
+
reportFormat?: 'json' | 'markdown' | 'text';
|
|
27
|
+
/** Verbose logging (default: true) */
|
|
28
|
+
verbose?: boolean;
|
|
29
|
+
}
|
|
30
|
+
interface CheckLinksResult {
|
|
31
|
+
success: boolean;
|
|
32
|
+
broken: number;
|
|
33
|
+
total: number;
|
|
34
|
+
errors: Array<{
|
|
35
|
+
url: string;
|
|
36
|
+
status: number | string;
|
|
37
|
+
reason?: string;
|
|
38
|
+
}>;
|
|
39
|
+
url: string;
|
|
40
|
+
timestamp: string;
|
|
41
|
+
duration?: number;
|
|
42
|
+
}
|
|
43
|
+
declare function checkLinks(options: CheckLinksOptions): Promise<CheckLinksResult>;
|
|
44
|
+
|
|
45
|
+
export { type CheckLinksOptions, checkLinks };
|