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

express-session

Package Overview
Dependencies
Maintainers
3
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-session - npm Package Compare versions

Comparing version 1.6.5 to 1.7.0

12

History.md

@@ -0,1 +1,13 @@

1.7.0 / 2014-07-22
==================
* Improve session-ending error handling
- Errors are passed to `next(err)` instead of `console.error`
* deps: debug@1.0.4
* deps: depd@0.4.2
- Add `TRACE_DEPRECATION` environment variable
- Remove non-standard grey color from color output
- Support `--no-deprecation` argument
- Support `--trace-deprecation` argument
1.6.5 / 2014-07-11

@@ -2,0 +14,0 @@ ==================

23

index.js

@@ -54,2 +54,11 @@ /*!

/**
* Node.js 0.8+ async implementation.
*/
/* istanbul ignore next */
var defer = typeof setImmediate === 'function'
? setImmediate
: function(fn){ process.nextTick(fn.bind.apply(fn, arguments)) }
/**
* Setup session store with the given `options`.

@@ -193,4 +202,7 @@ *

debug('destroying');
store.destroy(req.sessionID, function(err){
if (err) console.error(err.stack);
store.destroy(req.sessionID, function ondestroy(err) {
if (err) {
defer(next, err);
}
debug('destroyed');

@@ -225,4 +237,7 @@

debug('saving');
req.session.save(function(err){
if (err) console.error(err.stack);
req.session.save(function onsave(err) {
if (err) {
defer(next, err);
}
debug('saved');

@@ -229,0 +244,0 @@

8

package.json
{
"name": "express-session",
"version": "1.6.5",
"version": "1.7.0",
"description": "Simple session middleware for Express",

@@ -16,4 +16,4 @@ "author": "TJ Holowaychuk <tj@vision-media.ca> (http://tjholowaychuk.com)",

"cookie-signature": "1.0.4",
"debug": "1.0.3",
"depd": "0.3.0",
"debug": "1.0.4",
"depd": "0.4.2",
"on-headers": "0.0.0",

@@ -27,3 +27,3 @@ "uid-safe": "1.0.1",

"istanbul": "0.3.0",
"express": "~4.5.0",
"express": "~4.6.1",
"mocha": "~1.20.1",

@@ -30,0 +30,0 @@ "should": "~4.0.4",

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