@vapi-ai/web 2.1.0 → 2.1.1

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/vapi.d.ts CHANGED
@@ -52,5 +52,6 @@ export default class Vapi extends VapiEventEmitter {
52
52
  say(message: string, endCallAfterSpoken?: boolean): void;
53
53
  setInputDevicesAsync(options: Parameters<DailyCall['setInputDevicesAsync']>[0]): void;
54
54
  setOutputDeviceAsync(options: Parameters<DailyCall['setOutputDeviceAsync']>[0]): void;
55
+ getDailyCallObject(): DailyCall | null;
55
56
  }
56
57
  export {};
package/dist/vapi.js CHANGED
@@ -279,5 +279,8 @@ class Vapi extends VapiEventEmitter {
279
279
  setOutputDeviceAsync(options) {
280
280
  this.call?.setOutputDeviceAsync(options);
281
281
  }
282
+ getDailyCallObject() {
283
+ return this.call;
284
+ }
282
285
  }
283
286
  exports.default = Vapi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vapi-ai/web",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "",
5
5
  "main": "dist/vapi.js",
6
6
  "types": "dist/vapi.d.ts",
package/update.sh CHANGED
@@ -1 +1 @@
1
- npm version minor && npm run build && npm publish && cd ../landing && npm install @vapi-ai/web@latest && cd -
1
+ npm version patch && npm run build && npm publish && cd ../landing && npm install @vapi-ai/web@latest && cd -
package/vapi.ts CHANGED
@@ -357,4 +357,8 @@ export default class Vapi extends VapiEventEmitter {
357
357
  public setOutputDeviceAsync(options: Parameters<DailyCall['setOutputDeviceAsync']>[0]) {
358
358
  this.call?.setOutputDeviceAsync(options);
359
359
  }
360
+
361
+ public getDailyCallObject(): DailyCall | null {
362
+ return this.call;
363
+ }
360
364
  }