validate-promise
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "validate-promise", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Promised based validaation library", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -6,5 +6,4 @@ # validation-promise | ||
(still to do...) | ||
``` | ||
npm install validation-promise | ||
npm install validate-promise | ||
``` | ||
@@ -24,7 +23,7 @@ | ||
}]; | ||
var data = { | ||
age: '11' | ||
}; | ||
validate(contract, data) | ||
@@ -35,3 +34,3 @@ .then(() => { | ||
.catch(error => { | ||
// Validations failed - error is an object keyed on data keys, and containing an array of error messages. | ||
// Validations failed - error is an object keyed on data keys, and containing an array of error messages. | ||
}); | ||
@@ -38,0 +37,0 @@ ``` |
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
22163
44