Comparing version 1.0.14 to 1.0.15
{ | ||
"name": "ab-models", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "", | ||
"main": "src/index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "node test/test.js" | ||
}, | ||
@@ -14,3 +14,6 @@ "author": "", | ||
"bcrypt-nodejs": "0.0.3" | ||
}, | ||
"devDependencies": { | ||
"mongoose": "^3.8.25" | ||
} | ||
} |
@@ -15,7 +15,7 @@ var mongoose = require('../mongoose.js')(); | ||
}, | ||
email { | ||
email: { | ||
type: String, | ||
required: true, | ||
trim: true, | ||
match: [/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/, 'Please fill a valid email address'] | ||
match: [/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/, 'Invalid email address'] | ||
}, | ||
@@ -22,0 +22,0 @@ modified: { type: Date, default: Date.now } |
Sorry, the diff of this file is not supported yet
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
9996
13
294
1
1