mediasoup-client 3.16.3 → 3.16.4
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/Device.js +4 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +4 -4
package/lib/Device.js
CHANGED
|
@@ -391,7 +391,10 @@ function getChromiumMajorVersion(userAgent, userAgentData) {
|
|
|
391
391
|
return undefined;
|
|
392
392
|
}
|
|
393
393
|
if (userAgentData) {
|
|
394
|
-
|
|
394
|
+
// Some nasty browser extensions define their own custom
|
|
395
|
+
// navigator.userAgentData without mandatory `brands` field, so let's be
|
|
396
|
+
// ready for it.
|
|
397
|
+
const chromiumBrand = (userAgentData.brands ?? []).find(b => b.brand === 'Chromium');
|
|
395
398
|
if (chromiumBrand) {
|
|
396
399
|
const majorVersion = Number(chromiumBrand.version);
|
|
397
400
|
logger.debug(`getChromiumMajorVersion() | Chromium major version based on NavigatorUAData => ${majorVersion}`);
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mediasoup-client",
|
|
3
|
-
"version": "3.16.
|
|
3
|
+
"version": "3.16.4",
|
|
4
4
|
"description": "mediasoup client side TypeScript library",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",
|
|
@@ -82,12 +82,12 @@
|
|
|
82
82
|
"supports-color": "^10.2.2"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@eslint/js": "^9.
|
|
85
|
+
"@eslint/js": "^9.36.0",
|
|
86
86
|
"@types/jest": "^30.0.0",
|
|
87
87
|
"@types/node": "^24.5.2",
|
|
88
88
|
"@types/sdp-transform": "^2.15.0",
|
|
89
89
|
"@types/ua-parser-js": "^0.7.39",
|
|
90
|
-
"eslint": "^9.
|
|
90
|
+
"eslint": "^9.36.0",
|
|
91
91
|
"eslint-config-prettier": "^10.1.8",
|
|
92
92
|
"eslint-plugin-jest": "^29.0.1",
|
|
93
93
|
"eslint-plugin-prettier": "^5.5.4",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"jest": "^30.1.3",
|
|
96
96
|
"open-cli": "^8.0.0",
|
|
97
97
|
"prettier": "^3.6.2",
|
|
98
|
-
"ts-jest": "^29.4.
|
|
98
|
+
"ts-jest": "^29.4.4",
|
|
99
99
|
"typescript": "^5.9.2",
|
|
100
100
|
"typescript-eslint": "^8.44.0"
|
|
101
101
|
}
|