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

@demos-europe/dp-consent

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@demos-europe/dp-consent - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0

.idea/cookie-consent.iml

5

package.json
{
"name": "@demos-europe/dp-consent",
"version": "1.1.2",
"version": "1.2.0",
"private": false,

@@ -24,3 +24,4 @@ "description": "A cookie consent solution.",

"rollup-plugin-terser": "^7.0.2"
}
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}

13

src/js/MatomoConsent.js

@@ -15,4 +15,5 @@ function createButton (textContent, id, type) {

buttons.classList.add('dp-consent-slider__buttons')
buttons.appendChild(createButton('Alle akzeptieren', 'accept_all', 'primary'))
buttons.appendChild(createButton('Einstellungen ändern', 'change_settings'))
buttons.appendChild(createButton('Zustimmen', 'accept_all', 'primary'))
buttons.appendChild(createButton('Ablehnen', 'decline_optional', 'primary'))
buttons.appendChild(createButton('Überprüfen', 'change_settings'))
return buttons

@@ -66,3 +67,3 @@ }

var noticeContainer = document.createElement('div')
noticeContainer.appendChild(document.createTextNode(notice))
noticeContainer.innerHTML = notice
return noticeContainer

@@ -180,2 +181,8 @@ }

}
if (targetId === 'decline_optional') {
trackingConsent.given = false
removeDpConsentElements()
}
if (targetId === 'change_settings') {

@@ -182,0 +189,0 @@ showSettingsModal()

Sorry, the diff of this file is not supported yet

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