New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@companieshouse/node-session-handler

Package Overview
Dependencies
Maintainers
6
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@companieshouse/node-session-handler - npm Package Compare versions

Comparing version 4.1.6 to 4.1.7

21

lib/session/SessionMiddleware.js

@@ -70,13 +70,12 @@ "use strict";

if (request.session) {
if (hash(request.session) !== originalSessionHash) {
response.cookie(config.cookieName, sessionCookie, {
domain: config.cookieDomain,
path: "/",
httpOnly: true,
secure: config.cookieSecureFlag != null ? config.cookieSecureFlag : DEFAULT_COOKIE_SECURE_FLAG,
maxAge: (config.cookieTimeToLiveInSeconds != null ? config.cookieTimeToLiveInSeconds
: DEFAULT_COOKIE_TIME_TO_LIVE_IN_SECONDS) * 1000,
encode: String
});
}
response.cookie(config.cookieName, sessionCookie, {
domain: config.cookieDomain,
path: "/",
httpOnly: true,
secure: config.cookieSecureFlag != null ? config.cookieSecureFlag : DEFAULT_COOKIE_SECURE_FLAG,
maxAge: (config.cookieTimeToLiveInSeconds != null ? config.cookieTimeToLiveInSeconds
: DEFAULT_COOKIE_TIME_TO_LIVE_IN_SECONDS) * 1000,
encode: String
});
Logger_1.loggerInstance().debug(`Refreshed session cookie ${sessionCookie}`);
}

@@ -83,0 +82,0 @@ else {

{
"name": "@companieshouse/node-session-handler",
"version": "4.1.6",
"version": "4.1.7",
"description": "Node.js session handler for Companies House",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

Sorry, the diff of this file is not supported yet

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