@blocklet/meta
Advanced tools
Comparing version 1.0.32 to 1.0.33-beta.0
@@ -175,3 +175,3 @@ /* eslint-disable prefer-destructuring */ | ||
const fixInterfaces = (meta) => { | ||
const fixInterfaces = (meta, removeMerged = true) => { | ||
if (!Array.isArray(meta.interfaces)) { | ||
@@ -181,2 +181,6 @@ meta.interfaces = []; | ||
if (meta.interfaces.length) { | ||
return meta; | ||
} | ||
const supportDynamicPathPrefix = get(meta, 'capabilities.dynamicPathPrefix', true); | ||
@@ -217,8 +221,10 @@ const prefix = supportDynamicPathPrefix ? BLOCKLET_DYNAMIC_PATH_PREFIX : '/'; | ||
delete meta.publicUrl; | ||
delete meta.adminUrl; | ||
delete meta.configUrl; | ||
delete meta.docUrl; | ||
delete meta.exposeServices; | ||
delete meta.capabilities; | ||
if (removeMerged) { | ||
delete meta.publicUrl; | ||
delete meta.adminUrl; | ||
delete meta.configUrl; | ||
delete meta.docUrl; | ||
delete meta.exposeServices; | ||
delete meta.capabilities; | ||
} | ||
@@ -225,0 +231,0 @@ return meta; |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "1.0.32", | ||
"version": "1.0.33-beta.0", | ||
"description": "Library to parse/validate/fix blocklet meta", | ||
@@ -9,0 +9,0 @@ "main": "lib/index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
29076
818
2