@xsai/shared 0.0.17 → 0.0.19

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/index.d.ts CHANGED
@@ -6,6 +6,7 @@ interface CommonRequestOptions {
6
6
  * @remarks make sure the baseURL ends with a slash.
7
7
  */
8
8
  baseURL: string | URL;
9
+ fetch?: typeof globalThis.fetch;
9
10
  /** @default `undefined` */
10
11
  headers?: Headers | Record<string, string>;
11
12
  /** @example `gpt-4o` */
package/dist/index.js CHANGED
@@ -8,6 +8,7 @@ const requestBody = (body) => JSON.stringify(objCamelToSnake(clean({
8
8
  abortSignal: void 0,
9
9
  apiKey: void 0,
10
10
  baseURL: void 0,
11
+ fetch: void 0,
11
12
  headers: void 0
12
13
  })));
13
14
 
package/package.json CHANGED
@@ -1,16 +1,23 @@
1
1
  {
2
2
  "name": "@xsai/shared",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "type": "module",
5
5
  "author": "Moeru AI",
6
6
  "license": "MIT",
7
7
  "homepage": "https://xsai.js.org",
8
+ "description": "extra-small AI SDK for Browser, Node.js, Deno, Bun or Edge Runtime.",
9
+ "keywords": [
10
+ "xsai",
11
+ "openai",
12
+ "ai"
13
+ ],
8
14
  "repository": {
9
15
  "type": "git",
10
16
  "url": "git+https://github.com/moeru-ai/xsai.git",
11
17
  "directory": "packages/shared"
12
18
  },
13
19
  "bugs": "https://github.com/moeru-ai/xsai/issues",
20
+ "sideEffects": false,
14
21
  "main": "./dist/index.js",
15
22
  "types": "./dist/index.d.ts",
16
23
  "exports": {