@prismatic-io/spectral 8.0.4 → 8.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -132,10 +132,12 @@ const convertConfigVar = (key, configVar, referenceKey) => {
|
|
|
132
132
|
component: { key: referenceKey, version: "LATEST", isPublic: false },
|
|
133
133
|
key: (0, lodash_1.camelCase)(key),
|
|
134
134
|
}, inputs: Object.entries(configVar.inputs).reduce((result, [key, input]) => {
|
|
135
|
-
|
|
135
|
+
var _a;
|
|
136
|
+
if (input.shown === false) {
|
|
136
137
|
return result;
|
|
137
138
|
}
|
|
138
|
-
|
|
139
|
+
const value = ((_a = input.default) !== null && _a !== void 0 ? _a : input.collection) ? [] : "";
|
|
140
|
+
return Object.assign(Object.assign({}, result), { [key]: { type: "value", value } });
|
|
139
141
|
}, {}), meta });
|
|
140
142
|
}
|
|
141
143
|
const result = (0, lodash_1.assign)({ meta, key }, (0, lodash_1.pick)(configVar, [
|