npm-user-validate
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -7,5 +7,5 @@ exports.email = email | ||
username: { | ||
lowerCase: 'Username must be lowercase', | ||
urlSafe: 'Username may not contain non-url-safe chars', | ||
dot: 'Username may not start with "."' | ||
lowerCase: 'Name must be lowercase', | ||
urlSafe: 'Name may not contain non-url-safe chars', | ||
dot: 'Name may not start with "."' | ||
}, | ||
@@ -12,0 +12,0 @@ password: {}, |
{ | ||
"name": "npm-user-validate", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "User validations for npm", | ||
"main": "npm-user-validate.js", | ||
"devDependencies": { | ||
"tap": "0.4.3" | ||
"tap": "^1.2.0" | ||
}, | ||
@@ -9,0 +9,0 @@ "scripts": { |
@@ -7,2 +7,3 @@ var test = require('tap').test | ||
t.type(err, 'object') | ||
t.match(err.message, /lowercase/) | ||
t.end() | ||
@@ -14,2 +15,3 @@ }) | ||
t.type(err, 'object') | ||
t.match(err.message, /url-safe/) | ||
t.end() | ||
@@ -21,2 +23,3 @@ }) | ||
t.type(err, 'object') | ||
t.match(err.message, /start with.*\./) | ||
t.end() | ||
@@ -23,0 +26,0 @@ }) |
Sorry, the diff of this file is not supported yet
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
4825
108
1