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

async-validate

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-validate - npm Package Compare versions

Comparing version 0.1.21 to 0.1.22

5

lib/error.js

@@ -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);

8

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