From f9b25e6f9d8b31f5cbe5ab4743d88840bd44a6f9 Mon Sep 17 00:00:00 2001 From: Sam Macbeth Date: Thu, 24 Feb 2022 16:38:02 +0100 Subject: [PATCH] Use our own autoconsent fork --- DuckDuckGo/Autoconsent/background.js | 4 ++-- DuckDuckGo/Autoconsent/userscript.js | 2 +- package-lock.json | 6 +++--- package.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/DuckDuckGo/Autoconsent/background.js b/DuckDuckGo/Autoconsent/background.js index 44aacff414..4b8d801d3e 100644 --- a/DuckDuckGo/Autoconsent/background.js +++ b/DuckDuckGo/Autoconsent/background.js @@ -1,6 +1,6 @@ /* global browser */ -import AutoConsent from '@cliqz/autoconsent/lib/web' -import * as rules from '@cliqz/autoconsent/rules/rules.json' +import AutoConsent from '@duckduckgo/autoconsent/lib/web' +import * as rules from '@duckduckgo/autoconsent/rules/rules.json' const consent = new AutoConsent(browser, browser.tabs.sendMessage) diff --git a/DuckDuckGo/Autoconsent/userscript.js b/DuckDuckGo/Autoconsent/userscript.js index 38749bc1ca..bd6c0facd9 100644 --- a/DuckDuckGo/Autoconsent/userscript.js +++ b/DuckDuckGo/Autoconsent/userscript.js @@ -1,4 +1,4 @@ -import handleContentMessage from '@cliqz/autoconsent/lib/web/content' +import handleContentMessage from '@duckduckgo/autoconsent/lib/web/content' window.autoconsent = (payload) => { return handleContentMessage(payload.message, false) diff --git a/package-lock.json b/package-lock.json index d1677600ff..768e93a1c4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,10 +4,10 @@ "lockfileVersion": 1, "requires": true, "dependencies": { - "@cliqz/autoconsent": { + "@duckduckgo/autoconsent": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@cliqz/autoconsent/-/autoconsent-1.0.2.tgz", - "integrity": "sha512-1mQyP5yeyfkkAZMDU/3CzD48+q0BCiid/4dzoaIkiqoHHGC0PdXAQZ4OAxGlaJk/Qyub/uxsbS5KpxgUZyqZRA==" + "resolved": "https://registry.npmjs.org/@duckduckgo/autoconsent/-/autoconsent-1.0.2.tgz", + "integrity": "sha512-bDe7fN0tEwo3QQqmqUCkeiqHuYCIomBf1HeYbWLzlGrkj7n/u3kRVXzvFdEf07iVbj2tvm0/avIvG1CrNJzHLQ==" }, "@rollup/plugin-json": { "version": "4.1.0", diff --git a/package.json b/package.json index 87df2e300e..4fa748a84e 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,6 @@ "rollup": "^2.61.0" }, "dependencies": { - "@cliqz/autoconsent": "1.0.2" + "@duckduckgo/autoconsent": "1.0.2" } }