opensips-js 0.1.15 → 0.1.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opensips-js",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "The JS package for opensips",
5
5
  "default": "src/index.ts",
6
6
  "jsdelivr": "dist/opensips-js.iife.js",
@@ -59,7 +59,6 @@
59
59
  "vue": "3.2.25"
60
60
  },
61
61
  "dependencies": {
62
- "@ricky0123/vad-web": "^0.0.28",
63
62
  "@types/mime": "^3.0.1",
64
63
  "generate-unique-id": "^2.0.1",
65
64
  "jssip": "3.10.0",
@@ -70,6 +69,14 @@
70
69
  "sdp-transform": "2.14.1",
71
70
  "uuid": "^10.0.0"
72
71
  },
72
+ "peerDependencies": {
73
+ "@ricky0123/vad-web": "^0.0.28"
74
+ },
75
+ "peerDependenciesMeta": {
76
+ "@ricky0123/vad-web": {
77
+ "optional": true
78
+ }
79
+ },
73
80
  "files": [
74
81
  "dist",
75
82
  "src/types"
@@ -159,11 +159,16 @@ export interface NoiseReductionOptions {
159
159
  noiseCheckInterval?: number
160
160
  }
161
161
 
162
+ export interface VADModule {
163
+ MicVAD: any
164
+ }
165
+
162
166
  type UAConfigurationExtended = UAConfiguration & {
163
167
  reconnectionAttemptsLimit?: number
164
168
  overrideUserAgent?: (userAgent: string) => string
165
169
  noiseReductionOptions?: NoiseReductionOptions
166
170
  onTransportCallback?: OnTransportCallback
171
+ vadModule?: VADModule
167
172
  }
168
173
 
169
174
  export type IOpenSIPSConfiguration = Omit<UAConfigurationExtended, 'sockets'>