Socket
Socket
Sign inDemoInstall

@porscheofficial/cookie-consent-banner

Package Overview
Dependencies
1
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.1 to 3.1.2

dist/cookie-consent-banner/p-8df4de0c.entry.js

9

dist/cjs/cookie-consent-banner.cjs.entry.js

@@ -47,5 +47,8 @@ 'use strict';

.map((category) => category.key);
const cookieValueString = `; ${document.cookie}`.split(`; ${this.cookieName}=`).pop() ??
"".split(";").shift();
const cookieValues = cookieValueString ? cookieValueString.split(",") : [];
let cookieValues = [];
if (document.cookie) {
const cookieValueString = `; ${document.cookie}`.split(`; ${this.cookieName}=`).pop() ??
"".split(";").shift();
cookieValues = cookieValueString ? cookieValueString.split(",") : [];
}
if (cookieValues.length === 0) {

@@ -52,0 +55,0 @@ this.isShown = true;

@@ -39,5 +39,8 @@ /* eslint-disable @typescript-eslint/no-unsafe-return,no-unused-vars,@typescript-eslint/no-unused-vars */

.map((category) => category.key);
const cookieValueString = `; ${document.cookie}`.split(`; ${this.cookieName}=`).pop() ??
"".split(";").shift();
const cookieValues = cookieValueString ? cookieValueString.split(",") : [];
let cookieValues = [];
if (document.cookie) {
const cookieValueString = `; ${document.cookie}`.split(`; ${this.cookieName}=`).pop() ??
"".split(";").shift();
cookieValues = cookieValueString ? cookieValueString.split(",") : [];
}
if (cookieValues.length === 0) {

@@ -44,0 +47,0 @@ this.isShown = true;

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

import{p as e,b as n}from"./p-1549f98e.js";export{s as setNonce}from"./p-1549f98e.js";(()=>{const n=import.meta.url,t={};return""!==n&&(t.resourcesUrl=new URL(".",n).href),e(t)})().then((e=>n([["p-e22fd931",[[1,"cookie-consent-banner",{availableCategories:[16],cookieName:[1,"cookie-name"],cookieDomain:[1,"cookie-domain"],disableResetSiteCookiesOnConsentWithdrawn:[4,"disable-reset-site-cookies-on-consent-withdrawn"],disableSlideInAnimation:[4,"disable-slide-in-animation"],headline:[1],btnLabelAcceptAndContinue:[1,"btn-label-accept-and-continue"],btnLabelOnlyEssentialAndContinue:[1,"btn-label-only-essential-and-continue"],btnLabelSelectAllAndContinue:[1,"btn-label-select-all-and-continue"],btnLabelPersistSelectionAndContinue:[1,"btn-label-persist-selection-and-continue"],contentSettingsDescription:[1,"content-settings-description"],handlePreferencesRestored:[16],handlePreferencesUpdated:[16],isShown:[32],acceptedCategoriesNext:[32],acceptedCategoriesPersisted:[32],isShownSettings:[32]},[[4,"cookie_consent_show","eventListenerShow"],[4,"cookie_consent_details_show","eventListenerDetailsShow"]]]]]],e)));
import{p as e,b as n}from"./p-1549f98e.js";export{s as setNonce}from"./p-1549f98e.js";(()=>{const n=import.meta.url,t={};return""!==n&&(t.resourcesUrl=new URL(".",n).href),e(t)})().then((e=>n([["p-8df4de0c",[[1,"cookie-consent-banner",{availableCategories:[16],cookieName:[1,"cookie-name"],cookieDomain:[1,"cookie-domain"],disableResetSiteCookiesOnConsentWithdrawn:[4,"disable-reset-site-cookies-on-consent-withdrawn"],disableSlideInAnimation:[4,"disable-slide-in-animation"],headline:[1],btnLabelAcceptAndContinue:[1,"btn-label-accept-and-continue"],btnLabelOnlyEssentialAndContinue:[1,"btn-label-only-essential-and-continue"],btnLabelSelectAllAndContinue:[1,"btn-label-select-all-and-continue"],btnLabelPersistSelectionAndContinue:[1,"btn-label-persist-selection-and-continue"],contentSettingsDescription:[1,"content-settings-description"],handlePreferencesRestored:[16],handlePreferencesUpdated:[16],isShown:[32],acceptedCategoriesNext:[32],acceptedCategoriesPersisted:[32],isShownSettings:[32]},[[4,"cookie_consent_show","eventListenerShow"],[4,"cookie_consent_details_show","eventListenerDetailsShow"]]]]]],e)));

@@ -43,5 +43,8 @@ import { r as registerInstance, c as createEvent, h } from './index-a4b755f8.js';

.map((category) => category.key);
const cookieValueString = `; ${document.cookie}`.split(`; ${this.cookieName}=`).pop() ??
"".split(";").shift();
const cookieValues = cookieValueString ? cookieValueString.split(",") : [];
let cookieValues = [];
if (document.cookie) {
const cookieValueString = `; ${document.cookie}`.split(`; ${this.cookieName}=`).pop() ??
"".split(";").shift();
cookieValues = cookieValueString ? cookieValueString.split(",") : [];
}
if (cookieValues.length === 0) {

@@ -48,0 +51,0 @@ this.isShown = true;

{
"name": "@porscheofficial/cookie-consent-banner",
"license": "MIT",
"version": "3.1.1",
"version": "3.1.2",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc