Rename snowflake class to prevent naming conflicts

This commit is contained in:
Schuyler Cebulskie
2017-01-07 03:37:14 -05:00
parent f76b47184a
commit e5e36d9111
2 changed files with 3 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ let INCREMENT = 0;
/**
* A container for useful snowflake-related methods
*/
class Snowflake {
class SnowflakeUtil {
/**
* A Twitter snowflake, except the epoch is 2015-01-01T00:00:00.000Z
* ```
@@ -62,4 +62,4 @@ function pad(v, n, c = '0') {
return String(v).length >= n ? String(v) : (String(c).repeat(n) + v).slice(-n);
}
module.exports = Snowflake;
module.exports = SnowflakeUtil;