vue-qrcode-reader
Advanced tools
Comparing version 2.0.4 to 2.1.0
@@ -20,3 +20,3 @@ var webpack = require("webpack"); | ||
{ | ||
test: /worker\.js$/, | ||
test: /worker\//, | ||
loader: "worker-loader", | ||
@@ -23,0 +23,0 @@ options: { |
{ | ||
"name": "vue-qrcode-reader", | ||
"description": "A set of Vue.js components for detecting and decoding QR codes.", | ||
"version": "2.0.4", | ||
"version": "2.1.0", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Niklas Gruhn", |
import { eventOn } from "callforth"; | ||
import Worker from "./worker.js"; | ||
export async function scan(imageData) { | ||
export async function scan(Worker, imageData) { | ||
const worker = new Worker(); | ||
@@ -20,3 +19,3 @@ | ||
*/ | ||
export function keepScanning(camera, options) { | ||
export function keepScanning(Worker, camera, options) { | ||
const { detectHandler, locateHandler, minDelay } = options; | ||
@@ -23,0 +22,0 @@ |
Sorry, the diff of this file is too big to display
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
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
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
862917
386