@xberg-io/crawlberg-wasm 1.7.2 → 1.8.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xberg-io/crawlberg-wasm",
3
- "version": "1.7.2",
3
+ "version": "1.8.0",
4
4
  "private": false,
5
5
  "description": "High-performance web crawling engine",
6
6
  "license": "MIT",
@@ -153,7 +153,7 @@ export class WasmBrowserConfig {
153
153
  free(): void;
154
154
  [Symbol.dispose](): void;
155
155
  static default(): WasmBrowserConfig;
156
- constructor(mode?: WasmBrowserMode | null, backend?: WasmBrowserBackend | null, timeout?: bigint | null, wait?: WasmBrowserWait | null, blockUrlPatterns?: string[] | null, captureNetworkEvents?: boolean | null, sessionAffinity?: boolean | null, endpoint?: string | null, waitSelector?: string | null, extraWait?: bigint | null, proxy?: WasmProxyConfig | null, evalScript?: string | null, robotsUserAgent?: string | null);
156
+ constructor(mode?: WasmBrowserMode | null, backend?: WasmBrowserBackend | null, timeout?: bigint | null, overallTimeout?: bigint | null, shutdownTimeout?: bigint | null, wait?: WasmBrowserWait | null, blockUrlPatterns?: string[] | null, captureNetworkEvents?: boolean | null, sessionAffinity?: boolean | null, endpoint?: string | null, waitSelector?: string | null, extraWait?: bigint | null, proxy?: WasmProxyConfig | null, evalScript?: string | null, robotsUserAgent?: string | null);
157
157
  get backend(): string;
158
158
  set backend(value: WasmBrowserBackend);
159
159
  blockUrlPatterns: string[];
@@ -166,11 +166,15 @@ export class WasmBrowserConfig {
166
166
  set extraWait(value: bigint | null | undefined);
167
167
  get mode(): string;
168
168
  set mode(value: WasmBrowserMode);
169
+ get overallTimeout(): bigint | undefined;
170
+ set overallTimeout(value: bigint | null | undefined);
169
171
  get proxy(): WasmProxyConfig | undefined;
170
172
  set proxy(value: WasmProxyConfig | null | undefined);
171
173
  get robotsUserAgent(): string | undefined;
172
174
  set robotsUserAgent(value: string | null | undefined);
173
175
  sessionAffinity: boolean;
176
+ get shutdownTimeout(): bigint | undefined;
177
+ set shutdownTimeout(value: bigint | null | undefined);
174
178
  get timeout(): bigint | undefined;
175
179
  set timeout(value: bigint | null | undefined);
176
180
  get waitSelector(): string | undefined;
@@ -251,8 +255,9 @@ export class WasmContentConfig {
251
255
  free(): void;
252
256
  [Symbol.dispose](): void;
253
257
  static default(): WasmContentConfig;
254
- constructor(outputFormat?: string | null, preprocessingPreset?: string | null, removeNavigation?: boolean | null, removeForms?: boolean | null, stripTags?: string[] | null, preserveTags?: string[] | null, excludeSelectors?: string[] | null, skipImages?: boolean | null, wrap?: boolean | null, wrapWidth?: number | null, includeDocumentStructure?: boolean | null, maxDepth?: number | null);
258
+ constructor(outputFormat?: string | null, preprocessingPreset?: string | null, removeNavigation?: boolean | null, removeForms?: boolean | null, stripTags?: string[] | null, preserveTags?: string[] | null, excludeSelectors?: string[] | null, skipImages?: boolean | null, wrap?: boolean | null, wrapWidth?: number | null, includeDocumentStructure?: boolean | null, extractMetadata?: boolean | null, maxDepth?: number | null);
255
259
  excludeSelectors: string[];
260
+ extractMetadata: boolean;
256
261
  includeDocumentStructure: boolean;
257
262
  get maxDepth(): number | undefined;
258
263
  set maxDepth(value: number | null | undefined);
@@ -297,7 +302,7 @@ export class WasmCrawlConfig {
297
302
  free(): void;
298
303
  [Symbol.dispose](): void;
299
304
  static default(): WasmCrawlConfig;
300
- constructor(crawlStrategy?: WasmCrawlStrategyKind | null, respectRobotsTxt?: boolean | null, softHttpErrors?: boolean | null, stayOnDomain?: boolean | null, allowSubdomains?: boolean | null, includePaths?: string[] | null, excludePaths?: string[] | null, customHeaders?: any | null, requestTimeout?: bigint | null, maxRedirects?: number | null, retryCount?: number | null, retryCodes?: Uint16Array | null, cookiesEnabled?: boolean | null, removeTags?: string[] | null, content?: WasmContentConfig | null, downloadAssets?: boolean | null, assetTypes?: WasmAssetCategory[] | null, browser?: WasmBrowserConfig | null, userAgents?: string[] | null, captureScreenshot?: boolean | null, followDocumentUrls?: boolean | null, downloadDocuments?: boolean | null, documentMimeTypes?: string[] | null, saveBrowserProfile?: boolean | null, ssrf?: WasmSsrfPolicy | null, maxDepth?: number | null, maxPages?: number | null, maxLinksPerPage?: number | null, maxConcurrent?: number | null, contentFilter?: WasmContentFilterKind | null, bm25Query?: string | null, bm25Threshold?: number | null, userAgent?: string | null, rateLimitMs?: bigint | null, auth?: any | null, maxBodySize?: number | null, mapLimit?: number | null, mapSearch?: string | null, maxAssetSize?: number | null, proxy?: WasmProxyConfig | null, documentUrlDepth?: number | null, documentMaxSize?: number | null, documentOutputDir?: string | null, documentContentEncoding?: WasmDocumentContentEncoding | null, warcOutput?: string | null, browserProfile?: string | null, ssrfDenyPrivateExplicit?: boolean | null);
305
+ constructor(crawlStrategy?: WasmCrawlStrategyKind | null, respectRobotsTxt?: boolean | null, softHttpErrors?: boolean | null, stayOnDomain?: boolean | null, allowSubdomains?: boolean | null, includePaths?: string[] | null, excludePaths?: string[] | null, pathPatternsMatchQuery?: boolean | null, dedupIncludeQuery?: boolean | null, stripTrackingParams?: boolean | null, trackingParams?: string[] | null, customHeaders?: any | null, requestTimeout?: bigint | null, maxRedirects?: number | null, retryCount?: number | null, retryCodes?: Uint16Array | null, retryInitialDelayMs?: bigint | null, retryMaxDelayMs?: bigint | null, rateLimitJitterRatio?: number | null, cookiesEnabled?: boolean | null, removeTags?: string[] | null, content?: WasmContentConfig | null, downloadAssets?: boolean | null, assetTypes?: WasmAssetCategory[] | null, browser?: WasmBrowserConfig | null, userAgents?: string[] | null, captureScreenshot?: boolean | null, followDocumentUrls?: boolean | null, downloadDocuments?: boolean | null, documentMimeTypes?: string[] | null, saveBrowserProfile?: boolean | null, ssrf?: WasmSsrfPolicy | null, maxDepth?: number | null, maxPages?: number | null, maxLinksPerPage?: number | null, maxConcurrent?: number | null, contentFilter?: WasmContentFilterKind | null, bm25Query?: string | null, bm25Threshold?: number | null, userAgent?: string | null, rateLimitMs?: bigint | null, auth?: any | null, maxBodySize?: number | null, mapLimit?: number | null, mapSearch?: string | null, maxAssetSize?: number | null, proxy?: WasmProxyConfig | null, documentUrlDepth?: number | null, documentMaxSize?: number | null, documentOutputDir?: string | null, documentContentEncoding?: WasmDocumentContentEncoding | null, warcOutput?: string | null, browserProfile?: string | null, ssrfDenyPrivateExplicit?: boolean | null);
301
306
  /**
302
307
  * Validate the configuration, returning an error if any values are invalid.
303
308
  *
@@ -324,6 +329,7 @@ export class WasmCrawlConfig {
324
329
  get crawlStrategy(): string;
325
330
  set crawlStrategy(value: WasmCrawlStrategyKind);
326
331
  customHeaders: any;
332
+ dedupIncludeQuery: boolean;
327
333
  get documentContentEncoding(): string | undefined;
328
334
  set documentContentEncoding(value: WasmDocumentContentEncoding | null | undefined);
329
335
  get documentMaxSize(): number | undefined;
@@ -355,8 +361,10 @@ export class WasmCrawlConfig {
355
361
  get maxPages(): number | undefined;
356
362
  set maxPages(value: number | null | undefined);
357
363
  maxRedirects: number;
364
+ pathPatternsMatchQuery: boolean;
358
365
  get proxy(): WasmProxyConfig | undefined;
359
366
  set proxy(value: WasmProxyConfig | null | undefined);
367
+ rateLimitJitterRatio: number;
360
368
  get rateLimitMs(): bigint | undefined;
361
369
  set rateLimitMs(value: bigint | null | undefined);
362
370
  removeTags: string[];
@@ -365,12 +373,16 @@ export class WasmCrawlConfig {
365
373
  respectRobotsTxt: boolean;
366
374
  retryCodes: Uint16Array;
367
375
  retryCount: number;
376
+ retryInitialDelayMs: bigint;
377
+ retryMaxDelayMs: bigint;
368
378
  saveBrowserProfile: boolean;
369
379
  softHttpErrors: boolean;
370
380
  get ssrfDenyPrivateExplicit(): boolean | undefined;
371
381
  set ssrfDenyPrivateExplicit(value: boolean | null | undefined);
372
382
  ssrf: WasmSsrfPolicy;
373
383
  stayOnDomain: boolean;
384
+ stripTrackingParams: boolean;
385
+ trackingParams: string[];
374
386
  get userAgent(): string | undefined;
375
387
  set userAgent(value: string | null | undefined);
376
388
  userAgents: string[];
@@ -397,7 +409,7 @@ export class WasmCrawlPageResult {
397
409
  free(): void;
398
410
  [Symbol.dispose](): void;
399
411
  static default(): WasmCrawlPageResult;
400
- constructor(url?: string | null, normalizedUrl?: string | null, statusCode?: number | null, contentType?: string | null, html?: string | null, bodySize?: number | null, metadata?: WasmPageMetadata | null, links?: WasmLinkInfo[] | null, images?: WasmImageInfo[] | null, feeds?: WasmFeedInfo[] | null, jsonLd?: WasmJsonLdEntry[] | null, depth?: number | null, stayedOnDomain?: boolean | null, wasSkipped?: boolean | null, isPdf?: boolean | null, browserUsed?: boolean | null, detectedCharset?: string | null, markdown?: WasmMarkdownResult | null, extractedData?: any | null, extractionMeta?: WasmExtractionMeta | null, downloadedDocument?: WasmDownloadedDocument | null);
412
+ constructor(url?: string | null, normalizedUrl?: string | null, statusCode?: number | null, contentType?: string | null, html?: string | null, bodySize?: number | null, metadata?: WasmPageMetadata | null, links?: WasmLinkInfo[] | null, images?: WasmImageInfo[] | null, feeds?: WasmFeedInfo[] | null, jsonLd?: WasmJsonLdEntry[] | null, depth?: number | null, stayedOnDomain?: boolean | null, wasSkipped?: boolean | null, isPdf?: boolean | null, browserUsed?: boolean | null, finalUrl?: string | null, redirectCount?: number | null, noindexDetected?: boolean | null, nofollowDetected?: boolean | null, detectedCharset?: string | null, markdown?: WasmMarkdownResult | null, extractedData?: any | null, extractionMeta?: WasmExtractionMeta | null, downloadedDocument?: WasmDownloadedDocument | null);
401
413
  bodySize: number;
402
414
  browserUsed: boolean;
403
415
  contentType: string;
@@ -411,6 +423,7 @@ export class WasmCrawlPageResult {
411
423
  get extractionMeta(): WasmExtractionMeta | undefined;
412
424
  set extractionMeta(value: WasmExtractionMeta | null | undefined);
413
425
  feeds: WasmFeedInfo[];
426
+ finalUrl: string;
414
427
  html: string;
415
428
  images: WasmImageInfo[];
416
429
  isPdf: boolean;
@@ -419,7 +432,10 @@ export class WasmCrawlPageResult {
419
432
  get markdown(): WasmMarkdownResult | undefined;
420
433
  set markdown(value: WasmMarkdownResult | null | undefined);
421
434
  metadata: WasmPageMetadata;
435
+ nofollowDetected: boolean;
436
+ noindexDetected: boolean;
422
437
  normalizedUrl: string;
438
+ redirectCount: number;
423
439
  statusCode: number;
424
440
  stayedOnDomain: boolean;
425
441
  url: string;