@blotoutio/edgetag-sdk-browser 0.22.2 → 0.23.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.
Files changed (2) hide show
  1. package/index.js +5 -1
  2. 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.2" ,
516
+ sdkVersion: "0.23.0" ,
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/edgetag-sdk-browser",
3
- "version": "0.22.2",
3
+ "version": "0.23.0",
4
4
  "description": "Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",