Comparing version 17.0.1 to 17.0.2
@@ -250,6 +250,6 @@ 'use strict'; | ||
else if (!Object.keys(schema).length) { // Allow none | ||
obj.$_terms.keys = []; | ||
obj.$_terms.keys = new internals.Keys(); | ||
} | ||
else { | ||
obj.$_terms.keys = obj.$_terms.keys ? obj.$_terms.keys.filter((child) => !schema.hasOwnProperty(child.key)) : []; | ||
obj.$_terms.keys = obj.$_terms.keys ? obj.$_terms.keys.filter((child) => !schema.hasOwnProperty(child.key)) : new internals.Keys(); | ||
for (const key in schema) { | ||
@@ -256,0 +256,0 @@ Common.tryWithPath(() => obj.$_terms.keys.push({ key, schema: this.$_compile(schema[key]) }), key); |
{ | ||
"name": "@hapi/joi", | ||
"description": "Object schema validation", | ||
"version": "17.0.1", | ||
"version": "17.0.2", | ||
"repository": "git://github.com/hapijs/joi", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
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
428578