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

koa-passport

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-passport - npm Package Compare versions

Comparing version 3.0.0-rc.1 to 3.0.0-rc.2

yarn.lock

4

CHANGELOG.md

@@ -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 @@

10

lib/framework/koa.js

@@ -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
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