simpl-schema
Advanced tools
Comparing version 1.12.1 to 1.12.2
@@ -1241,2 +1241,6 @@ "use strict"; | ||
if (typeof definition.required === 'function') { | ||
// Save a reference to the `required` fn because | ||
// we are going to delete it from `definition` below | ||
var requiredFn = definition.required; | ||
definition.optional = function optional() { | ||
@@ -1247,3 +1251,3 @@ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { | ||
return !definition.required.apply(this, args); | ||
return !requiredFn.apply(this, args); | ||
}; | ||
@@ -1250,0 +1254,0 @@ } else { |
{ | ||
"name": "simpl-schema", | ||
"version": "1.12.1", | ||
"version": "1.12.2", | ||
"description": "A schema validation package that supports direct validation of MongoDB update modifier objects.", | ||
@@ -5,0 +5,0 @@ "author": "Eric Dobbertin <aldeed@gmail.com>", |
Sorry, the diff of this file is not supported yet
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
209136
2987