@xberg-io/crawlberg-wasm 1.7.0 → 1.7.2
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 +1 -1
- package/pkg/bundler/crawlberg_wasm.d.ts +3 -0
- package/pkg/bundler/crawlberg_wasm_bg.js +24 -27
- package/pkg/bundler/crawlberg_wasm_bg.wasm +0 -0
- package/pkg/bundler/package.json +1 -1
- package/pkg/deno/crawlberg_wasm.d.ts +3 -0
- package/pkg/deno/crawlberg_wasm.js +24 -27
- package/pkg/deno/crawlberg_wasm_bg.wasm +0 -0
- package/pkg/nodejs/crawlberg_wasm.d.ts +3 -0
- package/pkg/nodejs/crawlberg_wasm.js +24 -27
- package/pkg/nodejs/crawlberg_wasm_bg.wasm +0 -0
- package/pkg/nodejs/package.json +1 -1
- package/pkg/web/crawlberg_wasm.d.ts +3 -0
- package/pkg/web/crawlberg_wasm.js +24 -27
- package/pkg/web/crawlberg_wasm_bg.wasm +0 -0
- package/pkg/web/package.json +1 -1
package/package.json
CHANGED
|
@@ -300,6 +300,9 @@ export class WasmCrawlConfig {
|
|
|
300
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);
|
|
301
301
|
/**
|
|
302
302
|
* Validate the configuration, returning an error if any values are invalid.
|
|
303
|
+
*
|
|
304
|
+
* Only the first violation encountered is reported, not every one, so fixing a rejected
|
|
305
|
+
* configuration can surface a further error on the next attempt.
|
|
303
306
|
*/
|
|
304
307
|
validate(): void;
|
|
305
308
|
allowSubdomains: boolean;
|
|
@@ -2744,6 +2744,9 @@ export class WasmCrawlConfig {
|
|
|
2744
2744
|
}
|
|
2745
2745
|
/**
|
|
2746
2746
|
* Validate the configuration, returning an error if any values are invalid.
|
|
2747
|
+
*
|
|
2748
|
+
* Only the first violation encountered is reported, not every one, so fixing a rejected
|
|
2749
|
+
* configuration can surface a further error on the next attempt.
|
|
2747
2750
|
*/
|
|
2748
2751
|
validate() {
|
|
2749
2752
|
const ret = wasm.wasmcrawlconfig_validate(this.__wbg_ptr);
|
|
@@ -7713,10 +7716,9 @@ if (Symbol.dispose) WasmSsrfPolicy.prototype[Symbol.dispose] = WasmSsrfPolicy.pr
|
|
|
7713
7716
|
*/
|
|
7714
7717
|
export function batchCrawl(engine, urls) {
|
|
7715
7718
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7716
|
-
|
|
7717
|
-
const
|
|
7718
|
-
const
|
|
7719
|
-
const ret = wasm.batchCrawl(ptr0, ptr1, len1);
|
|
7719
|
+
const ptr0 = passArrayJsValueToWasm0(urls, wasm.__wbindgen_malloc);
|
|
7720
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7721
|
+
const ret = wasm.batchCrawl(engine.__wbg_ptr, ptr0, len0);
|
|
7720
7722
|
return ret;
|
|
7721
7723
|
}
|
|
7722
7724
|
|
|
@@ -7728,10 +7730,9 @@ export function batchCrawl(engine, urls) {
|
|
|
7728
7730
|
*/
|
|
7729
7731
|
export function batchScrape(engine, urls) {
|
|
7730
7732
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7731
|
-
|
|
7732
|
-
const
|
|
7733
|
-
const
|
|
7734
|
-
const ret = wasm.batchScrape(ptr0, ptr1, len1);
|
|
7733
|
+
const ptr0 = passArrayJsValueToWasm0(urls, wasm.__wbindgen_malloc);
|
|
7734
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7735
|
+
const ret = wasm.batchScrape(engine.__wbg_ptr, ptr0, len0);
|
|
7735
7736
|
return ret;
|
|
7736
7737
|
}
|
|
7737
7738
|
|
|
@@ -7743,10 +7744,9 @@ export function batchScrape(engine, urls) {
|
|
|
7743
7744
|
*/
|
|
7744
7745
|
export function crawl(engine, url) {
|
|
7745
7746
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7746
|
-
|
|
7747
|
-
const
|
|
7748
|
-
const
|
|
7749
|
-
const ret = wasm.crawl(ptr0, ptr1, len1);
|
|
7747
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7748
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7749
|
+
const ret = wasm.crawl(engine.__wbg_ptr, ptr0, len0);
|
|
7750
7750
|
return ret;
|
|
7751
7751
|
}
|
|
7752
7752
|
|
|
@@ -7796,12 +7796,11 @@ export function generateCitations(markdown) {
|
|
|
7796
7796
|
*/
|
|
7797
7797
|
export function interact(engine, url, actions) {
|
|
7798
7798
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7799
|
-
|
|
7800
|
-
const
|
|
7799
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7800
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7801
|
+
const ptr1 = passArrayJsValueToWasm0(actions, wasm.__wbindgen_malloc);
|
|
7801
7802
|
const len1 = WASM_VECTOR_LEN;
|
|
7802
|
-
const
|
|
7803
|
-
const len2 = WASM_VECTOR_LEN;
|
|
7804
|
-
const ret = wasm.interact(ptr0, ptr1, len1, ptr2, len2);
|
|
7803
|
+
const ret = wasm.interact(engine.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
7805
7804
|
return ret;
|
|
7806
7805
|
}
|
|
7807
7806
|
|
|
@@ -7813,10 +7812,9 @@ export function interact(engine, url, actions) {
|
|
|
7813
7812
|
*/
|
|
7814
7813
|
export function mapUrls(engine, url) {
|
|
7815
7814
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7816
|
-
|
|
7817
|
-
const
|
|
7818
|
-
const
|
|
7819
|
-
const ret = wasm.mapUrls(ptr0, ptr1, len1);
|
|
7815
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7816
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7817
|
+
const ret = wasm.mapUrls(engine.__wbg_ptr, ptr0, len0);
|
|
7820
7818
|
return ret;
|
|
7821
7819
|
}
|
|
7822
7820
|
|
|
@@ -7828,10 +7826,9 @@ export function mapUrls(engine, url) {
|
|
|
7828
7826
|
*/
|
|
7829
7827
|
export function scrape(engine, url) {
|
|
7830
7828
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7831
|
-
|
|
7832
|
-
const
|
|
7833
|
-
const
|
|
7834
|
-
const ret = wasm.scrape(ptr0, ptr1, len1);
|
|
7829
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7830
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7831
|
+
const ret = wasm.scrape(engine.__wbg_ptr, ptr0, len0);
|
|
7835
7832
|
return ret;
|
|
7836
7833
|
}
|
|
7837
7834
|
export function __wbg_Error_67e7344beaa85059(arg0, arg1) {
|
|
@@ -8366,12 +8363,12 @@ export function __wbg_wasmsitemapurl_unwrap(arg0) {
|
|
|
8366
8363
|
return ret;
|
|
8367
8364
|
}
|
|
8368
8365
|
export function __wbindgen_generic_0000000000000001(arg0, arg1) {
|
|
8369
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
8366
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1096, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
8370
8367
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h5567083e9d00da74);
|
|
8371
8368
|
return ret;
|
|
8372
8369
|
}
|
|
8373
8370
|
export function __wbindgen_generic_0000000000000002(arg0, arg1) {
|
|
8374
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
8371
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1000, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8375
8372
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00e67b488e823f1f);
|
|
8376
8373
|
return ret;
|
|
8377
8374
|
}
|
|
Binary file
|
package/pkg/bundler/package.json
CHANGED
|
@@ -300,6 +300,9 @@ export class WasmCrawlConfig {
|
|
|
300
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);
|
|
301
301
|
/**
|
|
302
302
|
* Validate the configuration, returning an error if any values are invalid.
|
|
303
|
+
*
|
|
304
|
+
* Only the first violation encountered is reported, not every one, so fixing a rejected
|
|
305
|
+
* configuration can surface a further error on the next attempt.
|
|
303
306
|
*/
|
|
304
307
|
validate(): void;
|
|
305
308
|
allowSubdomains: boolean;
|
|
@@ -2746,6 +2746,9 @@ export class WasmCrawlConfig {
|
|
|
2746
2746
|
}
|
|
2747
2747
|
/**
|
|
2748
2748
|
* Validate the configuration, returning an error if any values are invalid.
|
|
2749
|
+
*
|
|
2750
|
+
* Only the first violation encountered is reported, not every one, so fixing a rejected
|
|
2751
|
+
* configuration can surface a further error on the next attempt.
|
|
2749
2752
|
*/
|
|
2750
2753
|
validate() {
|
|
2751
2754
|
const ret = wasm.wasmcrawlconfig_validate(this.__wbg_ptr);
|
|
@@ -7715,10 +7718,9 @@ if (Symbol.dispose) WasmSsrfPolicy.prototype[Symbol.dispose] = WasmSsrfPolicy.pr
|
|
|
7715
7718
|
*/
|
|
7716
7719
|
export function batchCrawl(engine, urls) {
|
|
7717
7720
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7718
|
-
|
|
7719
|
-
const
|
|
7720
|
-
const
|
|
7721
|
-
const ret = wasm.batchCrawl(ptr0, ptr1, len1);
|
|
7721
|
+
const ptr0 = passArrayJsValueToWasm0(urls, wasm.__wbindgen_malloc);
|
|
7722
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7723
|
+
const ret = wasm.batchCrawl(engine.__wbg_ptr, ptr0, len0);
|
|
7722
7724
|
return ret;
|
|
7723
7725
|
}
|
|
7724
7726
|
|
|
@@ -7730,10 +7732,9 @@ export function batchCrawl(engine, urls) {
|
|
|
7730
7732
|
*/
|
|
7731
7733
|
export function batchScrape(engine, urls) {
|
|
7732
7734
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7733
|
-
|
|
7734
|
-
const
|
|
7735
|
-
const
|
|
7736
|
-
const ret = wasm.batchScrape(ptr0, ptr1, len1);
|
|
7735
|
+
const ptr0 = passArrayJsValueToWasm0(urls, wasm.__wbindgen_malloc);
|
|
7736
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7737
|
+
const ret = wasm.batchScrape(engine.__wbg_ptr, ptr0, len0);
|
|
7737
7738
|
return ret;
|
|
7738
7739
|
}
|
|
7739
7740
|
|
|
@@ -7745,10 +7746,9 @@ export function batchScrape(engine, urls) {
|
|
|
7745
7746
|
*/
|
|
7746
7747
|
export function crawl(engine, url) {
|
|
7747
7748
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7748
|
-
|
|
7749
|
-
const
|
|
7750
|
-
const
|
|
7751
|
-
const ret = wasm.crawl(ptr0, ptr1, len1);
|
|
7749
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7750
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7751
|
+
const ret = wasm.crawl(engine.__wbg_ptr, ptr0, len0);
|
|
7752
7752
|
return ret;
|
|
7753
7753
|
}
|
|
7754
7754
|
|
|
@@ -7798,12 +7798,11 @@ export function generateCitations(markdown) {
|
|
|
7798
7798
|
*/
|
|
7799
7799
|
export function interact(engine, url, actions) {
|
|
7800
7800
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7801
|
-
|
|
7802
|
-
const
|
|
7801
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7802
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7803
|
+
const ptr1 = passArrayJsValueToWasm0(actions, wasm.__wbindgen_malloc);
|
|
7803
7804
|
const len1 = WASM_VECTOR_LEN;
|
|
7804
|
-
const
|
|
7805
|
-
const len2 = WASM_VECTOR_LEN;
|
|
7806
|
-
const ret = wasm.interact(ptr0, ptr1, len1, ptr2, len2);
|
|
7805
|
+
const ret = wasm.interact(engine.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
7807
7806
|
return ret;
|
|
7808
7807
|
}
|
|
7809
7808
|
|
|
@@ -7815,10 +7814,9 @@ export function interact(engine, url, actions) {
|
|
|
7815
7814
|
*/
|
|
7816
7815
|
export function mapUrls(engine, url) {
|
|
7817
7816
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7818
|
-
|
|
7819
|
-
const
|
|
7820
|
-
const
|
|
7821
|
-
const ret = wasm.mapUrls(ptr0, ptr1, len1);
|
|
7817
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7818
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7819
|
+
const ret = wasm.mapUrls(engine.__wbg_ptr, ptr0, len0);
|
|
7822
7820
|
return ret;
|
|
7823
7821
|
}
|
|
7824
7822
|
|
|
@@ -7830,10 +7828,9 @@ export function mapUrls(engine, url) {
|
|
|
7830
7828
|
*/
|
|
7831
7829
|
export function scrape(engine, url) {
|
|
7832
7830
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7833
|
-
|
|
7834
|
-
const
|
|
7835
|
-
const
|
|
7836
|
-
const ret = wasm.scrape(ptr0, ptr1, len1);
|
|
7831
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7832
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7833
|
+
const ret = wasm.scrape(engine.__wbg_ptr, ptr0, len0);
|
|
7837
7834
|
return ret;
|
|
7838
7835
|
}
|
|
7839
7836
|
function __wbg_get_imports() {
|
|
@@ -8371,12 +8368,12 @@ function __wbg_get_imports() {
|
|
|
8371
8368
|
return ret;
|
|
8372
8369
|
},
|
|
8373
8370
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
8374
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
8371
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1096, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
8375
8372
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h5567083e9d00da74);
|
|
8376
8373
|
return ret;
|
|
8377
8374
|
},
|
|
8378
8375
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
8379
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
8376
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1000, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8380
8377
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00e67b488e823f1f);
|
|
8381
8378
|
return ret;
|
|
8382
8379
|
},
|
|
Binary file
|
|
@@ -300,6 +300,9 @@ export class WasmCrawlConfig {
|
|
|
300
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);
|
|
301
301
|
/**
|
|
302
302
|
* Validate the configuration, returning an error if any values are invalid.
|
|
303
|
+
*
|
|
304
|
+
* Only the first violation encountered is reported, not every one, so fixing a rejected
|
|
305
|
+
* configuration can surface a further error on the next attempt.
|
|
303
306
|
*/
|
|
304
307
|
validate(): void;
|
|
305
308
|
allowSubdomains: boolean;
|
|
@@ -2764,6 +2764,9 @@ class WasmCrawlConfig {
|
|
|
2764
2764
|
}
|
|
2765
2765
|
/**
|
|
2766
2766
|
* Validate the configuration, returning an error if any values are invalid.
|
|
2767
|
+
*
|
|
2768
|
+
* Only the first violation encountered is reported, not every one, so fixing a rejected
|
|
2769
|
+
* configuration can surface a further error on the next attempt.
|
|
2767
2770
|
*/
|
|
2768
2771
|
validate() {
|
|
2769
2772
|
const ret = wasm.wasmcrawlconfig_validate(this.__wbg_ptr);
|
|
@@ -7764,10 +7767,9 @@ exports.WasmSsrfPolicy = WasmSsrfPolicy;
|
|
|
7764
7767
|
*/
|
|
7765
7768
|
function batchCrawl(engine, urls) {
|
|
7766
7769
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7767
|
-
|
|
7768
|
-
const
|
|
7769
|
-
const
|
|
7770
|
-
const ret = wasm.batchCrawl(ptr0, ptr1, len1);
|
|
7770
|
+
const ptr0 = passArrayJsValueToWasm0(urls, wasm.__wbindgen_malloc);
|
|
7771
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7772
|
+
const ret = wasm.batchCrawl(engine.__wbg_ptr, ptr0, len0);
|
|
7771
7773
|
return ret;
|
|
7772
7774
|
}
|
|
7773
7775
|
exports.batchCrawl = batchCrawl;
|
|
@@ -7780,10 +7782,9 @@ exports.batchCrawl = batchCrawl;
|
|
|
7780
7782
|
*/
|
|
7781
7783
|
function batchScrape(engine, urls) {
|
|
7782
7784
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7783
|
-
|
|
7784
|
-
const
|
|
7785
|
-
const
|
|
7786
|
-
const ret = wasm.batchScrape(ptr0, ptr1, len1);
|
|
7785
|
+
const ptr0 = passArrayJsValueToWasm0(urls, wasm.__wbindgen_malloc);
|
|
7786
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7787
|
+
const ret = wasm.batchScrape(engine.__wbg_ptr, ptr0, len0);
|
|
7787
7788
|
return ret;
|
|
7788
7789
|
}
|
|
7789
7790
|
exports.batchScrape = batchScrape;
|
|
@@ -7796,10 +7797,9 @@ exports.batchScrape = batchScrape;
|
|
|
7796
7797
|
*/
|
|
7797
7798
|
function crawl(engine, url) {
|
|
7798
7799
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7799
|
-
|
|
7800
|
-
const
|
|
7801
|
-
const
|
|
7802
|
-
const ret = wasm.crawl(ptr0, ptr1, len1);
|
|
7800
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7801
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7802
|
+
const ret = wasm.crawl(engine.__wbg_ptr, ptr0, len0);
|
|
7803
7803
|
return ret;
|
|
7804
7804
|
}
|
|
7805
7805
|
exports.crawl = crawl;
|
|
@@ -7852,12 +7852,11 @@ exports.generateCitations = generateCitations;
|
|
|
7852
7852
|
*/
|
|
7853
7853
|
function interact(engine, url, actions) {
|
|
7854
7854
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7855
|
-
|
|
7856
|
-
const
|
|
7855
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7856
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7857
|
+
const ptr1 = passArrayJsValueToWasm0(actions, wasm.__wbindgen_malloc);
|
|
7857
7858
|
const len1 = WASM_VECTOR_LEN;
|
|
7858
|
-
const
|
|
7859
|
-
const len2 = WASM_VECTOR_LEN;
|
|
7860
|
-
const ret = wasm.interact(ptr0, ptr1, len1, ptr2, len2);
|
|
7859
|
+
const ret = wasm.interact(engine.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
7861
7860
|
return ret;
|
|
7862
7861
|
}
|
|
7863
7862
|
exports.interact = interact;
|
|
@@ -7870,10 +7869,9 @@ exports.interact = interact;
|
|
|
7870
7869
|
*/
|
|
7871
7870
|
function mapUrls(engine, url) {
|
|
7872
7871
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7873
|
-
|
|
7874
|
-
const
|
|
7875
|
-
const
|
|
7876
|
-
const ret = wasm.mapUrls(ptr0, ptr1, len1);
|
|
7872
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7873
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7874
|
+
const ret = wasm.mapUrls(engine.__wbg_ptr, ptr0, len0);
|
|
7877
7875
|
return ret;
|
|
7878
7876
|
}
|
|
7879
7877
|
exports.mapUrls = mapUrls;
|
|
@@ -7886,10 +7884,9 @@ exports.mapUrls = mapUrls;
|
|
|
7886
7884
|
*/
|
|
7887
7885
|
function scrape(engine, url) {
|
|
7888
7886
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7889
|
-
|
|
7890
|
-
const
|
|
7891
|
-
const
|
|
7892
|
-
const ret = wasm.scrape(ptr0, ptr1, len1);
|
|
7887
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7888
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7889
|
+
const ret = wasm.scrape(engine.__wbg_ptr, ptr0, len0);
|
|
7893
7890
|
return ret;
|
|
7894
7891
|
}
|
|
7895
7892
|
exports.scrape = scrape;
|
|
@@ -8428,12 +8425,12 @@ function __wbg_get_imports() {
|
|
|
8428
8425
|
return ret;
|
|
8429
8426
|
},
|
|
8430
8427
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
8431
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
8428
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1096, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
8432
8429
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h5567083e9d00da74);
|
|
8433
8430
|
return ret;
|
|
8434
8431
|
},
|
|
8435
8432
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
8436
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
8433
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1000, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8437
8434
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00e67b488e823f1f);
|
|
8438
8435
|
return ret;
|
|
8439
8436
|
},
|
|
Binary file
|
package/pkg/nodejs/package.json
CHANGED
|
@@ -300,6 +300,9 @@ export class WasmCrawlConfig {
|
|
|
300
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);
|
|
301
301
|
/**
|
|
302
302
|
* Validate the configuration, returning an error if any values are invalid.
|
|
303
|
+
*
|
|
304
|
+
* Only the first violation encountered is reported, not every one, so fixing a rejected
|
|
305
|
+
* configuration can surface a further error on the next attempt.
|
|
303
306
|
*/
|
|
304
307
|
validate(): void;
|
|
305
308
|
allowSubdomains: boolean;
|
|
@@ -2746,6 +2746,9 @@ export class WasmCrawlConfig {
|
|
|
2746
2746
|
}
|
|
2747
2747
|
/**
|
|
2748
2748
|
* Validate the configuration, returning an error if any values are invalid.
|
|
2749
|
+
*
|
|
2750
|
+
* Only the first violation encountered is reported, not every one, so fixing a rejected
|
|
2751
|
+
* configuration can surface a further error on the next attempt.
|
|
2749
2752
|
*/
|
|
2750
2753
|
validate() {
|
|
2751
2754
|
const ret = wasm.wasmcrawlconfig_validate(this.__wbg_ptr);
|
|
@@ -7715,10 +7718,9 @@ if (Symbol.dispose) WasmSsrfPolicy.prototype[Symbol.dispose] = WasmSsrfPolicy.pr
|
|
|
7715
7718
|
*/
|
|
7716
7719
|
export function batchCrawl(engine, urls) {
|
|
7717
7720
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7718
|
-
|
|
7719
|
-
const
|
|
7720
|
-
const
|
|
7721
|
-
const ret = wasm.batchCrawl(ptr0, ptr1, len1);
|
|
7721
|
+
const ptr0 = passArrayJsValueToWasm0(urls, wasm.__wbindgen_malloc);
|
|
7722
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7723
|
+
const ret = wasm.batchCrawl(engine.__wbg_ptr, ptr0, len0);
|
|
7722
7724
|
return ret;
|
|
7723
7725
|
}
|
|
7724
7726
|
|
|
@@ -7730,10 +7732,9 @@ export function batchCrawl(engine, urls) {
|
|
|
7730
7732
|
*/
|
|
7731
7733
|
export function batchScrape(engine, urls) {
|
|
7732
7734
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7733
|
-
|
|
7734
|
-
const
|
|
7735
|
-
const
|
|
7736
|
-
const ret = wasm.batchScrape(ptr0, ptr1, len1);
|
|
7735
|
+
const ptr0 = passArrayJsValueToWasm0(urls, wasm.__wbindgen_malloc);
|
|
7736
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7737
|
+
const ret = wasm.batchScrape(engine.__wbg_ptr, ptr0, len0);
|
|
7737
7738
|
return ret;
|
|
7738
7739
|
}
|
|
7739
7740
|
|
|
@@ -7745,10 +7746,9 @@ export function batchScrape(engine, urls) {
|
|
|
7745
7746
|
*/
|
|
7746
7747
|
export function crawl(engine, url) {
|
|
7747
7748
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7748
|
-
|
|
7749
|
-
const
|
|
7750
|
-
const
|
|
7751
|
-
const ret = wasm.crawl(ptr0, ptr1, len1);
|
|
7749
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7750
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7751
|
+
const ret = wasm.crawl(engine.__wbg_ptr, ptr0, len0);
|
|
7752
7752
|
return ret;
|
|
7753
7753
|
}
|
|
7754
7754
|
|
|
@@ -7798,12 +7798,11 @@ export function generateCitations(markdown) {
|
|
|
7798
7798
|
*/
|
|
7799
7799
|
export function interact(engine, url, actions) {
|
|
7800
7800
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7801
|
-
|
|
7802
|
-
const
|
|
7801
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7802
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7803
|
+
const ptr1 = passArrayJsValueToWasm0(actions, wasm.__wbindgen_malloc);
|
|
7803
7804
|
const len1 = WASM_VECTOR_LEN;
|
|
7804
|
-
const
|
|
7805
|
-
const len2 = WASM_VECTOR_LEN;
|
|
7806
|
-
const ret = wasm.interact(ptr0, ptr1, len1, ptr2, len2);
|
|
7805
|
+
const ret = wasm.interact(engine.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
7807
7806
|
return ret;
|
|
7808
7807
|
}
|
|
7809
7808
|
|
|
@@ -7815,10 +7814,9 @@ export function interact(engine, url, actions) {
|
|
|
7815
7814
|
*/
|
|
7816
7815
|
export function mapUrls(engine, url) {
|
|
7817
7816
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7818
|
-
|
|
7819
|
-
const
|
|
7820
|
-
const
|
|
7821
|
-
const ret = wasm.mapUrls(ptr0, ptr1, len1);
|
|
7817
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7818
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7819
|
+
const ret = wasm.mapUrls(engine.__wbg_ptr, ptr0, len0);
|
|
7822
7820
|
return ret;
|
|
7823
7821
|
}
|
|
7824
7822
|
|
|
@@ -7830,10 +7828,9 @@ export function mapUrls(engine, url) {
|
|
|
7830
7828
|
*/
|
|
7831
7829
|
export function scrape(engine, url) {
|
|
7832
7830
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
7833
|
-
|
|
7834
|
-
const
|
|
7835
|
-
const
|
|
7836
|
-
const ret = wasm.scrape(ptr0, ptr1, len1);
|
|
7831
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7832
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7833
|
+
const ret = wasm.scrape(engine.__wbg_ptr, ptr0, len0);
|
|
7837
7834
|
return ret;
|
|
7838
7835
|
}
|
|
7839
7836
|
function __wbg_get_imports() {
|
|
@@ -8371,12 +8368,12 @@ function __wbg_get_imports() {
|
|
|
8371
8368
|
return ret;
|
|
8372
8369
|
},
|
|
8373
8370
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
8374
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
8371
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1096, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
8375
8372
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h5567083e9d00da74);
|
|
8376
8373
|
return ret;
|
|
8377
8374
|
},
|
|
8378
8375
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
8379
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
8376
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1000, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8380
8377
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00e67b488e823f1f);
|
|
8381
8378
|
return ret;
|
|
8382
8379
|
},
|
|
Binary file
|