@hapiboo/flux 1.1.2 → 1.1.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.
@@ -82,6 +82,14 @@ var fluxApplication;
82
82
  return undefined;
83
83
  }
84
84
  }
85
+ function processValue(column, value) {
86
+ if (column.type === 'S' && typeof value === 'string' && value.length === 0) {
87
+ return undefined;
88
+ }
89
+ else {
90
+ return value;
91
+ }
92
+ }
85
93
  function getModel(source) {
86
94
  const model = modelCache.get(source);
87
95
  if (!model) {
@@ -157,14 +165,16 @@ var fluxApplication;
157
165
  const values = new core_1.Dictionary();
158
166
  columns.forEach((col) => {
159
167
  const value = getValue(item, col.propertyKey);
160
- if (value !== undefined) {
161
- values.push(col.info.name, value);
168
+ const processed = processValue(col.info, value);
169
+ if (processed !== undefined) {
170
+ values.push(col.info.name, processed);
162
171
  }
163
172
  });
164
173
  calculatedColumns.forEach((col) => {
165
174
  const value = callValueFunction(item, col.methodKey);
166
- if (value !== undefined) {
167
- values.push(col.info.name, value);
175
+ const processed = processValue(col.info, value);
176
+ if (processed !== undefined) {
177
+ values.push(col.info.name, processed);
168
178
  }
169
179
  });
170
180
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hapiboo/flux",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "MK13 Studio Hapiboo Flux - Modular Application Services",
5
5
  "author": "MK13 Studio",
6
6
  "license": "ISC",