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

koa-session

Package Overview
Dependencies
Maintainers
8
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-session - npm Package Compare versions

Comparing version 5.13.0 to 5.13.1

6

History.md
5.13.1 / 2020-02-01
==================
**fixes**
* [[`ecd1f5e`](http://github.com/koajs/session/commit/ecd1f5edaa6ff1e77cc461d1107432b394ce21d2)] - fix: don't set any value to sameSite by default (#194) (fengmk2 <<fengmk2@gmail.com>>)
5.13.0 / 2020-02-01

@@ -3,0 +9,0 @@ ==================

3

index.js

@@ -71,3 +71,4 @@ 'use strict';

if (opts.httpOnly == null) opts.httpOnly = true;
if (opts.sameSite == null) opts.sameSite = '';
// delete null sameSite config
if (opts.sameSite == null) delete opts.sameSite;
if (opts.signed == null) opts.signed = true;

@@ -74,0 +75,0 @@ if (opts.autoCommit == null) opts.autoCommit = true;

@@ -5,3 +5,3 @@ {

"repository": "koajs/session",
"version": "5.13.0",
"version": "5.13.1",
"keywords": [

@@ -8,0 +8,0 @@ "koa",

@@ -62,3 +62,3 @@ # koa-session

renew: false, /** (boolean) renew session when session is nearly expired, so we can always keep user logged in. (default is false)*/
sameSite: '', /** (string) session cookie sameSite options (default '', don't set it) */
sameSite: null, /** (string) session cookie sameSite options (default null, don't set it) */
};

@@ -65,0 +65,0 @@

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