@xberg-io/crawlberg-wasm 1.9.0 → 1.10.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 +622 -21
- package/pkg/bundler/crawlberg_wasm_bg.js +777 -112
- package/pkg/bundler/crawlberg_wasm_bg.wasm +0 -0
- package/pkg/bundler/crawlberg_wasm_bg.wasm.d.ts +51 -1
- package/pkg/bundler/package.json +1 -1
- package/pkg/deno/crawlberg_wasm.d.ts +622 -21
- package/pkg/deno/crawlberg_wasm.js +777 -112
- package/pkg/deno/crawlberg_wasm_bg.wasm +0 -0
- package/pkg/deno/crawlberg_wasm_bg.wasm.d.ts +51 -1
- package/pkg/nodejs/crawlberg_wasm.d.ts +622 -21
- package/pkg/nodejs/crawlberg_wasm.js +777 -112
- package/pkg/nodejs/crawlberg_wasm_bg.wasm +0 -0
- package/pkg/nodejs/crawlberg_wasm_bg.wasm.d.ts +51 -1
- package/pkg/nodejs/package.json +1 -1
- package/pkg/web/crawlberg_wasm.d.ts +673 -22
- package/pkg/web/crawlberg_wasm.js +777 -112
- package/pkg/web/crawlberg_wasm_bg.wasm +0 -0
- package/pkg/web/crawlberg_wasm_bg.wasm.d.ts +51 -1
- package/pkg/web/package.json +1 -1
|
@@ -46,6 +46,17 @@ export class WasmActionResult {
|
|
|
46
46
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Return an independent handle for an ownership-taking API.
|
|
51
|
+
*
|
|
52
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
53
|
+
* handle must remain usable.
|
|
54
|
+
* @returns {WasmActionResult}
|
|
55
|
+
*/
|
|
56
|
+
copyForTransfer() {
|
|
57
|
+
const ret = wasm.wasmactionresult_copyForTransfer(this.__wbg_ptr);
|
|
58
|
+
return WasmActionResult.__wrap(ret);
|
|
59
|
+
}
|
|
49
60
|
/**
|
|
50
61
|
* @returns {any | undefined}
|
|
51
62
|
*/
|
|
@@ -165,6 +176,17 @@ export class WasmArticleMetadata {
|
|
|
165
176
|
}
|
|
166
177
|
return v1;
|
|
167
178
|
}
|
|
179
|
+
/**
|
|
180
|
+
* Return an independent handle for an ownership-taking API.
|
|
181
|
+
*
|
|
182
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
183
|
+
* handle must remain usable.
|
|
184
|
+
* @returns {WasmArticleMetadata}
|
|
185
|
+
*/
|
|
186
|
+
copyForTransfer() {
|
|
187
|
+
const ret = wasm.wasmarticlemetadata_copyForTransfer(this.__wbg_ptr);
|
|
188
|
+
return WasmArticleMetadata.__wrap(ret);
|
|
189
|
+
}
|
|
168
190
|
/**
|
|
169
191
|
* @returns {WasmArticleMetadata}
|
|
170
192
|
*/
|
|
@@ -485,6 +507,20 @@ export class WasmBatchCrawlResult {
|
|
|
485
507
|
const ptr = this.__destroy_into_raw();
|
|
486
508
|
wasm.__wbg_wasmbatchcrawlresult_free(ptr, 0);
|
|
487
509
|
}
|
|
510
|
+
clearResult() {
|
|
511
|
+
wasm.wasmbatchcrawlresult_clearResult(this.__wbg_ptr);
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Return an independent handle for an ownership-taking API.
|
|
515
|
+
*
|
|
516
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
517
|
+
* handle must remain usable.
|
|
518
|
+
* @returns {WasmBatchCrawlResult}
|
|
519
|
+
*/
|
|
520
|
+
copyForTransfer() {
|
|
521
|
+
const ret = wasm.wasmbatchcrawlresult_copyForTransfer(this.__wbg_ptr);
|
|
522
|
+
return WasmBatchCrawlResult.__wrap(ret);
|
|
523
|
+
}
|
|
488
524
|
/**
|
|
489
525
|
* @returns {WasmBatchCrawlResult}
|
|
490
526
|
*/
|
|
@@ -505,6 +541,11 @@ export class WasmBatchCrawlResult {
|
|
|
505
541
|
return v1;
|
|
506
542
|
}
|
|
507
543
|
/**
|
|
544
|
+
* Takes ownership of `result`.
|
|
545
|
+
* wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
|
|
546
|
+
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
547
|
+
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
548
|
+
* the generated setter borrows and leaves your handle alive.
|
|
508
549
|
* @param {string | null} [url]
|
|
509
550
|
* @param {WasmCrawlResult | null} [result]
|
|
510
551
|
* @param {string | null} [error]
|
|
@@ -525,6 +566,10 @@ export class WasmBatchCrawlResult {
|
|
|
525
566
|
return this;
|
|
526
567
|
}
|
|
527
568
|
/**
|
|
569
|
+
* Returns a detached copy of `result`.
|
|
570
|
+
*
|
|
571
|
+
* Changes to the returned value do not update this object. To update `result`,
|
|
572
|
+
* read it, modify the copy, then assign the copy back to `result`.
|
|
528
573
|
* @returns {WasmCrawlResult | undefined}
|
|
529
574
|
*/
|
|
530
575
|
get result() {
|
|
@@ -540,15 +585,11 @@ export class WasmBatchCrawlResult {
|
|
|
540
585
|
wasm.wasmbatchcrawlresult_set_error(this.__wbg_ptr, ptr0, len0);
|
|
541
586
|
}
|
|
542
587
|
/**
|
|
543
|
-
* @param {WasmCrawlResult
|
|
588
|
+
* @param {WasmCrawlResult} value
|
|
544
589
|
*/
|
|
545
590
|
set result(value) {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
_assertClass(value, WasmCrawlResult);
|
|
549
|
-
ptr0 = value.__destroy_into_raw();
|
|
550
|
-
}
|
|
551
|
-
wasm.wasmbatchcrawlresult_set_result(this.__wbg_ptr, ptr0);
|
|
591
|
+
_assertClass(value, WasmCrawlResult);
|
|
592
|
+
wasm.wasmbatchcrawlresult_set_result(this.__wbg_ptr, value.__wbg_ptr);
|
|
552
593
|
}
|
|
553
594
|
/**
|
|
554
595
|
* @param {string} value
|
|
@@ -606,6 +647,17 @@ export class WasmBatchCrawlResults {
|
|
|
606
647
|
const ret = wasm.wasmbatchcrawlresults_completedCount(this.__wbg_ptr);
|
|
607
648
|
return ret >>> 0;
|
|
608
649
|
}
|
|
650
|
+
/**
|
|
651
|
+
* Return an independent handle for an ownership-taking API.
|
|
652
|
+
*
|
|
653
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
654
|
+
* handle must remain usable.
|
|
655
|
+
* @returns {WasmBatchCrawlResults}
|
|
656
|
+
*/
|
|
657
|
+
copyForTransfer() {
|
|
658
|
+
const ret = wasm.wasmbatchcrawlresults_copyForTransfer(this.__wbg_ptr);
|
|
659
|
+
return WasmBatchCrawlResults.__wrap(ret);
|
|
660
|
+
}
|
|
609
661
|
/**
|
|
610
662
|
* @returns {WasmBatchCrawlResults}
|
|
611
663
|
*/
|
|
@@ -621,6 +673,9 @@ export class WasmBatchCrawlResults {
|
|
|
621
673
|
return ret >>> 0;
|
|
622
674
|
}
|
|
623
675
|
/**
|
|
676
|
+
* Takes ownership of every element in `results`.
|
|
677
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
678
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
624
679
|
* @param {WasmBatchCrawlResult[] | null} [results]
|
|
625
680
|
* @param {number | null} [totalCount]
|
|
626
681
|
* @param {number | null} [completedCount]
|
|
@@ -635,6 +690,10 @@ export class WasmBatchCrawlResults {
|
|
|
635
690
|
return this;
|
|
636
691
|
}
|
|
637
692
|
/**
|
|
693
|
+
* Returns detached copies of the elements in `results`.
|
|
694
|
+
*
|
|
695
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
696
|
+
* then assign the array back to `results`.
|
|
638
697
|
* @returns {WasmBatchCrawlResult[]}
|
|
639
698
|
*/
|
|
640
699
|
get results() {
|
|
@@ -656,6 +715,9 @@ export class WasmBatchCrawlResults {
|
|
|
656
715
|
wasm.wasmbatchcrawlresults_set_failedCount(this.__wbg_ptr, value);
|
|
657
716
|
}
|
|
658
717
|
/**
|
|
718
|
+
* Takes ownership of every element in `results`.
|
|
719
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
720
|
+
* element with `copyForTransfer()` before passing the array.
|
|
659
721
|
* @param {WasmBatchCrawlResult[]} value
|
|
660
722
|
*/
|
|
661
723
|
set results(value) {
|
|
@@ -705,6 +767,20 @@ export class WasmBatchScrapeResult {
|
|
|
705
767
|
const ptr = this.__destroy_into_raw();
|
|
706
768
|
wasm.__wbg_wasmbatchscraperesult_free(ptr, 0);
|
|
707
769
|
}
|
|
770
|
+
clearResult() {
|
|
771
|
+
wasm.wasmbatchscraperesult_clearResult(this.__wbg_ptr);
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
* Return an independent handle for an ownership-taking API.
|
|
775
|
+
*
|
|
776
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
777
|
+
* handle must remain usable.
|
|
778
|
+
* @returns {WasmBatchScrapeResult}
|
|
779
|
+
*/
|
|
780
|
+
copyForTransfer() {
|
|
781
|
+
const ret = wasm.wasmbatchscraperesult_copyForTransfer(this.__wbg_ptr);
|
|
782
|
+
return WasmBatchScrapeResult.__wrap(ret);
|
|
783
|
+
}
|
|
708
784
|
/**
|
|
709
785
|
* @returns {WasmBatchScrapeResult}
|
|
710
786
|
*/
|
|
@@ -725,6 +801,11 @@ export class WasmBatchScrapeResult {
|
|
|
725
801
|
return v1;
|
|
726
802
|
}
|
|
727
803
|
/**
|
|
804
|
+
* Takes ownership of `result`.
|
|
805
|
+
* wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
|
|
806
|
+
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
807
|
+
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
808
|
+
* the generated setter borrows and leaves your handle alive.
|
|
728
809
|
* @param {string | null} [url]
|
|
729
810
|
* @param {WasmScrapeResult | null} [result]
|
|
730
811
|
* @param {string | null} [error]
|
|
@@ -745,6 +826,10 @@ export class WasmBatchScrapeResult {
|
|
|
745
826
|
return this;
|
|
746
827
|
}
|
|
747
828
|
/**
|
|
829
|
+
* Returns a detached copy of `result`.
|
|
830
|
+
*
|
|
831
|
+
* Changes to the returned value do not update this object. To update `result`,
|
|
832
|
+
* read it, modify the copy, then assign the copy back to `result`.
|
|
748
833
|
* @returns {WasmScrapeResult | undefined}
|
|
749
834
|
*/
|
|
750
835
|
get result() {
|
|
@@ -760,15 +845,11 @@ export class WasmBatchScrapeResult {
|
|
|
760
845
|
wasm.wasmbatchscraperesult_set_error(this.__wbg_ptr, ptr0, len0);
|
|
761
846
|
}
|
|
762
847
|
/**
|
|
763
|
-
* @param {WasmScrapeResult
|
|
848
|
+
* @param {WasmScrapeResult} value
|
|
764
849
|
*/
|
|
765
850
|
set result(value) {
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
_assertClass(value, WasmScrapeResult);
|
|
769
|
-
ptr0 = value.__destroy_into_raw();
|
|
770
|
-
}
|
|
771
|
-
wasm.wasmbatchscraperesult_set_result(this.__wbg_ptr, ptr0);
|
|
851
|
+
_assertClass(value, WasmScrapeResult);
|
|
852
|
+
wasm.wasmbatchscraperesult_set_result(this.__wbg_ptr, value.__wbg_ptr);
|
|
772
853
|
}
|
|
773
854
|
/**
|
|
774
855
|
* @param {string} value
|
|
@@ -826,6 +907,17 @@ export class WasmBatchScrapeResults {
|
|
|
826
907
|
const ret = wasm.wasmbatchscraperesults_completedCount(this.__wbg_ptr);
|
|
827
908
|
return ret >>> 0;
|
|
828
909
|
}
|
|
910
|
+
/**
|
|
911
|
+
* Return an independent handle for an ownership-taking API.
|
|
912
|
+
*
|
|
913
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
914
|
+
* handle must remain usable.
|
|
915
|
+
* @returns {WasmBatchScrapeResults}
|
|
916
|
+
*/
|
|
917
|
+
copyForTransfer() {
|
|
918
|
+
const ret = wasm.wasmbatchscraperesults_copyForTransfer(this.__wbg_ptr);
|
|
919
|
+
return WasmBatchScrapeResults.__wrap(ret);
|
|
920
|
+
}
|
|
829
921
|
/**
|
|
830
922
|
* @returns {WasmBatchScrapeResults}
|
|
831
923
|
*/
|
|
@@ -841,6 +933,9 @@ export class WasmBatchScrapeResults {
|
|
|
841
933
|
return ret >>> 0;
|
|
842
934
|
}
|
|
843
935
|
/**
|
|
936
|
+
* Takes ownership of every element in `results`.
|
|
937
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
938
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
844
939
|
* @param {WasmBatchScrapeResult[] | null} [results]
|
|
845
940
|
* @param {number | null} [totalCount]
|
|
846
941
|
* @param {number | null} [completedCount]
|
|
@@ -855,6 +950,10 @@ export class WasmBatchScrapeResults {
|
|
|
855
950
|
return this;
|
|
856
951
|
}
|
|
857
952
|
/**
|
|
953
|
+
* Returns detached copies of the elements in `results`.
|
|
954
|
+
*
|
|
955
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
956
|
+
* then assign the array back to `results`.
|
|
858
957
|
* @returns {WasmBatchScrapeResult[]}
|
|
859
958
|
*/
|
|
860
959
|
get results() {
|
|
@@ -876,6 +975,9 @@ export class WasmBatchScrapeResults {
|
|
|
876
975
|
wasm.wasmbatchscraperesults_set_failedCount(this.__wbg_ptr, value);
|
|
877
976
|
}
|
|
878
977
|
/**
|
|
978
|
+
* Takes ownership of every element in `results`.
|
|
979
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
980
|
+
* element with `copyForTransfer()` before passing the array.
|
|
879
981
|
* @param {WasmBatchScrapeResult[]} value
|
|
880
982
|
*/
|
|
881
983
|
set results(value) {
|
|
@@ -980,6 +1082,20 @@ export class WasmBrowserConfig {
|
|
|
980
1082
|
}
|
|
981
1083
|
return v1;
|
|
982
1084
|
}
|
|
1085
|
+
clearProxy() {
|
|
1086
|
+
wasm.wasmbrowserconfig_clearProxy(this.__wbg_ptr);
|
|
1087
|
+
}
|
|
1088
|
+
/**
|
|
1089
|
+
* Return an independent handle for an ownership-taking API.
|
|
1090
|
+
*
|
|
1091
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
1092
|
+
* handle must remain usable.
|
|
1093
|
+
* @returns {WasmBrowserConfig}
|
|
1094
|
+
*/
|
|
1095
|
+
copyForTransfer() {
|
|
1096
|
+
const ret = wasm.wasmbrowserconfig_copyForTransfer(this.__wbg_ptr);
|
|
1097
|
+
return WasmBrowserConfig.__wrap(ret);
|
|
1098
|
+
}
|
|
983
1099
|
/**
|
|
984
1100
|
* @returns {WasmBrowserConfig}
|
|
985
1101
|
*/
|
|
@@ -1034,6 +1150,11 @@ export class WasmBrowserConfig {
|
|
|
1034
1150
|
}
|
|
1035
1151
|
}
|
|
1036
1152
|
/**
|
|
1153
|
+
* Takes ownership of `proxy`.
|
|
1154
|
+
* wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
|
|
1155
|
+
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
1156
|
+
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
1157
|
+
* the generated setter borrows and leaves your handle alive.
|
|
1037
1158
|
* @param {WasmBrowserMode | null} [mode]
|
|
1038
1159
|
* @param {WasmBrowserBackend | null} [backend]
|
|
1039
1160
|
* @param {bigint | null} [timeout]
|
|
@@ -1085,6 +1206,10 @@ export class WasmBrowserConfig {
|
|
|
1085
1206
|
return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
|
|
1086
1207
|
}
|
|
1087
1208
|
/**
|
|
1209
|
+
* Returns a detached copy of `proxy`.
|
|
1210
|
+
*
|
|
1211
|
+
* Changes to the returned value do not update this object. To update `proxy`,
|
|
1212
|
+
* read it, modify the copy, then assign the copy back to `proxy`.
|
|
1088
1213
|
* @returns {WasmProxyConfig | undefined}
|
|
1089
1214
|
*/
|
|
1090
1215
|
get proxy() {
|
|
@@ -1181,15 +1306,11 @@ export class WasmBrowserConfig {
|
|
|
1181
1306
|
wasm.wasmbrowserconfig_set_overallTimeout(this.__wbg_ptr, !isLikeNone(value), isLikeNone(value) ? BigInt(0) : value);
|
|
1182
1307
|
}
|
|
1183
1308
|
/**
|
|
1184
|
-
* @param {WasmProxyConfig
|
|
1309
|
+
* @param {WasmProxyConfig} value
|
|
1185
1310
|
*/
|
|
1186
1311
|
set proxy(value) {
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
_assertClass(value, WasmProxyConfig);
|
|
1190
|
-
ptr0 = value.__destroy_into_raw();
|
|
1191
|
-
}
|
|
1192
|
-
wasm.wasmbrowserconfig_set_proxy(this.__wbg_ptr, ptr0);
|
|
1312
|
+
_assertClass(value, WasmProxyConfig);
|
|
1313
|
+
wasm.wasmbrowserconfig_set_proxy(this.__wbg_ptr, value.__wbg_ptr);
|
|
1193
1314
|
}
|
|
1194
1315
|
/**
|
|
1195
1316
|
* @param {string | null} [value]
|
|
@@ -1298,6 +1419,10 @@ export class WasmBrowserExtras {
|
|
|
1298
1419
|
wasm.__wbg_wasmbrowserextras_free(ptr, 0);
|
|
1299
1420
|
}
|
|
1300
1421
|
/**
|
|
1422
|
+
* Returns detached copies of the elements in `cookies`.
|
|
1423
|
+
*
|
|
1424
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
1425
|
+
* then assign the array back to `cookies`.
|
|
1301
1426
|
* @returns {WasmCookieInfo[]}
|
|
1302
1427
|
*/
|
|
1303
1428
|
get cookies() {
|
|
@@ -1306,6 +1431,17 @@ export class WasmBrowserExtras {
|
|
|
1306
1431
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1307
1432
|
return v1;
|
|
1308
1433
|
}
|
|
1434
|
+
/**
|
|
1435
|
+
* Return an independent handle for an ownership-taking API.
|
|
1436
|
+
*
|
|
1437
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
1438
|
+
* handle must remain usable.
|
|
1439
|
+
* @returns {WasmBrowserExtras}
|
|
1440
|
+
*/
|
|
1441
|
+
copyForTransfer() {
|
|
1442
|
+
const ret = wasm.wasmbrowserextras_copyForTransfer(this.__wbg_ptr);
|
|
1443
|
+
return WasmBrowserExtras.__wrap(ret);
|
|
1444
|
+
}
|
|
1309
1445
|
/**
|
|
1310
1446
|
* @returns {WasmBrowserExtras}
|
|
1311
1447
|
*/
|
|
@@ -1321,6 +1457,10 @@ export class WasmBrowserExtras {
|
|
|
1321
1457
|
return ret;
|
|
1322
1458
|
}
|
|
1323
1459
|
/**
|
|
1460
|
+
* Returns detached copies of the elements in `networkEvents`.
|
|
1461
|
+
*
|
|
1462
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
1463
|
+
* then assign the array back to `networkEvents`.
|
|
1324
1464
|
* @returns {WasmResponseMeta[]}
|
|
1325
1465
|
*/
|
|
1326
1466
|
get networkEvents() {
|
|
@@ -1330,6 +1470,9 @@ export class WasmBrowserExtras {
|
|
|
1330
1470
|
return v1;
|
|
1331
1471
|
}
|
|
1332
1472
|
/**
|
|
1473
|
+
* Takes ownership of every element in `networkEvents`, `cookies`.
|
|
1474
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
1475
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
1333
1476
|
* @param {WasmResponseMeta[] | null} [networkEvents]
|
|
1334
1477
|
* @param {WasmCookieInfo[] | null} [cookies]
|
|
1335
1478
|
* @param {any | null} [evalResult]
|
|
@@ -1345,6 +1488,9 @@ export class WasmBrowserExtras {
|
|
|
1345
1488
|
return this;
|
|
1346
1489
|
}
|
|
1347
1490
|
/**
|
|
1491
|
+
* Takes ownership of every element in `cookies`.
|
|
1492
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
1493
|
+
* element with `copyForTransfer()` before passing the array.
|
|
1348
1494
|
* @param {WasmCookieInfo[]} value
|
|
1349
1495
|
*/
|
|
1350
1496
|
set cookies(value) {
|
|
@@ -1359,6 +1505,9 @@ export class WasmBrowserExtras {
|
|
|
1359
1505
|
wasm.wasmbrowserextras_set_evalResult(this.__wbg_ptr, isLikeNone(value) ? 0 : addToExternrefTable0(value));
|
|
1360
1506
|
}
|
|
1361
1507
|
/**
|
|
1508
|
+
* Takes ownership of every element in `networkEvents`.
|
|
1509
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
1510
|
+
* element with `copyForTransfer()` before passing the array.
|
|
1362
1511
|
* @param {WasmResponseMeta[]} value
|
|
1363
1512
|
*/
|
|
1364
1513
|
set networkEvents(value) {
|
|
@@ -1417,6 +1566,17 @@ export class WasmCitationReference {
|
|
|
1417
1566
|
const ptr = this.__destroy_into_raw();
|
|
1418
1567
|
wasm.__wbg_wasmcitationreference_free(ptr, 0);
|
|
1419
1568
|
}
|
|
1569
|
+
/**
|
|
1570
|
+
* Return an independent handle for an ownership-taking API.
|
|
1571
|
+
*
|
|
1572
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
1573
|
+
* handle must remain usable.
|
|
1574
|
+
* @returns {WasmCitationReference}
|
|
1575
|
+
*/
|
|
1576
|
+
copyForTransfer() {
|
|
1577
|
+
const ret = wasm.wasmcitationreference_copyForTransfer(this.__wbg_ptr);
|
|
1578
|
+
return WasmCitationReference.__wrap(ret);
|
|
1579
|
+
}
|
|
1420
1580
|
/**
|
|
1421
1581
|
* @returns {WasmCitationReference}
|
|
1422
1582
|
*/
|
|
@@ -1536,6 +1696,17 @@ export class WasmCitationResult {
|
|
|
1536
1696
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1537
1697
|
}
|
|
1538
1698
|
}
|
|
1699
|
+
/**
|
|
1700
|
+
* Return an independent handle for an ownership-taking API.
|
|
1701
|
+
*
|
|
1702
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
1703
|
+
* handle must remain usable.
|
|
1704
|
+
* @returns {WasmCitationResult}
|
|
1705
|
+
*/
|
|
1706
|
+
copyForTransfer() {
|
|
1707
|
+
const ret = wasm.wasmcitationresult_copyForTransfer(this.__wbg_ptr);
|
|
1708
|
+
return WasmCitationResult.__wrap(ret);
|
|
1709
|
+
}
|
|
1539
1710
|
/**
|
|
1540
1711
|
* @returns {WasmCitationResult}
|
|
1541
1712
|
*/
|
|
@@ -1544,6 +1715,9 @@ export class WasmCitationResult {
|
|
|
1544
1715
|
return WasmCitationResult.__wrap(ret);
|
|
1545
1716
|
}
|
|
1546
1717
|
/**
|
|
1718
|
+
* Takes ownership of every element in `references`.
|
|
1719
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
1720
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
1547
1721
|
* @param {string | null} [content]
|
|
1548
1722
|
* @param {WasmCitationReference[] | null} [references]
|
|
1549
1723
|
*/
|
|
@@ -1558,6 +1732,10 @@ export class WasmCitationResult {
|
|
|
1558
1732
|
return this;
|
|
1559
1733
|
}
|
|
1560
1734
|
/**
|
|
1735
|
+
* Returns detached copies of the elements in `references`.
|
|
1736
|
+
*
|
|
1737
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
1738
|
+
* then assign the array back to `references`.
|
|
1561
1739
|
* @returns {WasmCitationReference[]}
|
|
1562
1740
|
*/
|
|
1563
1741
|
get references() {
|
|
@@ -1575,6 +1753,9 @@ export class WasmCitationResult {
|
|
|
1575
1753
|
wasm.wasmcitationresult_set_content(this.__wbg_ptr, ptr0, len0);
|
|
1576
1754
|
}
|
|
1577
1755
|
/**
|
|
1756
|
+
* Takes ownership of every element in `references`.
|
|
1757
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
1758
|
+
* element with `copyForTransfer()` before passing the array.
|
|
1578
1759
|
* @param {WasmCitationReference[]} value
|
|
1579
1760
|
*/
|
|
1580
1761
|
set references(value) {
|
|
@@ -1609,6 +1790,17 @@ export class WasmContentConfig {
|
|
|
1609
1790
|
const ptr = this.__destroy_into_raw();
|
|
1610
1791
|
wasm.__wbg_wasmcontentconfig_free(ptr, 0);
|
|
1611
1792
|
}
|
|
1793
|
+
/**
|
|
1794
|
+
* Return an independent handle for an ownership-taking API.
|
|
1795
|
+
*
|
|
1796
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
1797
|
+
* handle must remain usable.
|
|
1798
|
+
* @returns {WasmContentConfig}
|
|
1799
|
+
*/
|
|
1800
|
+
copyForTransfer() {
|
|
1801
|
+
const ret = wasm.wasmcontentconfig_copyForTransfer(this.__wbg_ptr);
|
|
1802
|
+
return WasmContentConfig.__wrap(ret);
|
|
1803
|
+
}
|
|
1612
1804
|
/**
|
|
1613
1805
|
* @returns {WasmContentConfig}
|
|
1614
1806
|
*/
|
|
@@ -1885,6 +2077,17 @@ export class WasmCookieInfo {
|
|
|
1885
2077
|
const ptr = this.__destroy_into_raw();
|
|
1886
2078
|
wasm.__wbg_wasmcookieinfo_free(ptr, 0);
|
|
1887
2079
|
}
|
|
2080
|
+
/**
|
|
2081
|
+
* Return an independent handle for an ownership-taking API.
|
|
2082
|
+
*
|
|
2083
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
2084
|
+
* handle must remain usable.
|
|
2085
|
+
* @returns {WasmCookieInfo}
|
|
2086
|
+
*/
|
|
2087
|
+
copyForTransfer() {
|
|
2088
|
+
const ret = wasm.wasmcookieinfo_copyForTransfer(this.__wbg_ptr);
|
|
2089
|
+
return WasmCookieInfo.__wrap(ret);
|
|
2090
|
+
}
|
|
1888
2091
|
/**
|
|
1889
2092
|
* @returns {WasmCookieInfo}
|
|
1890
2093
|
*/
|
|
@@ -2076,6 +2279,10 @@ export class WasmCrawlConfig {
|
|
|
2076
2279
|
return v1;
|
|
2077
2280
|
}
|
|
2078
2281
|
/**
|
|
2282
|
+
* Returns a detached copy of `browser`.
|
|
2283
|
+
*
|
|
2284
|
+
* Changes to the returned value do not update this object. To update `browser`,
|
|
2285
|
+
* read it, modify the copy, then assign the copy back to `browser`.
|
|
2079
2286
|
* @returns {WasmBrowserConfig}
|
|
2080
2287
|
*/
|
|
2081
2288
|
get browser() {
|
|
@@ -2089,6 +2296,9 @@ export class WasmCrawlConfig {
|
|
|
2089
2296
|
const ret = wasm.wasmcrawlconfig_captureScreenshot(this.__wbg_ptr);
|
|
2090
2297
|
return ret !== 0;
|
|
2091
2298
|
}
|
|
2299
|
+
clearProxy() {
|
|
2300
|
+
wasm.wasmcrawlconfig_clearProxy(this.__wbg_ptr);
|
|
2301
|
+
}
|
|
2092
2302
|
/**
|
|
2093
2303
|
* @returns {string | undefined}
|
|
2094
2304
|
*/
|
|
@@ -2102,6 +2312,10 @@ export class WasmCrawlConfig {
|
|
|
2102
2312
|
return v1;
|
|
2103
2313
|
}
|
|
2104
2314
|
/**
|
|
2315
|
+
* Returns a detached copy of `content`.
|
|
2316
|
+
*
|
|
2317
|
+
* Changes to the returned value do not update this object. To update `content`,
|
|
2318
|
+
* read it, modify the copy, then assign the copy back to `content`.
|
|
2105
2319
|
* @returns {WasmContentConfig}
|
|
2106
2320
|
*/
|
|
2107
2321
|
get content() {
|
|
@@ -2115,6 +2329,17 @@ export class WasmCrawlConfig {
|
|
|
2115
2329
|
const ret = wasm.wasmcrawlconfig_cookiesEnabled(this.__wbg_ptr);
|
|
2116
2330
|
return ret !== 0;
|
|
2117
2331
|
}
|
|
2332
|
+
/**
|
|
2333
|
+
* Return an independent handle for an ownership-taking API.
|
|
2334
|
+
*
|
|
2335
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
2336
|
+
* handle must remain usable.
|
|
2337
|
+
* @returns {WasmCrawlConfig}
|
|
2338
|
+
*/
|
|
2339
|
+
copyForTransfer() {
|
|
2340
|
+
const ret = wasm.wasmcrawlconfig_copyForTransfer(this.__wbg_ptr);
|
|
2341
|
+
return WasmCrawlConfig.__wrap(ret);
|
|
2342
|
+
}
|
|
2118
2343
|
/**
|
|
2119
2344
|
* @returns {string}
|
|
2120
2345
|
*/
|
|
@@ -2306,6 +2531,11 @@ export class WasmCrawlConfig {
|
|
|
2306
2531
|
return ret >>> 0;
|
|
2307
2532
|
}
|
|
2308
2533
|
/**
|
|
2534
|
+
* Takes ownership of `content`, `browser`, `proxy`, `ssrf`.
|
|
2535
|
+
* wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
|
|
2536
|
+
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
2537
|
+
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
2538
|
+
* the generated setter borrows and leaves your handle alive.
|
|
2309
2539
|
* @param {WasmCrawlStrategyKind | null} [crawlStrategy]
|
|
2310
2540
|
* @param {boolean | null} [respectRobotsTxt]
|
|
2311
2541
|
* @param {boolean | null} [softHttpErrors]
|
|
@@ -2431,6 +2661,10 @@ export class WasmCrawlConfig {
|
|
|
2431
2661
|
return ret !== 0;
|
|
2432
2662
|
}
|
|
2433
2663
|
/**
|
|
2664
|
+
* Returns a detached copy of `proxy`.
|
|
2665
|
+
*
|
|
2666
|
+
* Changes to the returned value do not update this object. To update `proxy`,
|
|
2667
|
+
* read it, modify the copy, then assign the copy back to `proxy`.
|
|
2434
2668
|
* @returns {WasmProxyConfig | undefined}
|
|
2435
2669
|
*/
|
|
2436
2670
|
get proxy() {
|
|
@@ -2558,8 +2792,7 @@ export class WasmCrawlConfig {
|
|
|
2558
2792
|
*/
|
|
2559
2793
|
set browser(value) {
|
|
2560
2794
|
_assertClass(value, WasmBrowserConfig);
|
|
2561
|
-
|
|
2562
|
-
wasm.wasmcrawlconfig_set_browser(this.__wbg_ptr, ptr0);
|
|
2795
|
+
wasm.wasmcrawlconfig_set_browser(this.__wbg_ptr, value.__wbg_ptr);
|
|
2563
2796
|
}
|
|
2564
2797
|
/**
|
|
2565
2798
|
* @param {boolean} value
|
|
@@ -2578,8 +2811,7 @@ export class WasmCrawlConfig {
|
|
|
2578
2811
|
*/
|
|
2579
2812
|
set content(value) {
|
|
2580
2813
|
_assertClass(value, WasmContentConfig);
|
|
2581
|
-
|
|
2582
|
-
wasm.wasmcrawlconfig_set_content(this.__wbg_ptr, ptr0);
|
|
2814
|
+
wasm.wasmcrawlconfig_set_content(this.__wbg_ptr, value.__wbg_ptr);
|
|
2583
2815
|
}
|
|
2584
2816
|
/**
|
|
2585
2817
|
* @param {boolean} value
|
|
@@ -2742,15 +2974,11 @@ export class WasmCrawlConfig {
|
|
|
2742
2974
|
wasm.wasmcrawlconfig_set_pathPatternsMatchUrl(this.__wbg_ptr, value);
|
|
2743
2975
|
}
|
|
2744
2976
|
/**
|
|
2745
|
-
* @param {WasmProxyConfig
|
|
2977
|
+
* @param {WasmProxyConfig} value
|
|
2746
2978
|
*/
|
|
2747
2979
|
set proxy(value) {
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
_assertClass(value, WasmProxyConfig);
|
|
2751
|
-
ptr0 = value.__destroy_into_raw();
|
|
2752
|
-
}
|
|
2753
|
-
wasm.wasmcrawlconfig_set_proxy(this.__wbg_ptr, ptr0);
|
|
2980
|
+
_assertClass(value, WasmProxyConfig);
|
|
2981
|
+
wasm.wasmcrawlconfig_set_proxy(this.__wbg_ptr, value.__wbg_ptr);
|
|
2754
2982
|
}
|
|
2755
2983
|
/**
|
|
2756
2984
|
* @param {number} value
|
|
@@ -2833,8 +3061,7 @@ export class WasmCrawlConfig {
|
|
|
2833
3061
|
*/
|
|
2834
3062
|
set ssrf(value) {
|
|
2835
3063
|
_assertClass(value, WasmSsrfPolicy);
|
|
2836
|
-
|
|
2837
|
-
wasm.wasmcrawlconfig_set_ssrf(this.__wbg_ptr, ptr0);
|
|
3064
|
+
wasm.wasmcrawlconfig_set_ssrf(this.__wbg_ptr, value.__wbg_ptr);
|
|
2838
3065
|
}
|
|
2839
3066
|
/**
|
|
2840
3067
|
* @param {boolean} value
|
|
@@ -2895,6 +3122,10 @@ export class WasmCrawlConfig {
|
|
|
2895
3122
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
2896
3123
|
}
|
|
2897
3124
|
/**
|
|
3125
|
+
* Returns a detached copy of `ssrf`.
|
|
3126
|
+
*
|
|
3127
|
+
* Changes to the returned value do not update this object. To update `ssrf`,
|
|
3128
|
+
* read it, modify the copy, then assign the copy back to `ssrf`.
|
|
2898
3129
|
* @returns {WasmSsrfPolicy}
|
|
2899
3130
|
*/
|
|
2900
3131
|
get ssrf() {
|
|
@@ -2995,6 +3226,17 @@ export class WasmCrawlEngineHandle {
|
|
|
2995
3226
|
const ptr = this.__destroy_into_raw();
|
|
2996
3227
|
wasm.__wbg_wasmcrawlenginehandle_free(ptr, 0);
|
|
2997
3228
|
}
|
|
3229
|
+
/**
|
|
3230
|
+
* Return an independent handle for an ownership-taking API.
|
|
3231
|
+
*
|
|
3232
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
3233
|
+
* handle must remain usable.
|
|
3234
|
+
* @returns {WasmCrawlEngineHandle}
|
|
3235
|
+
*/
|
|
3236
|
+
copyForTransfer() {
|
|
3237
|
+
const ret = wasm.wasmcrawlenginehandle_copyForTransfer(this.__wbg_ptr);
|
|
3238
|
+
return WasmCrawlEngineHandle.__wrap(ret);
|
|
3239
|
+
}
|
|
2998
3240
|
}
|
|
2999
3241
|
if (Symbol.dispose) WasmCrawlEngineHandle.prototype[Symbol.dispose] = WasmCrawlEngineHandle.prototype.free;
|
|
3000
3242
|
|
|
@@ -3038,6 +3280,15 @@ export class WasmCrawlPageResult {
|
|
|
3038
3280
|
const ret = wasm.wasmcrawlpageresult_browserUsed(this.__wbg_ptr);
|
|
3039
3281
|
return ret !== 0;
|
|
3040
3282
|
}
|
|
3283
|
+
clearDownloadedDocument() {
|
|
3284
|
+
wasm.wasmcrawlpageresult_clearDownloadedDocument(this.__wbg_ptr);
|
|
3285
|
+
}
|
|
3286
|
+
clearExtractionMeta() {
|
|
3287
|
+
wasm.wasmcrawlpageresult_clearExtractionMeta(this.__wbg_ptr);
|
|
3288
|
+
}
|
|
3289
|
+
clearMarkdown() {
|
|
3290
|
+
wasm.wasmcrawlpageresult_clearMarkdown(this.__wbg_ptr);
|
|
3291
|
+
}
|
|
3041
3292
|
/**
|
|
3042
3293
|
* @returns {string}
|
|
3043
3294
|
*/
|
|
@@ -3053,6 +3304,17 @@ export class WasmCrawlPageResult {
|
|
|
3053
3304
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3054
3305
|
}
|
|
3055
3306
|
}
|
|
3307
|
+
/**
|
|
3308
|
+
* Return an independent handle for an ownership-taking API.
|
|
3309
|
+
*
|
|
3310
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
3311
|
+
* handle must remain usable.
|
|
3312
|
+
* @returns {WasmCrawlPageResult}
|
|
3313
|
+
*/
|
|
3314
|
+
copyForTransfer() {
|
|
3315
|
+
const ret = wasm.wasmcrawlpageresult_copyForTransfer(this.__wbg_ptr);
|
|
3316
|
+
return WasmCrawlPageResult.__wrap(ret);
|
|
3317
|
+
}
|
|
3056
3318
|
/**
|
|
3057
3319
|
* @returns {WasmCrawlPageResult}
|
|
3058
3320
|
*/
|
|
@@ -3080,6 +3342,10 @@ export class WasmCrawlPageResult {
|
|
|
3080
3342
|
return v1;
|
|
3081
3343
|
}
|
|
3082
3344
|
/**
|
|
3345
|
+
* Returns a detached copy of `downloadedDocument`.
|
|
3346
|
+
*
|
|
3347
|
+
* Changes to the returned value do not update this object. To update `downloadedDocument`,
|
|
3348
|
+
* read it, modify the copy, then assign the copy back to `downloadedDocument`.
|
|
3083
3349
|
* @returns {WasmDownloadedDocument | undefined}
|
|
3084
3350
|
*/
|
|
3085
3351
|
get downloadedDocument() {
|
|
@@ -3094,6 +3360,10 @@ export class WasmCrawlPageResult {
|
|
|
3094
3360
|
return ret;
|
|
3095
3361
|
}
|
|
3096
3362
|
/**
|
|
3363
|
+
* Returns a detached copy of `extractionMeta`.
|
|
3364
|
+
*
|
|
3365
|
+
* Changes to the returned value do not update this object. To update `extractionMeta`,
|
|
3366
|
+
* read it, modify the copy, then assign the copy back to `extractionMeta`.
|
|
3097
3367
|
* @returns {WasmExtractionMeta | undefined}
|
|
3098
3368
|
*/
|
|
3099
3369
|
get extractionMeta() {
|
|
@@ -3101,6 +3371,10 @@ export class WasmCrawlPageResult {
|
|
|
3101
3371
|
return ret === 0 ? undefined : WasmExtractionMeta.__wrap(ret);
|
|
3102
3372
|
}
|
|
3103
3373
|
/**
|
|
3374
|
+
* Returns detached copies of the elements in `feeds`.
|
|
3375
|
+
*
|
|
3376
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
3377
|
+
* then assign the array back to `feeds`.
|
|
3104
3378
|
* @returns {WasmFeedInfo[]}
|
|
3105
3379
|
*/
|
|
3106
3380
|
get feeds() {
|
|
@@ -3140,6 +3414,10 @@ export class WasmCrawlPageResult {
|
|
|
3140
3414
|
}
|
|
3141
3415
|
}
|
|
3142
3416
|
/**
|
|
3417
|
+
* Returns detached copies of the elements in `images`.
|
|
3418
|
+
*
|
|
3419
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
3420
|
+
* then assign the array back to `images`.
|
|
3143
3421
|
* @returns {WasmImageInfo[]}
|
|
3144
3422
|
*/
|
|
3145
3423
|
get images() {
|
|
@@ -3156,6 +3434,10 @@ export class WasmCrawlPageResult {
|
|
|
3156
3434
|
return ret !== 0;
|
|
3157
3435
|
}
|
|
3158
3436
|
/**
|
|
3437
|
+
* Returns detached copies of the elements in `jsonLd`.
|
|
3438
|
+
*
|
|
3439
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
3440
|
+
* then assign the array back to `jsonLd`.
|
|
3159
3441
|
* @returns {WasmJsonLdEntry[]}
|
|
3160
3442
|
*/
|
|
3161
3443
|
get jsonLd() {
|
|
@@ -3165,6 +3447,10 @@ export class WasmCrawlPageResult {
|
|
|
3165
3447
|
return v1;
|
|
3166
3448
|
}
|
|
3167
3449
|
/**
|
|
3450
|
+
* Returns detached copies of the elements in `links`.
|
|
3451
|
+
*
|
|
3452
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
3453
|
+
* then assign the array back to `links`.
|
|
3168
3454
|
* @returns {WasmLinkInfo[]}
|
|
3169
3455
|
*/
|
|
3170
3456
|
get links() {
|
|
@@ -3174,6 +3460,10 @@ export class WasmCrawlPageResult {
|
|
|
3174
3460
|
return v1;
|
|
3175
3461
|
}
|
|
3176
3462
|
/**
|
|
3463
|
+
* Returns a detached copy of `markdown`.
|
|
3464
|
+
*
|
|
3465
|
+
* Changes to the returned value do not update this object. To update `markdown`,
|
|
3466
|
+
* read it, modify the copy, then assign the copy back to `markdown`.
|
|
3177
3467
|
* @returns {WasmMarkdownResult | undefined}
|
|
3178
3468
|
*/
|
|
3179
3469
|
get markdown() {
|
|
@@ -3181,6 +3471,10 @@ export class WasmCrawlPageResult {
|
|
|
3181
3471
|
return ret === 0 ? undefined : WasmMarkdownResult.__wrap(ret);
|
|
3182
3472
|
}
|
|
3183
3473
|
/**
|
|
3474
|
+
* Returns a detached copy of `metadata`.
|
|
3475
|
+
*
|
|
3476
|
+
* Changes to the returned value do not update this object. To update `metadata`,
|
|
3477
|
+
* read it, modify the copy, then assign the copy back to `metadata`.
|
|
3184
3478
|
* @returns {WasmPageMetadata}
|
|
3185
3479
|
*/
|
|
3186
3480
|
get metadata() {
|
|
@@ -3188,6 +3482,14 @@ export class WasmCrawlPageResult {
|
|
|
3188
3482
|
return WasmPageMetadata.__wrap(ret);
|
|
3189
3483
|
}
|
|
3190
3484
|
/**
|
|
3485
|
+
* Takes ownership of `metadata`, `markdown`, `extractionMeta`, `downloadedDocument`.
|
|
3486
|
+
* wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
|
|
3487
|
+
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
3488
|
+
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
3489
|
+
* the generated setter borrows and leaves your handle alive.
|
|
3490
|
+
* Takes ownership of every element in `links`, `images`, `feeds`, `jsonLd`.
|
|
3491
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
3492
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
3191
3493
|
* @param {string | null} [url]
|
|
3192
3494
|
* @param {string | null} [normalizedUrl]
|
|
3193
3495
|
* @param {number | null} [statusCode]
|
|
@@ -3334,15 +3636,11 @@ export class WasmCrawlPageResult {
|
|
|
3334
3636
|
wasm.wasmcrawlpageresult_set_detectedCharset(this.__wbg_ptr, ptr0, len0);
|
|
3335
3637
|
}
|
|
3336
3638
|
/**
|
|
3337
|
-
* @param {WasmDownloadedDocument
|
|
3639
|
+
* @param {WasmDownloadedDocument} value
|
|
3338
3640
|
*/
|
|
3339
3641
|
set downloadedDocument(value) {
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
_assertClass(value, WasmDownloadedDocument);
|
|
3343
|
-
ptr0 = value.__destroy_into_raw();
|
|
3344
|
-
}
|
|
3345
|
-
wasm.wasmcrawlpageresult_set_downloadedDocument(this.__wbg_ptr, ptr0);
|
|
3642
|
+
_assertClass(value, WasmDownloadedDocument);
|
|
3643
|
+
wasm.wasmcrawlpageresult_set_downloadedDocument(this.__wbg_ptr, value.__wbg_ptr);
|
|
3346
3644
|
}
|
|
3347
3645
|
/**
|
|
3348
3646
|
* @param {any | null} [value]
|
|
@@ -3351,17 +3649,16 @@ export class WasmCrawlPageResult {
|
|
|
3351
3649
|
wasm.wasmcrawlpageresult_set_extractedData(this.__wbg_ptr, isLikeNone(value) ? 0 : addToExternrefTable0(value));
|
|
3352
3650
|
}
|
|
3353
3651
|
/**
|
|
3354
|
-
* @param {WasmExtractionMeta
|
|
3652
|
+
* @param {WasmExtractionMeta} value
|
|
3355
3653
|
*/
|
|
3356
3654
|
set extractionMeta(value) {
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
_assertClass(value, WasmExtractionMeta);
|
|
3360
|
-
ptr0 = value.__destroy_into_raw();
|
|
3361
|
-
}
|
|
3362
|
-
wasm.wasmcrawlpageresult_set_extractionMeta(this.__wbg_ptr, ptr0);
|
|
3655
|
+
_assertClass(value, WasmExtractionMeta);
|
|
3656
|
+
wasm.wasmcrawlpageresult_set_extractionMeta(this.__wbg_ptr, value.__wbg_ptr);
|
|
3363
3657
|
}
|
|
3364
3658
|
/**
|
|
3659
|
+
* Takes ownership of every element in `feeds`.
|
|
3660
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
3661
|
+
* element with `copyForTransfer()` before passing the array.
|
|
3365
3662
|
* @param {WasmFeedInfo[]} value
|
|
3366
3663
|
*/
|
|
3367
3664
|
set feeds(value) {
|
|
@@ -3386,6 +3683,9 @@ export class WasmCrawlPageResult {
|
|
|
3386
3683
|
wasm.wasmcrawlpageresult_set_html(this.__wbg_ptr, ptr0, len0);
|
|
3387
3684
|
}
|
|
3388
3685
|
/**
|
|
3686
|
+
* Takes ownership of every element in `images`.
|
|
3687
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
3688
|
+
* element with `copyForTransfer()` before passing the array.
|
|
3389
3689
|
* @param {WasmImageInfo[]} value
|
|
3390
3690
|
*/
|
|
3391
3691
|
set images(value) {
|
|
@@ -3400,6 +3700,9 @@ export class WasmCrawlPageResult {
|
|
|
3400
3700
|
wasm.wasmcrawlpageresult_set_isPdf(this.__wbg_ptr, value);
|
|
3401
3701
|
}
|
|
3402
3702
|
/**
|
|
3703
|
+
* Takes ownership of every element in `jsonLd`.
|
|
3704
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
3705
|
+
* element with `copyForTransfer()` before passing the array.
|
|
3403
3706
|
* @param {WasmJsonLdEntry[]} value
|
|
3404
3707
|
*/
|
|
3405
3708
|
set jsonLd(value) {
|
|
@@ -3408,6 +3711,9 @@ export class WasmCrawlPageResult {
|
|
|
3408
3711
|
wasm.wasmcrawlpageresult_set_jsonLd(this.__wbg_ptr, ptr0, len0);
|
|
3409
3712
|
}
|
|
3410
3713
|
/**
|
|
3714
|
+
* Takes ownership of every element in `links`.
|
|
3715
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
3716
|
+
* element with `copyForTransfer()` before passing the array.
|
|
3411
3717
|
* @param {WasmLinkInfo[]} value
|
|
3412
3718
|
*/
|
|
3413
3719
|
set links(value) {
|
|
@@ -3416,23 +3722,18 @@ export class WasmCrawlPageResult {
|
|
|
3416
3722
|
wasm.wasmcrawlpageresult_set_links(this.__wbg_ptr, ptr0, len0);
|
|
3417
3723
|
}
|
|
3418
3724
|
/**
|
|
3419
|
-
* @param {WasmMarkdownResult
|
|
3725
|
+
* @param {WasmMarkdownResult} value
|
|
3420
3726
|
*/
|
|
3421
3727
|
set markdown(value) {
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
_assertClass(value, WasmMarkdownResult);
|
|
3425
|
-
ptr0 = value.__destroy_into_raw();
|
|
3426
|
-
}
|
|
3427
|
-
wasm.wasmcrawlpageresult_set_markdown(this.__wbg_ptr, ptr0);
|
|
3728
|
+
_assertClass(value, WasmMarkdownResult);
|
|
3729
|
+
wasm.wasmcrawlpageresult_set_markdown(this.__wbg_ptr, value.__wbg_ptr);
|
|
3428
3730
|
}
|
|
3429
3731
|
/**
|
|
3430
3732
|
* @param {WasmPageMetadata} value
|
|
3431
3733
|
*/
|
|
3432
3734
|
set metadata(value) {
|
|
3433
3735
|
_assertClass(value, WasmPageMetadata);
|
|
3434
|
-
|
|
3435
|
-
wasm.wasmcrawlpageresult_set_metadata(this.__wbg_ptr, ptr0);
|
|
3736
|
+
wasm.wasmcrawlpageresult_set_metadata(this.__wbg_ptr, value.__wbg_ptr);
|
|
3436
3737
|
}
|
|
3437
3738
|
/**
|
|
3438
3739
|
* @param {boolean} value
|
|
@@ -3570,6 +3871,10 @@ export class WasmCrawlResult {
|
|
|
3570
3871
|
return ret !== 0;
|
|
3571
3872
|
}
|
|
3572
3873
|
/**
|
|
3874
|
+
* Returns detached copies of the elements in `cookies`.
|
|
3875
|
+
*
|
|
3876
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
3877
|
+
* then assign the array back to `cookies`.
|
|
3573
3878
|
* @returns {WasmCookieInfo[]}
|
|
3574
3879
|
*/
|
|
3575
3880
|
get cookies() {
|
|
@@ -3578,6 +3883,17 @@ export class WasmCrawlResult {
|
|
|
3578
3883
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
3579
3884
|
return v1;
|
|
3580
3885
|
}
|
|
3886
|
+
/**
|
|
3887
|
+
* Return an independent handle for an ownership-taking API.
|
|
3888
|
+
*
|
|
3889
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
3890
|
+
* handle must remain usable.
|
|
3891
|
+
* @returns {WasmCrawlResult}
|
|
3892
|
+
*/
|
|
3893
|
+
copyForTransfer() {
|
|
3894
|
+
const ret = wasm.wasmcrawlresult_copyForTransfer(this.__wbg_ptr);
|
|
3895
|
+
return WasmCrawlResult.__wrap(ret);
|
|
3896
|
+
}
|
|
3581
3897
|
/**
|
|
3582
3898
|
* @returns {WasmCrawlResult}
|
|
3583
3899
|
*/
|
|
@@ -3613,6 +3929,9 @@ export class WasmCrawlResult {
|
|
|
3613
3929
|
}
|
|
3614
3930
|
}
|
|
3615
3931
|
/**
|
|
3932
|
+
* Takes ownership of every element in `pages`, `cookies`.
|
|
3933
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
3934
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
3616
3935
|
* @param {WasmCrawlPageResult[] | null} [pages]
|
|
3617
3936
|
* @param {string | null} [finalUrl]
|
|
3618
3937
|
* @param {number | null} [redirectCount]
|
|
@@ -3637,6 +3956,10 @@ export class WasmCrawlResult {
|
|
|
3637
3956
|
return this;
|
|
3638
3957
|
}
|
|
3639
3958
|
/**
|
|
3959
|
+
* Returns detached copies of the elements in `pages`.
|
|
3960
|
+
*
|
|
3961
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
3962
|
+
* then assign the array back to `pages`.
|
|
3640
3963
|
* @returns {WasmCrawlPageResult[]}
|
|
3641
3964
|
*/
|
|
3642
3965
|
get pages() {
|
|
@@ -3659,6 +3982,9 @@ export class WasmCrawlResult {
|
|
|
3659
3982
|
wasm.wasmcrawlresult_set_browserUsed(this.__wbg_ptr, value);
|
|
3660
3983
|
}
|
|
3661
3984
|
/**
|
|
3985
|
+
* Takes ownership of every element in `cookies`.
|
|
3986
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
3987
|
+
* element with `copyForTransfer()` before passing the array.
|
|
3662
3988
|
* @param {WasmCookieInfo[]} value
|
|
3663
3989
|
*/
|
|
3664
3990
|
set cookies(value) {
|
|
@@ -3683,6 +4009,9 @@ export class WasmCrawlResult {
|
|
|
3683
4009
|
wasm.wasmcrawlresult_set_finalUrl(this.__wbg_ptr, ptr0, len0);
|
|
3684
4010
|
}
|
|
3685
4011
|
/**
|
|
4012
|
+
* Takes ownership of every element in `pages`.
|
|
4013
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
4014
|
+
* element with `copyForTransfer()` before passing the array.
|
|
3686
4015
|
* @param {WasmCrawlPageResult[]} value
|
|
3687
4016
|
*/
|
|
3688
4017
|
set pages(value) {
|
|
@@ -3824,6 +4153,17 @@ export class WasmDownloadedAsset {
|
|
|
3824
4153
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3825
4154
|
}
|
|
3826
4155
|
}
|
|
4156
|
+
/**
|
|
4157
|
+
* Return an independent handle for an ownership-taking API.
|
|
4158
|
+
*
|
|
4159
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
4160
|
+
* handle must remain usable.
|
|
4161
|
+
* @returns {WasmDownloadedAsset}
|
|
4162
|
+
*/
|
|
4163
|
+
copyForTransfer() {
|
|
4164
|
+
const ret = wasm.wasmdownloadedasset_copyForTransfer(this.__wbg_ptr);
|
|
4165
|
+
return WasmDownloadedAsset.__wrap(ret);
|
|
4166
|
+
}
|
|
3827
4167
|
/**
|
|
3828
4168
|
* @returns {WasmDownloadedAsset}
|
|
3829
4169
|
*/
|
|
@@ -4009,6 +4349,17 @@ export class WasmDownloadedDocument {
|
|
|
4009
4349
|
}
|
|
4010
4350
|
return v1;
|
|
4011
4351
|
}
|
|
4352
|
+
/**
|
|
4353
|
+
* Return an independent handle for an ownership-taking API.
|
|
4354
|
+
*
|
|
4355
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
4356
|
+
* handle must remain usable.
|
|
4357
|
+
* @returns {WasmDownloadedDocument}
|
|
4358
|
+
*/
|
|
4359
|
+
copyForTransfer() {
|
|
4360
|
+
const ret = wasm.wasmdownloadeddocument_copyForTransfer(this.__wbg_ptr);
|
|
4361
|
+
return WasmDownloadedDocument.__wrap(ret);
|
|
4362
|
+
}
|
|
4012
4363
|
/**
|
|
4013
4364
|
* @returns {WasmDownloadedDocument}
|
|
4014
4365
|
*/
|
|
@@ -4211,6 +4562,17 @@ export class WasmExtractionMeta {
|
|
|
4211
4562
|
const ret = wasm.wasmextractionmeta_completionTokens(this.__wbg_ptr);
|
|
4212
4563
|
return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
|
|
4213
4564
|
}
|
|
4565
|
+
/**
|
|
4566
|
+
* Return an independent handle for an ownership-taking API.
|
|
4567
|
+
*
|
|
4568
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
4569
|
+
* handle must remain usable.
|
|
4570
|
+
* @returns {WasmExtractionMeta}
|
|
4571
|
+
*/
|
|
4572
|
+
copyForTransfer() {
|
|
4573
|
+
const ret = wasm.wasmextractionmeta_copyForTransfer(this.__wbg_ptr);
|
|
4574
|
+
return WasmExtractionMeta.__wrap(ret);
|
|
4575
|
+
}
|
|
4214
4576
|
/**
|
|
4215
4577
|
* @returns {number | undefined}
|
|
4216
4578
|
*/
|
|
@@ -4320,6 +4682,17 @@ export class WasmFaviconInfo {
|
|
|
4320
4682
|
const ptr = this.__destroy_into_raw();
|
|
4321
4683
|
wasm.__wbg_wasmfaviconinfo_free(ptr, 0);
|
|
4322
4684
|
}
|
|
4685
|
+
/**
|
|
4686
|
+
* Return an independent handle for an ownership-taking API.
|
|
4687
|
+
*
|
|
4688
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
4689
|
+
* handle must remain usable.
|
|
4690
|
+
* @returns {WasmFaviconInfo}
|
|
4691
|
+
*/
|
|
4692
|
+
copyForTransfer() {
|
|
4693
|
+
const ret = wasm.wasmfaviconinfo_copyForTransfer(this.__wbg_ptr);
|
|
4694
|
+
return WasmFaviconInfo.__wrap(ret);
|
|
4695
|
+
}
|
|
4323
4696
|
/**
|
|
4324
4697
|
* @returns {WasmFaviconInfo}
|
|
4325
4698
|
*/
|
|
@@ -4462,6 +4835,17 @@ export class WasmFeedInfo {
|
|
|
4462
4835
|
const ptr = this.__destroy_into_raw();
|
|
4463
4836
|
wasm.__wbg_wasmfeedinfo_free(ptr, 0);
|
|
4464
4837
|
}
|
|
4838
|
+
/**
|
|
4839
|
+
* Return an independent handle for an ownership-taking API.
|
|
4840
|
+
*
|
|
4841
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
4842
|
+
* handle must remain usable.
|
|
4843
|
+
* @returns {WasmFeedInfo}
|
|
4844
|
+
*/
|
|
4845
|
+
copyForTransfer() {
|
|
4846
|
+
const ret = wasm.wasmfeedinfo_copyForTransfer(this.__wbg_ptr);
|
|
4847
|
+
return WasmFeedInfo.__wrap(ret);
|
|
4848
|
+
}
|
|
4465
4849
|
/**
|
|
4466
4850
|
* @returns {WasmFeedInfo}
|
|
4467
4851
|
*/
|
|
@@ -4587,6 +4971,17 @@ export class WasmHeadingInfo {
|
|
|
4587
4971
|
const ptr = this.__destroy_into_raw();
|
|
4588
4972
|
wasm.__wbg_wasmheadinginfo_free(ptr, 0);
|
|
4589
4973
|
}
|
|
4974
|
+
/**
|
|
4975
|
+
* Return an independent handle for an ownership-taking API.
|
|
4976
|
+
*
|
|
4977
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
4978
|
+
* handle must remain usable.
|
|
4979
|
+
* @returns {WasmHeadingInfo}
|
|
4980
|
+
*/
|
|
4981
|
+
copyForTransfer() {
|
|
4982
|
+
const ret = wasm.wasmheadinginfo_copyForTransfer(this.__wbg_ptr);
|
|
4983
|
+
return WasmHeadingInfo.__wrap(ret);
|
|
4984
|
+
}
|
|
4590
4985
|
/**
|
|
4591
4986
|
* @returns {WasmHeadingInfo}
|
|
4592
4987
|
*/
|
|
@@ -4764,6 +5159,17 @@ export class WasmHreflangEntry {
|
|
|
4764
5159
|
const ptr = this.__destroy_into_raw();
|
|
4765
5160
|
wasm.__wbg_wasmhreflangentry_free(ptr, 0);
|
|
4766
5161
|
}
|
|
5162
|
+
/**
|
|
5163
|
+
* Return an independent handle for an ownership-taking API.
|
|
5164
|
+
*
|
|
5165
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
5166
|
+
* handle must remain usable.
|
|
5167
|
+
* @returns {WasmHreflangEntry}
|
|
5168
|
+
*/
|
|
5169
|
+
copyForTransfer() {
|
|
5170
|
+
const ret = wasm.wasmhreflangentry_copyForTransfer(this.__wbg_ptr);
|
|
5171
|
+
return WasmHreflangEntry.__wrap(ret);
|
|
5172
|
+
}
|
|
4767
5173
|
/**
|
|
4768
5174
|
* @returns {WasmHreflangEntry}
|
|
4769
5175
|
*/
|
|
@@ -4872,6 +5278,17 @@ export class WasmImageInfo {
|
|
|
4872
5278
|
}
|
|
4873
5279
|
return v1;
|
|
4874
5280
|
}
|
|
5281
|
+
/**
|
|
5282
|
+
* Return an independent handle for an ownership-taking API.
|
|
5283
|
+
*
|
|
5284
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
5285
|
+
* handle must remain usable.
|
|
5286
|
+
* @returns {WasmImageInfo}
|
|
5287
|
+
*/
|
|
5288
|
+
copyForTransfer() {
|
|
5289
|
+
const ret = wasm.wasmimageinfo_copyForTransfer(this.__wbg_ptr);
|
|
5290
|
+
return WasmImageInfo.__wrap(ret);
|
|
5291
|
+
}
|
|
4875
5292
|
/**
|
|
4876
5293
|
* @returns {WasmImageInfo}
|
|
4877
5294
|
*/
|
|
@@ -5009,6 +5426,10 @@ export class WasmInteractionResult {
|
|
|
5009
5426
|
wasm.__wbg_wasminteractionresult_free(ptr, 0);
|
|
5010
5427
|
}
|
|
5011
5428
|
/**
|
|
5429
|
+
* Returns detached copies of the elements in `actionResults`.
|
|
5430
|
+
*
|
|
5431
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
5432
|
+
* then assign the array back to `actionResults`.
|
|
5012
5433
|
* @returns {WasmActionResult[]}
|
|
5013
5434
|
*/
|
|
5014
5435
|
get actionResults() {
|
|
@@ -5017,6 +5438,17 @@ export class WasmInteractionResult {
|
|
|
5017
5438
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
5018
5439
|
return v1;
|
|
5019
5440
|
}
|
|
5441
|
+
/**
|
|
5442
|
+
* Return an independent handle for an ownership-taking API.
|
|
5443
|
+
*
|
|
5444
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
5445
|
+
* handle must remain usable.
|
|
5446
|
+
* @returns {WasmInteractionResult}
|
|
5447
|
+
*/
|
|
5448
|
+
copyForTransfer() {
|
|
5449
|
+
const ret = wasm.wasminteractionresult_copyForTransfer(this.__wbg_ptr);
|
|
5450
|
+
return WasmInteractionResult.__wrap(ret);
|
|
5451
|
+
}
|
|
5020
5452
|
/**
|
|
5021
5453
|
* @returns {WasmInteractionResult}
|
|
5022
5454
|
*/
|
|
@@ -5055,6 +5487,9 @@ export class WasmInteractionResult {
|
|
|
5055
5487
|
}
|
|
5056
5488
|
}
|
|
5057
5489
|
/**
|
|
5490
|
+
* Takes ownership of every element in `actionResults`.
|
|
5491
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
5492
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
5058
5493
|
* @param {WasmActionResult[] | null} [actionResults]
|
|
5059
5494
|
* @param {string | null} [finalHtml]
|
|
5060
5495
|
* @param {string | null} [finalUrl]
|
|
@@ -5090,6 +5525,9 @@ export class WasmInteractionResult {
|
|
|
5090
5525
|
return v1;
|
|
5091
5526
|
}
|
|
5092
5527
|
/**
|
|
5528
|
+
* Takes ownership of every element in `actionResults`.
|
|
5529
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
5530
|
+
* element with `copyForTransfer()` before passing the array.
|
|
5093
5531
|
* @param {WasmActionResult[]} value
|
|
5094
5532
|
*/
|
|
5095
5533
|
set actionResults(value) {
|
|
@@ -5167,6 +5605,17 @@ export class WasmJsonLdEntry {
|
|
|
5167
5605
|
const ptr = this.__destroy_into_raw();
|
|
5168
5606
|
wasm.__wbg_wasmjsonldentry_free(ptr, 0);
|
|
5169
5607
|
}
|
|
5608
|
+
/**
|
|
5609
|
+
* Return an independent handle for an ownership-taking API.
|
|
5610
|
+
*
|
|
5611
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
5612
|
+
* handle must remain usable.
|
|
5613
|
+
* @returns {WasmJsonLdEntry}
|
|
5614
|
+
*/
|
|
5615
|
+
copyForTransfer() {
|
|
5616
|
+
const ret = wasm.wasmjsonldentry_copyForTransfer(this.__wbg_ptr);
|
|
5617
|
+
return WasmJsonLdEntry.__wrap(ret);
|
|
5618
|
+
}
|
|
5170
5619
|
/**
|
|
5171
5620
|
* @returns {WasmJsonLdEntry}
|
|
5172
5621
|
*/
|
|
@@ -5286,6 +5735,17 @@ export class WasmLinkInfo {
|
|
|
5286
5735
|
const ptr = this.__destroy_into_raw();
|
|
5287
5736
|
wasm.__wbg_wasmlinkinfo_free(ptr, 0);
|
|
5288
5737
|
}
|
|
5738
|
+
/**
|
|
5739
|
+
* Return an independent handle for an ownership-taking API.
|
|
5740
|
+
*
|
|
5741
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
5742
|
+
* handle must remain usable.
|
|
5743
|
+
* @returns {WasmLinkInfo}
|
|
5744
|
+
*/
|
|
5745
|
+
copyForTransfer() {
|
|
5746
|
+
const ret = wasm.wasmlinkinfo_copyForTransfer(this.__wbg_ptr);
|
|
5747
|
+
return WasmLinkInfo.__wrap(ret);
|
|
5748
|
+
}
|
|
5289
5749
|
/**
|
|
5290
5750
|
* @returns {WasmLinkInfo}
|
|
5291
5751
|
*/
|
|
@@ -5446,6 +5906,17 @@ export class WasmMapResult {
|
|
|
5446
5906
|
const ptr = this.__destroy_into_raw();
|
|
5447
5907
|
wasm.__wbg_wasmmapresult_free(ptr, 0);
|
|
5448
5908
|
}
|
|
5909
|
+
/**
|
|
5910
|
+
* Return an independent handle for an ownership-taking API.
|
|
5911
|
+
*
|
|
5912
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
5913
|
+
* handle must remain usable.
|
|
5914
|
+
* @returns {WasmMapResult}
|
|
5915
|
+
*/
|
|
5916
|
+
copyForTransfer() {
|
|
5917
|
+
const ret = wasm.wasmmapresult_copyForTransfer(this.__wbg_ptr);
|
|
5918
|
+
return WasmMapResult.__wrap(ret);
|
|
5919
|
+
}
|
|
5449
5920
|
/**
|
|
5450
5921
|
* @returns {WasmMapResult}
|
|
5451
5922
|
*/
|
|
@@ -5454,6 +5925,9 @@ export class WasmMapResult {
|
|
|
5454
5925
|
return WasmMapResult.__wrap(ret);
|
|
5455
5926
|
}
|
|
5456
5927
|
/**
|
|
5928
|
+
* Takes ownership of every element in `urls`.
|
|
5929
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
5930
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
5457
5931
|
* @param {WasmSitemapUrl[] | null} [urls]
|
|
5458
5932
|
*/
|
|
5459
5933
|
constructor(urls) {
|
|
@@ -5465,6 +5939,9 @@ export class WasmMapResult {
|
|
|
5465
5939
|
return this;
|
|
5466
5940
|
}
|
|
5467
5941
|
/**
|
|
5942
|
+
* Takes ownership of every element in `urls`.
|
|
5943
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
5944
|
+
* element with `copyForTransfer()` before passing the array.
|
|
5468
5945
|
* @param {WasmSitemapUrl[]} value
|
|
5469
5946
|
*/
|
|
5470
5947
|
set urls(value) {
|
|
@@ -5473,6 +5950,10 @@ export class WasmMapResult {
|
|
|
5473
5950
|
wasm.wasmmapresult_set_urls(this.__wbg_ptr, ptr0, len0);
|
|
5474
5951
|
}
|
|
5475
5952
|
/**
|
|
5953
|
+
* Returns detached copies of the elements in `urls`.
|
|
5954
|
+
*
|
|
5955
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
5956
|
+
* then assign the array back to `urls`.
|
|
5476
5957
|
* @returns {WasmSitemapUrl[]}
|
|
5477
5958
|
*/
|
|
5478
5959
|
get urls() {
|
|
@@ -5526,6 +6007,17 @@ export class WasmMarkdownResult {
|
|
|
5526
6007
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
5527
6008
|
}
|
|
5528
6009
|
}
|
|
6010
|
+
/**
|
|
6011
|
+
* Return an independent handle for an ownership-taking API.
|
|
6012
|
+
*
|
|
6013
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
6014
|
+
* handle must remain usable.
|
|
6015
|
+
* @returns {WasmMarkdownResult}
|
|
6016
|
+
*/
|
|
6017
|
+
copyForTransfer() {
|
|
6018
|
+
const ret = wasm.wasmmarkdownresult_copyForTransfer(this.__wbg_ptr);
|
|
6019
|
+
return WasmMarkdownResult.__wrap(ret);
|
|
6020
|
+
}
|
|
5529
6021
|
/**
|
|
5530
6022
|
* @returns {WasmMarkdownResult}
|
|
5531
6023
|
*/
|
|
@@ -5854,6 +6346,10 @@ export class WasmPageMetadata {
|
|
|
5854
6346
|
wasm.__wbg_wasmpagemetadata_free(ptr, 0);
|
|
5855
6347
|
}
|
|
5856
6348
|
/**
|
|
6349
|
+
* Returns a detached copy of `article`.
|
|
6350
|
+
*
|
|
6351
|
+
* Changes to the returned value do not update this object. To update `article`,
|
|
6352
|
+
* read it, modify the copy, then assign the copy back to `article`.
|
|
5857
6353
|
* @returns {WasmArticleMetadata | undefined}
|
|
5858
6354
|
*/
|
|
5859
6355
|
get article() {
|
|
@@ -5884,6 +6380,20 @@ export class WasmPageMetadata {
|
|
|
5884
6380
|
}
|
|
5885
6381
|
return v1;
|
|
5886
6382
|
}
|
|
6383
|
+
clearArticle() {
|
|
6384
|
+
wasm.wasmpagemetadata_clearArticle(this.__wbg_ptr);
|
|
6385
|
+
}
|
|
6386
|
+
/**
|
|
6387
|
+
* Return an independent handle for an ownership-taking API.
|
|
6388
|
+
*
|
|
6389
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
6390
|
+
* handle must remain usable.
|
|
6391
|
+
* @returns {WasmPageMetadata}
|
|
6392
|
+
*/
|
|
6393
|
+
copyForTransfer() {
|
|
6394
|
+
const ret = wasm.wasmpagemetadata_copyForTransfer(this.__wbg_ptr);
|
|
6395
|
+
return WasmPageMetadata.__wrap(ret);
|
|
6396
|
+
}
|
|
5887
6397
|
/**
|
|
5888
6398
|
* @returns {string | undefined}
|
|
5889
6399
|
*/
|
|
@@ -6036,6 +6546,10 @@ export class WasmPageMetadata {
|
|
|
6036
6546
|
return v1;
|
|
6037
6547
|
}
|
|
6038
6548
|
/**
|
|
6549
|
+
* Returns detached copies of the elements in `favicons`.
|
|
6550
|
+
*
|
|
6551
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
6552
|
+
* then assign the array back to `favicons`.
|
|
6039
6553
|
* @returns {Array<any> | undefined}
|
|
6040
6554
|
*/
|
|
6041
6555
|
get favicons() {
|
|
@@ -6055,6 +6569,10 @@ export class WasmPageMetadata {
|
|
|
6055
6569
|
return v1;
|
|
6056
6570
|
}
|
|
6057
6571
|
/**
|
|
6572
|
+
* Returns detached copies of the elements in `headings`.
|
|
6573
|
+
*
|
|
6574
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
6575
|
+
* then assign the array back to `headings`.
|
|
6058
6576
|
* @returns {Array<any> | undefined}
|
|
6059
6577
|
*/
|
|
6060
6578
|
get headings() {
|
|
@@ -6062,6 +6580,10 @@ export class WasmPageMetadata {
|
|
|
6062
6580
|
return ret;
|
|
6063
6581
|
}
|
|
6064
6582
|
/**
|
|
6583
|
+
* Returns detached copies of the elements in `hreflangs`.
|
|
6584
|
+
*
|
|
6585
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
6586
|
+
* then assign the array back to `hreflangs`.
|
|
6065
6587
|
* @returns {Array<any> | undefined}
|
|
6066
6588
|
*/
|
|
6067
6589
|
get hreflangs() {
|
|
@@ -6105,6 +6627,14 @@ export class WasmPageMetadata {
|
|
|
6105
6627
|
return v1;
|
|
6106
6628
|
}
|
|
6107
6629
|
/**
|
|
6630
|
+
* Takes ownership of `article`.
|
|
6631
|
+
* wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
|
|
6632
|
+
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
6633
|
+
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
6634
|
+
* the generated setter borrows and leaves your handle alive.
|
|
6635
|
+
* Takes ownership of every element in `hreflangs`, `favicons`, `headings`.
|
|
6636
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
6637
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
6108
6638
|
* @param {string | null} [title]
|
|
6109
6639
|
* @param {string | null} [description]
|
|
6110
6640
|
* @param {string | null} [canonicalUrl]
|
|
@@ -6375,15 +6905,11 @@ export class WasmPageMetadata {
|
|
|
6375
6905
|
return v1;
|
|
6376
6906
|
}
|
|
6377
6907
|
/**
|
|
6378
|
-
* @param {WasmArticleMetadata
|
|
6908
|
+
* @param {WasmArticleMetadata} value
|
|
6379
6909
|
*/
|
|
6380
6910
|
set article(value) {
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
_assertClass(value, WasmArticleMetadata);
|
|
6384
|
-
ptr0 = value.__destroy_into_raw();
|
|
6385
|
-
}
|
|
6386
|
-
wasm.wasmpagemetadata_set_article(this.__wbg_ptr, ptr0);
|
|
6911
|
+
_assertClass(value, WasmArticleMetadata);
|
|
6912
|
+
wasm.wasmpagemetadata_set_article(this.__wbg_ptr, value.__wbg_ptr);
|
|
6387
6913
|
}
|
|
6388
6914
|
/**
|
|
6389
6915
|
* @param {string | null} [value]
|
|
@@ -6498,6 +7024,9 @@ export class WasmPageMetadata {
|
|
|
6498
7024
|
wasm.wasmpagemetadata_set_description(this.__wbg_ptr, ptr0, len0);
|
|
6499
7025
|
}
|
|
6500
7026
|
/**
|
|
7027
|
+
* Takes ownership of every element in `favicons`.
|
|
7028
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
7029
|
+
* element with `copyForTransfer()` before passing the array.
|
|
6501
7030
|
* @param {WasmFaviconInfo[] | null} [value]
|
|
6502
7031
|
*/
|
|
6503
7032
|
set favicons(value) {
|
|
@@ -6514,6 +7043,9 @@ export class WasmPageMetadata {
|
|
|
6514
7043
|
wasm.wasmpagemetadata_set_generator(this.__wbg_ptr, ptr0, len0);
|
|
6515
7044
|
}
|
|
6516
7045
|
/**
|
|
7046
|
+
* Takes ownership of every element in `headings`.
|
|
7047
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
7048
|
+
* element with `copyForTransfer()` before passing the array.
|
|
6517
7049
|
* @param {WasmHeadingInfo[] | null} [value]
|
|
6518
7050
|
*/
|
|
6519
7051
|
set headings(value) {
|
|
@@ -6522,6 +7054,9 @@ export class WasmPageMetadata {
|
|
|
6522
7054
|
wasm.wasmpagemetadata_set_headings(this.__wbg_ptr, ptr0, len0);
|
|
6523
7055
|
}
|
|
6524
7056
|
/**
|
|
7057
|
+
* Takes ownership of every element in `hreflangs`.
|
|
7058
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
7059
|
+
* element with `copyForTransfer()` before passing the array.
|
|
6525
7060
|
* @param {WasmHreflangEntry[] | null} [value]
|
|
6526
7061
|
*/
|
|
6527
7062
|
set hreflangs(value) {
|
|
@@ -6857,6 +7392,17 @@ export class WasmProxyConfig {
|
|
|
6857
7392
|
const ptr = this.__destroy_into_raw();
|
|
6858
7393
|
wasm.__wbg_wasmproxyconfig_free(ptr, 0);
|
|
6859
7394
|
}
|
|
7395
|
+
/**
|
|
7396
|
+
* Return an independent handle for an ownership-taking API.
|
|
7397
|
+
*
|
|
7398
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
7399
|
+
* handle must remain usable.
|
|
7400
|
+
* @returns {WasmProxyConfig}
|
|
7401
|
+
*/
|
|
7402
|
+
copyForTransfer() {
|
|
7403
|
+
const ret = wasm.wasmproxyconfig_copyForTransfer(this.__wbg_ptr);
|
|
7404
|
+
return WasmProxyConfig.__wrap(ret);
|
|
7405
|
+
}
|
|
6860
7406
|
/**
|
|
6861
7407
|
* @returns {WasmProxyConfig}
|
|
6862
7408
|
*/
|
|
@@ -7009,6 +7555,17 @@ export class WasmResponseMeta {
|
|
|
7009
7555
|
}
|
|
7010
7556
|
return v1;
|
|
7011
7557
|
}
|
|
7558
|
+
/**
|
|
7559
|
+
* Return an independent handle for an ownership-taking API.
|
|
7560
|
+
*
|
|
7561
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
7562
|
+
* handle must remain usable.
|
|
7563
|
+
* @returns {WasmResponseMeta}
|
|
7564
|
+
*/
|
|
7565
|
+
copyForTransfer() {
|
|
7566
|
+
const ret = wasm.wasmresponsemeta_copyForTransfer(this.__wbg_ptr);
|
|
7567
|
+
return WasmResponseMeta.__wrap(ret);
|
|
7568
|
+
}
|
|
7012
7569
|
/**
|
|
7013
7570
|
* @returns {WasmResponseMeta}
|
|
7014
7571
|
*/
|
|
@@ -7173,6 +7730,10 @@ export class WasmScrapeResult {
|
|
|
7173
7730
|
wasm.__wbg_wasmscraperesult_free(ptr, 0);
|
|
7174
7731
|
}
|
|
7175
7732
|
/**
|
|
7733
|
+
* Returns detached copies of the elements in `assets`.
|
|
7734
|
+
*
|
|
7735
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
7736
|
+
* then assign the array back to `assets`.
|
|
7176
7737
|
* @returns {WasmDownloadedAsset[]}
|
|
7177
7738
|
*/
|
|
7178
7739
|
get assets() {
|
|
@@ -7203,12 +7764,31 @@ export class WasmScrapeResult {
|
|
|
7203
7764
|
return ret !== 0;
|
|
7204
7765
|
}
|
|
7205
7766
|
/**
|
|
7767
|
+
* Returns a detached copy of `browser`.
|
|
7768
|
+
*
|
|
7769
|
+
* Changes to the returned value do not update this object. To update `browser`,
|
|
7770
|
+
* read it, modify the copy, then assign the copy back to `browser`.
|
|
7206
7771
|
* @returns {WasmBrowserExtras | undefined}
|
|
7207
7772
|
*/
|
|
7208
7773
|
get browser() {
|
|
7209
7774
|
const ret = wasm.wasmscraperesult_browser(this.__wbg_ptr);
|
|
7210
7775
|
return ret === 0 ? undefined : WasmBrowserExtras.__wrap(ret);
|
|
7211
7776
|
}
|
|
7777
|
+
clearBrowser() {
|
|
7778
|
+
wasm.wasmscraperesult_clearBrowser(this.__wbg_ptr);
|
|
7779
|
+
}
|
|
7780
|
+
clearDownloadedDocument() {
|
|
7781
|
+
wasm.wasmscraperesult_clearDownloadedDocument(this.__wbg_ptr);
|
|
7782
|
+
}
|
|
7783
|
+
clearExtractionMeta() {
|
|
7784
|
+
wasm.wasmscraperesult_clearExtractionMeta(this.__wbg_ptr);
|
|
7785
|
+
}
|
|
7786
|
+
clearMarkdown() {
|
|
7787
|
+
wasm.wasmscraperesult_clearMarkdown(this.__wbg_ptr);
|
|
7788
|
+
}
|
|
7789
|
+
clearResponseMeta() {
|
|
7790
|
+
wasm.wasmscraperesult_clearResponseMeta(this.__wbg_ptr);
|
|
7791
|
+
}
|
|
7212
7792
|
/**
|
|
7213
7793
|
* @returns {string}
|
|
7214
7794
|
*/
|
|
@@ -7224,6 +7804,17 @@ export class WasmScrapeResult {
|
|
|
7224
7804
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
7225
7805
|
}
|
|
7226
7806
|
}
|
|
7807
|
+
/**
|
|
7808
|
+
* Return an independent handle for an ownership-taking API.
|
|
7809
|
+
*
|
|
7810
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
7811
|
+
* handle must remain usable.
|
|
7812
|
+
* @returns {WasmScrapeResult}
|
|
7813
|
+
*/
|
|
7814
|
+
copyForTransfer() {
|
|
7815
|
+
const ret = wasm.wasmscraperesult_copyForTransfer(this.__wbg_ptr);
|
|
7816
|
+
return WasmScrapeResult.__wrap(ret);
|
|
7817
|
+
}
|
|
7227
7818
|
/**
|
|
7228
7819
|
* @returns {bigint | undefined}
|
|
7229
7820
|
*/
|
|
@@ -7251,6 +7842,10 @@ export class WasmScrapeResult {
|
|
|
7251
7842
|
return v1;
|
|
7252
7843
|
}
|
|
7253
7844
|
/**
|
|
7845
|
+
* Returns a detached copy of `downloadedDocument`.
|
|
7846
|
+
*
|
|
7847
|
+
* Changes to the returned value do not update this object. To update `downloadedDocument`,
|
|
7848
|
+
* read it, modify the copy, then assign the copy back to `downloadedDocument`.
|
|
7254
7849
|
* @returns {WasmDownloadedDocument | undefined}
|
|
7255
7850
|
*/
|
|
7256
7851
|
get downloadedDocument() {
|
|
@@ -7265,6 +7860,10 @@ export class WasmScrapeResult {
|
|
|
7265
7860
|
return ret;
|
|
7266
7861
|
}
|
|
7267
7862
|
/**
|
|
7863
|
+
* Returns a detached copy of `extractionMeta`.
|
|
7864
|
+
*
|
|
7865
|
+
* Changes to the returned value do not update this object. To update `extractionMeta`,
|
|
7866
|
+
* read it, modify the copy, then assign the copy back to `extractionMeta`.
|
|
7268
7867
|
* @returns {WasmExtractionMeta | undefined}
|
|
7269
7868
|
*/
|
|
7270
7869
|
get extractionMeta() {
|
|
@@ -7272,6 +7871,10 @@ export class WasmScrapeResult {
|
|
|
7272
7871
|
return ret === 0 ? undefined : WasmExtractionMeta.__wrap(ret);
|
|
7273
7872
|
}
|
|
7274
7873
|
/**
|
|
7874
|
+
* Returns detached copies of the elements in `feeds`.
|
|
7875
|
+
*
|
|
7876
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
7877
|
+
* then assign the array back to `feeds`.
|
|
7275
7878
|
* @returns {WasmFeedInfo[]}
|
|
7276
7879
|
*/
|
|
7277
7880
|
get feeds() {
|
|
@@ -7311,6 +7914,10 @@ export class WasmScrapeResult {
|
|
|
7311
7914
|
}
|
|
7312
7915
|
}
|
|
7313
7916
|
/**
|
|
7917
|
+
* Returns detached copies of the elements in `images`.
|
|
7918
|
+
*
|
|
7919
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
7920
|
+
* then assign the array back to `images`.
|
|
7314
7921
|
* @returns {WasmImageInfo[]}
|
|
7315
7922
|
*/
|
|
7316
7923
|
get images() {
|
|
@@ -7341,6 +7948,10 @@ export class WasmScrapeResult {
|
|
|
7341
7948
|
return ret !== 0;
|
|
7342
7949
|
}
|
|
7343
7950
|
/**
|
|
7951
|
+
* Returns detached copies of the elements in `jsonLd`.
|
|
7952
|
+
*
|
|
7953
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
7954
|
+
* then assign the array back to `jsonLd`.
|
|
7344
7955
|
* @returns {WasmJsonLdEntry[]}
|
|
7345
7956
|
*/
|
|
7346
7957
|
get jsonLd() {
|
|
@@ -7350,6 +7961,10 @@ export class WasmScrapeResult {
|
|
|
7350
7961
|
return v1;
|
|
7351
7962
|
}
|
|
7352
7963
|
/**
|
|
7964
|
+
* Returns detached copies of the elements in `links`.
|
|
7965
|
+
*
|
|
7966
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
7967
|
+
* then assign the array back to `links`.
|
|
7353
7968
|
* @returns {WasmLinkInfo[]}
|
|
7354
7969
|
*/
|
|
7355
7970
|
get links() {
|
|
@@ -7359,6 +7974,10 @@ export class WasmScrapeResult {
|
|
|
7359
7974
|
return v1;
|
|
7360
7975
|
}
|
|
7361
7976
|
/**
|
|
7977
|
+
* Returns a detached copy of `markdown`.
|
|
7978
|
+
*
|
|
7979
|
+
* Changes to the returned value do not update this object. To update `markdown`,
|
|
7980
|
+
* read it, modify the copy, then assign the copy back to `markdown`.
|
|
7362
7981
|
* @returns {WasmMarkdownResult | undefined}
|
|
7363
7982
|
*/
|
|
7364
7983
|
get markdown() {
|
|
@@ -7366,6 +7985,10 @@ export class WasmScrapeResult {
|
|
|
7366
7985
|
return ret === 0 ? undefined : WasmMarkdownResult.__wrap(ret);
|
|
7367
7986
|
}
|
|
7368
7987
|
/**
|
|
7988
|
+
* Returns a detached copy of `metadata`.
|
|
7989
|
+
*
|
|
7990
|
+
* Changes to the returned value do not update this object. To update `metadata`,
|
|
7991
|
+
* read it, modify the copy, then assign the copy back to `metadata`.
|
|
7369
7992
|
* @returns {WasmPageMetadata}
|
|
7370
7993
|
*/
|
|
7371
7994
|
get metadata() {
|
|
@@ -7373,6 +7996,14 @@ export class WasmScrapeResult {
|
|
|
7373
7996
|
return WasmPageMetadata.__wrap(ret);
|
|
7374
7997
|
}
|
|
7375
7998
|
/**
|
|
7999
|
+
* Takes ownership of `metadata`, `responseMeta`, `markdown`, `extractionMeta`, `downloadedDocument`, `browser`.
|
|
8000
|
+
* wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
|
|
8001
|
+
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
8002
|
+
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
8003
|
+
* the generated setter borrows and leaves your handle alive.
|
|
8004
|
+
* Takes ownership of every element in `links`, `images`, `feeds`, `jsonLd`, `assets`.
|
|
8005
|
+
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
8006
|
+
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
7376
8007
|
* @param {number | null} [statusCode]
|
|
7377
8008
|
* @param {string | null} [finalUrl]
|
|
7378
8009
|
* @param {string | null} [contentType]
|
|
@@ -7479,6 +8110,10 @@ export class WasmScrapeResult {
|
|
|
7479
8110
|
return ret !== 0;
|
|
7480
8111
|
}
|
|
7481
8112
|
/**
|
|
8113
|
+
* Returns a detached copy of `responseMeta`.
|
|
8114
|
+
*
|
|
8115
|
+
* Changes to the returned value do not update this object. To update `responseMeta`,
|
|
8116
|
+
* read it, modify the copy, then assign the copy back to `responseMeta`.
|
|
7482
8117
|
* @returns {WasmResponseMeta | undefined}
|
|
7483
8118
|
*/
|
|
7484
8119
|
get responseMeta() {
|
|
@@ -7498,6 +8133,9 @@ export class WasmScrapeResult {
|
|
|
7498
8133
|
return v1;
|
|
7499
8134
|
}
|
|
7500
8135
|
/**
|
|
8136
|
+
* Takes ownership of every element in `assets`.
|
|
8137
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
8138
|
+
* element with `copyForTransfer()` before passing the array.
|
|
7501
8139
|
* @param {WasmDownloadedAsset[]} value
|
|
7502
8140
|
*/
|
|
7503
8141
|
set assets(value) {
|
|
@@ -7524,15 +8162,11 @@ export class WasmScrapeResult {
|
|
|
7524
8162
|
wasm.wasmscraperesult_set_browserUsed(this.__wbg_ptr, value);
|
|
7525
8163
|
}
|
|
7526
8164
|
/**
|
|
7527
|
-
* @param {WasmBrowserExtras
|
|
8165
|
+
* @param {WasmBrowserExtras} value
|
|
7528
8166
|
*/
|
|
7529
8167
|
set browser(value) {
|
|
7530
|
-
|
|
7531
|
-
|
|
7532
|
-
_assertClass(value, WasmBrowserExtras);
|
|
7533
|
-
ptr0 = value.__destroy_into_raw();
|
|
7534
|
-
}
|
|
7535
|
-
wasm.wasmscraperesult_set_browser(this.__wbg_ptr, ptr0);
|
|
8168
|
+
_assertClass(value, WasmBrowserExtras);
|
|
8169
|
+
wasm.wasmscraperesult_set_browser(this.__wbg_ptr, value.__wbg_ptr);
|
|
7536
8170
|
}
|
|
7537
8171
|
/**
|
|
7538
8172
|
* @param {string} value
|
|
@@ -7557,15 +8191,11 @@ export class WasmScrapeResult {
|
|
|
7557
8191
|
wasm.wasmscraperesult_set_detectedCharset(this.__wbg_ptr, ptr0, len0);
|
|
7558
8192
|
}
|
|
7559
8193
|
/**
|
|
7560
|
-
* @param {WasmDownloadedDocument
|
|
8194
|
+
* @param {WasmDownloadedDocument} value
|
|
7561
8195
|
*/
|
|
7562
8196
|
set downloadedDocument(value) {
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
_assertClass(value, WasmDownloadedDocument);
|
|
7566
|
-
ptr0 = value.__destroy_into_raw();
|
|
7567
|
-
}
|
|
7568
|
-
wasm.wasmscraperesult_set_downloadedDocument(this.__wbg_ptr, ptr0);
|
|
8197
|
+
_assertClass(value, WasmDownloadedDocument);
|
|
8198
|
+
wasm.wasmscraperesult_set_downloadedDocument(this.__wbg_ptr, value.__wbg_ptr);
|
|
7569
8199
|
}
|
|
7570
8200
|
/**
|
|
7571
8201
|
* @param {any | null} [value]
|
|
@@ -7574,17 +8204,16 @@ export class WasmScrapeResult {
|
|
|
7574
8204
|
wasm.wasmscraperesult_set_extractedData(this.__wbg_ptr, isLikeNone(value) ? 0 : addToExternrefTable0(value));
|
|
7575
8205
|
}
|
|
7576
8206
|
/**
|
|
7577
|
-
* @param {WasmExtractionMeta
|
|
8207
|
+
* @param {WasmExtractionMeta} value
|
|
7578
8208
|
*/
|
|
7579
8209
|
set extractionMeta(value) {
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
_assertClass(value, WasmExtractionMeta);
|
|
7583
|
-
ptr0 = value.__destroy_into_raw();
|
|
7584
|
-
}
|
|
7585
|
-
wasm.wasmscraperesult_set_extractionMeta(this.__wbg_ptr, ptr0);
|
|
8210
|
+
_assertClass(value, WasmExtractionMeta);
|
|
8211
|
+
wasm.wasmscraperesult_set_extractionMeta(this.__wbg_ptr, value.__wbg_ptr);
|
|
7586
8212
|
}
|
|
7587
8213
|
/**
|
|
8214
|
+
* Takes ownership of every element in `feeds`.
|
|
8215
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
8216
|
+
* element with `copyForTransfer()` before passing the array.
|
|
7588
8217
|
* @param {WasmFeedInfo[]} value
|
|
7589
8218
|
*/
|
|
7590
8219
|
set feeds(value) {
|
|
@@ -7609,6 +8238,9 @@ export class WasmScrapeResult {
|
|
|
7609
8238
|
wasm.wasmscraperesult_set_html(this.__wbg_ptr, ptr0, len0);
|
|
7610
8239
|
}
|
|
7611
8240
|
/**
|
|
8241
|
+
* Takes ownership of every element in `images`.
|
|
8242
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
8243
|
+
* element with `copyForTransfer()` before passing the array.
|
|
7612
8244
|
* @param {WasmImageInfo[]} value
|
|
7613
8245
|
*/
|
|
7614
8246
|
set images(value) {
|
|
@@ -7635,6 +8267,9 @@ export class WasmScrapeResult {
|
|
|
7635
8267
|
wasm.wasmscraperesult_set_jsRenderHint(this.__wbg_ptr, value);
|
|
7636
8268
|
}
|
|
7637
8269
|
/**
|
|
8270
|
+
* Takes ownership of every element in `jsonLd`.
|
|
8271
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
8272
|
+
* element with `copyForTransfer()` before passing the array.
|
|
7638
8273
|
* @param {WasmJsonLdEntry[]} value
|
|
7639
8274
|
*/
|
|
7640
8275
|
set jsonLd(value) {
|
|
@@ -7643,6 +8278,9 @@ export class WasmScrapeResult {
|
|
|
7643
8278
|
wasm.wasmscraperesult_set_jsonLd(this.__wbg_ptr, ptr0, len0);
|
|
7644
8279
|
}
|
|
7645
8280
|
/**
|
|
8281
|
+
* Takes ownership of every element in `links`.
|
|
8282
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
8283
|
+
* element with `copyForTransfer()` before passing the array.
|
|
7646
8284
|
* @param {WasmLinkInfo[]} value
|
|
7647
8285
|
*/
|
|
7648
8286
|
set links(value) {
|
|
@@ -7651,23 +8289,18 @@ export class WasmScrapeResult {
|
|
|
7651
8289
|
wasm.wasmscraperesult_set_links(this.__wbg_ptr, ptr0, len0);
|
|
7652
8290
|
}
|
|
7653
8291
|
/**
|
|
7654
|
-
* @param {WasmMarkdownResult
|
|
8292
|
+
* @param {WasmMarkdownResult} value
|
|
7655
8293
|
*/
|
|
7656
8294
|
set markdown(value) {
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
_assertClass(value, WasmMarkdownResult);
|
|
7660
|
-
ptr0 = value.__destroy_into_raw();
|
|
7661
|
-
}
|
|
7662
|
-
wasm.wasmscraperesult_set_markdown(this.__wbg_ptr, ptr0);
|
|
8295
|
+
_assertClass(value, WasmMarkdownResult);
|
|
8296
|
+
wasm.wasmscraperesult_set_markdown(this.__wbg_ptr, value.__wbg_ptr);
|
|
7663
8297
|
}
|
|
7664
8298
|
/**
|
|
7665
8299
|
* @param {WasmPageMetadata} value
|
|
7666
8300
|
*/
|
|
7667
8301
|
set metadata(value) {
|
|
7668
8302
|
_assertClass(value, WasmPageMetadata);
|
|
7669
|
-
|
|
7670
|
-
wasm.wasmscraperesult_set_metadata(this.__wbg_ptr, ptr0);
|
|
8303
|
+
wasm.wasmscraperesult_set_metadata(this.__wbg_ptr, value.__wbg_ptr);
|
|
7671
8304
|
}
|
|
7672
8305
|
/**
|
|
7673
8306
|
* @param {boolean} value
|
|
@@ -7682,15 +8315,11 @@ export class WasmScrapeResult {
|
|
|
7682
8315
|
wasm.wasmscraperesult_set_noindexDetected(this.__wbg_ptr, value);
|
|
7683
8316
|
}
|
|
7684
8317
|
/**
|
|
7685
|
-
* @param {WasmResponseMeta
|
|
8318
|
+
* @param {WasmResponseMeta} value
|
|
7686
8319
|
*/
|
|
7687
8320
|
set responseMeta(value) {
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
_assertClass(value, WasmResponseMeta);
|
|
7691
|
-
ptr0 = value.__destroy_into_raw();
|
|
7692
|
-
}
|
|
7693
|
-
wasm.wasmscraperesult_set_responseMeta(this.__wbg_ptr, ptr0);
|
|
8321
|
+
_assertClass(value, WasmResponseMeta);
|
|
8322
|
+
wasm.wasmscraperesult_set_responseMeta(this.__wbg_ptr, value.__wbg_ptr);
|
|
7694
8323
|
}
|
|
7695
8324
|
/**
|
|
7696
8325
|
* @param {string | null} [value]
|
|
@@ -7813,6 +8442,17 @@ export class WasmSitemapUrl {
|
|
|
7813
8442
|
}
|
|
7814
8443
|
return v1;
|
|
7815
8444
|
}
|
|
8445
|
+
/**
|
|
8446
|
+
* Return an independent handle for an ownership-taking API.
|
|
8447
|
+
*
|
|
8448
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
8449
|
+
* handle must remain usable.
|
|
8450
|
+
* @returns {WasmSitemapUrl}
|
|
8451
|
+
*/
|
|
8452
|
+
copyForTransfer() {
|
|
8453
|
+
const ret = wasm.wasmsitemapurl_copyForTransfer(this.__wbg_ptr);
|
|
8454
|
+
return WasmSitemapUrl.__wrap(ret);
|
|
8455
|
+
}
|
|
7816
8456
|
/**
|
|
7817
8457
|
* @returns {WasmSitemapUrl}
|
|
7818
8458
|
*/
|
|
@@ -7941,6 +8581,17 @@ export class WasmSsrfPolicy {
|
|
|
7941
8581
|
const ret = wasm.wasmssrfpolicy_allowlist(this.__wbg_ptr);
|
|
7942
8582
|
return ret;
|
|
7943
8583
|
}
|
|
8584
|
+
/**
|
|
8585
|
+
* Return an independent handle for an ownership-taking API.
|
|
8586
|
+
*
|
|
8587
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
8588
|
+
* handle must remain usable.
|
|
8589
|
+
* @returns {WasmSsrfPolicy}
|
|
8590
|
+
*/
|
|
8591
|
+
copyForTransfer() {
|
|
8592
|
+
const ret = wasm.wasmssrfpolicy_copyForTransfer(this.__wbg_ptr);
|
|
8593
|
+
return WasmSsrfPolicy.__wrap(ret);
|
|
8594
|
+
}
|
|
7944
8595
|
/**
|
|
7945
8596
|
* @returns {WasmSsrfPolicy}
|
|
7946
8597
|
*/
|
|
@@ -7955,6 +8606,13 @@ export class WasmSsrfPolicy {
|
|
|
7955
8606
|
const ret = wasm.wasmssrfpolicy_denyPrivate(this.__wbg_ptr);
|
|
7956
8607
|
return ret !== 0;
|
|
7957
8608
|
}
|
|
8609
|
+
/**
|
|
8610
|
+
* @returns {any}
|
|
8611
|
+
*/
|
|
8612
|
+
get denylist() {
|
|
8613
|
+
const ret = wasm.wasmssrfpolicy_denylist(this.__wbg_ptr);
|
|
8614
|
+
return ret;
|
|
8615
|
+
}
|
|
7958
8616
|
/**
|
|
7959
8617
|
* Create a policy from environment variables.
|
|
7960
8618
|
*
|
|
@@ -7967,13 +8625,13 @@ export class WasmSsrfPolicy {
|
|
|
7967
8625
|
* - Rust-side SSRF checking is unenforceable and redundant in a wasm32 context.
|
|
7968
8626
|
* - For testing and localhost access, the host's network sandbox is the enforcing boundary.
|
|
7969
8627
|
*
|
|
7970
|
-
* **Node.js caveat:** `deny_private`
|
|
7971
|
-
*
|
|
7972
|
-
*
|
|
7973
|
-
*
|
|
7974
|
-
*
|
|
7975
|
-
*
|
|
7976
|
-
*
|
|
8628
|
+
* **Node.js caveat:** `deny_private` and `denylist` have no effect on hostname-based requests
|
|
8629
|
+
* under `wasm32`. There is no DNS resolution on this target, so `validate_url` only ever
|
|
8630
|
+
* checks a literal IP host; a domain name falls straight through to `Ok(())`. In a browser
|
|
8631
|
+
* this is covered by same-origin/CORS. Node's `fetch` enforces no CORS, so a Node service
|
|
8632
|
+
* embedding this wasm module can be driven to internal hosts by domain name despite the
|
|
8633
|
+
* policy. Enforce egress restrictions (network policy, firewall, proxy allowlist) outside
|
|
8634
|
+
* the process.
|
|
7977
8635
|
* @returns {WasmSsrfPolicy}
|
|
7978
8636
|
*/
|
|
7979
8637
|
static fromEnv() {
|
|
@@ -7990,13 +8648,14 @@ export class WasmSsrfPolicy {
|
|
|
7990
8648
|
/**
|
|
7991
8649
|
* @param {boolean | null} [denyPrivate]
|
|
7992
8650
|
* @param {any | null} [allowlist]
|
|
8651
|
+
* @param {any | null} [denylist]
|
|
7993
8652
|
* @param {number | null} [maxRedirects]
|
|
7994
8653
|
* @param {string[] | null} [schemeAllowlist]
|
|
7995
8654
|
*/
|
|
7996
|
-
constructor(denyPrivate, allowlist, maxRedirects, schemeAllowlist) {
|
|
8655
|
+
constructor(denyPrivate, allowlist, denylist, maxRedirects, schemeAllowlist) {
|
|
7997
8656
|
var ptr0 = isLikeNone(schemeAllowlist) ? 0 : passArrayJsValueToWasm0(schemeAllowlist, wasm.__wbindgen_malloc);
|
|
7998
8657
|
var len0 = WASM_VECTOR_LEN;
|
|
7999
|
-
const ret = wasm.wasmssrfpolicy_new(isLikeNone(denyPrivate) ? 0xFFFFFF : denyPrivate ? 1 : 0, isLikeNone(allowlist) ? 0 : addToExternrefTable0(allowlist), isLikeNone(maxRedirects) ? 0xFFFFFF : maxRedirects, ptr0, len0);
|
|
8658
|
+
const ret = wasm.wasmssrfpolicy_new(isLikeNone(denyPrivate) ? 0xFFFFFF : denyPrivate ? 1 : 0, isLikeNone(allowlist) ? 0 : addToExternrefTable0(allowlist), isLikeNone(denylist) ? 0 : addToExternrefTable0(denylist), isLikeNone(maxRedirects) ? 0xFFFFFF : maxRedirects, ptr0, len0);
|
|
8000
8659
|
this.__wbg_ptr = ret;
|
|
8001
8660
|
WasmSsrfPolicyFinalization.register(this, this.__wbg_ptr, this);
|
|
8002
8661
|
return this;
|
|
@@ -8022,6 +8681,12 @@ export class WasmSsrfPolicy {
|
|
|
8022
8681
|
set denyPrivate(value) {
|
|
8023
8682
|
wasm.wasmssrfpolicy_set_denyPrivate(this.__wbg_ptr, value);
|
|
8024
8683
|
}
|
|
8684
|
+
/**
|
|
8685
|
+
* @param {any} value
|
|
8686
|
+
*/
|
|
8687
|
+
set denylist(value) {
|
|
8688
|
+
wasm.wasmssrfpolicy_set_denylist(this.__wbg_ptr, value);
|
|
8689
|
+
}
|
|
8025
8690
|
/**
|
|
8026
8691
|
* @param {number} value
|
|
8027
8692
|
*/
|
|
@@ -8694,12 +9359,12 @@ export function __wbg_wasmsitemapurl_unwrap(arg0) {
|
|
|
8694
9359
|
return ret;
|
|
8695
9360
|
}
|
|
8696
9361
|
export function __wbindgen_generic_0000000000000001(arg0, arg1) {
|
|
8697
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
9362
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1331, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
8698
9363
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h2eedacf566f3748c);
|
|
8699
9364
|
return ret;
|
|
8700
9365
|
}
|
|
8701
9366
|
export function __wbindgen_generic_0000000000000002(arg0, arg1) {
|
|
8702
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
9367
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1222, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8703
9368
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3a7ccac3e94bbb5c);
|
|
8704
9369
|
return ret;
|
|
8705
9370
|
}
|