@widergy/mobile-ui 1.36.6 → 1.36.7

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.36.7](https://github.com/widergy/mobile-ui/compare/v1.36.6...v1.36.7) (2025-03-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * fix on singleEventMultitracking ([#417](https://github.com/widergy/mobile-ui/issues/417)) ([982aa13](https://github.com/widergy/mobile-ui/commit/982aa13e59a179e9700f4425bbb19d3114860f2a))
7
+
1
8
  ## [1.36.6](https://github.com/widergy/mobile-ui/compare/v1.36.5...v1.36.6) (2025-03-06)
2
9
 
3
10
 
@@ -4,7 +4,9 @@
4
4
  * VERSION 5.X.X ONLY, version 6.x.x introduces breaking changes
5
5
  * */
6
6
 
7
- import { isEmpty, merge } from 'lodash';
7
+ import merge from 'lodash/merge';
8
+ import isEmpty from 'lodash/isEmpty';
9
+ import cloneDeep from 'lodash/cloneDeep';
8
10
  import uuid from 'react-native-uuid';
9
11
 
10
12
  const LOG_EVENT = 'LOG_EVENT';
@@ -127,7 +129,7 @@ export const singleArgosEvent = sendArgosAnalytics => eventData => {
127
129
  };
128
130
 
129
131
  export const singleEventMultitracking = (trackers, eventDefinitions) => (name, eventData) => {
130
- const mergedData = merge(eventDefinitions[name] || {}, eventData || {});
132
+ const mergedData = merge(cloneDeep(eventDefinitions[name] || {}), eventData || {});
131
133
  const { sharedProps, ...trackerProps } = mergedData;
132
134
  const trackersArray = Object.keys(mergedData);
133
135
  if (!isEmpty(trackers))
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@widergy/mobile-ui",
3
3
  "description": "Widergy Mobile Components",
4
4
  "author": "widergy",
5
- "version": "1.36.6",
5
+ "version": "1.36.7",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [