@applicaster/zapp-react-native-utils 14.0.4 → 14.0.5-rc.1
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.
|
@@ -63,10 +63,14 @@ class StateHolder {
|
|
|
63
63
|
return value as string;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
public get analyticsCustomPropertiesConsumed(): boolean {
|
|
67
|
+
return this._cap !== undefined;
|
|
68
|
+
}
|
|
69
|
+
|
|
66
70
|
private acp(prefix: string, suffix: string): string | null {
|
|
67
71
|
if (this._cap === undefined) {
|
|
68
|
-
this._cap = this.
|
|
69
|
-
? JSON.parse(this.
|
|
72
|
+
this._cap = this.event.params[prefix]
|
|
73
|
+
? JSON.parse(this.event.params[prefix])
|
|
70
74
|
: null;
|
|
71
75
|
|
|
72
76
|
delete this.pluckedParams[prefix];
|
|
@@ -254,6 +258,10 @@ export class Mapper {
|
|
|
254
258
|
|
|
255
259
|
let params = resultParams.size ? Object.fromEntries(resultParams) : {};
|
|
256
260
|
|
|
261
|
+
if (state.analyticsCustomPropertiesConsumed) {
|
|
262
|
+
delete params[sourceType.analyticsCustomProperties];
|
|
263
|
+
}
|
|
264
|
+
|
|
257
265
|
// deal with the remaining params
|
|
258
266
|
if (!isEmptyOrNil(state.pluckedParams)) {
|
|
259
267
|
if (rule.strategy) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-utils",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.5-rc.1",
|
|
4
4
|
"description": "Applicaster Zapp React Native utilities package",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@applicaster/applicaster-types": "14.0.
|
|
30
|
+
"@applicaster/applicaster-types": "14.0.5-rc.1",
|
|
31
31
|
"buffer": "^5.2.1",
|
|
32
32
|
"camelize": "^1.0.0",
|
|
33
33
|
"dayjs": "^1.11.10",
|