@blotoutio/edgetag-sdk-js 1.45.1 → 1.46.0

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
@@ -998,6 +998,10 @@ const getInitData = (edgeURL, manifestResult) => ({
998
998
  consentCategories: manifestResult.consentCategories,
999
999
  consentSetting: manifestResult.consentSetting,
1000
1000
  session: manifestResult.session,
1001
+ geoCountry: manifestResult.geoCountry,
1002
+ geoRegion: manifestResult.geoRegion,
1003
+ userIP: manifestResult.ip,
1004
+ isEURequest: manifestResult.isEURequest,
1001
1005
  });
1002
1006
  const updateUserProperties = (destination, data) => {
1003
1007
  const latestUserProperties = {};
@@ -1306,7 +1310,7 @@ const getStandardPayload = (destination, payload) => {
1306
1310
  referrer: getReferrer(destination),
1307
1311
  search: getSearch(destination),
1308
1312
  locale: getLocale(),
1309
- sdkVersion: "1.45.1" ,
1313
+ sdkVersion: "1.46.0" ,
1310
1314
  ...(payload || {}),
1311
1315
  };
1312
1316
  let storage = {};
@@ -2052,6 +2056,10 @@ const onReady = async (data) => {
2052
2056
  consent: data.consent,
2053
2057
  consentCategories: data.consentCategories,
2054
2058
  consentSetting: data.consentSetting,
2059
+ geoCountry: data.geoCountry,
2060
+ geoRegion: data.geoRegion,
2061
+ userIP: data.userIP,
2062
+ isEURequest: data.isEURequest,
2055
2063
  };
2056
2064
  resolved.add(callbackData);
2057
2065
  await Promise.all([...callbacks].map(mapData(callbackData)));
package/index.mjs CHANGED
@@ -996,6 +996,10 @@ const getInitData = (edgeURL, manifestResult) => ({
996
996
  consentCategories: manifestResult.consentCategories,
997
997
  consentSetting: manifestResult.consentSetting,
998
998
  session: manifestResult.session,
999
+ geoCountry: manifestResult.geoCountry,
1000
+ geoRegion: manifestResult.geoRegion,
1001
+ userIP: manifestResult.ip,
1002
+ isEURequest: manifestResult.isEURequest,
999
1003
  });
1000
1004
  const updateUserProperties = (destination, data) => {
1001
1005
  const latestUserProperties = {};
@@ -1304,7 +1308,7 @@ const getStandardPayload = (destination, payload) => {
1304
1308
  referrer: getReferrer(destination),
1305
1309
  search: getSearch(destination),
1306
1310
  locale: getLocale(),
1307
- sdkVersion: "1.45.1" ,
1311
+ sdkVersion: "1.46.0" ,
1308
1312
  ...(payload || {}),
1309
1313
  };
1310
1314
  let storage = {};
@@ -2050,6 +2054,10 @@ const onReady = async (data) => {
2050
2054
  consent: data.consent,
2051
2055
  consentCategories: data.consentCategories,
2052
2056
  consentSetting: data.consentSetting,
2057
+ geoCountry: data.geoCountry,
2058
+ geoRegion: data.geoRegion,
2059
+ userIP: data.userIP,
2060
+ isEURequest: data.isEURequest,
2053
2061
  };
2054
2062
  resolved.add(callbackData);
2055
2063
  await Promise.all([...callbacks].map(mapData(callbackData)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/edgetag-sdk-js",
3
- "version": "1.45.1",
3
+ "version": "1.46.0",
4
4
  "description": "JS SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",