@blotoutio/edgetag-sdk-browser 0.46.0 → 0.46.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.
- package/index.js +4 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
referrer: getReferrer(),
|
|
375
375
|
search: getSearch(),
|
|
376
376
|
locale: getLocale(),
|
|
377
|
-
sdkVersion: "0.46.
|
|
377
|
+
sdkVersion: "0.46.1" ,
|
|
378
378
|
...(payload || {}),
|
|
379
379
|
};
|
|
380
380
|
let storage = {};
|
|
@@ -867,16 +867,17 @@
|
|
|
867
867
|
if (!value) {
|
|
868
868
|
return;
|
|
869
869
|
}
|
|
870
|
+
let updatedValue = value;
|
|
870
871
|
if (typeof value !== 'string') {
|
|
871
872
|
try {
|
|
872
|
-
|
|
873
|
+
updatedValue = JSON.stringify(value);
|
|
873
874
|
}
|
|
874
875
|
catch {
|
|
875
876
|
log('Error stringify value.');
|
|
876
877
|
return;
|
|
877
878
|
}
|
|
878
879
|
}
|
|
879
|
-
handleData({ [`${provider}::${key}`]:
|
|
880
|
+
handleData({ [`${provider}::${key}`]: updatedValue });
|
|
880
881
|
};
|
|
881
882
|
const handleCaptureQuery = (provider, key, persistType, map) => {
|
|
882
883
|
try {
|