smtp-address-parser
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -8,6 +8,7 @@ "use strict"; | ||
function id(d) { return d[0]; } | ||
const deepFlatten = (arr) => [].concat(...arr.map((v) => (Array.isArray(v) ? deepFlatten(v) : v))); | ||
function flat_string(d) { | ||
if (d) { | ||
if (Array.isArray(d)) | ||
return d.flat(Infinity).join(""); | ||
return deepFlatten(d).join(""); | ||
return d; | ||
@@ -14,0 +15,0 @@ } |
{ | ||
"name": "smtp-address-parser", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Parse an SMTP (RFC-5321) address", | ||
@@ -5,0 +5,0 @@ "main": "dist/lib/index.js", |
{ | ||
"compilerOptions": { | ||
"lib": ["es2020"], | ||
"lib": ["es2018"], | ||
"module": "commonjs", | ||
"target": "es2020", | ||
"target": "es2018", | ||
@@ -7,0 +7,0 @@ "strict": true, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
57273
613