@valu/3rdparty
Advanced tools
Comparing version
@@ -57,7 +57,3 @@ "use strict"; | ||
case "forget": { | ||
CookiebotScript.now(); | ||
return CookiebotScript.promise().then(function (cb) { | ||
debug_1.debug("Calling CookieBot .renew() to forget consent"); | ||
cb.renew(); | ||
}); | ||
document.cookie = "CookieConsent=; Max-Age=-99999999;"; | ||
} | ||
@@ -64,0 +60,0 @@ case "request-prompt": { |
@@ -12,2 +12,7 @@ "use strict"; | ||
window.localStorage.valuTrackingConsentDebug) { | ||
var anyConsole_1 = console; | ||
var method_1 = window.localStorage.valuTrackingConsentDebug; | ||
if (typeof anyConsole_1[method_1] === "undefined") { | ||
method_1 = "log"; | ||
} | ||
return function () { | ||
@@ -18,3 +23,3 @@ var args = []; | ||
} | ||
console.trace.apply(console, __spreadArray(["[ValuTrackingConsent]"], args)); | ||
anyConsole_1[method_1].apply(anyConsole_1, __spreadArray(["[ValuTrackingConsent]"], args)); | ||
}; | ||
@@ -21,0 +26,0 @@ } |
{ | ||
"name": "@valu/3rdparty", | ||
"version": "1.3.0-dev.58837064b2", | ||
"version": "1.3.0-dev.88653c9dd8", | ||
"description": "Tools for managing 3rd party scripts and tracking consents (aka. cookie prompts) optionally via Google Tag Manager and/or Cookiebot.", | ||
@@ -5,0 +5,0 @@ "main": "dist/lazy-script.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
64528
0.13%1180
0.08%