@wemap/camera 5.3.0 → 5.4.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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { BarcodeFormat } from '@zxing/library/esm';
1
+ export { BarcodeFormat } from '@zxing/library';
2
2
  export { default as Camera } from './src/Camera.js';
3
3
  export { default as QrCodeScanner } from './src/QrCodeScanner.js';
4
4
  export { default as SharedCameras } from './src/SharedCameras.js';
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "directory": "packages/camera"
12
12
  },
13
13
  "name": "@wemap/camera",
14
- "version": "5.3.0",
14
+ "version": "5.4.4",
15
15
  "bugs": {
16
16
  "url": "https://github.com/wemap/wemap-modules-js/issues"
17
17
  },
@@ -27,5 +27,5 @@
27
27
  "events": "^3.3.0"
28
28
  },
29
29
  "type": "module",
30
- "gitHead": "e5350bc07b5b5f8df82566f78f227700f40d8678"
30
+ "gitHead": "a1b04a541794b89c4a3af62a99e66976b6100ca9"
31
31
  }
package/src/Camera.js CHANGED
@@ -141,7 +141,9 @@ class Camera extends EventEmitter {
141
141
  }
142
142
 
143
143
  if (testUserMedia) {
144
- const stream = await navigator.mediaDevices.getUserMedia(this._userMediaConstraints);
144
+ const stream = await navigator.mediaDevices.getUserMedia({
145
+ audio: false, video: { facingMode: 'environment' }
146
+ });
145
147
  if (stream.stop) {
146
148
  stream.stop();
147
149
  } else {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @param {number} angle
3
- * @param {numer} aspectRatio
3
+ * @param {number} aspectRatio
4
4
  * @returns {number}
5
5
  */
6
6
  export function convertFov(angle, aspectRatio) {
@@ -7,7 +7,7 @@ import {
7
7
  RGBLuminanceSource,
8
8
  BinaryBitmap,
9
9
  HybridBinarizer
10
- } from '@zxing/library/esm';
10
+ } from '@zxing/library';
11
11
 
12
12
  import Camera from './Camera.js';
13
13