Socket
Socket
Sign inDemoInstall

vue-barcode-scanner

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-barcode-scanner - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

10

index.js

@@ -85,7 +85,7 @@ const VueBarcodeScanner = {

function checkInputElapsedTime (timestamp) {
pressedTime.push(timestamp)
if (pressedTime.length === 2) {
let timeElapsed = pressedTime[1] - pressedTime[0];
pressedTime = []
if (timeElapsed >= 500) {
attributes.pressedTime.push(timestamp)
if (attributes.pressedTime.length === 2) {
let timeElapsed = attributes.pressedTime[1] - attributes.pressedTime[0];
attributes.pressedTime = []
if (timeElapsed >= 100) {
attributes.barcode = ''

@@ -92,0 +92,0 @@ return false

{
"name": "vue-barcode-scanner",
"version": "0.3.0",
"version": "0.3.1",
"description": "Barcode Scanner Plugin for Vue.js",

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc