@blotoutio/edgetag-sdk-browser 1.43.0 → 1.44.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.js +11 -11
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
var _a, _b;
|
|
28
28
|
let allowed = false;
|
|
29
29
|
if (isRecord(consent.consentChannel)) {
|
|
30
|
-
allowed = isBool(consent.consentChannel
|
|
31
|
-
? consent.consentChannel
|
|
30
|
+
allowed = isBool(consent.consentChannel['all'])
|
|
31
|
+
? consent.consentChannel['all']
|
|
32
32
|
: false;
|
|
33
33
|
if (provider in consent.consentChannel) {
|
|
34
34
|
const providerSpecific = consent.consentChannel[provider];
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
allowed = providerSpecific;
|
|
37
37
|
}
|
|
38
38
|
else if (isRecord(providerSpecific)) {
|
|
39
|
-
if ('all' in providerSpecific && isBool(providerSpecific
|
|
40
|
-
allowed = providerSpecific
|
|
39
|
+
if ('all' in providerSpecific && isBool(providerSpecific['all'])) {
|
|
40
|
+
allowed = providerSpecific['all'];
|
|
41
41
|
}
|
|
42
42
|
if (tagName in providerSpecific && isBool(providerSpecific[tagName])) {
|
|
43
43
|
allowed = providerSpecific[tagName];
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
}
|
|
51
51
|
if (isRecord(consent.consentCategory) &&
|
|
52
52
|
isRecord((_a = consent.consentSettings) === null || _a === void 0 ? void 0 : _a.channels)) {
|
|
53
|
-
allowed = isBool(consent.consentCategory
|
|
54
|
-
? consent.consentCategory
|
|
53
|
+
allowed = isBool(consent.consentCategory['all'])
|
|
54
|
+
? consent.consentCategory['all']
|
|
55
55
|
: false;
|
|
56
56
|
const category = (_b = Object.entries(consent.consentSettings.channels).find(([, value]) => {
|
|
57
57
|
return value.includes(provider);
|
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
if (tagName in providerSpecific && isBool(providerSpecific[tagName])) {
|
|
81
81
|
return providerSpecific[tagName];
|
|
82
82
|
}
|
|
83
|
-
return isBool(providerSpecific
|
|
84
|
-
? providerSpecific
|
|
83
|
+
return isBool(providerSpecific['all'])
|
|
84
|
+
? providerSpecific['all']
|
|
85
85
|
: tagKeys.length == 0;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
const providerKeys = Object.keys(providersConfig).filter((k) => k != 'all');
|
|
89
|
-
return isBool(providersConfig
|
|
90
|
-
? providersConfig
|
|
89
|
+
return isBool(providersConfig['all'])
|
|
90
|
+
? providersConfig['all']
|
|
91
91
|
: providerKeys.length == 0;
|
|
92
92
|
};
|
|
93
93
|
|
|
@@ -1307,7 +1307,7 @@
|
|
|
1307
1307
|
referrer: getReferrer(destination),
|
|
1308
1308
|
search: getSearch(destination),
|
|
1309
1309
|
locale: getLocale(),
|
|
1310
|
-
sdkVersion: "1.
|
|
1310
|
+
sdkVersion: "1.44.0" ,
|
|
1311
1311
|
...(payload || {}),
|
|
1312
1312
|
};
|
|
1313
1313
|
let storage = {};
|