@blotoutio/edgetag-sdk-browser 1.9.1 → 1.10.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.
Files changed (2) hide show
  1. package/index.js +4 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -922,7 +922,7 @@
922
922
  referrer: getReferrer(destination),
923
923
  search: getSearch(destination),
924
924
  locale: getLocale(),
925
- sdkVersion: "1.9.1" ,
925
+ sdkVersion: "1.10.1" ,
926
926
  ...(payload || {}),
927
927
  };
928
928
  let storage = {};
@@ -1100,6 +1100,7 @@
1100
1100
  const requestCountry = getSetting(destination, 'geoCountry') || null;
1101
1101
  const requestRegion = getSetting(destination, 'geoRegion') || null;
1102
1102
  const isEURequest = getSetting(destination, 'isEURequest') || false;
1103
+ const sessionId = getSetting(destination, 'sessionId');
1103
1104
  const userId = getUserId$1(destination);
1104
1105
  const providerData = {};
1105
1106
  const consent = getConsent$1(destination);
@@ -1137,6 +1138,7 @@
1137
1138
  : data;
1138
1139
  result[variable.tagName] = pkg.tag({
1139
1140
  userId,
1141
+ sessionId,
1140
1142
  eventName,
1141
1143
  eventId,
1142
1144
  data: JSON.parse(JSON.stringify(payload)),
@@ -1645,6 +1647,7 @@
1645
1647
  isNewUser: result.isNewUser,
1646
1648
  consent: getConsent$1(preferences.edgeURL) || result.consent,
1647
1649
  userId: result.userId,
1650
+ sessionId: result.session.sessionId,
1648
1651
  manifest: result.result,
1649
1652
  browserPackages: Object.values(providers),
1650
1653
  storageId: result.storageId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/edgetag-sdk-browser",
3
- "version": "1.9.1",
3
+ "version": "1.10.1",
4
4
  "description": "Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",