@duckduckgo/autoconsent 18.5.0 → 18.7.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/CHANGELOG.md +40 -0
- package/ci/asana-create-release-task.js +5 -1
- package/dist/addon-firefox/background.bundle.js +1 -0
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +9 -6
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rule-index.json +1 -1
- package/dist/addon-firefox/rules.json +1 -1
- package/dist/addon-mv3/background.bundle.js +1 -0
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/content.bundle.js +9 -6
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/rule-index.json +1 -1
- package/dist/addon-mv3/rules.json +1 -1
- package/dist/autoconsent.cjs.js +9 -6
- package/dist/autoconsent.esm.js +9 -6
- package/dist/autoconsent.playwright.js +9 -6
- package/dist/autoconsent.standalone.js +10 -7
- package/dist/heuristics.cjs.js +8 -6
- package/dist/heuristics.mjs +8 -6
- package/dist/types/eval-snippets.d.ts +1 -0
- package/lib/eval-snippets.ts +1 -0
- package/lib/heuristic-literals.ts +1 -0
- package/lib/heuristic-patterns.ts +7 -5
- package/package.json +1 -1
- package/rules/autoconsent/anthropic.json +4 -4
- package/rules/autoconsent/burpee-com.json +5 -1
- package/rules/autoconsent/jobmount.json +26 -0
- package/rules/autoconsent/mediamarkt-de.json +12 -2
- package/rules/autoconsent/posthog.com.json +12 -0
- package/rules/autoconsent/sirdata.json +1 -1
- package/rules/autoconsent/walmart-ca.json +13 -2
- package/rules/autoconsent/wbd-legal-terms.json +4 -5
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/anthropic.spec.ts +1 -1
- package/tests/jobmount.spec.ts +3 -0
- package/tests/mediamarkt.spec.ts +1 -1
- package/tests/posthog.com.spec.ts +3 -0
- package/tests/trustarc.spec.ts +6 -0
- package/tests-wtr/heuristics/heuristics-utils.test.ts +11 -0
package/tests/anthropic.spec.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import generateCMPTests from '../playwright/runner';
|
|
2
2
|
|
|
3
|
-
generateCMPTests('anthropic', ['https://claude.ai/login', 'https://console.anthropic.com/login/']);
|
|
3
|
+
generateCMPTests('anthropic', ['https://claude.ai/login', 'https://console.anthropic.com/login/', 'https://claude.com/']);
|
package/tests/mediamarkt.spec.ts
CHANGED
package/tests/trustarc.spec.ts
CHANGED
|
@@ -18,3 +18,9 @@ generateCMPTests('TrustArc-top', ['https://www.ea.com/games/it-takes-two/it-take
|
|
|
18
18
|
testOptIn: false,
|
|
19
19
|
onlyRegions: ['CA', 'AU', 'JP'],
|
|
20
20
|
});
|
|
21
|
+
|
|
22
|
+
// Magento store with a hidden built-in cookie notice next to TrustArc
|
|
23
|
+
generateCMPTests('TrustArc-top', ['https://shop.royalmail.com/garden-wildlife-stamp-set'], {
|
|
24
|
+
testOptOut: true,
|
|
25
|
+
testSelfTest: false,
|
|
26
|
+
});
|
|
@@ -766,6 +766,17 @@ describe('classifyButtonTextRegex', () => {
|
|
|
766
766
|
expect(classifyButtonTextRegex('Cookies akzeptieren')).to.equal('accept');
|
|
767
767
|
});
|
|
768
768
|
|
|
769
|
+
it('matches German, Italian and Swedish "I understand" acknowledgements', () => {
|
|
770
|
+
expect(classifyButtonTextRegex('Ich verstehe')).to.equal('acknowledge');
|
|
771
|
+
expect(classifyButtonTextRegex('Ho capito')).to.equal('acknowledge');
|
|
772
|
+
expect(classifyButtonTextRegex('Jag förstår')).to.equal('acknowledge');
|
|
773
|
+
});
|
|
774
|
+
|
|
775
|
+
it('does not treat Polish subscription links as reject', () => {
|
|
776
|
+
expect(classifyButtonTextRegex('Zarządzaj subskrypcjami lub z nich zrezygnuj')).to.equal('other');
|
|
777
|
+
expect(classifyButtonTextRegex('Rezygnuję')).to.equal('reject');
|
|
778
|
+
});
|
|
779
|
+
|
|
769
780
|
it('returns other for empty string', () => {
|
|
770
781
|
expect(classifyButtonTextRegex('')).to.equal('other');
|
|
771
782
|
});
|