discordblacklist
Advanced tools
Comparing version 3.0.1 to 3.0.2
{ | ||
"name": "discordblacklist", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "The Featured Nodejs package that facilitates getting banned Discord users from DiscordBans", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -27,3 +27,3 @@ 'use strict'; | ||
if (!/^\d+$/.test(id)) Promise.reject(new Error('Discord User Snowflake ID must contain only numbers.')); | ||
const options = option_store.get(this); | ||
const options = Object.assign({}, option_store.get(this)); | ||
options.path += `?user_id=${id}`; | ||
@@ -47,3 +47,3 @@ return new Promise((res, rej) => { | ||
if (!/^\d+$/.test(id)) throw new Error('Discord User Snowflake ID must contain only numbers.'); | ||
return !!(await this.lookup(id)).banned; | ||
return !!+(await this.lookup(id)).banned; | ||
} | ||
@@ -50,0 +50,0 @@ }; |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
46691
1