miijs 1.0.1 → 1.0.2

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 +1 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -602,8 +602,7 @@ module.exports={
602
602
  temp2=getBinaryFromAddress(0x47);
603
603
  miiJson.mole.xPos=parseInt(temp2.slice(6,8)+temp.slice(0,3),2);
604
604
  miiJson.mole.yPos=parseInt(temp2.slice(1,6),2);
605
- fs.unlinkSync("./decryptedTemp.3dmii");
606
- fs.unlinkSync("./encryptedTemp.3dmii");
605
+ fs.unlinkSync("./decryptedTemp.3dMii");
607
606
  return miiJson;
608
607
  }
609
608
  var data=fs.readFileSync(qrPath);
@@ -615,7 +614,6 @@ module.exports={
615
614
  const qrCode = jsQR(imageData.data, imageData.width, imageData.height);
616
615
 
617
616
  if (qrCode) {
618
- fs.writeFileSync("./encryptedTemp.3dMii",Buffer.from(qrCode.binaryData));
619
617
  var data = decodeAesCcm(new Uint8Array(qrCode.binaryData));
620
618
  fs.writeFileSync("./decryptedTemp.3dMii",Buffer.from(data));
621
619
  return Promise.resolve(readMii());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miijs",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
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": {