@blotoutio/edgetag-sdk-js 0.64.0 → 0.65.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 CHANGED
@@ -562,7 +562,7 @@ const getStandardPayload = (destination, payload) => {
562
562
  referrer: getReferrer(destination),
563
563
  search: getSearch(destination),
564
564
  locale: getLocale(),
565
- sdkVersion: "0.64.0" ,
565
+ sdkVersion: "0.65.1" ,
566
566
  ...(payload || {}),
567
567
  };
568
568
  let storage = {};
@@ -1158,6 +1158,10 @@ const handleInit = (preferences) => {
1158
1158
  if (fallbackId) {
1159
1159
  url.searchParams.set('fallbackUserId', fallbackId);
1160
1160
  }
1161
+ const dbIndex = getDataPerKey(preferences.edgeURL, 'local', tagStorage, storageIdKey);
1162
+ if (dbIndex != null && !isNaN(dbIndex)) {
1163
+ url.searchParams.set('storageId', dbIndex.toString());
1164
+ }
1161
1165
  getRequest(url.href)
1162
1166
  .then((result) => {
1163
1167
  var _a;
package/index.mjs CHANGED
@@ -560,7 +560,7 @@ const getStandardPayload = (destination, payload) => {
560
560
  referrer: getReferrer(destination),
561
561
  search: getSearch(destination),
562
562
  locale: getLocale(),
563
- sdkVersion: "0.64.0" ,
563
+ sdkVersion: "0.65.1" ,
564
564
  ...(payload || {}),
565
565
  };
566
566
  let storage = {};
@@ -1156,6 +1156,10 @@ const handleInit = (preferences) => {
1156
1156
  if (fallbackId) {
1157
1157
  url.searchParams.set('fallbackUserId', fallbackId);
1158
1158
  }
1159
+ const dbIndex = getDataPerKey(preferences.edgeURL, 'local', tagStorage, storageIdKey);
1160
+ if (dbIndex != null && !isNaN(dbIndex)) {
1161
+ url.searchParams.set('storageId', dbIndex.toString());
1162
+ }
1159
1163
  getRequest(url.href)
1160
1164
  .then((result) => {
1161
1165
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/edgetag-sdk-js",
3
- "version": "0.64.0",
3
+ "version": "0.65.1",
4
4
  "description": "JS SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",