koa-generic-session
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -97,3 +97,3 @@ 'use strict'; | ||
} else { | ||
debug('get session error: ', err.message); | ||
debug('get session error: ', err && err.message); | ||
errorHandler(err, 'get', ctx); | ||
@@ -193,3 +193,3 @@ } | ||
} catch (err) { | ||
debug('set session error: ', err.message); | ||
debug('set session error: ', err && err.message); | ||
errorHandler(err, 'set', ctx); | ||
@@ -268,3 +268,3 @@ } | ||
} catch (err) { | ||
debug('next logic error: %s', err.message); | ||
debug('next logic error: %s', err && err.message); | ||
firstError = err; | ||
@@ -276,3 +276,3 @@ } | ||
} catch (err) { | ||
debug('refresh session error: %s', err.message); | ||
debug('refresh session error: %s', err && err.message); | ||
if (firstError) ctx.app.emit('error', err, ctx); | ||
@@ -279,0 +279,0 @@ firstError = firstError || err; |
@@ -5,3 +5,3 @@ { | ||
"repository": "koajs/generic-session", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "engines": { |
@@ -89,2 +89,3 @@ generic-session | ||
* After adding session middleware, you can use `this.session` to set or get the sessions. | ||
* Getting session ID via `this.sessionId`. | ||
* Setting `this.session = null;` will destroy this session. | ||
@@ -91,0 +92,0 @@ * Altering `this.session.cookie` changes the cookie options of this user. Also you can use the cookie options in session the store. Use for example `cookie.maxAge` as the session store's ttl. |
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
33980
170