barcode-scan-js
Advanced tools
Comparing version 0.0.2 to 0.0.3
"use strict"; | ||
class KeyScanElement extends HTMLElement { | ||
class BarcodeScanElement extends HTMLElement { | ||
config = { | ||
@@ -87,2 +87,2 @@ minLength: 1, | ||
} | ||
customElements.define('key-scan', KeyScanElement); | ||
customElements.define('barcode-scan', BarcodeScanElement); |
{ | ||
"name": "barcode-scan-js", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "JavaScript browser-based scanner keyboard input library for seamless integration of barcode and QR code scanning into web applications", | ||
@@ -23,3 +23,2 @@ "scripts": { | ||
"library", | ||
"QR code", | ||
"barcode scanning", | ||
@@ -26,0 +25,0 @@ "JavaScript", |
@@ -1,2 +0,2 @@ | ||
type KeyScanConfiguration = { | ||
type BarcodeScanConfiguration = { | ||
minLength?: number; | ||
@@ -19,4 +19,4 @@ maxLength?: number; | ||
class KeyScanElement extends HTMLElement { | ||
private config: KeyScanConfiguration = { | ||
class BarcodeScanElement extends HTMLElement { | ||
private config: BarcodeScanConfiguration = { | ||
minLength: 1, | ||
@@ -134,3 +134,3 @@ maxLength: 14, | ||
customElements.define('key-scan', KeyScanElement); | ||
customElements.define('barcode-scan', BarcodeScanElement); | ||
10371