@blotoutio/edgetag-sdk-js 1.7.0 → 1.7.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.cjs.js +8 -2
- package/index.d.ts +1 -0
- package/index.mjs +8 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -921,7 +921,7 @@ const getStandardPayload = (destination, payload) => {
|
|
|
921
921
|
referrer: getReferrer(destination),
|
|
922
922
|
search: getSearch(destination),
|
|
923
923
|
locale: getLocale(),
|
|
924
|
-
sdkVersion: "1.7.
|
|
924
|
+
sdkVersion: "1.7.1" ,
|
|
925
925
|
...(payload || {}),
|
|
926
926
|
};
|
|
927
927
|
let storage = {};
|
|
@@ -1611,7 +1611,13 @@ const handleInit = (preferences) => {
|
|
|
1611
1611
|
if (fallbackId) {
|
|
1612
1612
|
url.searchParams.set('fallbackUserId', fallbackId);
|
|
1613
1613
|
}
|
|
1614
|
-
|
|
1614
|
+
let dbIndex;
|
|
1615
|
+
if (preferences.storageId != null) {
|
|
1616
|
+
dbIndex = preferences.storageId;
|
|
1617
|
+
}
|
|
1618
|
+
else {
|
|
1619
|
+
dbIndex = getDataPerKey(preferences.edgeURL, 'local', tagStorage, storageIdKey);
|
|
1620
|
+
}
|
|
1615
1621
|
if (dbIndex != null && !isNaN(dbIndex)) {
|
|
1616
1622
|
url.searchParams.set('storageId', dbIndex.toString());
|
|
1617
1623
|
}
|
package/index.d.ts
CHANGED
package/index.mjs
CHANGED
|
@@ -919,7 +919,7 @@ const getStandardPayload = (destination, payload) => {
|
|
|
919
919
|
referrer: getReferrer(destination),
|
|
920
920
|
search: getSearch(destination),
|
|
921
921
|
locale: getLocale(),
|
|
922
|
-
sdkVersion: "1.7.
|
|
922
|
+
sdkVersion: "1.7.1" ,
|
|
923
923
|
...(payload || {}),
|
|
924
924
|
};
|
|
925
925
|
let storage = {};
|
|
@@ -1609,7 +1609,13 @@ const handleInit = (preferences) => {
|
|
|
1609
1609
|
if (fallbackId) {
|
|
1610
1610
|
url.searchParams.set('fallbackUserId', fallbackId);
|
|
1611
1611
|
}
|
|
1612
|
-
|
|
1612
|
+
let dbIndex;
|
|
1613
|
+
if (preferences.storageId != null) {
|
|
1614
|
+
dbIndex = preferences.storageId;
|
|
1615
|
+
}
|
|
1616
|
+
else {
|
|
1617
|
+
dbIndex = getDataPerKey(preferences.edgeURL, 'local', tagStorage, storageIdKey);
|
|
1618
|
+
}
|
|
1613
1619
|
if (dbIndex != null && !isNaN(dbIndex)) {
|
|
1614
1620
|
url.searchParams.set('storageId', dbIndex.toString());
|
|
1615
1621
|
}
|