Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hestia-earth/schema-convert

Package Overview
Dependencies
Maintainers
1
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hestia-earth/schema-convert - npm Package Compare versions

Comparing version 7.7.0 to 7.7.1

41

json.js

@@ -113,2 +113,24 @@ "use strict";

var nonEmptyCell = function (value) { return !isEmptyCell(value); };
var isEmptyValueType = (_a = {
undefined: function () { return true; },
number: function (value) { return isNaN(value); }
},
_a[schema_1.SchemaType.Term] = function (value) { return !(value['@id'] || value.id || value.name); },
_a.BlankNode = function (value, schemas) {
return Object.values(value).filter(function (value) { return !utils_1.isEmpty(value); }).length <= schemaMinKeys(schemas, value);
},
_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) :
(value['@type'] || value.type) === schema_1.SchemaType.Term ?
isEmptyValueType[schema_1.SchemaType.Term](value) :
schema_1.isBlankNode(value) ?
isEmptyValueType.BlankNode(value, schemas) :
Object.keys(value).length === 0;
},
_a);
var isEmptyValue = function (value, schemas) {
return (typeof value) in isEmptyValueType ? isEmptyValueType[typeof value](value, schemas) : isEmptyCell(value);
};
var compileFullKey = function (key1, key2) {

@@ -287,21 +309,2 @@ // handle arrays

};
var isEmptyValueType = (_a = {},
_a[schema_1.SchemaType.Term] = function (value) { return !(value['@id'] || value.id || value.name); },
_a.BlankNode = function (value, schemas) {
return Object.values(value).filter(function (value) { return !utils_1.isEmpty(value); }).length <= schemaMinKeys(schemas, value);
},
_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) :
(value['@type'] || value.type) === schema_1.SchemaType.Term ?
isEmptyValueType[schema_1.SchemaType.Term](value) :
schema_1.isBlankNode(value) ?
isEmptyValueType.BlankNode(value, schemas) :
Object.keys(value).length === 0;
},
_a);
var isEmptyValue = function (value, schemas) {
return (typeof value) in isEmptyValueType ? isEmptyValueType[typeof value](value, schemas) : isEmptyCell(value);
};
var mapContent = function (schemas, schema, ignoreInternal) { return function (json) {

@@ -308,0 +311,0 @@ return Object.keys(json)

{
"name": "@hestia-earth/schema-convert",
"version": "7.7.0",
"version": "7.7.1",
"description": "Hestia Schema Converters",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc