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

express-stickyforms

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-stickyforms - npm Package Compare versions

Comparing version 0.0.1 to 1.0.0

24

index.js

@@ -1,18 +0,16 @@

module.exports = function() {
module.exports = function(req, res, next) {
return function(req, res, next) {
if (typeof req.session.sticky === 'undefined') {
res.locals.sticky = {};
} else {
res.locals.sticky = req.session.sticky;
delete req.session.sticky;
}
if (typeof req.session.sticky === 'undefined') {
res.locals.sticky = {};
} else {
res.locals.sticky = req.session.sticky;
delete req.session.sticky;
}
req.sticky = function() {
req.session.sticky = req.body;
};
next();
req.sticky = function() {
req.session.sticky = req.body;
};
next();
};
{
"name": "express-stickyforms",
"version": "0.0.1",
"version": "1.0.0",
"description": "Persistent form middleware for express.",

@@ -5,0 +5,0 @@ "url": "https://github.com/emilioTe/express-stickyforms",

# express-stickyforms
version 0.0.1
version **1.0.0**

@@ -36,3 +36,3 @@

//
app.use(require('stickyforms')());
app.use(require('express-stickyforms'));

@@ -39,0 +39,0 @@ app.use(app.router);

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