Comparing version 0.2.1 to 0.2.2
# CHANGELOG | ||
## 0.2.2 | ||
* Improve example in README | ||
## 0.2.1 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "policeman", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Lightweight yet powerful schema validator", | ||
@@ -5,0 +5,0 @@ "main": "lib/policeman.js", |
@@ -31,3 +31,3 @@ # policeman | ||
// setup entry filter predicates | ||
const skipIfGift: Filter = (value: any, source: User) => source.gift === true; | ||
const isGift: Filter = (value, source) => source.gift === true; | ||
@@ -43,3 +43,3 @@ // define schema | ||
["name", "name", requiredValidator], // #3 | ||
["giftCode", "giftCode", requiredValidator, skipIfGift], // #4 | ||
["giftCode", "giftCode", requiredValidator, isGift], // #4 | ||
]; | ||
@@ -46,0 +46,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
713551