@kevisual/query 0.0.17 → 0.0.18

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.
@@ -203,10 +203,6 @@ declare class BaseQuery<T extends Query = Query> {
203
203
  get<R = any, P = any>(data: P, options?: DataOpts): Promise<Result<R>>;
204
204
  }
205
205
 
206
-
207
-
208
-
209
-
210
206
  type QueryOpts = {
211
207
  url?: string;
212
208
  adapter?: typeof adapter;
@@ -18,7 +18,7 @@ const adapter = async (opts, overloadOpts) => {
18
18
  url = new URL(opts.url);
19
19
  }
20
20
  else {
21
- origin = window?.location?.origin || 'http://localhost:11015';
21
+ origin = window?.location?.origin || 'http://localhost:51015';
22
22
  url = new URL(opts.url, origin);
23
23
  }
24
24
  const isGet = method === 'GET';
@@ -148,7 +148,7 @@ class QueryWs {
148
148
  return;
149
149
  }
150
150
  console.error('WebSocket 连接超时');
151
- reject('timeout');
151
+ resolve(false);
152
152
  }, timeout);
153
153
  ws.onopen = (ev) => {
154
154
  store.getState().setConnected(true);
package/dist/query-ws.js CHANGED
@@ -86,7 +86,7 @@ class QueryWs {
86
86
  return;
87
87
  }
88
88
  console.error('WebSocket 连接超时');
89
- reject('timeout');
89
+ resolve(false);
90
90
  }, timeout);
91
91
  ws.onopen = (ev) => {
92
92
  store.getState().setConnected(true);
package/dist/query.js CHANGED
@@ -18,7 +18,7 @@ const adapter = async (opts, overloadOpts) => {
18
18
  url = new URL(opts.url);
19
19
  }
20
20
  else {
21
- origin = window?.location?.origin || 'http://localhost:11015';
21
+ origin = window?.location?.origin || 'http://localhost:51015';
22
22
  url = new URL(opts.url, origin);
23
23
  }
24
24
  const isGet = method === 'GET';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kevisual/query",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,12 +25,12 @@
25
25
  "devDependencies": {
26
26
  "@rollup/plugin-node-resolve": "^16.0.1",
27
27
  "@rollup/plugin-typescript": "^12.1.2",
28
- "rollup": "^4.36.0",
29
- "rollup-plugin-dts": "^6.2.0",
28
+ "rollup": "^4.40.2",
29
+ "rollup-plugin-dts": "^6.2.1",
30
30
  "ts-node": "^10.9.2",
31
31
  "tslib": "^2.8.1",
32
- "typescript": "^5.8.2",
33
- "zustand": "^5.0.3"
32
+ "typescript": "^5.8.3",
33
+ "zustand": "^5.0.4"
34
34
  },
35
35
  "packageManager": "yarn@1.22.22",
36
36
  "publishConfig": {
@@ -59,6 +59,6 @@
59
59
  }
60
60
  },
61
61
  "dependencies": {
62
- "openai": "^4.88.0"
62
+ "openai": "^4.98.0"
63
63
  }
64
64
  }