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

anchor-validation

Package Overview
Dependencies
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anchor-validation - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

8

index.js

@@ -27,2 +27,6 @@ 'use strict';

var _isemail = require('isemail');
var _isemail2 = _interopRequireDefault(_isemail);
var _getAge = require('./get-age');

@@ -81,5 +85,3 @@

var error = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
var emailRegex = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
return value && !emailRegex.test(value) ? error : undefined;
return !_isemail2.default.validate(value) ? error : undefined;
};

@@ -86,0 +88,0 @@

{
"name": "anchor-validation",
"version": "1.3.0",
"version": "1.4.0",
"description": "anchor-validation for anchor-ui kit",

@@ -32,14 +32,14 @@ "main": "index.js",

"devDependencies": {
"babel-cli": "^6.23.0",
"babel-preset-env": "^1.2.0",
"chai": "^3.5.0",
"eslint": "^3.17.0",
"eslint-config-airbnb": "^14.1.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^4.0.0",
"eslint-plugin-mocha": "^4.8.0",
"eslint-plugin-react": "^6.10.0",
"mocha": "^3.2.0",
"nyc": "^10.1.2",
"sinon": "^1.17.7"
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.6.1",
"chai": "^4.1.2",
"eslint": "^4.15.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-mocha": "^4.11.0",
"eslint-plugin-react": "^7.5.1",
"mocha": "^4.1.0",
"nyc": "^11.4.1",
"sinon": "^4.1.4"
},

@@ -52,4 +52,5 @@ "babel": {

"dependencies": {
"moment": "^2.18.1"
"isemail": "^3.0.0",
"moment": "^2.20.1"
}
}
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