@hestia-earth/schema-convert
Advanced tools
Comparing version 7.6.5 to 7.6.6
@@ -212,3 +212,3 @@ "use strict"; | ||
propertyTypeToValue[items.type](val, schemas, items, _i)) : val; })) | ||
.filter(function (val) { return !utils_1.isEmpty(val); }); | ||
.filter(function (val) { return !isEmptyValue(val, schemas); }); | ||
}, | ||
@@ -292,6 +292,6 @@ // try to determine the type automatically | ||
}, | ||
_a.array = function (value, schemas) { return value.every(function (val) { return isEmptyValue(val, schemas); }); }, | ||
_a.array = function (value) { return value.filter(function (v) { return !utils_1.isEmpty(v); }).length === 0; }, | ||
_a.object = function (value, schemas) { | ||
return Array.isArray(value) ? | ||
isEmptyValueType.array(value, schemas) : | ||
isEmptyValueType.array(value) : | ||
(value['@type'] || value.type) === schema_1.SchemaType.Term ? | ||
@@ -301,3 +301,3 @@ isEmptyValueType[schema_1.SchemaType.Term](value) : | ||
isEmptyValueType.BlankNode(value, schemas) : | ||
false; | ||
Object.keys(value).length === 0; | ||
}, | ||
@@ -304,0 +304,0 @@ _a); |
{ | ||
"name": "@hestia-earth/schema-convert", | ||
"version": "7.6.5", | ||
"version": "7.6.6", | ||
"description": "Hestia Schema Converters", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
47525