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

dresscode-bricks

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dresscode-bricks - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

7

lib/Bricks/Cookie.js

@@ -10,5 +10,5 @@ Bricks.Cookie = {};

* @param {Number} [days] Количество дней, на которое ставится кука.
* @param {String} [path] Путь на сайте, для которого кука актуальна.
* @param {String} [domain] Домен, для которого кука актуальна.
*/
Bricks.Cookie.createCookie = function(name, value, days, path) {
Bricks.Cookie.createCookie = function(name, value, days, domain) {
var expires = '';

@@ -20,3 +20,4 @@ if (days) {

}
document.cookie = name + '=' + value + expires + ';path=' + (path || '/');
var domainParam = domain ? ';domain=' + domain : '';
document.cookie = name + '=' + value + expires + domainParam + ';path=/';
};

@@ -23,0 +24,0 @@ //#endlabel createCookie

{
"name": "dresscode-bricks",
"version": "0.1.0",
"version": "0.1.1",
"author": {

@@ -5,0 +5,0 @@ "name": "Kolyaj",

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