qrcode
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -18,2 +18,3 @@ /* | ||
var bops = require('bops') | ||
var QRCodeLib = require('./qrcode.js'); | ||
@@ -154,3 +155,3 @@ var QRVersionCapacityTable = require('./qrcapacitytable.js').QRCapacityTable; | ||
if(!level) { | ||
if(!level) { | ||
//if we are unable to find an appropriate qr level error out | ||
@@ -193,3 +194,3 @@ cb(error,[],0); | ||
QRVersion:function(text,errorCorrectLevel,version,cb){ | ||
var c = text.length, | ||
var c = bops.from(text).length,// BINARY LENGTH! | ||
error, | ||
@@ -196,0 +197,0 @@ errorCorrectLevel = this.QRErrorCorrectLevel[errorCorrectLevel]||this.defaultErrorCorrectLevel, |
@@ -431,2 +431,3 @@ var bops = require('bops'); | ||
var byteArray = []; | ||
this.parsedData = bops.from(data); | ||
@@ -433,0 +434,0 @@ } |
{ | ||
"name": "qrcode", | ||
"description": "QRCode / 2d Barcode api with both server side and client side support using canvas", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"author": "Ryan Day <soldair@gmail.com>", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
800463
4347