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 14.1.0 to 14.2.0

13

json.js

@@ -248,8 +248,15 @@ "use strict";

* If the user provided a non-object where an object was expected, assume it was meant to be the `name` property.
* For non-Terms, we assume it is the `id`.
* For Blank Nodes, we assume it is the `term.name`.
* For non-Term Nodes, we assume it is the `id`.
*
* @param value The value mapped as a Ref
*/
var schemaRefValue = function (value, schemaType) {
return typeof value === 'object' ? value : schemaType === schema_1.SchemaType.Term ? { name: value } : { id: value };
var schemaRefValue = function (value, type) {
return typeof value === 'object'
? value
: type === schema_1.SchemaType.Term
? { name: value }
: schema_1.isBlankNode({ type: type })
? { term: { name: value } }
: { id: value };
};

@@ -256,0 +263,0 @@ exports.cleanStringValue = function (value) { return (value.match(/^[\d]+\.[\d]+\.[\d]+$/) === null ? value.replace(/\.0$/, '') : value).trim(); };

{
"name": "@hestia-earth/schema-convert",
"version": "14.1.0",
"version": "14.2.0",
"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