@blotoutio/edgetag-sdk-js 1.10.1 → 1.10.3

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
@@ -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.10.1" ,
924
+ sdkVersion: "1.10.3" ,
925
925
  ...(payload || {}),
926
926
  };
927
927
  let storage = {};
@@ -1623,6 +1623,9 @@ const handleInit = (preferences) => {
1623
1623
  if (dbIndex != null && !isNaN(dbIndex)) {
1624
1624
  url.searchParams.set('storageId', dbIndex.toString());
1625
1625
  }
1626
+ if (preferences.sessionId) {
1627
+ url.searchParams.set('sessionId', preferences.sessionId);
1628
+ }
1626
1629
  url.searchParams.set('pageUrl', getPageUrl(preferences.edgeURL));
1627
1630
  getRequest(url.href)
1628
1631
  .then((result) => {
package/index.d.ts CHANGED
@@ -47,6 +47,7 @@ export type InitPreferences = {
47
47
  providers?: ProviderInit[]
48
48
  afterManifestEvents?: Stub[]
49
49
  skipZeroPurchaseEvent?: boolean
50
+ sessionId?: string
50
51
  }
51
52
 
52
53
  export declare const init: (preferences: InitPreferences) => void
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.10.1" ,
922
+ sdkVersion: "1.10.3" ,
923
923
  ...(payload || {}),
924
924
  };
925
925
  let storage = {};
@@ -1621,6 +1621,9 @@ const handleInit = (preferences) => {
1621
1621
  if (dbIndex != null && !isNaN(dbIndex)) {
1622
1622
  url.searchParams.set('storageId', dbIndex.toString());
1623
1623
  }
1624
+ if (preferences.sessionId) {
1625
+ url.searchParams.set('sessionId', preferences.sessionId);
1626
+ }
1624
1627
  url.searchParams.set('pageUrl', getPageUrl(preferences.edgeURL));
1625
1628
  getRequest(url.href)
1626
1629
  .then((result) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/edgetag-sdk-js",
3
- "version": "1.10.1",
3
+ "version": "1.10.3",
4
4
  "description": "JS SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",