@spider-cloud/spider-client 0.1.36 → 0.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.d.ts +7 -1
- package/package.json +2 -2
package/dist/config.d.ts
CHANGED
|
@@ -323,7 +323,7 @@ export interface SpiderParams {
|
|
|
323
323
|
/**
|
|
324
324
|
* The timeout for the request, in milliseconds.
|
|
325
325
|
*/
|
|
326
|
-
request_timeout?:
|
|
326
|
+
request_timeout?: Timeout;
|
|
327
327
|
/**
|
|
328
328
|
* Specifies whether to run the request in the background.
|
|
329
329
|
*/
|
|
@@ -375,6 +375,12 @@ export interface SpiderParams {
|
|
|
375
375
|
* Evaluates given script in every frame upon creation (before loading frame's scripts).
|
|
376
376
|
*/
|
|
377
377
|
evaluate_on_new_document?: string;
|
|
378
|
+
/**
|
|
379
|
+
* Runs the request using lite_mode:Lite mode reduces data transfer costs by 70%, with trade-offs in speed, accuracy,
|
|
380
|
+
* geo-targeting, and reliability. It’s best suited for non-urgent data collection or when
|
|
381
|
+
* targeting websites with minimal anti-bot protections.
|
|
382
|
+
*/
|
|
383
|
+
lite_mode?: boolean;
|
|
378
384
|
}
|
|
379
385
|
export type SpiderCoreResponse = {
|
|
380
386
|
content?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spider-cloud/spider-client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.37",
|
|
4
4
|
"description": "Isomorphic Javascript SDK for Spider Cloud services",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --import tsx --test __tests__/*test.ts",
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"typescript": "5.7.3"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"exponential-backoff": "^3.1.
|
|
32
|
+
"exponential-backoff": "^3.1.2"
|
|
33
33
|
}
|
|
34
34
|
}
|