email-validator-js-test
Advanced tools
Comparing version 1.1.0 to 1.2.0
22
index.js
@@ -13,2 +13,22 @@ function isEmail(email) { | ||
module.exports = {isEmail,isEmpty,getDominan} | ||
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,TextField} |
{ | ||
"name": "email-validator-js-test", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "email validation using email-validator.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
1446
28
0