detritus-utils
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -98,5 +98,11 @@ "use strict"; | ||
this.limit = Infinity; | ||
this.expire = expire; | ||
this.intervalTime = (intervalTime === undefined) ? this.intervalTime : intervalTime; | ||
this.limit = (limit === undefined) ? this.limit : limit; | ||
if (expire !== undefined) { | ||
this.expire = expire; | ||
} | ||
if (intervalTime !== undefined) { | ||
this.intervalTime = intervalTime; | ||
} | ||
if (limit !== undefined) { | ||
this.limit = limit; | ||
} | ||
if (this.expire) { | ||
@@ -103,0 +109,0 @@ this.intervalTime = Math.min(this.expire, this.intervalTime); |
@@ -5,5 +5,5 @@ "use strict"; | ||
URL: 'https://github.com/detritusjs/utils', | ||
VERSION: '0.1.2', | ||
VERSION: '0.1.3', | ||
}); | ||
exports.DISCORD_SNOWFLAKE_EPOCH = 1420070400000; | ||
exports.DISCORD_TOKEN_EPOCH = 1293840000000; |
{ | ||
"name": "detritus-utils", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Detritus Utils", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.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
16801
547