@blotoutio/edgetag-sdk-js 0.36.0 → 0.36.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.
- package/index.cjs.js +15 -13
- package/index.mjs +15 -13
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -335,7 +335,7 @@ const getStandardPayload = (payload) => {
|
|
|
335
335
|
referrer: getReferrer(),
|
|
336
336
|
search: getSearch(),
|
|
337
337
|
locale: getLocale(),
|
|
338
|
-
sdkVersion: "0.36.
|
|
338
|
+
sdkVersion: "0.36.1" ,
|
|
339
339
|
...(payload || {}),
|
|
340
340
|
};
|
|
341
341
|
let storage = {};
|
|
@@ -901,18 +901,20 @@ const handleManifest = (manifest, consent) => {
|
|
|
901
901
|
}
|
|
902
902
|
});
|
|
903
903
|
}
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
904
|
+
if (pkg && pkg.name && pkg.init) {
|
|
905
|
+
/* this defines if the consent is given for a specific instance of a provider */
|
|
906
|
+
const hasConsent = hasUserConsent(consent, pkg.name, provider.tagName);
|
|
907
|
+
if (hasConsent) {
|
|
908
|
+
pkg.init({
|
|
909
|
+
userId,
|
|
910
|
+
manifest: provider,
|
|
911
|
+
sendTag,
|
|
912
|
+
sendEdgeData: handleData,
|
|
913
|
+
getEdgeData: handleGetData,
|
|
914
|
+
keyName: `${keyPrefix}Store`,
|
|
915
|
+
executionContext,
|
|
916
|
+
});
|
|
917
|
+
}
|
|
916
918
|
}
|
|
917
919
|
});
|
|
918
920
|
setInitialized();
|
package/index.mjs
CHANGED
|
@@ -333,7 +333,7 @@ const getStandardPayload = (payload) => {
|
|
|
333
333
|
referrer: getReferrer(),
|
|
334
334
|
search: getSearch(),
|
|
335
335
|
locale: getLocale(),
|
|
336
|
-
sdkVersion: "0.36.
|
|
336
|
+
sdkVersion: "0.36.1" ,
|
|
337
337
|
...(payload || {}),
|
|
338
338
|
};
|
|
339
339
|
let storage = {};
|
|
@@ -899,18 +899,20 @@ const handleManifest = (manifest, consent) => {
|
|
|
899
899
|
}
|
|
900
900
|
});
|
|
901
901
|
}
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
902
|
+
if (pkg && pkg.name && pkg.init) {
|
|
903
|
+
/* this defines if the consent is given for a specific instance of a provider */
|
|
904
|
+
const hasConsent = hasUserConsent(consent, pkg.name, provider.tagName);
|
|
905
|
+
if (hasConsent) {
|
|
906
|
+
pkg.init({
|
|
907
|
+
userId,
|
|
908
|
+
manifest: provider,
|
|
909
|
+
sendTag,
|
|
910
|
+
sendEdgeData: handleData,
|
|
911
|
+
getEdgeData: handleGetData,
|
|
912
|
+
keyName: `${keyPrefix}Store`,
|
|
913
|
+
executionContext,
|
|
914
|
+
});
|
|
915
|
+
}
|
|
914
916
|
}
|
|
915
917
|
});
|
|
916
918
|
setInitialized();
|