@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 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
- // case 'cancel': {
235
- // return this.data.handleCancel === true && this.exitStep('cancel')
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
- // case 'cancel': {
181
- // return this.data.handleCancel === true && this.exitStep('cancel')
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
- // case 'cancel': {
16
- // return this.data.handleCancel === true && this.exitStep('cancel')
17
- // }
15
+ case 'cancel': {
16
+ return this.data.handleCancel === true && this.exitStep('cancel');
17
+ }
18
18
  default:
19
19
  return this.exitFlow();
20
20
  }
@@ -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
- // case 'cancel': {
152
- // return this.data.handleCancel === true && this.exitStep('cancel')
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
@@ -113,7 +113,7 @@ class ConvStep extends step_1.default {
113
113
  thread: this.dataThreadId
114
114
  };
115
115
  });
116
- if (worker.isNewThread === true) {
116
+ if (worker.isNewThread) {
117
117
  worker.activate();
118
118
  await worker.run();
119
119
  await this._refreshCache();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "5.0.9-fixsubflow.4",
3
+ "version": "5.0.9-fixsubflow.5",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",