@blotoutio/providers-bing-sdk 1.43.0 → 1.45.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
@@ -11,8 +11,8 @@ const hasUserConsentForProvider = (consent, provider) => {
11
11
  var _a, _b;
12
12
  let allowed = false;
13
13
  if (isRecord(consent === null || consent === void 0 ? void 0 : consent.consent)) {
14
- allowed = isBool(consent.consent.all) ? consent.consent.all : false;
15
- if (provider in consent) {
14
+ allowed = isBool(consent.consent['all']) ? consent.consent['all'] : false;
15
+ if (provider in consent.consent) {
16
16
  const providerSpecific = consent.consent[provider];
17
17
  if (isBool(providerSpecific)) {
18
18
  allowed = providerSpecific;
@@ -24,7 +24,9 @@ const hasUserConsentForProvider = (consent, provider) => {
24
24
  }
25
25
  if (isRecord(consent.categories) &&
26
26
  isRecord((_a = consent.consentSettings) === null || _a === void 0 ? void 0 : _a.channels)) {
27
- allowed = isBool(consent.categories.all) ? consent.categories.all : false;
27
+ allowed = isBool(consent.categories['all'])
28
+ ? consent.categories['all']
29
+ : false;
28
30
  const category = (_b = Object.entries(consent.consentSettings.channels).find(([, value]) => {
29
31
  return value.includes(provider);
30
32
  })) === null || _b === void 0 ? void 0 : _b[0];
@@ -537,7 +539,7 @@ const handleTag = ({ data, eventName, manifestVariables, }) => {
537
539
 
538
540
  const tag = ({ data, eventName, manifestVariables }) => {
539
541
  const payload = {
540
- sdkVersion: "1.43.0" ,
542
+ sdkVersion: "1.45.0" ,
541
543
  };
542
544
  if (window.edgeUET && manifestVariables['enableBrowser'] === '1') {
543
545
  handleTag({ data, eventName, manifestVariables });
package/index.js CHANGED
@@ -12,8 +12,8 @@ var ProvidersBingSdk = (function () {
12
12
  var _a, _b;
13
13
  let allowed = false;
14
14
  if (isRecord(consent === null || consent === void 0 ? void 0 : consent.consent)) {
15
- allowed = isBool(consent.consent.all) ? consent.consent.all : false;
16
- if (provider in consent) {
15
+ allowed = isBool(consent.consent['all']) ? consent.consent['all'] : false;
16
+ if (provider in consent.consent) {
17
17
  const providerSpecific = consent.consent[provider];
18
18
  if (isBool(providerSpecific)) {
19
19
  allowed = providerSpecific;
@@ -25,7 +25,9 @@ var ProvidersBingSdk = (function () {
25
25
  }
26
26
  if (isRecord(consent.categories) &&
27
27
  isRecord((_a = consent.consentSettings) === null || _a === void 0 ? void 0 : _a.channels)) {
28
- allowed = isBool(consent.categories.all) ? consent.categories.all : false;
28
+ allowed = isBool(consent.categories['all'])
29
+ ? consent.categories['all']
30
+ : false;
29
31
  const category = (_b = Object.entries(consent.consentSettings.channels).find(([, value]) => {
30
32
  return value.includes(provider);
31
33
  })) === null || _b === void 0 ? void 0 : _b[0];
@@ -538,7 +540,7 @@ var ProvidersBingSdk = (function () {
538
540
 
539
541
  const tag = ({ data, eventName, manifestVariables }) => {
540
542
  const payload = {
541
- sdkVersion: "1.43.0" ,
543
+ sdkVersion: "1.45.0" ,
542
544
  };
543
545
  if (window.edgeUET && manifestVariables['enableBrowser'] === '1') {
544
546
  handleTag({ data, eventName, manifestVariables });
package/index.mjs CHANGED
@@ -9,8 +9,8 @@ const hasUserConsentForProvider = (consent, provider) => {
9
9
  var _a, _b;
10
10
  let allowed = false;
11
11
  if (isRecord(consent === null || consent === void 0 ? void 0 : consent.consent)) {
12
- allowed = isBool(consent.consent.all) ? consent.consent.all : false;
13
- if (provider in consent) {
12
+ allowed = isBool(consent.consent['all']) ? consent.consent['all'] : false;
13
+ if (provider in consent.consent) {
14
14
  const providerSpecific = consent.consent[provider];
15
15
  if (isBool(providerSpecific)) {
16
16
  allowed = providerSpecific;
@@ -22,7 +22,9 @@ const hasUserConsentForProvider = (consent, provider) => {
22
22
  }
23
23
  if (isRecord(consent.categories) &&
24
24
  isRecord((_a = consent.consentSettings) === null || _a === void 0 ? void 0 : _a.channels)) {
25
- allowed = isBool(consent.categories.all) ? consent.categories.all : false;
25
+ allowed = isBool(consent.categories['all'])
26
+ ? consent.categories['all']
27
+ : false;
26
28
  const category = (_b = Object.entries(consent.consentSettings.channels).find(([, value]) => {
27
29
  return value.includes(provider);
28
30
  })) === null || _b === void 0 ? void 0 : _b[0];
@@ -535,7 +537,7 @@ const handleTag = ({ data, eventName, manifestVariables, }) => {
535
537
 
536
538
  const tag = ({ data, eventName, manifestVariables }) => {
537
539
  const payload = {
538
- sdkVersion: "1.43.0" ,
540
+ sdkVersion: "1.45.0" ,
539
541
  };
540
542
  if (window.edgeUET && manifestVariables['enableBrowser'] === '1') {
541
543
  handleTag({ data, eventName, manifestVariables });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-bing-sdk",
3
- "version": "1.43.0",
3
+ "version": "1.45.0",
4
4
  "description": "Bing Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",