reserved-email-addresses-list
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "reserved-email-addresses-list", | ||
"description": "List of 1250+ email addresses reserved for security concerns", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)", | ||
@@ -18,3 +18,5 @@ "bugs": { | ||
], | ||
"dependencies": {}, | ||
"dependencies": { | ||
"reserved-email-addresses-list": "^0.0.3" | ||
}, | ||
"devDependencies": { | ||
@@ -21,0 +23,0 @@ "@commitlint/cli": "latest", |
@@ -49,5 +49,9 @@ # reserved-email-addresses-list | ||
const str = 'Admin***!!!'.toLowerCase().replace(/[^0-9a-z]/g, ''); | ||
const match = reservedEmailAddresssesList.find(addr => addr === str || str.startsWith(addr) || str.endsWith(addr))) | ||
if (match) throw new Error(`${str} matched a reserved email address of ${match}`); | ||
const reservedMatch = reservedEmailAddressesList.find( | ||
addr => addr === str || str.startsWith(addr) || str.endsWith(addr) | ||
); | ||
if (reservedMatch) | ||
throw new Error(`${str} matched a reserved email address of ${match}`); | ||
``` | ||
@@ -54,0 +58,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
20674
92
1
+ Addedreserved-email-addresses-list@0.0.3(transitive)