npm-user-validate
Advanced tools
Comparing version 0.0.4 to 0.1.0
@@ -11,5 +11,3 @@ exports.email = email | ||
}, | ||
password: { | ||
badchars: 'Password cannot contain these characters: \'!:@"' | ||
}, | ||
password: {}, | ||
email: { | ||
@@ -45,7 +43,3 @@ valid: 'Email must be an email address' | ||
function pw (pw) { | ||
if (pw.match(/['!:@"]/)) { | ||
return new Error(requirements.password.badchars) | ||
} | ||
return null | ||
} |
{ | ||
"name": "npm-user-validate", | ||
"version": "0.0.4", | ||
"version": "0.1.0", | ||
"description": "User validations for npm", | ||
@@ -5,0 +5,0 @@ "main": "npm-user-validate.js", |
@@ -6,3 +6,3 @@ var test = require('tap').test | ||
err = v('\'') | ||
t.type(err, 'object') | ||
t.type(err, 'null') | ||
t.end() | ||
@@ -13,3 +13,3 @@ }) | ||
err = v(':') | ||
t.type(err, 'object') | ||
t.type(err, 'null') | ||
t.end() | ||
@@ -20,3 +20,3 @@ }) | ||
err = v('@') | ||
t.type(err, 'object') | ||
t.notOk(err, 'null') | ||
t.end() | ||
@@ -27,3 +27,3 @@ }) | ||
err = v('"') | ||
t.type(err, 'object') | ||
t.type(err, 'null') | ||
t.end() | ||
@@ -36,2 +36,2 @@ }) | ||
t.end() | ||
}) | ||
}) |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
4658
105
1