Socket
Socket
Sign inDemoInstall

@hapi/address

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hapi/address - npm Package Compare versions

Comparing version 2.1.3 to 2.1.4

0

API.md

@@ -0,0 +0,0 @@ ## Methods

2

lib/domain.js

@@ -9,3 +9,3 @@ 'use strict';

nonAsciiRx: /[^\x00-\x7f]/,
domainControlRx: /[\x00-\x20@:]/, // Control + space
domainControlRx: /[\x00-\x20@\:\/]/, // Control + space + separators
tldSegmentRx: /^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,

@@ -12,0 +12,0 @@ domainSegmentRx: /^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

{
"name": "@hapi/address",
"description": "Email address and domain validation",
"version": "2.1.3",
"version": "2.1.4",
"repository": "git://github.com/hapijs/address",

@@ -6,0 +6,0 @@ "main": "lib/index.js",

@@ -105,3 +105,3 @@ 'use strict';

// Tests adapted from https://github.com/hapijs/isemail
// Tests adapted from https://github.com/skeggse/isemail
// Copyright (c) 2008-2019, Eli Skeggs, Dominic Sayers, GlobeSherpa

@@ -330,3 +330,6 @@

['æøå', false],
['1234567890abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw@xyz.com', true, { ignoreLength: true }]
['1234567890abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw@xyz.com', true, { ignoreLength: true }],
['test@example.com@example.com', false],
['test@example.com/path', false],
['test@example.com:123', false]
];

@@ -425,3 +428,6 @@

['XN--UNUP4Y', true, { minDomainSegments: 1 }],
['test@example.com', false]
['test@example.com', false],
['test:example.com', false],
['example.com:123', false],
['example.com/path', false]
];

@@ -428,0 +434,0 @@

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