@onereach/step-voice 5.0.9-fixsubflow.4 → 5.0.9-fixsubflow.5
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/Choice.js +3 -3
- package/dst/Custom Voice Input.js +3 -3
- package/dst/Hangup.js +3 -3
- package/dst/Keypad Input.js +3 -3
- package/dst/step.js +1 -1
- package/package.json +1 -1
package/dst/Choice.js
CHANGED
|
@@ -231,9 +231,9 @@ class Choice extends voice_1.default {
|
|
|
231
231
|
await this.handleHangup(call);
|
|
232
232
|
return await this.waitConvEnd();
|
|
233
233
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
234
|
+
case 'cancel': {
|
|
235
|
+
return this.data.handleCancel === true && this.exitStep('cancel');
|
|
236
|
+
}
|
|
237
237
|
case 'error':
|
|
238
238
|
return this.throwError(event.params.error);
|
|
239
239
|
default:
|
|
@@ -177,9 +177,9 @@ class CustomVoiceInput extends voice_1.default {
|
|
|
177
177
|
await this.handleHangup(call);
|
|
178
178
|
return await this.waitConvEnd();
|
|
179
179
|
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
case 'cancel': {
|
|
181
|
+
return this.data.handleCancel === true && this.exitStep('cancel');
|
|
182
|
+
}
|
|
183
183
|
case 'error':
|
|
184
184
|
return this.throwError(event.params.error);
|
|
185
185
|
default:
|
package/dst/Hangup.js
CHANGED
|
@@ -12,9 +12,9 @@ class Hangup extends voice_1.default {
|
|
|
12
12
|
return this.exitStep('next');
|
|
13
13
|
case 'error':
|
|
14
14
|
return this.throwError(event.params.error);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
case 'cancel': {
|
|
16
|
+
return this.data.handleCancel === true && this.exitStep('cancel');
|
|
17
|
+
}
|
|
18
18
|
default:
|
|
19
19
|
return this.exitFlow();
|
|
20
20
|
}
|
package/dst/Keypad Input.js
CHANGED
|
@@ -148,9 +148,9 @@ class KeypadInput extends voice_1.default {
|
|
|
148
148
|
await this.handleHangup(call);
|
|
149
149
|
return await this.waitConvEnd();
|
|
150
150
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
151
|
+
case 'cancel': {
|
|
152
|
+
return this.data.handleCancel === true && this.exitStep('cancel');
|
|
153
|
+
}
|
|
154
154
|
case 'error':
|
|
155
155
|
return this.throwError(event.params.error);
|
|
156
156
|
default:
|
package/dst/step.js
CHANGED