@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
- if (!input.shown || !input.default) {
135
+ var _a;
136
+ if (input.shown === false) {
136
137
  return result;
137
138
  }
138
- return Object.assign(Object.assign({}, result), { [key]: { type: "value", value: input.default } });
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, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/spectral",
3
- "version": "8.0.4",
3
+ "version": "8.0.5",
4
4
  "description": "Utility library for building Prismatic components",
5
5
  "keywords": [
6
6
  "prismatic"