express-session
Advanced tools
Comparing version 1.6.5 to 1.7.0
@@ -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 @@ |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32393
781
+ Addeddebug@1.0.4(transitive)
+ Addeddepd@0.4.2(transitive)
- Removeddebug@1.0.3(transitive)
- Removeddepd@0.3.0(transitive)
Updateddebug@1.0.4
Updateddepd@0.4.2