@vapi-ai/web 1.0.207 → 1.0.208

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/README.md CHANGED
@@ -67,6 +67,10 @@ vapi.on('call-start', () => {
67
67
  vapi.on('call-end', () => {
68
68
  console.log('Call has stopped');
69
69
  });
70
+
71
+ vapi.on('error', (e) => {
72
+ console.error(e)
73
+ });
70
74
  ```
71
75
 
72
76
  These events allow you to react to changes in the state of the call or speech.
package/dist/vapi.js CHANGED
@@ -118,6 +118,7 @@ class Vapi extends events_1.default {
118
118
  }))
119
119
  .catch((error) => {
120
120
  console.error(error);
121
+ this.emit("error", error.message);
121
122
  });
122
123
  }
123
124
  handleRemoteParticipantsAudioLevel(e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vapi-ai/web",
3
- "version": "1.0.207",
3
+ "version": "1.0.208",
4
4
  "description": "",
5
5
  "main": "dist/vapi.js",
6
6
  "types": "dist/vapi.d.ts",
package/vapi.ts CHANGED
@@ -120,6 +120,7 @@ export default class Vapi extends EventEmitter {
120
120
  })
121
121
  .catch((error) => {
122
122
  console.error(error);
123
+ this.emit("error", error.message);
123
124
  });
124
125
  }
125
126