@onereach/step-voice 4.0.16 → 4.0.17

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.
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const voice_1 = tslib_1.__importDefault(require("./voice"));
6
6
  const lodash_1 = tslib_1.__importDefault(require("lodash"));
7
7
  const timestring_1 = tslib_1.__importDefault(require("timestring"));
8
- const uuid_1 = tslib_1.__importDefault(require("uuid"));
8
+ const uuid = tslib_1.__importStar(require("uuid"));
9
9
  const defaultSessionTimeoutMin = 5;
10
10
  class InitiateCall extends voice_1.default {
11
11
  get conversation() {
@@ -17,7 +17,7 @@ class InitiateCall extends voice_1.default {
17
17
  return undefined;
18
18
  }
19
19
  async runStep() {
20
- const { channelId = uuid_1.default.v4() } = this.data;
20
+ const { channelId = uuid.v4() } = this.data;
21
21
  if (!this.session.key) {
22
22
  const sessionTimeoutMs = (0, timestring_1.default)(`${this.data.sessionTimeout ?? defaultSessionTimeoutMin} min`, 'ms');
23
23
  await this.session.start({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "4.0.16",
3
+ "version": "4.0.17",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",