Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npm-user-validate

Package Overview
Dependencies
Maintainers
3
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.1.2 to 0.1.3

6

npm-user-validate.js

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

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