@duckduckgo/autoconsent 10.5.0 → 10.6.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.
@@ -563,7 +563,7 @@
563
563
  EVAL_TAKEALOT_0: () => document.body.classList.remove("freeze") || (document.body.style = "") || true,
564
564
  EVAL_TARTEAUCITRON_0: () => tarteaucitron.userInterface.respondAll(false) || true,
565
565
  EVAL_TARTEAUCITRON_1: () => tarteaucitron.userInterface.respondAll(true) || true,
566
- EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)[0].includes("false"),
566
+ EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)?.[0].includes("false"),
567
567
  EVAL_TAUNTON_TEST: () => document.cookie.includes("taunton_user_consent_submitted=true"),
568
568
  EVAL_TEALIUM_0: () => typeof window.utag !== "undefined" && typeof utag.gdpr === "object",
569
569
  EVAL_TEALIUM_1: () => utag.gdpr.setConsentValue(false) || true,
@@ -7909,7 +7909,7 @@
7909
7909
  ],
7910
7910
  detectPopup: [
7911
7911
  {
7912
- visible: "#tarteaucitronRoot #tarteaucitronAlertSmall,#tarteaucitronRoot #tarteaucitronAlertBig",
7912
+ visible: "#tarteaucitronRoot #tarteaucitronAlertBig",
7913
7913
  check: "any"
7914
7914
  }
7915
7915
  ],
@@ -105,7 +105,7 @@ export const snippets = {
105
105
  EVAL_TAKEALOT_0: () => document.body.classList.remove('freeze') || (document.body.style = '') || true,
106
106
  EVAL_TARTEAUCITRON_0: () => tarteaucitron.userInterface.respondAll(false) || true,
107
107
  EVAL_TARTEAUCITRON_1: () => tarteaucitron.userInterface.respondAll(true) || true,
108
- EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)[0].includes('false'),
108
+ EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)?.[0].includes('false'),
109
109
  EVAL_TAUNTON_TEST: () => document.cookie.includes('taunton_user_consent_submitted=true'),
110
110
  EVAL_TEALIUM_0: () => typeof window.utag !== 'undefined' && typeof utag.gdpr === 'object',
111
111
  EVAL_TEALIUM_1: () => utag.gdpr.setConsentValue(false) || true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duckduckgo/autoconsent",
3
- "version": "10.5.0",
3
+ "version": "10.6.0",
4
4
  "description": "",
5
5
  "main": "dist/autoconsent.cjs.js",
6
6
  "module": "dist/autoconsent.esm.js",
@@ -3,7 +3,7 @@
3
3
  "prehideSelectors": ["#tarteaucitronRoot"],
4
4
  "detectCmp": [{ "exists": "#tarteaucitronRoot" }],
5
5
  "detectPopup": [{
6
- "visible": "#tarteaucitronRoot #tarteaucitronAlertSmall,#tarteaucitronRoot #tarteaucitronAlertBig",
6
+ "visible": "#tarteaucitronRoot #tarteaucitronAlertBig",
7
7
  "check": "any"
8
8
  }],
9
9
  "optIn": [
package/rules/rules.json CHANGED
@@ -5549,7 +5549,7 @@
5549
5549
  ],
5550
5550
  "detectPopup": [
5551
5551
  {
5552
- "visible": "#tarteaucitronRoot #tarteaucitronAlertSmall,#tarteaucitronRoot #tarteaucitronAlertBig",
5552
+ "visible": "#tarteaucitronRoot #tarteaucitronAlertBig",
5553
5553
  "check": "any"
5554
5554
  }
5555
5555
  ],