@blotoutio/providers-google-ads-clicks-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];
@@ -748,7 +750,7 @@ const parseCookies = (cookie) => {
748
750
  const tag = ({ data, eventName, manifestVariables, destination, }) => {
749
751
  const result = {
750
752
  isFired: false,
751
- sdkVersion: "1.43.0" ,
753
+ sdkVersion: "1.45.0" ,
752
754
  };
753
755
  if (!eventName || !window.gtag || !(manifestVariables === null || manifestVariables === void 0 ? void 0 : manifestVariables['tagId'])) {
754
756
  return result;
package/index.js CHANGED
@@ -12,8 +12,8 @@ var ProvidersGoogleAdsClicksSdk = (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 ProvidersGoogleAdsClicksSdk = (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];
@@ -749,7 +751,7 @@ var ProvidersGoogleAdsClicksSdk = (function () {
749
751
  const tag = ({ data, eventName, manifestVariables, destination, }) => {
750
752
  const result = {
751
753
  isFired: false,
752
- sdkVersion: "1.43.0" ,
754
+ sdkVersion: "1.45.0" ,
753
755
  };
754
756
  if (!eventName || !window.gtag || !(manifestVariables === null || manifestVariables === void 0 ? void 0 : manifestVariables['tagId'])) {
755
757
  return result;
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];
@@ -746,7 +748,7 @@ const parseCookies = (cookie) => {
746
748
  const tag = ({ data, eventName, manifestVariables, destination, }) => {
747
749
  const result = {
748
750
  isFired: false,
749
- sdkVersion: "1.43.0" ,
751
+ sdkVersion: "1.45.0" ,
750
752
  };
751
753
  if (!eventName || !window.gtag || !(manifestVariables === null || manifestVariables === void 0 ? void 0 : manifestVariables['tagId'])) {
752
754
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-google-ads-clicks-sdk",
3
- "version": "1.43.0",
3
+ "version": "1.45.0",
4
4
  "description": "Google Ads Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",