smtp-address-parser
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -99,7 +99,2 @@ "use strict"; | ||
}); | ||
it("<user@example.com>", function () { | ||
assert.throws(function () { | ||
parse("<user@example.com>"); | ||
}); | ||
}); | ||
it("user@example.com.", function () { | ||
@@ -106,0 +101,0 @@ assert.throws(function () { |
{ | ||
"name": "smtp-address-parser", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Parse an SMTP (RFC-5321) address", | ||
@@ -8,8 +8,12 @@ "main": "dist/lib/index.js", | ||
"scripts": { | ||
"build": "tsc", | ||
"clean": "rm -rf node_modules lib/grammar.ts dist", | ||
"build": "tsc", | ||
"coverage": "jest --collectCoverage -- dist/test/*.test.js", | ||
"grammar": "nearleyc lib/grammar.ne -o lib/grammar.ts", | ||
"prepare": "npm run grammar && npm run build", | ||
"test": "mocha dist/test/*-test.js" | ||
"test": "jest dist/test/*.test.js" | ||
}, | ||
"engines": { | ||
"node": ">=0.10" | ||
}, | ||
"keywords": [ | ||
@@ -35,4 +39,3 @@ "RFC-5321", | ||
"dependencies": { | ||
"nearley": "^2.20.1", | ||
"typescript": "^4.2.3" | ||
"nearley": "^2.20.1" | ||
}, | ||
@@ -43,4 +46,5 @@ "devDependencies": { | ||
"eslint": "*", | ||
"mocha": "*" | ||
"jest": "^26.6.3", | ||
"typescript": "^4.2.3" | ||
} | ||
} |
# smtp-address-parser | ||
Parse an SMTP (RFC-5321) address | ||
Parse an SMTP (RFC-5321) address. | ||
[![https://nodei.co/npm/smtp-address-parser.png?downloads=true&downloadRank=true&stars=true](https://nodei.co/npm/smtp-address-parser.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/smtp-address-parser) | ||
## Some notes | ||
Length limitations are not checked. | ||
Technically a local-part of a Mailbox address is limited to 64 octets | ||
or less, see: <https://tools.ietf.org/html/rfc5321#section-4.5.3.1.1> | ||
Also, domain names are limited to 255 octets, see: | ||
<https://tools.ietf.org/html/rfc5321#section-4.5.3.1.2> | ||
And individual labels within a domain name are limited to 63 | ||
octets or less, see: | ||
<https://tools.ietf.org/html/rfc1035> section 2.3.4. Size limits | ||
However, RFC-5321 section 4.5.3.1. “Size Limits and Minimums” says: | ||
“To the maximum extent possible, implementation techniques that impose | ||
no limits on the length of these objects should be used.” |
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
71586
1
22
768
24
5
- Removedtypescript@^4.2.3
- Removedtypescript@4.9.5(transitive)