bitagora-booth
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -1,2 +0,2 @@ | ||
const bitagoraVersion = '1.0.2'; | ||
const bitagoraVersion = '1.0.4'; | ||
const CryptoJS = require('crypto-js'); | ||
@@ -78,5 +78,5 @@ const Ecdsa = require('elliptic'); | ||
function getIdPartial(id, state) { | ||
if (idState == 'ES') { | ||
const lettersDNI = 'TRWAGMYFPDXBNJZSQVHLCKE'; | ||
return id.substr(0,4) + ("0" + (lettersDNI.indexOf(id.substr(8,1))).toString(16)).substr(-16); | ||
if (state == 'ES') { | ||
const letters = 'TRWAGMYFPDXBNJZSQVHLCKE'; | ||
return id.substr(0,4) + ("0" + (letters.indexOf(id.substr(8,1))).toString(16)).substr(-16); | ||
} else { | ||
@@ -83,0 +83,0 @@ return null; |
{ | ||
"name": "bitagora-booth", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Bitagora booth js functions", | ||
@@ -5,0 +5,0 @@ "main": "booth.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9885