monkey-front-core 0.0.450 → 0.0.451
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.
- package/esm2020/lib/core/utils/utils.mjs +15 -1
- package/fesm2015/monkey-front-core.mjs +11 -0
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +14 -0
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/utils/utils.d.ts +1 -0
- package/monkey-front-core-0.0.451.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.450.tgz +0 -0
|
@@ -380,6 +380,20 @@ class MonkeyEcxUtils {
|
|
|
380
380
|
});
|
|
381
381
|
return handled;
|
|
382
382
|
}
|
|
383
|
+
static trimValuesToSave(obj, fields) {
|
|
384
|
+
let ret = obj;
|
|
385
|
+
const grouped = fields.join('#');
|
|
386
|
+
Object.entries(obj).map(([key, value]) => {
|
|
387
|
+
if (grouped.includes(key)) {
|
|
388
|
+
ret = {
|
|
389
|
+
...ret,
|
|
390
|
+
[key]: `${value}`.trim()
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
return null;
|
|
394
|
+
});
|
|
395
|
+
return ret;
|
|
396
|
+
}
|
|
383
397
|
}
|
|
384
398
|
|
|
385
399
|
const moment$6 = moment_;
|