Socket
Socket
Sign inDemoInstall

@springernature/global-javascript

Package Overview
Dependencies
0
Maintainers
12
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.0 to 2.3.1

3

HISTORY.md
# History
## 2.3.1 (2020-08-20)
* BUG: Fix checkConsent util - Adds safety check for cookie existence
## 2.3.0 (2020-07-14)

@@ -4,0 +7,0 @@ * FEATURE: checkConsent util

2

package.json
{
"name": "@springernature/global-javascript",
"version": "2.3.0",
"version": "2.3.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Globally shared Javascript helpers",

@@ -23,6 +23,9 @@ import {getCookie} from './get-cookie';

const consent = getCookie('OptanonConsent');
const consentGroups = consent.split('groups=').pop().split('&')[0];
const colonEncoding = '%3A';
return consentGroups.includes(validCategories[category] + colonEncoding + '1');
if (consent) {
const consentGroups = consent.split('groups=').pop().split('&')[0];
const colonEncoding = '%3A';
return consentGroups.includes(validCategories[category] + colonEncoding + '1');
}
};

@@ -29,0 +32,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc