@pexip/media-control 18.1.0 → 18.3.0
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/CHANGELOG.md +13 -0
- package/dist/typeGuards.js +4 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 18.3.0
|
|
4
|
+
|
|
5
|
+
## 18.2.0
|
|
6
|
+
|
|
7
|
+
### Minor Changes
|
|
8
|
+
|
|
9
|
+
- 6cb27d9: Rename hasOwnProperty to hasOwn and use hasOwn when available
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [6cb27d9]
|
|
14
|
+
- @pexip/utils@16.12.0
|
|
15
|
+
|
|
3
16
|
## 18.1.0
|
|
4
17
|
|
|
5
18
|
## 18.0.0
|
package/dist/typeGuards.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { hasOwn } from '@pexip/utils';
|
|
2
2
|
import { FACING_MODE } from './types';
|
|
3
3
|
export const isBoolean = (t) => typeof t === 'boolean';
|
|
4
4
|
export const isUndefined = (t) => typeof t === 'undefined';
|
|
@@ -132,7 +132,7 @@ export const isConstrainDOMParameters = (isType, keys = CONSTRAIN_PARAM_KEYS) =>
|
|
|
132
132
|
Object.keys(t).length <= 0) {
|
|
133
133
|
return false;
|
|
134
134
|
}
|
|
135
|
-
return keys.some(key =>
|
|
135
|
+
return keys.some(key => hasOwn(t, key) && isType(t[key]));
|
|
136
136
|
};
|
|
137
137
|
export const isConstrainDOMStringParameters = isConstrainDOMParameters(isConstraintDOMString);
|
|
138
138
|
export const isConstrainBooleanParameters = isConstrainDOMParameters(isBoolean);
|
|
@@ -150,7 +150,7 @@ export const isExtendedConstraint = (t) => {
|
|
|
150
150
|
if (typeof t !== 'object' || t === null) {
|
|
151
151
|
return false;
|
|
152
152
|
}
|
|
153
|
-
if (
|
|
153
|
+
if (hasOwn(t, 'device')) {
|
|
154
154
|
const { device } = t;
|
|
155
155
|
return isConstraintSetDevice(device);
|
|
156
156
|
}
|
|
@@ -159,7 +159,7 @@ export const isExtendedConstraint = (t) => {
|
|
|
159
159
|
...EXTENDED_CONSTRAIN_STRING_KEYS,
|
|
160
160
|
...EXTENDED_CONSTRAIN_U_LONG_KEYS,
|
|
161
161
|
...EXTENDED_CONSTRAIN_BOOLEAN_KEYS,
|
|
162
|
-
].some(key =>
|
|
162
|
+
].some(key => hasOwn(t, key));
|
|
163
163
|
};
|
|
164
164
|
export const isInputConstraintSet = (t) => {
|
|
165
165
|
if (typeof t !== 'object' || t === null) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pexip/media-control",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.3.0",
|
|
4
4
|
"homepage": "https://gitlab.com/pexip/zoo",
|
|
5
5
|
"bugs": "https://gitlab.com/pexip/zoo/issues",
|
|
6
6
|
"repository": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"typecheck": "yarn tsc --noEmit -p tsconfig.build.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@pexip/utils": "16.
|
|
29
|
+
"@pexip/utils": "16.12.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@jest/globals": "^29.7.0",
|