Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nuintun/qrcode

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuintun/qrcode - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

26

es5/qrcode/encoder/QRCode.js

@@ -182,16 +182,16 @@ "use strict";

}
// setup position probe pattern
this.setupPositionProbePattern(0, 0);
this.setupPositionProbePattern(this.moduleCount - 7, 0);
this.setupPositionProbePattern(0, this.moduleCount - 7);
// setup position adjust pattern
this.setupPositionAdjustPattern();
// setup finder pattern
this.setupFinderPattern(0, 0);
this.setupFinderPattern(this.moduleCount - 7, 0);
this.setupFinderPattern(0, this.moduleCount - 7);
// setup format bits
this.setupFormatBits();
// setup timing pattern
this.setupTimingPattern();
// setup version
// setup version info
this.setupVersionInfo(test, maskPattern);
// setup alignment pattern
if (this.version >= 7) {
this.setupVersion(test);
this.setupAlignmentPattern(test);
}
// setup version info
this.setupVersionInfo(test, maskPattern);
this.mapData(data, maskPattern);

@@ -236,3 +236,3 @@ };

};
QRCode.prototype.setupPositionAdjustPattern = function () {
QRCode.prototype.setupFormatBits = function () {
var pos = QRUtil.getPatternPosition(this.version);

@@ -260,3 +260,3 @@ var length = pos.length;

};
QRCode.prototype.setupPositionProbePattern = function (row, col) {
QRCode.prototype.setupFinderPattern = function (row, col) {
for (var r = -1; r <= 7; r++) {

@@ -291,3 +291,3 @@ for (var c = -1; c <= 7; c++) {

};
QRCode.prototype.setupVersion = function (test) {
QRCode.prototype.setupAlignmentPattern = function (test) {
var bits = QRUtil.getBCHVersion(this.version);

@@ -294,0 +294,0 @@ for (var i = 0; i < 18; i++) {

@@ -180,16 +180,16 @@ /**

}
// setup position probe pattern
this.setupPositionProbePattern(0, 0);
this.setupPositionProbePattern(this.moduleCount - 7, 0);
this.setupPositionProbePattern(0, this.moduleCount - 7);
// setup position adjust pattern
this.setupPositionAdjustPattern();
// setup finder pattern
this.setupFinderPattern(0, 0);
this.setupFinderPattern(this.moduleCount - 7, 0);
this.setupFinderPattern(0, this.moduleCount - 7);
// setup format bits
this.setupFormatBits();
// setup timing pattern
this.setupTimingPattern();
// setup version
// setup version info
this.setupVersionInfo(test, maskPattern);
// setup alignment pattern
if (this.version >= 7) {
this.setupVersion(test);
this.setupAlignmentPattern(test);
}
// setup version info
this.setupVersionInfo(test, maskPattern);
this.mapData(data, maskPattern);

@@ -234,3 +234,3 @@ };

};
QRCode.prototype.setupPositionAdjustPattern = function () {
QRCode.prototype.setupFormatBits = function () {
var pos = QRUtil.getPatternPosition(this.version);

@@ -258,3 +258,3 @@ var length = pos.length;

};
QRCode.prototype.setupPositionProbePattern = function (row, col) {
QRCode.prototype.setupFinderPattern = function (row, col) {
for (var r = -1; r <= 7; r++) {

@@ -289,3 +289,3 @@ for (var c = -1; c <= 7; c++) {

};
QRCode.prototype.setupVersion = function (test) {
QRCode.prototype.setupAlignmentPattern = function (test) {
var bits = QRUtil.getBCHVersion(this.version);

@@ -292,0 +292,0 @@ for (var i = 0; i < 18; i++) {

{
"name": "@nuintun/qrcode",
"version": "0.5.1",
"version": "0.5.2",
"description": "QRCode encode and decode library.",

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

@@ -79,6 +79,6 @@ /**

private mapData;
private setupPositionAdjustPattern;
private setupPositionProbePattern;
private setupFormatBits;
private setupFinderPattern;
private setupTimingPattern;
private setupVersion;
private setupAlignmentPattern;
private setupVersionInfo;

@@ -85,0 +85,0 @@ private static prepareData;

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