email-validator-js-test
Advanced tools
Comparing version 1.5.0 to 1.6.0
22
index.js
@@ -1,4 +0,1 @@ | ||
import React from 'react'; | ||
function isEmail(email) { | ||
@@ -16,22 +13,3 @@ const re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; | ||
// function TextField({ id, placeholder, asterisk, label, onChange, index=0, value ,type,disabled=false,className}) { | ||
// return ( | ||
// <div class={className} key={index}> | ||
// <input | ||
// name={id} | ||
// placeholder={placeholder} | ||
// value={value} | ||
// id={id} | ||
// type={type} | ||
// disabled={disabled} | ||
// onChange={onChange} | ||
// /> | ||
// <label htmlFor={id} > | ||
// {label} <span class="asterisk">{asterisk}</span> | ||
// </label> | ||
// </div> | ||
// ) | ||
// } | ||
module.exports = {isEmail,isEmpty,getDominan} |
{ | ||
"name": "email-validator-js-test", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "email validation using email-validator.js", | ||
"main": "index.js", | ||
"module": ".dist/index.mjs", | ||
"scripts": { | ||
@@ -13,6 +14,5 @@ "test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": ["react", "component","email"], | ||
"keywords": ["EMAIL"], | ||
"author": "Anand", | ||
"license": "ISC" | ||
} |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
864
10
1