addsearch-js-client
Advanced tools
Comparing version 0.8.5 to 0.8.6
{ | ||
"name": "addsearch-js-client", | ||
"version": "0.8.5", | ||
"version": "0.8.6", | ||
"description": "AddSearch API JavaScript client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
const setCookie = function(cookieName, cookieValue, expireDays) { | ||
if (!document) { | ||
return; | ||
} | ||
const date = new Date(); | ||
@@ -9,2 +12,5 @@ date.setTime(date.getTime() + (expireDays * 24 * 60 * 60 * 1000)); | ||
const getCookie = function(cookieName) { | ||
if (!document) { | ||
return; | ||
} | ||
let name = cookieName + "="; | ||
@@ -26,2 +32,5 @@ let decodedCookie = decodeURIComponent(document.cookie); | ||
const deleteCookie = function(name) { | ||
if (!document) { | ||
return; | ||
} | ||
document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 2000 00:00:01 GMT;'; | ||
@@ -28,0 +37,0 @@ } |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141621
1063