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

qrjs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qrjs - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

2

package.json
{
"name": "qrjs",
"version": "0.1.3",
"version": "0.2.0",
"description": "QR code generator in Javascript",

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

@@ -716,2 +716,4 @@ /* qr.js -- QR code generator in Javascript (revision 2011-01-19)

var modsize = Math.max(options.modulesize || 5, 0.5);
var unit = options.unit || 'px';
var ratio = options.ratio || 1;
var margin = Math.max(options.margin !== null ? options.margin : 4, 0.0);

@@ -726,3 +728,6 @@

for (var j = 0; j < n; ++j) {
html.push('<td style="width:' + modsize + 'px;height:' + modsize + 'px' +
const size = unit !== 'px'
? 'width:' + modsize * ratio + unit + '; height:' + modsize * ratio + unit
: 'width:' + modsize + 'px;height:' + modsize + 'px'
html.push('<td style="' + size +
(matrix[i][j] ? ';background:#000' : '') + '" ' +

@@ -729,0 +734,0 @@ 'part="' + (matrix[i][j] ? 'module-fg' : 'module-bg') + '" ' + '></td>');

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