wtfai 1.8.2 → 1.8.4

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/realtime.js +4 -1
  2. package/package.json +2 -2
package/dist/realtime.js CHANGED
@@ -56,7 +56,10 @@ class RealtimeService {
56
56
  },
57
57
  body: JSON.stringify(dto)
58
58
  });
59
- if (!response.ok) throw new Error(`推送实时消息失败: ${response.statusText}`);
59
+ if (!response.ok) {
60
+ const json = await response.json();
61
+ throw new Error(`${json.message || '推送失败'}`);
62
+ }
60
63
  }
61
64
  async getPresence(topic) {
62
65
  const response = await fetch(`${this.baseUrl}/workflows/realtime/presence/${topic}`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wtfai",
3
- "version": "1.8.2",
3
+ "version": "1.8.4",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -40,7 +40,7 @@
40
40
  "cos-js-sdk-v5": "^1.10.1",
41
41
  "jsonrepair": "^3.14.0",
42
42
  "uuid": "^13.0.0",
43
- "@our-llm/shared": "3.0.1"
43
+ "@our-llm/shared": "3.0.2"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "rslib build",