@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.
- package/dist/query-adapter.js +1 -1
- package/dist/query-ai.d.ts +1 -3
- package/dist/query-ai.js +2334 -1750
- package/dist/query-browser.d.ts +0 -4
- package/dist/query-browser.js +2 -2
- package/dist/query-ws.js +1 -1
- package/dist/query.js +1 -1
- package/package.json +6 -6
package/dist/query-browser.d.ts
CHANGED
package/dist/query-browser.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:
|
|
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
|
-
|
|
151
|
+
resolve(false);
|
|
152
152
|
}, timeout);
|
|
153
153
|
ws.onopen = (ev) => {
|
|
154
154
|
store.getState().setConnected(true);
|
package/dist/query-ws.js
CHANGED
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:
|
|
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.
|
|
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.
|
|
29
|
-
"rollup-plugin-dts": "^6.2.
|
|
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.
|
|
33
|
-
"zustand": "^5.0.
|
|
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.
|
|
62
|
+
"openai": "^4.98.0"
|
|
63
63
|
}
|
|
64
64
|
}
|