@vapi-ai/web 1.0.90 → 1.0.91

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/dist/player.js CHANGED
@@ -1,4 +1,13 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
2
11
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
13
  };
@@ -75,10 +84,10 @@ class ContinuousPlayer extends events_1.default {
75
84
  });
76
85
  }
77
86
  abortBuffer() {
78
- console.log("abortBuffer");
79
- return this.performBufferOperation(() => {
87
+ return __awaiter(this, void 0, void 0, function* () {
80
88
  if (!this.sourceBuffer)
81
89
  return;
90
+ // This does not emit updateend
82
91
  this.sourceBuffer.abort();
83
92
  });
84
93
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vapi-ai/web",
3
- "version": "1.0.90",
3
+ "version": "1.0.91",
4
4
  "description": "",
5
5
  "main": "dist/vapi.js",
6
6
  "types": "dist/vapi.d.ts",
package/player.ts CHANGED
@@ -92,12 +92,10 @@ export class ContinuousPlayer extends EventEmitter {
92
92
  });
93
93
  }
94
94
 
95
- private abortBuffer() {
96
- console.log("abortBuffer");
97
- return this.performBufferOperation(() => {
98
- if (!this.sourceBuffer) return;
99
- this.sourceBuffer.abort();
100
- });
95
+ private async abortBuffer() {
96
+ if (!this.sourceBuffer) return;
97
+ // This does not emit updateend
98
+ this.sourceBuffer.abort();
101
99
  }
102
100
 
103
101
  clear() {