Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

68publishers-cookie-consent

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

68publishers-cookie-consent - npm Package Compare versions

Comparing version 0.4.8-beta.1 to 0.4.8-beta.2

2

package.json
{
"name": "68publishers-cookie-consent",
"version": "0.4.8-beta.1",
"version": "0.4.8-beta.2",
"description": "Cookie consent wrapper based on orestbida/cookieconsent with GTM integration.",

@@ -5,0 +5,0 @@ "homepage": "http://www.68publishers.io/",

@@ -72,2 +72,24 @@ 'use strict';

get consentCookieData() {
const cookieName = this._config.pluginOptions.cookie_name;
let cookieValue = document.cookie.match("(^|;)\\s*" + cookieName + "\\s*=\\s*([^;]+)");
cookieValue = cookieValue ? cookieValue.pop() : null;
if (null === cookieValue) {
return null;
}
try{
cookieValue = JSON.parse(cookieValue)
} catch (e) {
try {
cookieValue = JSON.parse(decodeURIComponent(cookieValue))
} catch (e) {
cookieValue = null;
}
}
return cookieValue;
}
setStaticUserIdentity(id) {

@@ -74,0 +96,0 @@ this._user = this.user.withStaticIdentity(id);

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