Socket
Socket
Sign inDemoInstall

npm-user-validate

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-user-validate - npm Package Compare versions

Comparing version 0.0.4 to 0.1.0

8

npm-user-validate.js

@@ -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
}

2

package.json
{
"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()
})
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc