express-session
Advanced tools
Comparing version 1.17.0 to 1.17.1
@@ -0,1 +1,6 @@ | ||
1.17.1 / 2020-04-16 | ||
=================== | ||
* Fix internal method wrapping error on failed reloads | ||
1.17.0 / 2019-10-10 | ||
@@ -2,0 +7,0 @@ =================== |
15
index.js
@@ -379,2 +379,12 @@ /*! | ||
function rewrapmethods (sess, callback) { | ||
return function () { | ||
if (req.session !== sess) { | ||
wrapmethods(req.session) | ||
} | ||
callback.apply(this, arguments) | ||
} | ||
} | ||
// wrap session methods | ||
@@ -387,6 +397,3 @@ function wrapmethods(sess) { | ||
debug('reloading %s', this.id) | ||
_reload.call(this, function () { | ||
wrapmethods(req.session) | ||
callback.apply(this, arguments) | ||
}) | ||
_reload.call(this, rewrapmethods(this, callback)) | ||
} | ||
@@ -393,0 +400,0 @@ |
{ | ||
"name": "express-session", | ||
"version": "1.17.0", | ||
"version": "1.17.1", | ||
"description": "Simple session middleware for Express", | ||
@@ -24,8 +24,8 @@ "author": "TJ Holowaychuk <tj@vision-media.ca> (http://tjholowaychuk.com)", | ||
"after": "0.8.2", | ||
"cookie-parser": "1.4.4", | ||
"cookie-parser": "1.4.5", | ||
"eslint": "3.19.0", | ||
"eslint-plugin-markdown": "1.0.0", | ||
"eslint-plugin-markdown": "1.0.2", | ||
"express": "4.17.1", | ||
"mocha": "6.2.1", | ||
"nyc": "14.1.1", | ||
"mocha": "7.1.1", | ||
"nyc": "15.0.1", | ||
"supertest": "4.0.2" | ||
@@ -32,0 +32,0 @@ }, |
@@ -832,2 +832,20 @@ # express-session | ||
## Debugging | ||
This module uses the [debug](https://www.npmjs.com/package/debug) module | ||
internally to log information about session operations. | ||
To see all the internal logs, set the `DEBUG` environment variable to | ||
`express-session` when launching your app (`npm start`, in this example): | ||
```sh | ||
$ DEBUG=express-session npm start | ||
``` | ||
On Windows, use the corresponding command; | ||
```sh | ||
> set DEBUG=express-session & npm start | ||
``` | ||
## License | ||
@@ -834,0 +852,0 @@ |
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
77804
1030
863