@onereach/step-voice 4.0.20 → 4.0.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/Choice.js CHANGED
@@ -171,8 +171,7 @@ class Choice extends voice_1.default {
171
171
  return this.exitStep(exitId, this.exitChoiceData('voice', params));
172
172
  }
173
173
  else if (this.rptsHasMore({ repromptsList }) &&
174
- usePromptsTriggers &&
175
- isRepromptTrigger(phrases, this.data.promptsTriggers)) {
174
+ (usePromptsTriggers ? isRepromptTrigger(phrases, this.data.promptsTriggers) : true)) {
176
175
  await this.transcript(channel, {
177
176
  message: 'Unrecognized',
178
177
  voiceProcessResult,
package/dst/step.js CHANGED
@@ -40,13 +40,13 @@ class ConvStep extends step_1.default {
40
40
  return (await this._fetchData())?._conv != null;
41
41
  }
42
42
  async runBefore() {
43
- this.log.debug('conv.runBefore', { state: this.state, conv: this.conversation });
44
43
  await super.runBefore();
45
44
  // ensure cache is reset between step runs, just in case
46
45
  this._clearCache();
47
46
  this.triggers.local('_conv');
48
47
  if (!await this.hasConversation())
49
48
  return;
49
+ this.log.debug('conv.runBefore', { state: this.state, conv: this.convDataCache?._conv });
50
50
  if (this.state.direct)
51
51
  return;
52
52
  if (this.event.action === 'cancel') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "4.0.20",
3
+ "version": "4.0.21",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",
@@ -18,7 +18,7 @@
18
18
  "uuid": "^8.3.2"
19
19
  },
20
20
  "devDependencies": {
21
- "@onereach/flow-sdk": "^3.1.15",
21
+ "@onereach/flow-sdk": "^3.1.24",
22
22
  "@swc/cli": "^0.1.57",
23
23
  "@swc/core": "^1.2.198",
24
24
  "@swc/jest": "^0.2.21",
@@ -73,4 +73,4 @@
73
73
  "node_modules"
74
74
  ]
75
75
  }
76
- }
76
+ }