@voicenter-team/opensips-js 1.0.140 → 1.0.142

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": "@voicenter-team/opensips-js",
3
- "version": "1.0.140",
3
+ "version": "1.0.142",
4
4
  "description": "The JS package for opensips",
5
5
  "default": "src/index.ts",
6
6
  "jsdelivr": "dist/opensips-js.iife.js",
@@ -132,8 +132,11 @@ export type MSRPModuleName = typeof MODULES.MSRP
132
132
 
133
133
  export type Modules = AudioModuleName | VideoModuleName | MSRPModuleName
134
134
 
135
+ export type OnTransportCallback = (parsed: object, message: string) => void
136
+
135
137
  type UAConfigurationExtended = UAConfiguration & {
136
138
  overrideUserAgent?: (userAgent: string) => string
139
+ onTransportCallback?: OnTransportCallback
137
140
  }
138
141
 
139
142
  export type IOpenSIPSConfiguration = Omit<UAConfigurationExtended, 'sockets'>