@blotoutio/edgetag-sdk-js
Advanced tools
Comparing version 0.42.0 to 0.42.1
@@ -367,3 +367,3 @@ 'use strict'; | ||
locale: getLocale(), | ||
sdkVersion: "0.42.0" , | ||
sdkVersion: "0.42.1" , | ||
...(payload || {}), | ||
@@ -795,2 +795,3 @@ }; | ||
executionContext, | ||
session: null, | ||
}); | ||
@@ -922,6 +923,7 @@ } | ||
const handleManifest = (manifest, consent) => { | ||
const handleManifest = (response, consent) => { | ||
const providerPackages = getProvidersPackage(); | ||
const userId = handleGetUserId(); | ||
const executionContext = new Map(); | ||
const manifest = response.result; | ||
manifest.forEach((provider) => { | ||
@@ -947,2 +949,3 @@ addConfiguredTag(provider.package, provider.tagName); | ||
userId, | ||
session: response.session, | ||
baseUrl: getUrl(), | ||
@@ -1005,3 +1008,3 @@ manifest: provider, | ||
setIsNewUSer(result.isNewUser); | ||
handleManifest(result.result, consent || result.consent); | ||
handleManifest(result, consent || result.consent); | ||
try { | ||
@@ -1014,3 +1017,3 @@ window.dispatchEvent(new CustomEvent('edgetag-initialized', { | ||
consentSetting: result.consentSetting, | ||
isNewSession: result.isNewSession, | ||
session: result.session, | ||
}, | ||
@@ -1017,0 +1020,0 @@ })); |
@@ -1,2 +0,7 @@ | ||
import { Library, ProvidersConfig, UserConsent } from '@blotoutio/cdn/types' | ||
import { | ||
ConsentSetting, | ||
Library, | ||
ProvidersConfig, | ||
UserConsent, | ||
} from '@blotoutio/cdn/types' | ||
import { UserKey, Data } from './index' | ||
@@ -43,1 +48,12 @@ | ||
} | ||
type InitResponse = { | ||
result: Manifest[] | ||
userId?: string | ||
consent: UserConsent | ||
consentSetting: ConsentSetting | ||
isNewUser?: boolean | ||
session: { | ||
isNewSession: boolean | ||
} | ||
} |
{ | ||
"name": "@blotoutio/edgetag-sdk-js", | ||
"version": "0.42.0", | ||
"version": "0.42.1", | ||
"description": "JS SDK for EdgeTag", | ||
@@ -5,0 +5,0 @@ "author": "Blotout", |
Sorry, the diff of this file is not supported yet
68656
2314