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

sane-email-validation

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sane-email-validation - npm Package Compare versions

Comparing version 1.1.0 to 2.0.0

4

index.js

@@ -21,2 +21,6 @@ exports = module.exports = isEmail;

if ( parts[ 0 ].substr( -1 ) === "." ) {
return false;
}
return true;

@@ -23,0 +27,0 @@ }

2

package.json
{
"name": "sane-email-validation",
"version": "1.1.0",
"version": "2.0.0",
"author": "Scott González <scott.gonzalez@gmail.com> (http://scottgonzalez.com)",

@@ -5,0 +5,0 @@ "description": "Sanely validate email addresses, based on HTML5's definition of email addresses",

@@ -12,3 +12,3 @@ var isEmail = require( "../../index" );

"invalid": function( test ) {
test.expect( 7 );
test.expect( 8 );

@@ -31,2 +31,4 @@ var longLabel = new Array( 65 ).join( "a" );

"Cannot contain domain label >63 characters." );
test.strictEqual( isEmail( "debt.@example.com" ), false,
"Cannot end name with dot." );
test.done();

@@ -58,3 +60,3 @@ },

"invalid": function( test ) {
test.expect( 7 );
test.expect( 8 );

@@ -77,2 +79,4 @@ var longLabel = new Array( 65 ).join( "a" );

"Cannot contain domain label >63 characters." );
test.strictEqual( isNotEmail( "debt.@example.com" ), true,
"Cannot end name with dot." );
test.done();

@@ -79,0 +83,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