Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

smtp-address-parser

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smtp-address-parser - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

.github/workflows/tests.yml

5

dist/test/addresses-test.js

@@ -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 () {

16

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc