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

@accounts/common

Package Overview
Dependencies
Maintainers
4
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accounts/common - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

5

lib/validators.js

@@ -17,3 +17,3 @@ 'use strict';

var validateEmail = exports.validateEmail = function validateEmail(email) {
var isValid = !(0, _lodash.isEmpty)((0, _lodash.trim)(email || ''));
var isValid = !(0, _lodash.isEmpty)((0, _lodash.trim)(email || '')) && isEmail(email);
return isValid;

@@ -28,4 +28,5 @@ };

var validateUsername = exports.validateUsername = function validateUsername(username) {
var isValid = !(0, _lodash.isEmpty)((0, _lodash.trim)(username || ''));
var usernameRegex = /^[a-zA-Z][a-zA-Z0-9]*$/;
var isValid = username && !(0, _lodash.isEmpty)((0, _lodash.trim)(username)) && usernameRegex.test(username);
return isValid;
};

2

package.json
{
"name": "@accounts/common",
"version": "0.0.5",
"version": "0.0.6",
"description": "Fullstack authentication and accounts-management",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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