@ray-js/t-agent-plugin-aistream 0.2.4-beta-3 → 0.2.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.
@@ -4,7 +4,6 @@ import "core-js/modules/es.json.stringify.js";
4
4
  import "core-js/modules/es.regexp.exec.js";
5
5
  import "core-js/modules/esnext.iterator.constructor.js";
6
6
  import "core-js/modules/esnext.iterator.filter.js";
7
- import "core-js/modules/esnext.iterator.for-each.js";
8
7
  import "core-js/modules/esnext.iterator.map.js";
9
8
  import "core-js/modules/web.dom-collections.iterator.js";
10
9
  import { mock } from './mock';
@@ -141,19 +140,19 @@ mock.hooks.hook('createSession', context => {
141
140
  };
142
141
 
143
142
  // 用于测试断开连接;
144
- setTimeout(() => {
145
- dispatch('onConnectStateChanged', {
146
- connectionId: '',
147
- connectState: ConnectState.DISCONNECTED,
148
- code: 200
149
- });
150
- mock.data.set('currentConnection', null);
151
- const map = mock.data.get('sessionMap');
152
- map.forEach(s => {
153
- s.closed = true;
154
- });
155
- mock.data.set('sessionMap', new Map());
156
- }, 5000);
143
+ // setTimeout(() => {
144
+ // dispatch('onConnectStateChanged', {
145
+ // connectionId: '',
146
+ // connectState: ConnectState.DISCONNECTED,
147
+ // code: 200,
148
+ // });
149
+ // mock.data.set('currentConnection', null);
150
+ // const map: Map<string, MockSession> = mock.data.get('sessionMap');
151
+ // map.forEach(s => {
152
+ // s.closed = true;
153
+ // });
154
+ // mock.data.set('sessionMap', new Map());
155
+ // }, 5000);
157
156
 
158
157
  // 用于测试断开会话
159
158
  // setTimeout(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/t-agent-plugin-aistream",
3
- "version": "0.2.4-beta-3",
3
+ "version": "0.2.4",
4
4
  "author": "Tuya.inc",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -35,5 +35,5 @@
35
35
  "devDependencies": {
36
36
  "@types/url-parse": "^1.4.11"
37
37
  },
38
- "gitHead": "016df89f662740579e1135f25954cbd3ceabbd27"
38
+ "gitHead": "651120ff704ee5ff8430e4a3a5a741e1f913958a"
39
39
  }