chore(Deps): upgrade deps (#4701)

This commit is contained in:
Noel
2020-08-14 21:46:23 +02:00
committed by GitHub
parent 178439ef8c
commit dea48d64a5
12 changed files with 11320 additions and 51 deletions

View File

@@ -64,9 +64,7 @@ class SnowflakeUtil {
* @returns {DeconstructedSnowflake} Deconstructed snowflake
*/
static deconstruct(snowflake) {
const BINARY = Util.idToBinary(snowflake)
.toString(2)
.padStart(64, '0');
const BINARY = Util.idToBinary(snowflake).toString(2).padStart(64, '0');
const res = {
timestamp: parseInt(BINARY.substring(0, 42), 2) + EPOCH,
workerID: parseInt(BINARY.substring(42, 47), 2),