Socket
Socket
Sign inDemoInstall

@alvedder/html5-qrcode

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.2.0-alpha.1

2

cjs/camera/retriever.js

@@ -83,3 +83,3 @@ "use strict";

};
return [4, navigator.mediaDevices.getUserMedia({ audio: false, video: true })];
return [4, navigator.mediaDevices.getUserMedia({ audio: false, video: { facingMode: { exact: 'environment' } } })];
case 1:

@@ -86,0 +86,0 @@ mediaStream = _a.sent();

@@ -46,3 +46,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

};
let mediaStream = yield navigator.mediaDevices.getUserMedia({ audio: false, video: true });
let mediaStream = yield navigator.mediaDevices.getUserMedia({ audio: false, video: { facingMode: { exact: 'environment' } } });
let devices = yield navigator.mediaDevices.enumerateDevices();

@@ -49,0 +49,0 @@ let results = [];

@@ -80,3 +80,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

};
return [4, navigator.mediaDevices.getUserMedia({ audio: false, video: true })];
return [4, navigator.mediaDevices.getUserMedia({ audio: false, video: { facingMode: { exact: 'environment' } } })];
case 1:

@@ -83,0 +83,0 @@ mediaStream = _a.sent();

{
"name": "@alvedder/html5-qrcode",
"version": "0.1.0",
"version": "0.2.0-alpha.1",
"description": "A cross platform HTML5 QR Code & bar code scanner",

@@ -5,0 +5,0 @@ "main": "./cjs/index.js",

@@ -58,3 +58,3 @@ /**

let mediaStream = await navigator.mediaDevices.getUserMedia(
{ audio: false, video: true });
{ audio: false, video: { facingMode: { exact: 'environment' } } });
let devices = await navigator.mediaDevices.enumerateDevices();

@@ -61,0 +61,0 @@ let results: Array<CameraDevice> = [];

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc