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

express-form

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-form - npm Package Compare versions

Comparing version 0.12.4 to 0.12.5

9

Changelog.md
# express-form changelog
## v0.12.5 (2016/03/23)
* remove upper-bound for TLD length on email validation
## v0.12.4 (2014/11/27)
* update dependencies
## v0.12.3 (2014/07/29)
* fix stack size explosion when using `autoTrim`
## v0.12.2 (2014/04/16)

@@ -4,0 +13,0 @@ * add express 4 support

4

lib/field.js

@@ -315,3 +315,3 @@ var validator = require("validator")

return this.add(function (value) {
if (typeof value != 'string' || !(/^[\-0-9a-zA-Z\.\+_]+@[\-0-9a-zA-Z\.\+_]+\.[a-zA-Z]{2,4}$/).test(value)) {
if (typeof value != 'string' || !(/^[\-0-9a-zA-Z\.\+_]+@[\-0-9a-zA-Z\.\+_]+\.[a-zA-Z]{2,}$/).test(value)) {
return { error: message || "%s is not an email address" };

@@ -437,2 +437,2 @@ }

module.exports = Field;
module.exports = Field;
{
"author": "Dan Dean <@dandean> (http://dandean.com)",
"author": "Dan Dean (http://dandean.com)",
"name": "express-form",
"description": "Form validation and data filtering for Express",
"version": "0.12.4",
"version": "0.12.5",
"homepage": "http://dandean.github.com/express-form",

@@ -13,4 +13,4 @@ "repository": {

"Marc Harter <wavded@gmail.com>",
"Sugarstack <@sugarstack>",
"Sean Lavine <sean@eternalrise.com>"
"Sugarstack",
"Sean Lavine <lavis88@gmail.com>"
],

@@ -45,3 +45,3 @@ "keywords": [

"engines": {
"node": ">=0.8.0"
"node": ">=0.10.0"
},

@@ -48,0 +48,0 @@ "licenses": [

@@ -7,4 +7,2 @@ # express-form [![Build Status](https://travis-ci.org/freewil/express-form.svg?branch=master)](https://travis-ci.org/freewil/express-form)

* **Express 2** `npm install express-form@0.11.x`
* **Express 3, 4** `npm install express-form@0.12.x`

@@ -11,0 +9,0 @@

@@ -59,3 +59,4 @@ var assert = require("assert"),

"user-ok.yes+tag@host.k12.mi.us",
"FirstNameLastName2000@hotmail.com"
"FirstNameLastName2000@hotmail.com",
"FooBarEmail@foo.apartments"
];

@@ -62,0 +63,0 @@

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