@prismatic-io/spectral 8.0.2 → 8.0.3
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.
|
@@ -215,8 +215,9 @@ const codeNativeIntegrationComponent = ({ name, iconPath, description, flows = [
|
|
|
215
215
|
if (!(0, types_1.isDataSourceConfigVar)(configVar)) {
|
|
216
216
|
return result;
|
|
217
217
|
}
|
|
218
|
+
const camelKey = (0, lodash_1.camelCase)(key);
|
|
218
219
|
const dataSource = (0, lodash_1.pick)(configVar, ["perform", "dataSourceType"]);
|
|
219
|
-
return Object.assign(Object.assign({}, result), { [
|
|
220
|
+
return Object.assign(Object.assign({}, result), { [camelKey]: Object.assign(Object.assign({}, dataSource), { key: camelKey, display: {
|
|
220
221
|
label: key,
|
|
221
222
|
description: key,
|
|
222
223
|
}, inputs: [] }) });
|