@spider-cloud/spider-client 0.0.50 → 0.0.53

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/client.d.ts CHANGED
@@ -2,7 +2,7 @@ import { ChunkCallbackFunction, SpiderCoreResponse, SpiderParams } from "./confi
2
2
  /**
3
3
  * Generic params for core request.
4
4
  */
5
- type GenericParams = Omit<SpiderParams, "url">;
5
+ export type GenericParams = Omit<SpiderParams, "url">;
6
6
  /**
7
7
  * Configuration interface for Spider.
8
8
  */
@@ -181,4 +181,3 @@ export declare class Spider {
181
181
  */
182
182
  handleError(response: Response, action: string): void;
183
183
  }
184
- export {};
package/dist/client.js CHANGED
@@ -86,7 +86,7 @@ class Spider {
86
86
  headers,
87
87
  });
88
88
  if (response.ok) {
89
- return response.json();
89
+ return response;
90
90
  }
91
91
  else {
92
92
  this.handleError(response, `get from ${endpoint}`);
package/dist/config.d.ts CHANGED
@@ -67,11 +67,11 @@ export interface SpiderParams {
67
67
  /**
68
68
  * The blacklist routes to ignore. This can be a Regex string pattern.
69
69
  */
70
- black_list?: string[];
70
+ blacklist?: string[];
71
71
  /**
72
72
  * The whitelist routes to only crawl. This can be a Regex string pattern and used with black_listing.
73
73
  */
74
- white_list?: string[];
74
+ whitelist?: string[];
75
75
  /**
76
76
  * The locale to be used during the crawl.
77
77
  */
@@ -178,7 +178,7 @@ export interface SpiderParams {
178
178
  chunking_alg?: ChunkingAlg;
179
179
  }
180
180
  export type SpiderCoreResponse = {
181
- data?: string;
181
+ content?: string;
182
182
  message?: string;
183
183
  error?: string;
184
184
  status?: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spider-cloud/spider-client",
3
- "version": "0.0.50",
4
- "description": "A Javascript SDK for Spider Cloud services",
3
+ "version": "0.0.53",
4
+ "description": "Isomorphic Javascript SDK for Spider Cloud services",
5
5
  "scripts": {
6
6
  "test": "node --import tsx --test __tests__/*test.ts",
7
7
  "build": "tsc",
@@ -23,7 +23,7 @@
23
23
  "author": "Jeff Mendez<jeff@a11ywatch.com>",
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@supabase/supabase-js": "^2.44.2",
26
+ "@supabase/supabase-js": "^2.44.3",
27
27
  "@types/node": "20.14.2",
28
28
  "dotenv": "^16.4.5",
29
29
  "tsx": "^4.16.2",