@blotoutio/edgetag-sdk-js 0.42.1 → 0.43.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
@@ -364,7 +364,7 @@ const getStandardPayload = (payload) => {
364
364
  referrer: getReferrer(),
365
365
  search: getSearch(),
366
366
  locale: getLocale(),
367
- sdkVersion: "0.42.1" ,
367
+ sdkVersion: "0.43.0" ,
368
368
  ...(payload || {}),
369
369
  };
370
370
  let storage = {};
@@ -780,6 +780,7 @@ const handleConsent = (consent, options) => {
780
780
  }
781
781
  pkg.init({
782
782
  userId,
783
+ isNewUser: false,
783
784
  baseUrl: getUrl(),
784
785
  manifest: {
785
786
  tagName,
@@ -943,6 +944,7 @@ const handleManifest = (response, consent) => {
943
944
  if (hasConsent) {
944
945
  pkg.init({
945
946
  userId,
947
+ isNewUser: !!response.isNewUser,
946
948
  session: response.session,
947
949
  baseUrl: getUrl(),
948
950
  manifest: provider,
package/index.mjs CHANGED
@@ -362,7 +362,7 @@ const getStandardPayload = (payload) => {
362
362
  referrer: getReferrer(),
363
363
  search: getSearch(),
364
364
  locale: getLocale(),
365
- sdkVersion: "0.42.1" ,
365
+ sdkVersion: "0.43.0" ,
366
366
  ...(payload || {}),
367
367
  };
368
368
  let storage = {};
@@ -778,6 +778,7 @@ const handleConsent = (consent, options) => {
778
778
  }
779
779
  pkg.init({
780
780
  userId,
781
+ isNewUser: false,
781
782
  baseUrl: getUrl(),
782
783
  manifest: {
783
784
  tagName,
@@ -941,6 +942,7 @@ const handleManifest = (response, consent) => {
941
942
  if (hasConsent) {
942
943
  pkg.init({
943
944
  userId,
945
+ isNewUser: !!response.isNewUser,
944
946
  session: response.session,
945
947
  baseUrl: getUrl(),
946
948
  manifest: provider,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/edgetag-sdk-js",
3
- "version": "0.42.1",
3
+ "version": "0.43.0",
4
4
  "description": "JS SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",