@pexip/media-control 18.1.0 → 18.2.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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 18.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6cb27d9: Rename hasOwnProperty to hasOwn and use hasOwn when available
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [6cb27d9]
12
+ - @pexip/utils@16.12.0
13
+
3
14
  ## 18.1.0
4
15
 
5
16
  ## 18.0.0
@@ -1,4 +1,4 @@
1
- import { hasOwnProperty } from '@pexip/utils';
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 => hasOwnProperty(t, key) && isType(t[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 (hasOwnProperty(t, 'device')) {
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 => hasOwnProperty(t, 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.1.0",
3
+ "version": "18.2.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.11.0"
29
+ "@pexip/utils": "16.12.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@jest/globals": "^29.7.0",