Socket
Socket
Sign inDemoInstall

@zxing/library

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zxing/library - npm Package Compare versions

Comparing version 0.19.2 to 0.19.3

8

cjs/browser/BrowserCodeReader.js

@@ -885,3 +885,9 @@ "use strict";

var elem = this.getCaptureCanvas(mediaElement);
var ctx = elem.getContext('2d');
var ctx = void 0;
try {
ctx = elem.getContext('2d', { willReadFrequently: true });
}
catch (e) {
ctx = elem.getContext('2d');
}
this.captureCanvasContext = ctx;

@@ -888,0 +894,0 @@ }

2

cjs/core/common/detector/MathUtils.js

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

MathUtils.round = function (d /*float*/) {
if (NaN === d)
if (isNaN(d))
return 0;

@@ -38,0 +38,0 @@ if (d <= Number.MIN_SAFE_INTEGER)

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

const elem = this.getCaptureCanvas(mediaElement);
const ctx = elem.getContext('2d');
let ctx;
try {
ctx = elem.getContext('2d', { willReadFrequently: true });
}
catch (e) {
ctx = elem.getContext('2d');
}
this.captureCanvasContext = ctx;

@@ -690,0 +696,0 @@ }

@@ -32,3 +32,3 @@ /*

static round(d /*float*/) {
if (NaN === d)
if (isNaN(d))
return 0;

@@ -35,0 +35,0 @@ if (d <= Number.MIN_SAFE_INTEGER)

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

var elem = this.getCaptureCanvas(mediaElement);
var ctx = elem.getContext('2d');
var ctx = void 0;
try {
ctx = elem.getContext('2d', { willReadFrequently: true });
}
catch (e) {
ctx = elem.getContext('2d');
}
this.captureCanvasContext = ctx;

@@ -885,0 +891,0 @@ }

@@ -33,3 +33,3 @@ /*

MathUtils.round = function (d /*float*/) {
if (NaN === d)
if (isNaN(d))
return 0;

@@ -36,0 +36,0 @@ if (d <= Number.MIN_SAFE_INTEGER)

{
"name": "@zxing/library",
"version": "0.19.2",
"version": "0.19.3",
"description": "TypeScript port of ZXing multi-format 1D/2D barcode image processing library.",

@@ -68,3 +68,3 @@ "keywords": [

"dependencies": {
"ts-custom-error": "^3.0.0"
"ts-custom-error": "^3.2.1"
},

@@ -71,0 +71,0 @@ "devDependencies": {

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

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