@spider-cloud/spider-client 0.0.39 → 0.0.43

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/README.md CHANGED
@@ -122,7 +122,8 @@ spider
122
122
 
123
123
  ## Supabase
124
124
 
125
- You can use superbase to directly connect to instances and write your own logic. You first need to install `@supabase/supabase-js` since this package does not install the dep to keep the bundle small and lazy imports the client.
125
+ You can use [Supabase](https://supabase.com/docs/reference/javascript) to directly connect to instances and write your own logic. First, you need to install `@supabase/supabase-js` since this package does not include the dependency by default. This keeps the bundle size small and allows for lazy imports of the client.
126
+
126
127
 
127
128
  ```ts
128
129
  const spiderClient = new Spider({ apiKey: process.env.SPIDER_API_KEY });
package/dist/config.d.ts CHANGED
@@ -17,6 +17,17 @@ export interface Headers {
17
17
  export interface Budget {
18
18
  [key: string]: number;
19
19
  }
20
+ /**
21
+ * The chunking algorithm to use.
22
+ */
23
+ export type ChunkingAlgType = "ByWords" | "ByLines" | "ByCharacterLength" | "BySentence";
24
+ /**
25
+ * The chunking algorithm with the value to chunk by.
26
+ */
27
+ export interface ChunkingAlg {
28
+ type: ChunkingAlgType;
29
+ value: number;
30
+ }
20
31
  /**
21
32
  * Represents the options available for making a spider request.
22
33
  */
@@ -153,4 +164,8 @@ export interface SpiderParams {
153
164
  * Specifies whether to skip configuration checks.
154
165
  */
155
166
  skip_config_checks?: boolean;
167
+ /**
168
+ * The chunking algorithm to use.
169
+ */
170
+ chunking_alg?: ChunkingAlg;
156
171
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spider-cloud/spider-client",
3
- "version": "0.0.39",
3
+ "version": "0.0.43",
4
4
  "description": "A Javascript SDK for Spider Cloud services",
5
5
  "scripts": {
6
6
  "test": "jest",