@vapi-ai/web 1.1.4 → 1.1.5

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 (3) hide show
  1. package/dist/vapi.js +3 -0
  2. package/package.json +1 -1
  3. package/vapi.ts +4 -0
package/dist/vapi.js CHANGED
@@ -103,6 +103,9 @@ class Vapi extends VapiEventEmitter {
103
103
  this.call.on('error', (error) => {
104
104
  this.emit('error', error);
105
105
  });
106
+ this.call.on('camera-error', (error) => {
107
+ this.emit('error', error);
108
+ });
106
109
  this.call.on('track-started', async (e) => {
107
110
  if (!e || !e.participant)
108
111
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vapi-ai/web",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "",
5
5
  "main": "dist/vapi.js",
6
6
  "types": "dist/vapi.d.ts",
package/vapi.ts CHANGED
@@ -154,6 +154,10 @@ export default class Vapi extends VapiEventEmitter {
154
154
  this.emit('error', error);
155
155
  });
156
156
 
157
+ this.call.on('camera-error', (error: any) => {
158
+ this.emit('error', error);
159
+ });
160
+
157
161
  this.call.on('track-started', async (e) => {
158
162
  if (!e || !e.participant) return;
159
163
  if (e.participant?.local) return;