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

@edx/cookie-policy-banner

Package Overview
Dependencies
Maintainers
13
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edx/cookie-policy-banner - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

7

build/utilities.js

@@ -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",

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