Comparing version 0.3.3 to 0.3.4
@@ -5,9 +5,9 @@ module.exports = { | ||
reputation = parseInt(reputation); | ||
let rep = String(reputation); | ||
const neg = rep.charAt(0) === '-'; | ||
var rep = String(reputation); | ||
var neg = rep.charAt(0) === '-'; | ||
rep = neg ? rep.substring(1) : rep; | ||
var str = rep; | ||
const leadingDigits = parseInt(str.substring(0, 4)); | ||
const log = Math.log(leadingDigits) / Math.log(10); | ||
const n = str.length - 1; | ||
var leadingDigits = parseInt(str.substring(0, 4)); | ||
var log = Math.log(leadingDigits) / Math.log(10); | ||
var n = str.length - 1; | ||
var out = n + (log - parseInt(log)); | ||
@@ -14,0 +14,0 @@ if (isNaN(out)) out = 0; |
{ | ||
"name": "steem", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "Steem.js the JavaScript API for Steem blockchain", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
61611