eservices-core 1.0.536 → 1.0.538

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.
@@ -4,6 +4,7 @@ export default class historyService {
4
4
  }
5
5
  export interface IParsedHistoryChanges extends IHistoryChanges {
6
6
  oldValue: IHistoryChanges['originalValue'];
7
+ name: IHistoryChanges['fieldName'];
7
8
  }
8
9
  export interface IParsedHistoryItemResponse {
9
10
  version: number;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * eservices-core v1.0.536
2
+ * eservices-core v1.0.538
3
3
  * (c) 2023 ESERVICES
4
4
  */
5
5
  'use strict';
@@ -2931,7 +2931,7 @@ class historyService {
2931
2931
  const newHistory = res.history.map(elem => {
2932
2932
  if (!elem.changes)
2933
2933
  return elem;
2934
- const newChanges = elem.changes.map((elem) => (Object.assign(Object.assign({}, elem), { oldValue: elem.originalValue })));
2934
+ const newChanges = elem.changes.map((elem) => (Object.assign(Object.assign({}, elem), { oldValue: elem.originalValue, name: elem.fieldName })));
2935
2935
  return Object.assign(Object.assign({}, elem), { changes: newChanges });
2936
2936
  });
2937
2937
  return Object.assign(Object.assign({}, res), { history: newHistory });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eservices-core",
3
- "version": "1.0.536",
3
+ "version": "1.0.538",
4
4
  "description": "Core library",
5
5
  "author": "",
6
6
  "scripts": {