async-validate
Advanced tools
Comparing version 0.1.21 to 0.1.22
@@ -6,6 +6,5 @@ var util = require('util'); | ||
*/ | ||
var ValidationError = module.exports = function(msg, constr) { | ||
Error.captureStackTrace(this, constr || this) | ||
var ValidationError = module.exports = function (msg) { | ||
this.message = msg || this.name; | ||
} | ||
}; | ||
@@ -12,0 +11,0 @@ util.inherits(ValidationError, Error); |
{ | ||
"name": "async-validate", | ||
"description": "Asynchronous validation for object properties.", | ||
"version": "0.1.21", | ||
"version": "0.1.22", | ||
"author": "muji <noop@xpm.io>", | ||
@@ -21,3 +21,3 @@ "repository": { | ||
"async": "~0.9.0", | ||
"moment": "~2.8.3" | ||
"moment": "~2.8.4" | ||
}, | ||
@@ -27,5 +27,5 @@ "devDependencies": { | ||
"istanbul": "~0.3.2", | ||
"mocha": "~1.21.4", | ||
"validator": "~3.19.0" | ||
"mocha": "~2.0.1", | ||
"validator": "~3.22.1" | ||
} | ||
} |
@@ -121,3 +121,3 @@ # async-validate | ||
function(rule, value, callback, source, options) { | ||
var errors = []; | ||
var errors = []; | ||
// test if email address already exists in a database | ||
@@ -402,4 +402,10 @@ // and add a validation error to the errors array if it does | ||
## Browser Support | ||
![Chrome](https://cloud.githubusercontent.com/assets/398893/3528328/23bc7bc4-078e-11e4-8752-ba2809bf5cce.png) | ![Firefox](https://cloud.githubusercontent.com/assets/398893/3528329/26283ab0-078e-11e4-84d4-db2cf1009953.png) | ![Opera](https://cloud.githubusercontent.com/assets/398893/3528330/27ec9fa8-078e-11e4-95cb-709fd11dac16.png) | ![Safari](https://cloud.githubusercontent.com/assets/398893/3528331/29df8618-078e-11e4-8e3e-ed8ac738693f.png) | ||
--- | --- | --- | --- | ||
Latest ✔ (tested on 39) | Latest ✔ (tested on 33) | Latest ✔ (tested on 25) | Latest ✔ (tested on 8) | ||
## License | ||
Everything is [MIT](http://en.wikipedia.org/wiki/MIT_License). Read the [license](/LICENSE) if you feel inclined. |
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
82422
410
1933
Updatedmoment@~2.8.4