miijs 1.6.8 → 1.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +5 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1113,7 +1113,11 @@ module.exports={
1113
1113
  qrCode = jsQR(imageData.data, imageData.width, imageData.height).binaryData;
1114
1114
  }
1115
1115
  else{
1116
- qrCode=binOrPath;
1116
+ var d=binOrPath.match(/(0|1){1,8}/g);
1117
+ qrCode=[];
1118
+ d.forEach(byte=>{
1119
+ qrCode.push(parseInt(byte,2));
1120
+ });
1117
1121
  }
1118
1122
  if (qrCode) {
1119
1123
  var data = decodeAesCcm(new Uint8Array(qrCode));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miijs",
3
- "version": "1.6.8",
3
+ "version": "1.6.9",
4
4
  "description": "Read, Edit, Write, and make Special Miis from a Wiimote binary file or 3DS QR Code to a binary file or QR code",
5
5
  "main": "index.js",
6
6
  "scripts": {