@spider-cloud/spider-client 0.1.79 → 0.1.81
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 +6 -7
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -98,13 +98,17 @@ interface Delay {
|
|
|
98
98
|
/**
|
|
99
99
|
* Represents the wait_for configuration.
|
|
100
100
|
* @typedef {Object} WaitFor
|
|
101
|
-
* @property {IdleNetwork} [idle_network] - Configuration to wait for network to be idle.
|
|
101
|
+
* @property {IdleNetwork} [idle_network] - Configuration to wait for network to be idle between period.
|
|
102
|
+
* @property {IdleNetwork0} [idle_network] - Configuration to wait for network to be idle with max timeout.
|
|
103
|
+
* @property {AlmostIdleNetwork0} [idle_network] - Configuration to wait for network to almost idle with max timeout.
|
|
102
104
|
* @property {Selector} [selector] - Configuration to wait for a CSS selector.
|
|
103
105
|
* @property {Delay} [delay] - Configuration to wait for a delay.
|
|
104
106
|
* @property {boolean} [page_navigations] - Whether to wait for page navigations.
|
|
105
107
|
*/
|
|
106
108
|
export interface WaitForConfiguration {
|
|
107
109
|
idle_network?: IdleNetwork;
|
|
110
|
+
idle_network0?: IdleNetwork;
|
|
111
|
+
almost_idle_network0?: IdleNetwork;
|
|
108
112
|
selector?: Selector;
|
|
109
113
|
dom?: Selector;
|
|
110
114
|
delay?: Delay;
|
|
@@ -218,15 +222,10 @@ export type EventTracker = {
|
|
|
218
222
|
* Choose a pool based on your use case (e.g., stealth, speed, or stability).
|
|
219
223
|
*
|
|
220
224
|
* - 'residential' → cost-effective entry-level residential pool
|
|
221
|
-
* - 'residential_fast' → faster residential pool for higher throughput
|
|
222
|
-
* - 'residential_static' → static residential IPs, rotated daily
|
|
223
225
|
* - 'mobile' → 4G/5G mobile proxies for maximum evasion
|
|
224
226
|
* - 'isp' → ISP-grade residential (alias: 'datacenter')
|
|
225
|
-
* - 'residential_premium' → low-latency premium IPs
|
|
226
|
-
* - 'residential_core' → balanced plan (quality vs. cost)
|
|
227
|
-
* - 'residential_plus' → largest and highest quality core pool
|
|
228
227
|
*/
|
|
229
|
-
export type Proxy = "residential" | "
|
|
228
|
+
export type Proxy = "residential" | "mobile" | "isp";
|
|
230
229
|
/**
|
|
231
230
|
* Represents the options available for making a spider request.
|
|
232
231
|
*/
|