@ray-js/t-agent-plugin-aistream 0.2.4-beta-3 → 0.2.4-beta-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.
- package/dist/utils/defaultMock.js +13 -14
- package/package.json +2 -2
|
@@ -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
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
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
|
+
"version": "0.2.4-beta-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": "
|
|
38
|
+
"gitHead": "651120ff704ee5ff8430e4a3a5a741e1f913958a"
|
|
39
39
|
}
|