vue-qrcode-reader
Advanced tools
Comparing version 2.3.14 to 2.3.15-alpha.1
{ | ||
"name": "vue-qrcode-reader", | ||
"description": "A set of Vue.js components for detecting and decoding QR codes.", | ||
"version": "2.3.14", | ||
"version": "2.3.15-alpha.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Niklas Gruhn", |
import { eventOn } from "callforth"; | ||
export async function scan(Worker, imageData) { | ||
const worker = new Worker(); | ||
export const scan = async (spawnWorker, imageData) => { | ||
const worker = spawnWorker(); | ||
@@ -19,3 +19,3 @@ worker.postMessage(imageData, [imageData.data.buffer]); | ||
*/ | ||
export function keepScanning(Worker, camera, options) { | ||
export const keepScanning = (spawnWorker, camera, options) => { | ||
const { detectHandler, locateHandler, minDelay } = options; | ||
@@ -27,3 +27,3 @@ | ||
const worker = new Worker(); | ||
const worker = spawnWorker(); | ||
@@ -30,0 +30,0 @@ // If worker can't process frames fast enough, memory will quickly full up. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3260679
19696
1