jsonpolice
Advanced tools
Comparing version 8.2.1 to 8.2.2
@@ -128,3 +128,3 @@ "use strict"; | ||
} | ||
else if (!spec.enum.find((v) => _.isEqual(v, data))) { | ||
else if (typeof spec.enum.find((v) => _.isEqual(v, data)) === 'undefined') { | ||
throw new errors_1.ValidationError(path, Schema.scope(spec), 'enum'); | ||
@@ -131,0 +131,0 @@ } |
{ | ||
"name": "jsonpolice", | ||
"version": "8.2.1", | ||
"version": "8.2.2", | ||
"description": "JSON Schema parser and validator", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
41924
1