mediasoup-client 3.14.0 → 3.14.2
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/lib/Consumer.d.ts.map +1 -1
- package/lib/Consumer.js +3 -0
- package/lib/DataConsumer.d.ts.map +1 -1
- package/lib/DataConsumer.js +3 -0
- package/lib/DataProducer.d.ts.map +1 -1
- package/lib/DataProducer.js +3 -0
- package/lib/Producer.d.ts.map +1 -1
- package/lib/Producer.js +3 -0
- package/lib/Transport.d.ts.map +1 -1
- package/lib/Transport.js +3 -0
- package/lib/enhancedEvents.d.ts +4 -0
- package/lib/enhancedEvents.d.ts.map +1 -1
- package/lib/enhancedEvents.js +6 -0
- package/lib/handlers/Chrome111.d.ts +7 -2
- package/lib/handlers/Chrome111.d.ts.map +1 -1
- package/lib/handlers/Chrome111.js +54 -44
- package/lib/handlers/Chrome74.d.ts +7 -2
- package/lib/handlers/Chrome74.d.ts.map +1 -1
- package/lib/handlers/Chrome74.js +54 -44
- package/lib/handlers/FakeHandler.d.ts +3 -2
- package/lib/handlers/FakeHandler.d.ts.map +1 -1
- package/lib/handlers/FakeHandler.js +4 -2
- package/lib/handlers/Firefox120.d.ts +7 -2
- package/lib/handlers/Firefox120.d.ts.map +1 -1
- package/lib/handlers/Firefox120.js +55 -45
- package/lib/handlers/HandlerInterface.d.ts.map +1 -1
- package/lib/handlers/ReactNative106.d.ts +7 -2
- package/lib/handlers/ReactNative106.d.ts.map +1 -1
- package/lib/handlers/ReactNative106.js +55 -45
- package/lib/handlers/Safari12.d.ts +7 -2
- package/lib/handlers/Safari12.d.ts.map +1 -1
- package/lib/handlers/Safari12.js +55 -39
- package/lib/index.d.ts +5 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -2
- package/lib/test/test.js +4 -2
- package/lib/types.d.ts +11 -10
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +0 -24
- package/package.json +12 -8
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.14.
|
|
9
|
+
export declare const version = "3.14.2";
|
|
10
10
|
/**
|
|
11
11
|
* Expose Device class and device detector helpers.
|
|
12
12
|
*/
|
|
@@ -19,6 +19,10 @@ export { parse as parseScalabilityMode } from './scalabilityModes';
|
|
|
19
19
|
* Expose all ORTC functions.
|
|
20
20
|
*/
|
|
21
21
|
export * as ortc from './ortc';
|
|
22
|
+
/**
|
|
23
|
+
* Expose enhanced events.
|
|
24
|
+
*/
|
|
25
|
+
export * as enhancedEvents from './enhancedEvents';
|
|
22
26
|
/**
|
|
23
27
|
* Expose FakeHandler.
|
|
24
28
|
*/
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,OAAO,iCAAiC,CAAC;AAEtD;;GAEG;AACH,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEnE;;GAEG;AACH,OAAO,EAAE,KAAK,IAAI,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAEnE;;GAEG;AACH,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAE/B;;GAEG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD;;GAEG;AACH,OAAO,KAAK,kBAAkB,MAAM,uBAAuB,CAAC;AAE5D;;GAEG;AACH,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,OAAO,iCAAiC,CAAC;AAEtD;;GAEG;AACH,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEnE;;GAEG;AACH,OAAO,EAAE,KAAK,IAAI,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAEnE;;GAEG;AACH,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAE/B;;GAEG;AACH,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AAEnD;;GAEG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD;;GAEG;AACH,OAAO,KAAK,kBAAkB,MAAM,uBAAuB,CAAC;AAE5D;;GAEG;AACH,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.debug = exports.testFakeParameters = exports.FakeHandler = exports.ortc = exports.parseScalabilityMode = exports.detectDeviceAsync = exports.detectDevice = exports.Device = exports.version = exports.types = void 0;
|
|
3
|
+
exports.debug = exports.testFakeParameters = exports.FakeHandler = exports.enhancedEvents = exports.ortc = exports.parseScalabilityMode = exports.detectDeviceAsync = exports.detectDevice = exports.Device = exports.version = exports.types = void 0;
|
|
4
4
|
const debug_1 = require("debug");
|
|
5
5
|
exports.debug = debug_1.default;
|
|
6
6
|
/**
|
|
@@ -10,7 +10,7 @@ exports.types = require("./types");
|
|
|
10
10
|
/**
|
|
11
11
|
* Expose mediasoup-client version.
|
|
12
12
|
*/
|
|
13
|
-
exports.version = '3.14.
|
|
13
|
+
exports.version = '3.14.2';
|
|
14
14
|
/**
|
|
15
15
|
* Expose Device class and device detector helpers.
|
|
16
16
|
*/
|
|
@@ -27,6 +27,10 @@ Object.defineProperty(exports, "parseScalabilityMode", { enumerable: true, get:
|
|
|
27
27
|
* Expose all ORTC functions.
|
|
28
28
|
*/
|
|
29
29
|
exports.ortc = require("./ortc");
|
|
30
|
+
/**
|
|
31
|
+
* Expose enhanced events.
|
|
32
|
+
*/
|
|
33
|
+
exports.enhancedEvents = require("./enhancedEvents");
|
|
30
34
|
/**
|
|
31
35
|
* Expose FakeHandler.
|
|
32
36
|
*/
|
package/lib/test/test.js
CHANGED
|
@@ -1112,11 +1112,13 @@ test('connection state change does not fire "connectionstatechange" in closed Tr
|
|
|
1112
1112
|
ctx.connectedSendTransport.on('connectionstatechange', ( /* connectionState */) => {
|
|
1113
1113
|
connectionStateChangeEventNumTimesCalled++;
|
|
1114
1114
|
});
|
|
1115
|
-
ctx.connectedSendTransport.close();
|
|
1116
1115
|
// @ts-expect-error --- On purpose.
|
|
1117
1116
|
ctx.connectedSendTransport.handler.setConnectionState('disconnected');
|
|
1118
|
-
expect(connectionStateChangeEventNumTimesCalled).toBe(
|
|
1117
|
+
expect(connectionStateChangeEventNumTimesCalled).toBe(1);
|
|
1119
1118
|
expect(ctx.connectedSendTransport.connectionState).toBe('disconnected');
|
|
1119
|
+
ctx.connectedSendTransport.close();
|
|
1120
|
+
expect(connectionStateChangeEventNumTimesCalled).toBe(1);
|
|
1121
|
+
expect(ctx.connectedSendTransport.connectionState).toBe('closed');
|
|
1120
1122
|
});
|
|
1121
1123
|
test('parseScalabilityMode() works', () => {
|
|
1122
1124
|
expect(parseScalabilityMode('L1T3')).toEqual({
|
package/lib/types.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
export * from './Device';
|
|
2
|
-
export * from './Transport';
|
|
3
|
-
export * from './Producer';
|
|
4
|
-
export * from './Consumer';
|
|
5
|
-
export * from './DataProducer';
|
|
6
|
-
export * from './DataConsumer';
|
|
7
|
-
export * from './RtpParameters';
|
|
8
|
-
export * from './SctpParameters';
|
|
9
|
-
export * from './handlers/HandlerInterface';
|
|
10
|
-
export * from './
|
|
1
|
+
export type * from './Device';
|
|
2
|
+
export type * from './Transport';
|
|
3
|
+
export type * from './Producer';
|
|
4
|
+
export type * from './Consumer';
|
|
5
|
+
export type * from './DataProducer';
|
|
6
|
+
export type * from './DataConsumer';
|
|
7
|
+
export type * from './RtpParameters';
|
|
8
|
+
export type * from './SctpParameters';
|
|
9
|
+
export type * from './handlers/HandlerInterface';
|
|
10
|
+
export type * from './enhancedEvents';
|
|
11
|
+
export type * from './errors';
|
|
11
12
|
export type { ScalabilityMode } from './scalabilityModes';
|
|
12
13
|
export type AppData = {
|
|
13
14
|
[key: string]: unknown;
|
package/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,gBAAgB,CAAC;AACpC,mBAAmB,gBAAgB,CAAC;AACpC,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,6BAA6B,CAAC;AACjD,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,UAAU,CAAC;AAC9B,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,MAAM,MAAM,OAAO,GAAG;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACvB,CAAC"}
|
package/lib/types.js
CHANGED
|
@@ -1,26 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./Device"), exports);
|
|
18
|
-
__exportStar(require("./Transport"), exports);
|
|
19
|
-
__exportStar(require("./Producer"), exports);
|
|
20
|
-
__exportStar(require("./Consumer"), exports);
|
|
21
|
-
__exportStar(require("./DataProducer"), exports);
|
|
22
|
-
__exportStar(require("./DataConsumer"), exports);
|
|
23
|
-
__exportStar(require("./RtpParameters"), exports);
|
|
24
|
-
__exportStar(require("./SctpParameters"), exports);
|
|
25
|
-
__exportStar(require("./handlers/HandlerInterface"), exports);
|
|
26
|
-
__exportStar(require("./errors"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mediasoup-client",
|
|
3
|
-
"version": "3.14.
|
|
3
|
+
"version": "3.14.2",
|
|
4
4
|
"description": "mediasoup client side TypeScript library",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",
|
|
@@ -31,6 +31,10 @@
|
|
|
31
31
|
"ortc": "./lib/ortc.d.ts",
|
|
32
32
|
"default": "./lib/ortc.js"
|
|
33
33
|
},
|
|
34
|
+
"./enhancedEvents": {
|
|
35
|
+
"ortc": "./lib/enhancedEvents.d.ts",
|
|
36
|
+
"default": "./lib/enhancedEvents.js"
|
|
37
|
+
},
|
|
34
38
|
"./handlers/*": {
|
|
35
39
|
"types": "./lib/handlers/*.d.ts",
|
|
36
40
|
"default": "./lib/handlers/*.js"
|
|
@@ -75,24 +79,24 @@
|
|
|
75
79
|
"fake-mediastreamtrack": "^2.1.2",
|
|
76
80
|
"h264-profile-level-id": "^2.2.2",
|
|
77
81
|
"sdp-transform": "^2.15.0",
|
|
78
|
-
"supports-color": "^10.
|
|
82
|
+
"supports-color": "^10.1.0",
|
|
79
83
|
"ua-parser-js": "^2.0.4"
|
|
80
84
|
},
|
|
81
85
|
"devDependencies": {
|
|
82
|
-
"@eslint/js": "^9.
|
|
86
|
+
"@eslint/js": "^9.33.0",
|
|
83
87
|
"@types/jest": "^30.0.0",
|
|
84
|
-
"@types/node": "^24.1
|
|
88
|
+
"@types/node": "^24.2.1",
|
|
85
89
|
"@types/ua-parser-js": "^0.7.39",
|
|
86
|
-
"eslint": "^9.
|
|
90
|
+
"eslint": "^9.33.0",
|
|
87
91
|
"eslint-config-prettier": "^10.1.8",
|
|
88
92
|
"eslint-plugin-jest": "^29.0.1",
|
|
89
|
-
"eslint-plugin-prettier": "^5.5.
|
|
93
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
90
94
|
"globals": "^16.3.0",
|
|
91
95
|
"jest": "^30.0.5",
|
|
92
96
|
"open-cli": "^8.0.0",
|
|
93
97
|
"prettier": "^3.6.2",
|
|
94
|
-
"ts-jest": "^29.4.
|
|
98
|
+
"ts-jest": "^29.4.1",
|
|
95
99
|
"typescript": "^5.8.3",
|
|
96
|
-
"typescript-eslint": "^8.
|
|
100
|
+
"typescript-eslint": "^8.39.1"
|
|
97
101
|
}
|
|
98
102
|
}
|