@anchorchat/isemail
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -7,2 +7,3 @@ 'use strict'; | ||
var Unorm = require('unorm'); | ||
var Punycode = require('punycode'); | ||
@@ -173,3 +174,3 @@ | ||
return string.normalize('NFC'); | ||
return Unorm.nfc(string); | ||
}); | ||
@@ -1293,3 +1294,3 @@ | ||
return email.normalize('NFC'); | ||
return Unorm.nfc(email); | ||
}; |
@@ -7,2 +7,3 @@ 'use strict'; | ||
var Unorm = require('unorm'); | ||
var Punycode = require('punycode'); | ||
@@ -173,3 +174,3 @@ | ||
return string.normalize('NFC'); | ||
return Unorm.nfc(string); | ||
}); | ||
@@ -1293,3 +1294,3 @@ | ||
return email.normalize('NFC'); | ||
return Unorm.nfc(email); | ||
}; |
{ | ||
"name": "@anchorchat/isemail", | ||
"description": "Validate an email address according to RFCs 5321, 5322, and others", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"repository": "git://github.com/anchorchat/isemail", | ||
@@ -28,3 +28,4 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"punycode": "2.x.x" | ||
"punycode": "2.x.x", | ||
"unorm": "^1.4.1" | ||
}, | ||
@@ -31,0 +32,0 @@ "devDependencies": { |
@@ -5,2 +5,3 @@ 'use strict'; | ||
const Unorm = require('unorm'); | ||
const Punycode = require('punycode'); | ||
@@ -172,3 +173,3 @@ | ||
return string.normalize('NFC'); | ||
return Unorm.nfc(string); | ||
}); | ||
@@ -1334,3 +1335,3 @@ | ||
return email.normalize('NFC'); | ||
return Unorm.nfc(email); | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
181481
3329
2
+ Addedunorm@^1.4.1
+ Addedunorm@1.6.0(transitive)