@last-rev/adapter-contentful
Advanced tools
Comparing version 3.0.2-alpha.5 to 3.0.2-alpha.6
@@ -31,3 +31,4 @@ "use strict"; | ||
if (!manualUrl) { | ||
throw Error("DestinationType is " + manualEntryTypeText + ", but no URL has been entered"); | ||
console.warn("Bad content for " + contentTypeId + ": DestinationType is " + manualEntryTypeText + ", but no URL has been entered"); | ||
break; | ||
} | ||
@@ -38,3 +39,4 @@ href = manualUrl; | ||
if (!contentReference) { | ||
throw Error("DestinationType is " + contentRefTypeText + ", but no content reference is selected"); | ||
console.warn("Bad content for " + contentTypeId + ": DestinationType is " + contentRefTypeText + ", but no content reference is selected"); | ||
break; | ||
} | ||
@@ -53,3 +55,4 @@ var parsed = lodash_1.has(parsedEntries, contentReference.sys.id) | ||
if (!assetReference) { | ||
throw Error("DestinationType is " + assetRefTypeText + ", but no asset is selected"); | ||
console.warn("Bad content for " + contentTypeId + ": DestinationType is " + assetRefTypeText + ", but no asset is selected"); | ||
break; | ||
} | ||
@@ -56,0 +59,0 @@ (href = assetReference.fields.file.url); |
{ | ||
"name": "@last-rev/adapter-contentful", | ||
"version": "3.0.2-alpha.5", | ||
"version": "3.0.2-alpha.6", | ||
"description": "Transforms data from contentful's structure to one which is expected by LastRev components", | ||
@@ -48,3 +48,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "7c65d399012ac09c52ba65bdf46a76b938840080" | ||
"gitHead": "d2bb20501eae2ef9325d41f41cb95fc58e79ef44" | ||
} |
Sorry, the diff of this file is not supported yet
72591
1665