@duckduckgo/autoconsent 5.3.0 → 6.1.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.
Files changed (97) hide show
  1. package/.eslintrc +1 -1
  2. package/CHANGELOG.md +47 -0
  3. package/data/coverage.json +958 -1010
  4. package/dist/addon-firefox/background.bundle.js +13 -12
  5. package/dist/addon-firefox/content.bundle.js +1086 -942
  6. package/dist/addon-firefox/manifest.json +1 -1
  7. package/dist/addon-firefox/rules.json +112 -83
  8. package/dist/addon-mv3/background.bundle.js +13 -12
  9. package/dist/addon-mv3/content.bundle.js +1086 -942
  10. package/dist/addon-mv3/manifest.json +1 -1
  11. package/dist/addon-mv3/popup.bundle.js +38 -0
  12. package/dist/addon-mv3/popup.html +2 -1
  13. package/dist/addon-mv3/rules.json +112 -83
  14. package/dist/autoconsent.cjs.js +1579 -1442
  15. package/dist/autoconsent.esm.js +1566 -1424
  16. package/dist/autoconsent.playwright.js +1 -1
  17. package/lib/cmps/airbnb.ts +1 -3
  18. package/lib/cmps/all.ts +13 -22
  19. package/lib/cmps/base.ts +123 -92
  20. package/lib/cmps/consentmanager.ts +7 -10
  21. package/lib/cmps/conversant.ts +1 -4
  22. package/lib/cmps/cookiebot.ts +6 -10
  23. package/lib/cmps/evidon.ts +1 -3
  24. package/lib/cmps/klaro.ts +3 -7
  25. package/lib/cmps/onetrust.ts +3 -7
  26. package/lib/cmps/sourcepoint-frame.ts +1 -4
  27. package/lib/cmps/tiktok.ts +1 -3
  28. package/lib/cmps/trustarc-frame.ts +4 -6
  29. package/lib/cmps/trustarc-top.ts +6 -5
  30. package/lib/cmps/uniconsent.ts +1 -3
  31. package/lib/eval-snippets.ts +105 -0
  32. package/lib/rule-executors.ts +0 -8
  33. package/lib/rules.ts +3 -1
  34. package/lib/types.ts +1 -1
  35. package/lib/web.ts +26 -13
  36. package/package.json +4 -4
  37. package/readme.md +3 -3
  38. package/rules/autoconsent/192.json +1 -1
  39. package/rules/autoconsent/activobank-pt.json +19 -0
  40. package/rules/autoconsent/adroll.json +1 -1
  41. package/rules/autoconsent/affinity-serif-com.json +1 -1
  42. package/rules/autoconsent/axeptio.json +1 -1
  43. package/rules/autoconsent/bing.json +1 -1
  44. package/rules/autoconsent/borlabs.json +1 -1
  45. package/rules/autoconsent/bundesregierung-de.json +1 -1
  46. package/rules/autoconsent/canva.json +1 -1
  47. package/rules/autoconsent/clickio.json +1 -1
  48. package/rules/autoconsent/clinch.json +1 -1
  49. package/rules/autoconsent/coinbase.json +1 -1
  50. package/rules/autoconsent/complianz-banner.json +1 -1
  51. package/rules/autoconsent/complianz-categories.json +1 -1
  52. package/rules/autoconsent/complianz-optin.json +1 -1
  53. package/rules/autoconsent/cookie-law-info.json +2 -2
  54. package/rules/autoconsent/cookie-manager-popup.json +1 -1
  55. package/rules/autoconsent/cookiealert.json +3 -3
  56. package/rules/autoconsent/cookiefirst.json +7 -8
  57. package/rules/autoconsent/cookieinformation.json +3 -3
  58. package/rules/autoconsent/dailymotion.json +1 -1
  59. package/rules/autoconsent/dsgvo.json +1 -1
  60. package/rules/autoconsent/dunelm.json +1 -1
  61. package/rules/autoconsent/etsy.json +2 -2
  62. package/rules/autoconsent/eu-cookie-compliance.json +1 -1
  63. package/rules/autoconsent/eu-cookie-law.json +1 -1
  64. package/rules/autoconsent/ezoic.json +2 -2
  65. package/rules/autoconsent/google.json +1 -1
  66. package/rules/autoconsent/iubenda.json +2 -2
  67. package/rules/autoconsent/jquery-cookiebar.json +1 -1
  68. package/rules/autoconsent/mediavine.json +1 -1
  69. package/rules/autoconsent/microsoft.json +3 -3
  70. package/rules/autoconsent/moove.json +1 -1
  71. package/rules/autoconsent/paypal.json +1 -1
  72. package/rules/autoconsent/primebox.json +1 -1
  73. package/rules/autoconsent/pubtech.json +1 -1
  74. package/rules/autoconsent/reddit.json +1 -1
  75. package/rules/autoconsent/sibbo.json +1 -1
  76. package/rules/autoconsent/sirdata.json +1 -1
  77. package/rules/autoconsent/snigel.json +1 -1
  78. package/rules/autoconsent/steampowered.json +1 -1
  79. package/rules/autoconsent/tarteaucitron.json +3 -3
  80. package/rules/autoconsent/tealium.json +4 -4
  81. package/rules/autoconsent/testcmp-cosmetic.json +1 -1
  82. package/rules/autoconsent/testcmp.json +1 -1
  83. package/rules/autoconsent/thefreedictionary.json +2 -2
  84. package/rules/autoconsent/theverge.json +1 -1
  85. package/rules/autoconsent/twitter.json +1 -1
  86. package/rules/autoconsent/ubuntu.com.json +1 -1
  87. package/rules/autoconsent/uk-cookie-consent.json +1 -1
  88. package/rules/autoconsent/usercentrics-api.json +7 -7
  89. package/rules/autoconsent/usercentrics-button.json +1 -1
  90. package/rules/autoconsent/waitrose.json +2 -2
  91. package/rules/autoconsent/wp-cookie-notice.json +1 -1
  92. package/rules/autoconsent/xing.json +1 -1
  93. package/rules/autoconsent/youtube-desktop.json +1 -1
  94. package/rules/autoconsent/youtube-mobile.json +1 -1
  95. package/rules/rules.json +112 -83
  96. package/tests/activobank-pt.spec.ts +6 -0
  97. package/lib/index.ts +0 -4
package/.eslintrc CHANGED
@@ -16,6 +16,6 @@
16
16
  },
17
17
  "rules": {
18
18
  "@typescript-eslint/no-explicit-any": 0,
19
- "indent": ["error", 2, { "SwitchCase": 1 }],
19
+ "indent": ["error", 2, { "SwitchCase": 1 }]
20
20
  }
21
21
  }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,50 @@
1
+ # v6.1.0 (Tue Sep 12 2023)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - Bump web-ext from 7.6.2 to 7.7.0 [#249](https://github.com/duckduckgo/autoconsent/pull/249) ([@dependabot[bot]](https://github.com/dependabot[bot]))
6
+
7
+ #### 🐛 Bug Fix
8
+
9
+ - Add rule for activobank.pt [#244](https://github.com/duckduckgo/autoconsent/pull/244) ([@muodov](https://github.com/muodov))
10
+ - Update trustarc-frame.ts [#235](https://github.com/duckduckgo/autoconsent/pull/235) ([@hyebahi](https://github.com/hyebahi))
11
+
12
+ #### 🔩 Dependency Updates
13
+
14
+ - Bump @types/chrome from 0.0.243 to 0.0.245 [#245](https://github.com/duckduckgo/autoconsent/pull/245) ([@dependabot[bot]](https://github.com/dependabot[bot]))
15
+ - Bump tslib from 2.6.1 to 2.6.2 [#242](https://github.com/duckduckgo/autoconsent/pull/242) ([@dependabot[bot]](https://github.com/dependabot[bot]))
16
+ - Bump chai from 4.3.7 to 4.3.8 [#241](https://github.com/duckduckgo/autoconsent/pull/241) ([@dependabot[bot]](https://github.com/dependabot[bot]))
17
+ - Bump @playwright/test from 1.36.2 to 1.37.1 [#239](https://github.com/duckduckgo/autoconsent/pull/239) ([@dependabot[bot]](https://github.com/dependabot[bot]))
18
+ - Bump esbuild from 0.18.11 to 0.19.2 [#234](https://github.com/duckduckgo/autoconsent/pull/234) ([@dependabot[bot]](https://github.com/dependabot[bot]))
19
+ - Bump @puppeteer/replay from 2.13.2 to 2.13.3 [#222](https://github.com/duckduckgo/autoconsent/pull/222) ([@dependabot[bot]](https://github.com/dependabot[bot]))
20
+ - Bump @types/chrome from 0.0.242 to 0.0.243 [#221](https://github.com/duckduckgo/autoconsent/pull/221) ([@dependabot[bot]](https://github.com/dependabot[bot]))
21
+ - Bump auto from 10.46.0 to 11.0.1 [#233](https://github.com/duckduckgo/autoconsent/pull/233) ([@dependabot[bot]](https://github.com/dependabot[bot]))
22
+
23
+ #### Authors: 3
24
+
25
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
26
+ - [@hyebahi](https://github.com/hyebahi)
27
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
28
+
29
+ ---
30
+
31
+ # v6.0.0 (Tue Aug 22 2023)
32
+
33
+ #### 💥 Breaking Change
34
+
35
+ - Inline evals [#236](https://github.com/duckduckgo/autoconsent/pull/236) ([@muodov](https://github.com/muodov))
36
+
37
+ #### 🐛 Bug Fix
38
+
39
+ - August crawl data [#238](https://github.com/duckduckgo/autoconsent/pull/238) ([@sammacbeth](https://github.com/sammacbeth))
40
+
41
+ #### Authors: 2
42
+
43
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
44
+ - Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
45
+
46
+ ---
47
+
1
48
  # v5.3.0 (Wed Aug 09 2023)
2
49
 
3
50
  #### 🚀 Enhancement