You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/crawl.js
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ import { getMockResponse } from './utils/mockResponse.js';
27
27
* @param {Array<string>} [options.includePaths] - List of path patterns to include (e.g., ['/products/*', '/blog/**']). Supports wildcards: * matches any characters, ** matches any path segments
28
28
* @param {Array<string>} [options.excludePaths] - List of path patterns to exclude (e.g., ['/admin/*', '/api/*']). Supports wildcards and takes precedence over includePaths
29
29
* @param {string} [options.webhookUrl] - URL to receive webhook notifications when the crawl job completes
30
+
* @param {number|null} [options.waitMs] - Time in milliseconds to wait for JavaScript rendering (default 3000 on server)
30
31
* @returns {Promise<Object>} The crawl job response
31
32
* @throws {Error} Throws an error if the HTTP request fails
0 commit comments