@blotoutio/edgetag-sdk-browser 0.22.2 → 0.22.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.js +5 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -277,6 +277,9 @@
|
|
|
277
277
|
}
|
|
278
278
|
return true;
|
|
279
279
|
};
|
|
280
|
+
const checkProviderConsent = (providerId) => {
|
|
281
|
+
return checkConsent({ [providerId]: true });
|
|
282
|
+
};
|
|
280
283
|
|
|
281
284
|
const tagStorage = 'edgeTag';
|
|
282
285
|
const consentKey = 'consent';
|
|
@@ -510,7 +513,7 @@
|
|
|
510
513
|
referrer: getReferrer(),
|
|
511
514
|
search: getSearch(),
|
|
512
515
|
locale: getLocale(),
|
|
513
|
-
sdkVersion: "0.22.
|
|
516
|
+
sdkVersion: "0.22.3" ,
|
|
514
517
|
...(payload || {}),
|
|
515
518
|
};
|
|
516
519
|
let storage = {};
|
|
@@ -653,6 +656,7 @@
|
|
|
653
656
|
if (!pkg ||
|
|
654
657
|
!pkg.name ||
|
|
655
658
|
!pkg.tag ||
|
|
659
|
+
!checkProviderConsent(pkg.name) ||
|
|
656
660
|
!allowProviderWithConsent(providers, pkg.name)) {
|
|
657
661
|
return;
|
|
658
662
|
}
|