@duckduckgo/autoconsent 14.93.0 → 14.95.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 +33 -0
- package/data/coverage.json +1424 -1485
- package/dist/addon-firefox/background.bundle.js +2 -1
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +23 -12
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/popup.bundle.js +2 -1
- package/dist/addon-firefox/rules.json +1 -1
- package/dist/addon-mv3/background.bundle.js +2 -1
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/content.bundle.js +23 -12
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/popup.bundle.js +2 -1
- package/dist/addon-mv3/rules.json +1 -1
- package/dist/autoconsent.cjs.js +23 -12
- package/dist/autoconsent.esm.js +23 -12
- package/dist/autoconsent.extra.cjs.js +23 -12
- package/dist/autoconsent.extra.esm.js +23 -12
- package/dist/autoconsent.playwright.js +23 -12
- package/dist/types/heuristics.d.ts +1 -1
- package/dist/types/types.d.ts +1 -0
- package/lib/cmps/base.ts +4 -2
- package/lib/heuristics.ts +13 -8
- package/lib/types.ts +1 -0
- package/lib/utils.ts +1 -0
- package/lib/web.ts +8 -3
- package/package.json +1 -1
- package/rules/autoconsent/aws-amazon.json +23 -13
- package/rules/autoconsent/didomi.json +1 -1
- package/rules/autoconsent/yachtclubgames.json +35 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/didomi.spec.ts +1 -2
- package/tests/yachtclubgames.spec.ts +9 -0
- package/tests-wtr/lifecycle/find-cmp.ts +3 -1
package/tests/didomi.spec.ts
CHANGED
|
@@ -4,7 +4,6 @@ generateCMPTests(
|
|
|
4
4
|
'didomi',
|
|
5
5
|
[
|
|
6
6
|
'https://nothing.tech/',
|
|
7
|
-
'https://www.planet.fr/',
|
|
8
7
|
'http://www.allocine.fr/',
|
|
9
8
|
'https://www.boursorama.com/',
|
|
10
9
|
'https://www.theoriginalshotels.com/en/hotels/la-villa-vicha',
|
|
@@ -15,7 +14,7 @@ generateCMPTests(
|
|
|
15
14
|
// Self-test is disabled because some sites (e.g. planet.fr) navigate away
|
|
16
15
|
// after clicking the disagree button, which destroys the Didomi state.
|
|
17
16
|
testSelfTest: false,
|
|
18
|
-
|
|
17
|
+
onlyRegions: ['US', 'FR'],
|
|
19
18
|
},
|
|
20
19
|
);
|
|
21
20
|
|
|
@@ -156,7 +156,9 @@ describe('Autoconsent.findCmp', () => {
|
|
|
156
156
|
optIn: [],
|
|
157
157
|
optOut: [],
|
|
158
158
|
});
|
|
159
|
-
|
|
159
|
+
// force findCmpAttempts to 1 so heuristic CMP is run on the first attempt
|
|
160
|
+
autoconsent.state.findCmpAttempts = 1;
|
|
161
|
+
const found = await autoconsent.findCmp(1);
|
|
160
162
|
|
|
161
163
|
expect(found).to.have.length(1);
|
|
162
164
|
expect(found[0].name).to.equal('HEURISTIC');
|