@contentful/visual-sdk
Advanced tools
Comparing version 1.0.0-alpha.38 to 1.0.0-alpha.39
@@ -36,6 +36,5 @@ "use strict"; | ||
getValue(entityLink, path) { | ||
entityLink.sys.type; | ||
const entity = this.getEntity(entityLink.sys.linkType, entityLink.sys.id); | ||
if (!entity) { | ||
console.warn(`Unresolved entity reference: ${entityLink}`); | ||
console.warn(`Unresolved entity reference: ${entityLink.sys.linkType} with ID ${entityLink.sys.id}`); | ||
return; | ||
@@ -42,0 +41,0 @@ } |
@@ -26,6 +26,5 @@ function _define_property(obj, key, value) { | ||
getValue(entityLink, path) { | ||
entityLink.sys.type; | ||
const entity = this.getEntity(entityLink.sys.linkType, entityLink.sys.id); | ||
if (!entity) { | ||
console.warn(`Unresolved entity reference: ${entityLink}`); | ||
console.warn(`Unresolved entity reference: ${entityLink.sys.linkType} with ID ${entityLink.sys.id}`); | ||
return; | ||
@@ -32,0 +31,0 @@ } |
@@ -38,7 +38,6 @@ import { get } from './utils'; | ||
getValue(entityLink, path) { | ||
entityLink.sys.type; | ||
const entity = this.getEntity(entityLink.sys.linkType, entityLink.sys.id); | ||
if (!entity) { | ||
// TODO: move to `debug` utils once it is extracted | ||
console.warn(`Unresolved entity reference: ${entityLink}`); | ||
console.warn(`Unresolved entity reference: ${entityLink.sys.linkType} with ID ${entityLink.sys.id}`); | ||
return; | ||
@@ -45,0 +44,0 @@ } |
{ | ||
"name": "@contentful/visual-sdk", | ||
"author": "Contentful GmbH", | ||
"version": "1.0.0-alpha.38", | ||
"version": "1.0.0-alpha.39", | ||
"description": "Base SDK for building a visual SDK with contentful", | ||
@@ -59,3 +59,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "c2ad0d60e2ab2ec6f0565d58a569d53525f5258b" | ||
"gitHead": "1d5c010c20ea12ba3053665a016b1a9d67b31ce7" | ||
} |
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
75642
2098