@spider-cloud/spider-client 0.1.29 → 0.1.30

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.
Files changed (2) hide show
  1. package/dist/config.d.ts +7 -0
  2. package/package.json +1 -1
package/dist/config.d.ts CHANGED
@@ -360,6 +360,13 @@ export interface SpiderParams {
360
360
  * The redirect policy for HTTP request. Set the value to Loose to allow all.
361
361
  */
362
362
  redirect_policy?: RedirectPolicy;
363
+ /**
364
+ * Track the request sent and responses received for `chrome` or `smart`. The responses will track the bytes used and the requests will have the monotime sent.
365
+ */
366
+ event_tracker?: {
367
+ responses?: true;
368
+ requests?: true;
369
+ };
363
370
  }
364
371
  export type SpiderCoreResponse = {
365
372
  content?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spider-cloud/spider-client",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "description": "Isomorphic Javascript SDK for Spider Cloud services",
5
5
  "scripts": {
6
6
  "test": "node --import tsx --test __tests__/*test.ts",