Comparing version 4.2.2 to 4.2.3
{ | ||
"name": "z-schema", | ||
"version": "4.2.2", | ||
"version": "4.2.3", | ||
"engines": { | ||
@@ -71,3 +71,3 @@ "node": ">=6.0.0" | ||
"lodash.isequal": "^4.5.0", | ||
"validator": "^11.0.0" | ||
"validator": "^12.0.0" | ||
}, | ||
@@ -74,0 +74,0 @@ "optionalDependencies": { |
@@ -84,3 +84,3 @@ "use strict"; | ||
var valid = self.errors.length === 0, | ||
err = valid ? undefined : self.errors; | ||
err = valid ? null : self.errors; | ||
callback(err, valid); | ||
@@ -87,0 +87,0 @@ }); |
@@ -57,3 +57,3 @@ "use strict"; | ||
breakOnFirstError: true, | ||
// check if schema follow best practices and common sence | ||
// check if schema follows best practices and common sense | ||
pedanticCheck: false, | ||
@@ -268,3 +268,3 @@ // ignore unknown formats (do not report them as an error) | ||
ZSchema.prototype.getLastErrors = function () { | ||
return this.lastReport && this.lastReport.errors.length > 0 ? this.lastReport.errors : undefined; | ||
return this.lastReport && this.lastReport.errors.length > 0 ? this.lastReport.errors : null; | ||
}; | ||
@@ -271,0 +271,0 @@ ZSchema.prototype.getMissingReferences = function (arr) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1561695
36300
+ Addedvalidator@12.2.0(transitive)
- Removedvalidator@11.1.0(transitive)
Updatedvalidator@^12.0.0