@onereach/step-voice 1.2202.18 → 1.2202.21
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/dst/Global Command.js +4 -7
- package/package.json +3 -3
package/dst/Global Command.js
CHANGED
|
@@ -47,9 +47,6 @@ class GlobalCommand extends voice_1.default {
|
|
|
47
47
|
name: 'globThread',
|
|
48
48
|
step: this.step.id,
|
|
49
49
|
thread: this.dataThreadId
|
|
50
|
-
},
|
|
51
|
-
local: {
|
|
52
|
-
background: true
|
|
53
50
|
}
|
|
54
51
|
});
|
|
55
52
|
this.exitStep('no commands');
|
|
@@ -63,9 +60,9 @@ class GlobalCommand extends voice_1.default {
|
|
|
63
60
|
this.triggers.once(`in/voice/${channel.id}/event`, async (event) => {
|
|
64
61
|
switch (event.params.type) {
|
|
65
62
|
case 'hangup': {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
await this.hangup(channel, event);
|
|
64
|
+
this.event.processed = undefined;
|
|
65
|
+
return this.end();
|
|
69
66
|
}
|
|
70
67
|
case 'avm-detected':
|
|
71
68
|
// this.event = {};
|
|
@@ -174,7 +171,7 @@ class GlobalCommand extends voice_1.default {
|
|
|
174
171
|
// }])
|
|
175
172
|
// channel.global = null;
|
|
176
173
|
await this.updateData();
|
|
177
|
-
this.process.runThread({
|
|
174
|
+
await this.process.runThread({
|
|
178
175
|
id: `${stepExit}_${nanoid(8)}`,
|
|
179
176
|
state: {
|
|
180
177
|
name: 'exitToThread',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/step-voice",
|
|
3
|
-
"version": "1.2202.
|
|
3
|
+
"version": "1.2202.21",
|
|
4
4
|
"author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Roman Zolotarov",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"npm": ">= 6.0.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@onereach/step-conversation": "^1.0.
|
|
16
|
+
"@onereach/step-conversation": "^1.0.18",
|
|
17
17
|
"lodash": "^4.17.21",
|
|
18
18
|
"uuid": "^8.3.2"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@onereach/flow-sdk": "^2.7.
|
|
21
|
+
"@onereach/flow-sdk": "^2.7.82",
|
|
22
22
|
"@swc/cli": "^0.1.55",
|
|
23
23
|
"@swc/core": "^1.2.143",
|
|
24
24
|
"@swc/jest": "^0.2.17",
|