@xsai/embed 0.0.6 → 0.0.7

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/index.js +3 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ const embed = async (options) => {
4
4
  const request = new Request(requestUrl(options.path ?? "embeddings", options.base), {
5
5
  body: JSON.stringify(clean({
6
6
  ...options,
7
+ abortSignal: void 0,
7
8
  base: void 0,
8
9
  headers: void 0,
9
10
  path: void 0
@@ -12,7 +13,8 @@ const embed = async (options) => {
12
13
  "Content-Type": "application/json",
13
14
  ...options.headers
14
15
  },
15
- method: "POST"
16
+ method: "POST",
17
+ signal: options.abortSingal
16
18
  });
17
19
  const response = await fetch(request);
18
20
  const json = await response.json();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsai/embed",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "author": "藍+85CD",
6
6
  "license": "MIT",
@@ -23,7 +23,7 @@
23
23
  "dist"
24
24
  ],
25
25
  "dependencies": {
26
- "@xsai/shared": "^0.0.6"
26
+ "@xsai/shared": "^0.0.7"
27
27
  },
28
28
  "scripts": {
29
29
  "build": "pkgroll",