diff --git a/package.json b/package.json index 9aa79ad..86e885e 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,8 @@ "main": "dist/index.js", "scripts": { "build": "babel src --out-dir dist", + "build:index": "rm -rf ./index.js ./index.d.ts && babel src --out-dir dist", + "prepublish": "npm run build:index", "example": "node -r @babel/register examples/read-write.js", "example-basic": "node -r @babel/register examples/basic.js", "example-from-readme-3": "node -r @babel/register examples/from-readme-3.js", diff --git a/src/ACR122Reader.js b/src/ACR122Reader.js index 3a7f4d4..b7555ec 100644 --- a/src/ACR122Reader.js +++ b/src/ACR122Reader.js @@ -40,7 +40,7 @@ class ACR122Reader extends Reader { ...payload, ]); - console.log(packet); + // console.log(packet); let response = null; @@ -55,7 +55,7 @@ class ACR122Reader extends Reader { // Red OFF Green ON 0x02 // Red ON Green ON 0x03 - console.log(response.slice(1)); + // console.log(response.slice(1)); } catch (err) { @@ -122,7 +122,7 @@ class ACR122Reader extends Reader { ...blinking, // Data In: Blinking Duration Control (4 bytes) ]); - console.log(packet); + //console.log(packet); let response = null; @@ -137,7 +137,7 @@ class ACR122Reader extends Reader { // Red OFF Green ON 0x02 // Red ON Green ON 0x03 - console.log(response.slice(1)); + //console.log(response.slice(1)); } catch (err) { @@ -166,7 +166,7 @@ class ACR122Reader extends Reader { 0x00, // Le ]); - console.log(packet); + //console.log(packet); let response = null; @@ -205,7 +205,7 @@ class ACR122Reader extends Reader { 0x00, // Le ]); - console.log(packet); + //console.log(packet); let response = null;