@onereach/step-voice 1.2202.25 → 1.2202.26

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.
Files changed (2) hide show
  1. package/dst/Cancel.js +5 -1
  2. package/package.json +1 -1
package/dst/Cancel.js CHANGED
@@ -3,9 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const voice_1 = (0, tslib_1.__importDefault)(require("./voice"));
5
5
  class VoiceCancel extends voice_1.default {
6
+ async runBefore() {
7
+ await this.fetchData();
8
+ await this.cancel();
9
+ return super.runBefore();
10
+ }
6
11
  async runStep() {
7
12
  const channel = await this.fetchData();
8
- await this.cancel();
9
13
  await this.sendCommands(channel, [{ name: 'cancel' }]);
10
14
  return this.exitStep('next');
11
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "1.2202.25",
3
+ "version": "1.2202.26",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",