@aller/blink-labrador
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -17,10 +17,13 @@ "use strict"; | ||
function setCookie(doc, name, value, now) { | ||
expireCookie(doc, name, value); | ||
var date = new Date(now); | ||
date.setTime(date.getTime() + 365 * 24 * 60 * 60 * 1000); | ||
var expires = date.toGMTString(); | ||
doc.cookie = name + "=" + value + "; Path=/; Expires=" + expires + "; Secure;"; | ||
var domain = window.location.hostname; | ||
domain = domain.split(".").reverse().splice(0, 2).reverse().join("."); | ||
doc.cookie = name + "=" + value + "; Path=/; Expires=" + expires + "; Secure; Domain=" + domain; | ||
} | ||
function expireCookie(doc, name, value) { | ||
doc.cookie = name + "=" + value + "; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Secure;"; | ||
function expireCookie(doc, name) { | ||
doc.cookie = name + "=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Secure;"; | ||
} |
{ | ||
"name": "@aller/blink-labrador", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "Library for using blink on Labrador", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -42,4 +42,4 @@ <p align="center"> | ||
4. Push the release to GitHub. | ||
4. Push the release to GitHub by running `git push` and `git push --tags` from master. | ||
5. It is greatly apprecieated if you write a summary of the release on GitHub releases. You do that by opening the releases overview page on GitHub, clicking your newly pushed release, and then clicking the "Edit tag" button. | ||
5. It is greatly appreciated if you write a summary of the release on GitHub releases. You do that by opening the releases overview page on GitHub, clicking your newly pushed release, and then clicking the "Edit tag" button. |
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
45907
1142