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

avrodh-session

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

avrodh-session - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

10

lib/index.js

@@ -37,4 +37,12 @@ "use strict";

secure: process.env.NODE_ENV === "production",
sameSite: "strict",
}));
app.use(csurf.generate());
app.use((req, res, next) => {
if (["GET", "POST"].includes(req.method)) {
csurf.generate()(req, res, next);
}
else {
next();
}
});
return {

@@ -41,0 +49,0 @@ csurf,

2

package.json
{
"name": "avrodh-session",
"version": "2.0.0",
"version": "3.0.0",
"description": "",

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