@edx/cookie-policy-banner
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -43,8 +43,9 @@ 'use strict'; | ||
var path = '/'; | ||
var maxAge = Number.MAX_SAFE_INTEGER; | ||
// maximum date http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.1 | ||
var expires = new Date(8640000000000000); | ||
if (isStage()) { | ||
return new _universalCookie2.default().set('edx-cookie-policy-viewed', true, { domain: '.stage.edx.org', path: path, maxAge: maxAge }); | ||
return new _universalCookie2.default().set('edx-cookie-policy-viewed', true, { domain: '.stage.edx.org', path: path, expires: expires }); | ||
} else if (isProduction()) { | ||
return new _universalCookie2.default().set('edx-cookie-policy-viewed', true, { domain: '.edx.org', path: path, maxAge: maxAge }); | ||
return new _universalCookie2.default().set('edx-cookie-policy-viewed', true, { domain: '.edx.org', path: path, expires: expires }); | ||
} | ||
@@ -51,0 +52,0 @@ |
{ | ||
"name": "@edx/cookie-policy-banner", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "The edX cookie policy banner component implemented in React.", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
53224
291
1