mediasoup-client 3.16.5 → 3.16.6

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.
@@ -7,7 +7,7 @@ class FakeEventTarget {
7
7
  if (!callback) {
8
8
  return;
9
9
  }
10
- this.listeners[type] ??= [];
10
+ this.listeners[type] = this.listeners[type] ?? [];
11
11
  this.listeners[type].push({
12
12
  callback: typeof callback === 'function' ? callback : callback.handleEvent,
13
13
  once: typeof options === 'object' && options.once === true,
@@ -107,8 +107,8 @@ function extractDtlsParameters({ sdpObject, }) {
107
107
  if (!setup || !fingerprint) {
108
108
  const mediaObject = (sdpObject.media ?? []).find((m) => m.port !== 0);
109
109
  if (mediaObject) {
110
- setup ??= mediaObject.setup;
111
- fingerprint ??= mediaObject.fingerprint;
110
+ setup = setup ?? mediaObject.setup;
111
+ fingerprint = fingerprint ?? mediaObject.fingerprint;
112
112
  }
113
113
  }
114
114
  if (!setup) {
package/lib/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export * as types from './types';
6
6
  /**
7
7
  * Expose mediasoup-client version.
8
8
  */
9
- export declare const version = "3.16.5";
9
+ export declare const version = "3.16.6";
10
10
  /**
11
11
  * Expose Device class and device detector helpers.
12
12
  */
package/lib/index.js CHANGED
@@ -10,7 +10,7 @@ exports.types = require("./types");
10
10
  /**
11
11
  * Expose mediasoup-client version.
12
12
  */
13
- exports.version = '3.16.5';
13
+ exports.version = '3.16.6';
14
14
  /**
15
15
  * Expose Device class and device detector helpers.
16
16
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediasoup-client",
3
- "version": "3.16.5",
3
+ "version": "3.16.6",
4
4
  "description": "mediasoup client side TypeScript library",
5
5
  "contributors": [
6
6
  "Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",