New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@duckduckgo/autoconsent

Package Overview
Dependencies
Maintainers
11
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@duckduckgo/autoconsent - npm Package Compare versions

Comparing version 6.2.0 to 6.3.0

rules/autoconsent/zdf.json

23

CHANGELOG.md

@@ -0,1 +1,24 @@

# v6.3.0 (Tue Nov 14 2023)
#### 🚀 Enhancement
- Some optimizations [#283](https://github.com/duckduckgo/autoconsent/pull/283) ([@muodov](https://github.com/muodov))
- Bump web-ext from 7.7.0 to 7.8.0 [#284](https://github.com/duckduckgo/autoconsent/pull/284) ([@dependabot[bot]](https://github.com/dependabot[bot]))
#### 🐛 Bug Fix
- Bump chai and @types/chai [#285](https://github.com/duckduckgo/autoconsent/pull/285) ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Bump @types/mocha from 10.0.1 to 10.0.4 [#286](https://github.com/duckduckgo/autoconsent/pull/286) ([@dependabot[bot]](https://github.com/dependabot[bot]))
#### 🔩 Dependency Updates
- Bump @types/chrome from 0.0.245 to 0.0.251 [#287](https://github.com/duckduckgo/autoconsent/pull/287) ([@dependabot[bot]](https://github.com/dependabot[bot]))
#### Authors: 2
- [@dependabot[bot]](https://github.com/dependabot[bot])
- Maxim Tsoy ([@muodov](https://github.com/muodov))
---
# v6.2.0 (Fri Nov 10 2023)

@@ -2,0 +25,0 @@

2

dist/addon-firefox/manifest.json
{
"manifest_version": 2,
"name": "Autoconsent",
"version": "2023.9.14",
"version": "2023.11.10",
"background": {

@@ -6,0 +6,0 @@ "scripts": [

{
"manifest_version": 3,
"name": "Autoconsent",
"version": "2023.9.14",
"version": "2023.11.10",
"background": {

@@ -6,0 +6,0 @@ "service_worker": "background.bundle.js"

@@ -1,2 +0,2 @@

import { click, elementExists, elementVisible, wait, waitForElement } from "../rule-executors";
import { click, elementExists, elementVisible, wait, waitForElement, waitForVisible } from "../rule-executors";
import { RunContext } from "../rules";

@@ -35,2 +35,6 @@ import { waitFor } from "../utils";

async optOut() {
if (elementVisible("#onetrust-reject-all-handler,.js-reject-cookies", 'any')) { // 'reject all' shortcut
return click("#onetrust-reject-all-handler,.js-reject-cookies");
}
if (elementExists("#onetrust-pc-btn-handler")) { // "show purposes" button inside a popup

@@ -43,6 +47,6 @@ click("#onetrust-pc-btn-handler");

await waitForElement('#onetrust-consent-sdk', 2000);
await wait(1000);
await wait(1000); // ideally we want to wait for popup visivility, but it's tricky on e.g. stackoverflow.com
click("#onetrust-consent-sdk input.category-switch-handler:checked,.js-editor-toggle-state:checked", true); // optional step
await wait(1000);
await wait(1000); // ideally we want to wait for popup visivility, but it's tricky on e.g. stackoverflow.com
await waitForElement(".save-preference-btn-handler,.js-consent-save", 2000);

@@ -52,7 +56,3 @@ click(".save-preference-btn-handler,.js-consent-save");

// popup doesn't disappear immediately
await waitFor(
() => elementVisible("#onetrust-banner-sdk", 'none'),
10,
500
);
await waitForVisible("#onetrust-banner-sdk", 5000, 'none');
return true;

@@ -66,4 +66,8 @@ }

async test() {
return await this.mainWorldEval('EVAL_ONETRUST_1');
return await waitFor(
() => this.mainWorldEval('EVAL_ONETRUST_1'),
10,
500
)
}
}

@@ -161,3 +161,7 @@ import { MessageSender, AutoCMP, RuleBundle, Config, ConsentState } from './types';

}
this.updateState({ lifecycle: 'openPopupDetected' });
if (this.config.enablePrehide && !this.state.prehideOn) { // prehide might have timeouted by this time, apply it again
this.prehideElements();
}

@@ -164,0 +168,0 @@ if (foundPopups.length > 1) {

{
"name": "@duckduckgo/autoconsent",
"version": "6.2.0",
"version": "6.3.0",
"description": "",

@@ -36,3 +36,3 @@ "main": "dist/autoconsent.cjs.js",

"@types/chai": "^4.3.1",
"@types/chrome": "^0.0.245",
"@types/chrome": "^0.0.251",
"@types/mocha": "^10.0.1",

@@ -39,0 +39,0 @@ "@typescript-eslint/eslint-plugin": "^5.42.1",

@@ -5,3 +5,2 @@ import generateCMPTests from "../playwright/runner";

'https://stackoverflow.com/',
'https://www.zdf.de/',
"https://www.lovescout24.de/",

@@ -8,0 +7,0 @@ "https://www.okcupid.com/",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc