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

storm-cookie-banner

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storm-cookie-banner - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

dist/index.js
/**
* @name storm-cookie-banner:
* @version 0.2.1: Thu, 11 Oct 2018 08:01:48 GMT
* @version 0.3.0: Mon, 17 Dec 2018 11:58:36 GMT
* @author stormid

@@ -5,0 +5,0 @@ * @license MIT

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

import { composeUpdateUIModel, shouldExecute, writeCookie } from './utils';
import { composeUpdateUIModel, shouldExecute, writeCookie, deleteCookies } from './utils';
import { TRIGGER_EVENTS } from './constants';

@@ -21,3 +21,4 @@ import { apply } from './consent';

!consent.performance
? [
? [
deleteCookies,
writeCookie,

@@ -42,5 +43,3 @@ () => {

export const initUpdateBtn = Store => state => {
console.log('init btn');
const updateBtnContainer = document.querySelector(`.${state.settings.classNames.updateBtnContainer}`);
console.log('Attemping to render...');
if(!updateBtnContainer) return;

@@ -47,0 +46,0 @@ const updateBtn = document.querySelector(`.${state.settings.classNames.updateBtn}`);

@@ -29,2 +29,21 @@ import { TRIGGER_KEYCODES } from './constants';

const updateCookie = state => model => document.cookie = [
`${model.name}=${model.value};`,
`expires=${model.expiry};`,
`path=${state.settings.path};`,
state.settings.domain ? `domain=${state.settings.domain};` : '',
state.settings.secure ? `secure` : ''
].join('');
export const deleteCookies = state => {
document.cookie
.split('; ')
.map(part => ({
name: part.split('=')[0],
value: part.split('=')[1],
expiry: 'Thu, 01 Jan 1970 00:00:01 GMT'
}))
.map(updateCookie(state));
};
export const composeUpdateUIModel = state => {

@@ -31,0 +50,0 @@ return Object.assign({}, state.settings, {

/**
* @name storm-cookie-banner:
* @version 0.2.1: Thu, 11 Oct 2018 08:01:49 GMT
* @version 0.3.0: Mon, 17 Dec 2018 11:58:36 GMT
* @author stormid

@@ -55,2 +55,18 @@ * @license MIT

var updateCookie = function updateCookie(state) {
return function (model) {
return document.cookie = [model.name + '=' + model.value + ';', 'expires=' + model.expiry + ';', 'path=' + state.settings.path + ';', state.settings.domain ? 'domain=' + state.settings.domain + ';' : '', state.settings.secure ? 'secure' : ''].join('');
};
};
var deleteCookies = function deleteCookies(state) {
document.cookie.split('; ').map(function (part) {
return {
name: part.split('=')[0],
value: part.split('=')[1],
expiry: 'Thu, 01 Jan 1970 00:00:01 GMT'
};
}).map(updateCookie(state));
};
var composeUpdateUIModel = function composeUpdateUIModel(state) {

@@ -142,3 +158,3 @@ return Object.assign({}, state.settings, {

}, {});
Store.update(setConsent, { consent: consent }, !consent.performance ? [writeCookie, function () {
Store.update(setConsent, { consent: consent }, !consent.performance ? [deleteCookies, writeCookie, function () {
window.setTimeout(function () {

@@ -158,5 +174,3 @@ return location.reload();

return function (state) {
console.log('init btn');
var updateBtnContainer = document.querySelector('.' + state.settings.classNames.updateBtnContainer);
console.log('Attemping to render...');
if (!updateBtnContainer) return;

@@ -163,0 +177,0 @@ var updateBtn = document.querySelector('.' + state.settings.classNames.updateBtn);

@@ -258,3 +258,3 @@ (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){

}, {});
Store.update(_reducers.setConsent, { consent: consent }, !consent.performance ? [_utils.writeCookie, function () {
Store.update(_reducers.setConsent, { consent: consent }, !consent.performance ? [_utils.deleteCookies, _utils.writeCookie, function () {
window.setTimeout(function () {

@@ -274,5 +274,3 @@ return location.reload();

return function (state) {
console.log('init btn');
var updateBtnContainer = document.querySelector('.' + state.settings.classNames.updateBtnContainer);
console.log('Attemping to render...');
if (!updateBtnContainer) return;

@@ -303,3 +301,3 @@ var updateBtn = document.querySelector('.' + state.settings.classNames.updateBtn);

});
exports.shouldExecute = exports.composeUpdateUIModel = exports.readCookie = exports.writeCookie = exports.cookiesEnabled = undefined;
exports.shouldExecute = exports.composeUpdateUIModel = exports.deleteCookies = exports.readCookie = exports.writeCookie = exports.cookiesEnabled = undefined;

@@ -333,2 +331,18 @@ var _constants = require('./constants');

var updateCookie = function updateCookie(state) {
return function (model) {
return document.cookie = [model.name + '=' + model.value + ';', 'expires=' + model.expiry + ';', 'path=' + state.settings.path + ';', state.settings.domain ? 'domain=' + state.settings.domain + ';' : '', state.settings.secure ? 'secure' : ''].join('');
};
};
var deleteCookies = exports.deleteCookies = function deleteCookies(state) {
document.cookie.split('; ').map(function (part) {
return {
name: part.split('=')[0],
value: part.split('=')[1],
expiry: 'Thu, 01 Jan 1970 00:00:01 GMT'
};
}).map(updateCookie(state));
};
var composeUpdateUIModel = exports.composeUpdateUIModel = function composeUpdateUIModel(state) {

@@ -352,2 +366,2 @@ return Object.assign({}, state.settings, {

},{"./constants":4}]},{},[1])
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJleGFtcGxlL3NyYy9hcHAuanMiLCJzcmMvaW5kZXguanMiLCJzcmMvbGliL2NvbnNlbnQuanMiLCJzcmMvbGliL2NvbnN0YW50cy5qcyIsInNyYy9saWIvZGVmYXVsdHMuanMiLCJzcmMvbGliL2luZGV4LmpzIiwic3JjL2xpYi9yZWR1Y2Vycy5qcyIsInNyYy9saWIvc3RvcmUuanMiLCJzcmMvbGliL3VpLmpzIiwic3JjL2xpYi91dGlscy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0FDQUEsSUFBQSx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Zvcm1hbmNlJzoge1xuICAgICAgICAgICAgICAgIGNoZWNrZWQ6IHRydWUsXG4gICAgICAgICAgICAgICAgZm5zOiBbXG4gICAgICAgICAgICAgICAgICAgICgpID0+IHsgY29uc29sZS5sb2coJ1BlcmZvcm1hbmNlIGZuJyk7IH1cbiAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgJ2FkdmVydGlzaW5nIGFuZCBtYXJrZXRpbmcnOiB7XG4gICAgICAgICAgICAgICAgY2hlY2tlZDogZmFsc2UsXG4gICAgICAgICAgICAgICAgZm5zOiBbXG4gICAgICAgICAgICAgICAgICAgICgpID0+IHsgY29uc29sZS5sb2coJ0FkdmVydGlzaW5nIGFuZCBtYXJrZXRpbmcgZm4nKTsgfVxuICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH0pO1xufSk7IiwiaW1wb3J0IGRlZmF1bHRzIGZyb20gJy4vbGliL2RlZmF1bHRzJztcbmltcG9ydCBmYWN0b3J5IGZyb20gJy4vbGliJztcblxuZXhwb3J0IGRlZmF1bHQge1xuICAgIGluaXQ6IG9wdHMgPT4gZmFjdG9yeShPYmplY3QuYXNzaWduKHt9LCBkZWZhdWx0cywgb3B0cywge1xuICAgICAgICB0eXBlczogT2JqZWN0LmtleXMob3B0cy50eXBlcykucmVkdWNlKChhY2MsIGN1cnIpID0+IHtcbiAgICAgICAgICAgIGlmKGFjY1tjdXJyXSkge1xuICAgICAgICAgICAgICAgIGFjY1tjdXJyXSA9IE9iamVjdC5hc3NpZ24oe30sIGFjY1tjdXJyXSwge1xuICAgICAgICAgICAgICAgICAgICBmbnM6IGFjY1tjdXJyXS5mbnMuY29uY2F0KG9wdHMudHlwZXNbY3Vycl0uZm5zKSxcbiAgICAgICAgICAgICAgICAgICAgY2hlY2tlZDogb3B0cy50eXBlc1tjdXJyXS5jaGVja2VkICE9PSB1bmRlZmluZWQgPyBvcHRzLnR5cGVzW2N1cn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ZW50TGlzdGVuZXIoZXYsIGUgPT4ge1xuICAgICAgICAgICAgaWYoIXNob3VsZEV4ZWN1dGUoZSkpIHJldHVybjtcblxuICAgICAgICAgICAgY29uc3QgY29uc2VudCA9IGZpZWxkcy5yZWR1Y2UoKGFjYywgZmllbGQpID0+IHsgcmV0dXJuIGFjY1tmaWVsZC52YWx1ZV0gPSBmaWVsZC5jaGVja2VkLCBhY2MgfSwge30pO1xuICAgICAgICAgICAgU3RvcmUudXBkYXRlKFxuICAgICAgICAgICAgICAgIHNldENvbnNlbnQsXG4gICAgICAgICAgICAgICAgeyBjb25zZW50IH0sXG4gICAgICAgICAgICAgICAgIWNvbnNlbnQucGVyZm9ybWFuY2UgXG4gICAgICAgICAgICAgICAgPyBbIFxuICAgICAgICAgICAgICAgICAgICB3cml0ZUNvb2tpZSxcbiAgICAgICAgICAgICAgICAgICAgKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgd2luZG93LnNldFRpbWVvdXQoKCkgPT4gbG9jYXRpb24ucmVsb2FkKCksIDYwKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICA6IFtcbiAgICAgICAgICAgICAgICAgICAgd3JpdGVDb29raWUsXG4gICAgICAgICAgICAgICAgICAgIGFwcGx5KHN0YXRlLmNvbnNlbnQucGVyZm9ybWFuY2UgPyAncmVtYWluJyA6ICdyZW1vdmUnKSxcbiAgICAgICAgICAgICAgICAgICAgKCkgPT4geyBcbiAgICAgICAgICAgICAgICAgICAgICAgIGJhbm5lci5wYXJlbnROb2RlLnJlbW92ZUNoaWxkKGJhbm5lcik7XG4gICAgICAgICAgICAgICAgICAgICAgICBpbml0VXBkYXRlQnRuKFN0b3JlKShzdGF0ZSlcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICk7XG4gICAgICAgIH0pO1xuICAgIH0pO1xufTtcblxuZXhwb3J0IGNvbn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EVfTk9UX0ZPVU5EXCIsYX12YXIgcD1uW2ldPXtleHBvcnRzOnt9fTtlW2ldWzBdLmNhbGwocC5leHBvcnRzLGZ1bmN0aW9uKHIpe3ZhciBuPWVbaV1bMV1bcl07cmV0dXJuIG8obnx8cil9LHAscC5leHBvcnRzLHIsZSxuLHQpfXJldHVybiBuW2ldLmV4cG9ydHN9Zm9yKHZhciB1PVwiZnVuY3Rpb25cIj09dHlwZW9mIHJlcXVpcmUmJnJlcXVpcmUsaT0wO2k8dC5sZW5ndGg7aSsrKW8odFtpXSk7cmV0dXJuIG99cmV0dXJuIHJ9KSgpIiwiaW1wb3J0IENvb2tpZUJhbm5lciBmcm9tICcuLi8uLi9zcmMnO1xuICAgIFxud2luZG93LmFkZEV2ZW50TGlzdGVuZXIoJ0RPTUNvbnRlbnRMb2FkZWQnLCAoKSA9PiB7XG4gICAgQ29va2llQmFubmVyLmluaXQoe1xuICAgICAgICB0eXBlczoge1xuICAgICAgICAgICAgJ25lY2Vzc2FyeSc6IHtcbiAgICAgICAgICAgICAgICBmbnM6IFtcbiAgICAgICAgICAgICAgICAgICAgKCkgPT4geyBjb25zb2xlLmxvZygnTmVjZXNzYXJ5IGZuJyk7IH0sXG4gICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICdwZXJmb3JtYW5jZSc6IHtcbiAgICAgICAgICAgICAgICBjaGVja2VkOiB0cnVlLFxuICAgICAgICAgICAgICAgIGZuczogW1xuICAgICAgICAgICAgICAgICAgICAoKSA9PiB7IGNvbnNvbGUubG9nKCdQZXJmb3JtYW5jZSBmbicpOyB9XG4gICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICdhZHZlcnRpc2luZyBhbmQgbWFya2V0aW5nJzoge1xuICAgICAgICAgICAgICAgIGNoZWNrZWQ6IGZhbHNlLFxuICAgICAgICAgICAgICAgIGZuczogW1xuICAgICAgICAgICAgICAgICAgICAoKSA9PiB7IGNvb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zZW50LnBlcmZvcm1hbmNlIFxuICAgICAgICAgICAgICAgID8gW1xuICAgICAgICAgICAgICAgICAgICBkZWxldGVDb29raWVzLFxuICAgICAgICAgICAgICAgICAgICB3cml0ZUNvb2tpZSxcbiAgICAgICAgICAgICAgICAgICAgKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgd2luZG93LnNldFRpbWVvdXQoKCkgPT4gbG9jYXRpb24ucmVsb2FkKCksIDYwKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICA6IFtcbiAgICAgICAgICAgICAgICAgICAgd3JpdGVDb29raWUsXG4gICAgICAgICAgICAgICAgICAgIGFwcGx5KHN0YXRlLmNvbnNlbnQucGVyZm9ybWFuY2UgPyAncmVtYWluJyA6ICdyZW1vdmUnKSxcbiAgICAgICAgICAgICAgICAgICAgKCkgPT4geyBcbiAgICAgICAgICAgICAgICAgICAgICAgIGJhbm5lci5wYXJlbnROb2RlLnJlbW92ZUNoaWxkKGJhbm5lcik7XG4gICAgICAgICAgICAgICAgICAgICAgICBpbml0VXBkYXRlQnRuKFN0b3JlKShzdGF0ZSlcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICk7XG4gICAgICAgIH0pO1xuICAgIH0pO1xufTtcblxuZXhwb3J0IGNvbnN0IGluaXRVcGRhdGVCdG4gPSBTdG9yZSA9PiBzdGF0ZSA9PiB7XG4gICAgY29uc3QgdXBkYXRlQnRuQ29udGFpbmVyID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvcihgLiR7c3RhdGUuc2V0dGluZ3MuY2xhc3NOYW1lcy51cGRhdGVCdG5Db250YWluZXJ9YCk7XG4gICAgaWYoIXVwZGF0ZUJ0bkNvbnRhaW5lcikgcmV0dXJuO1xuICAgIGNvbnN0IHVwZGF0ZUJ0biA9IGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3IoYC4ke3N0Y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2V0dGluZ3MsIHtcbiAgICAgICAgdHlwZXM6IE9iamVjdC5rZXlzKHN0YXRlLnNldHRpbmdzLnR5cGVzKS5yZWR1Y2UoKGFjYywgdHlwZSkgPT4ge1xuICAgICAgICAgICAgaWYoc3RhdGUuY29uc2VudFt0eXBlXSAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAgICAgYWNjW3R5cGVdID0gT2JqZWN0LmFzc2lnbih7fSwgc3RhdGUuc2V0dGluZ3MudHlwZXNbdHlwZV0sIHtcbiAgICAgICAgICAgICAgICAgICAgY2hlY2tlZDogc3RhdGUuY29uc2VudFt0eXBlXSAhPT0gdW5kZWZpbmVkID8gc3RhdGUuY29uc2VudFt0eXBlXSA6IHN0YXRlLnNldHRpbmdzLnR5cGVzW3R5cGVdLmNoZWNrZWRcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0gZWxzZSBhY2NbdHlwZV0gPSBzdGF0ZS5zZXR0aW5ncy50eXBlc1t0eXBlXTtcbiAgICAgICAgICAgIHJldHVybiBhY2M7XG4gICAgICAgIH0sIHt9KVxuICAgIH0pXG59O1xuXG5leHBvcnQgY29uc3Qgc2hvdWxkRXhlY3V0ZSA9IGUgPT4gKCEhZS5rZXlDb2RlICYmICFUUklHR0VSX0tFWUNPREVTLmluY2x1ZGVzKGUua2V5Q29kZSkpIHx8ICEoZS53aGljaCA9PT0gMyB8fCBlLmJ1dHRvbiA9PT0gMik7Il19
{
"name": "storm-cookie-banner",
"version": "0.3.0",
"version": "0.3.1",
"description": "",

@@ -5,0 +5,0 @@ "author": "stormid",

@@ -8,3 +8,3 @@ # Storm cookie banner

## Example
[https://mjbp.github.io/storm-cookie-banner](https://mjbp.github.io/storm-cookie-banner)
[https://stormid.github.io/storm-cookie-banner](https://mjbp.github.io/storm-cookie-banner)

@@ -14,3 +14,3 @@ ## Usage

Cookies category names can be any valid String. Preference cookies are a mandatory category that is used by the banner itself to save preferences if consented.
Cookies category names can be any valid String.

@@ -34,18 +34,2 @@ JS

},
'preference': {
checked: true, //whether the checkbox shown to the user is checked by default or not
fns: [ //array of cookie-reliant functions
model => {
//function that depends upon or creates a 'preference' cookie
}
]
},
'performance': {
checked: true,
fns: [
model => {
//function that depends upon or creates a 'performance' cookie
}
]
},
'advertising and marketing': {

@@ -80,3 +64,3 @@ checked: false,

domain: '',
secure: '',
secure: true,
expiry: 365,

@@ -88,16 +72,11 @@ types: {

fns: []
},
'preference': {
checked: true,
fns: [
model => { document.cookie = writeCookie(model); }
]
}
},
policyURL: '/cookie-policy',
classNames: {
banner: 'cookie-banner',
btn: 'cookie-banner__btn',
field: 'cookie-banner__field',
updateBtnContainer: 'cookie-banner__update',
updateBtn: 'cookie-banner__update-btn'
banner: 'preferences-banner',
btn: 'preferences-banner__btn',
field: 'preferences-banner__field',
updateBtnContainer: 'preferences-banner__update',
updateBtn: 'preferences-banner__update-btn'
},

@@ -108,20 +87,27 @@ updateBtnTemplate(model){

bannerTemplate(model){
return `<section role="dialog" aria-live="polite" aria-label="Cookie consent" aria-describedby="cookie-banner__desc" class="${model.classNames.banner}">
<!--googleoff: all-->
<div class="small-12" id="cookie-banner__desc">
<h1 class="cookie-banner__heading">This website uses cookies.</h1>
<p class="cookie-banner__text gamma">We use cookies to analyse our traffic and to provide social media features. You can choose which categories
of cookies you consent to, or accept our recommended settings.
<a class="cookie-banner__link" rel="noopener noreferrer nofollow" href="/cookies/">Find out more</a> about the cookies we use before you consent.</p>
<ul class="cookie-banner__list lister push--bottom large-10">
${Object.keys(model.types).map(type => `<li class="cookie-banner__list-item">
<input id="cookie-banner__${type.split(' ')[0].replace(' ', '-')}" class="${model.classNames.field}" value="${type}" type="checkbox"${model.types[type].checked ? ` checked` : ''}${model.types[type].disabled ? ` disabled` : ''}>
<label class="cookie-banner__label gamma" for="cookie-banner__${type.split(' ')[0].replace(' ', '-')}">${type.substr(0, 1).toUpperCase()}${type.substr(1)} cookies</label>
</li>`).join('')}
</ul>
return `<section role="dialog" aria-live="polite" aria-label="Cookie consent" aria-describedby="preferences-banner__desc" class="${model.classNames.banner}">
<div class="preferences-content">
<div class="wrap">
<div class="row">
<!--googleoff: all-->
<div id="preferences-banner__desc">
<div class="preferences-banner__heading">This website uses cookies.</div>
<p class="preferences-banner__text">We use cookies to analyse our traffic and to provide social media features. You can choose which categories of cookies you consent to, or accept our recommended settings.
<a class="preferences-banner__link" rel="noopener noreferrer nofollow" href="${model.policyURL}"> Find out more about the cookies we use.</a></p>
<ul class="preferences-banner__list">
${Object.keys(model.types).map(type => `<li class="preferences-banner__list-item">
<input id="preferences-banner__${type.split(' ')[0].replace(' ', '-')}" class="${model.classNames.field}" value="${type}" type="checkbox"${model.types[type].checked ? ` checked` : ''}${model.types[type].disabled ? ` disabled` : ''}>
<label class="preferences-banner__label" for="preferences-banner__${type.split(' ')[0].replace(' ', '-')}">
${type.substr(0, 1).toUpperCase()}${type.substr(1)} cookies
</label>
</li>`).join('')}
</ul>
</div>
<button class="${model.classNames.btn}">OK</button>
<!--googleon: all-->
</div>
</div>
</div>
<button class="${model.classNames.btn}">Continue</button>
<!--googleon: all-->
</section>`;
}
}

@@ -128,0 +114,0 @@ ```

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

import { composeUpdateUIModel, shouldExecute, writeCookie } from './utils';
import { composeUpdateUIModel, shouldExecute, writeCookie, deleteCookies } from './utils';
import { TRIGGER_EVENTS } from './constants';

@@ -21,3 +21,4 @@ import { apply } from './consent';

!consent.performance
? [
? [
deleteCookies,
writeCookie,

@@ -24,0 +25,0 @@ () => {

@@ -29,2 +29,21 @@ import { TRIGGER_KEYCODES } from './constants';

const updateCookie = state => model => document.cookie = [
`${model.name}=${model.value};`,
`expires=${model.expiry};`,
`path=${state.settings.path};`,
state.settings.domain ? `domain=${state.settings.domain};` : '',
state.settings.secure ? `secure` : ''
].join('');
export const deleteCookies = state => {
document.cookie
.split('; ')
.map(part => ({
name: part.split('=')[0],
value: part.split('=')[1],
expiry: 'Thu, 01 Jan 1970 00:00:01 GMT'
}))
.map(updateCookie(state));
};
export const composeUpdateUIModel = state => {

@@ -31,0 +50,0 @@ return Object.assign({}, state.settings, {

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