koa-passport
Advanced tools
Comparing version 3.0.0-rc.1 to 3.0.0-rc.2
@@ -35,2 +35,6 @@ # Changelog | ||
## 1.3.0 | ||
- export KoaPassport as an alternative to the by default exported singleton | ||
## 1.2.0 | ||
@@ -37,0 +41,0 @@ |
@@ -92,5 +92,9 @@ 'use strict' | ||
callback = function(err, user, info, status) { | ||
Promise.resolve(_callback(err, user, info, status)) | ||
.then(() => callback.resolve(false)) | ||
.catch(err => callback.reject(err)) | ||
try { | ||
Promise.resolve(_callback(err, user, info, status)) | ||
.then(() => callback.resolve(false)) | ||
.catch(err => callback.reject(err)) | ||
} catch (err) { | ||
callback.reject(err) | ||
} | ||
} | ||
@@ -97,0 +101,0 @@ } |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "3.0.0-rc.1", | ||
"version": "3.0.0-rc.2", | ||
"description": "Passport middleware for Koa", | ||
@@ -10,0 +10,0 @@ "keywords": [ |
@@ -7,10 +7,11 @@ # koa-passport | ||
[![Dependency Status][dependencies]](https://david-dm.org/rkusa/koa-passport) | ||
[![Build Status][drone]](https://ci.rkusa.st/rkusa/koa-passport) | ||
[![Build Status][travis]](https://travis-ci.org/rkusa/koa-passport) | ||
koa-passport version | koa version | branch | npm tag | ||
--------------------- | ------------| ------ | ------- | ||
1.x | 1.x | master | latest | ||
2.x, 3.x | 2.x | v2.x | next | ||
1.x | 1.x | v1.x | latest | ||
2.x | 2.x | v2.x | next | ||
3.x | 2.x | master | | ||
## Migration to v`3.0.0-rc.1` | ||
## Migration to v`3.0.0-rc.2` | ||
@@ -57,4 +58,4 @@ - change `ctx.passport.*` to `ctx.state.*` (e.g. `ctx.passport.user` to `ctx.state.user`) | ||
[npm]: http://img.shields.io/npm/v/koa-passport.svg?style=flat-square | ||
[dependencies]: http://img.shields.io/david/rkusa/koa-passport.svg?style=flat-square | ||
[drone]: http://ci.rkusa.st/api/badges/rkusa/koa-passport/status.svg?style=flat-square | ||
[npm]: http://img.shields.io/npm/v/koa-passport.svg | ||
[dependencies]: http://img.shields.io/david/rkusa/koa-passport.svg | ||
[travis]: https://travis-ci.org/rkusa/koa-passport.svg?branch=master |
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
36351
320
60
8