@prismatic-io/spectral 7.0.11-pre → 7.0.12-pre

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.
@@ -34,16 +34,18 @@ const convertAction = (actionKey, _a, hooks) => {
34
34
  const convertTrigger = (triggerKey, _a, hooks) => {
35
35
  var { inputs = {}, perform } = _a, trigger = __rest(_a, ["inputs", "perform"]);
36
36
  const convertedInputs = Object.entries(inputs).map(([key, value]) => convertInput(key, value));
37
+ const inputCleaners = Object.entries(inputs).reduce((result, [key, { clean }]) => (Object.assign(Object.assign({}, result), { [key]: clean })), {});
37
38
  return Object.assign(Object.assign({}, trigger), { key: triggerKey, inputs: convertedInputs, perform: (0, perform_1.createPerform)(perform, {
38
- inputCleaners: {},
39
+ inputCleaners,
39
40
  errorHandler: hooks === null || hooks === void 0 ? void 0 : hooks.error,
40
41
  }) });
41
42
  };
42
43
  const convertDataSource = (dataSourceKey, _a, hooks) => {
43
44
  var { inputs = {}, perform } = _a, dataSource = __rest(_a, ["inputs", "perform"]);
44
45
  const convertedInputs = Object.entries(inputs).map(([key, value]) => convertInput(key, value));
46
+ const inputCleaners = Object.entries(inputs).reduce((result, [key, { clean }]) => (Object.assign(Object.assign({}, result), { [key]: clean })), {});
45
47
  return Object.assign(Object.assign({}, dataSource), { key: dataSourceKey, inputs: convertedInputs, perform: (0, perform_1.createPerform)(perform, {
46
- inputCleaners: {},
48
+ inputCleaners,
47
49
  errorHandler: hooks === null || hooks === void 0 ? void 0 : hooks.error,
48
50
  }) });
49
51
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/spectral",
3
- "version": "7.0.11-pre",
3
+ "version": "7.0.12-pre",
4
4
  "description": "Utility library for building Prismatic components",
5
5
  "keywords": [
6
6
  "prismatic"