New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 2.2.1 to 2.2.2

8

CHANGELOG.md
# Changelog
## 2.2.2
- remove `ctx.req.user` deprecation warning for now #66
## 2.2.1
- fix middleware to properly catch promise errors #63
## 2.2.0

@@ -4,0 +12,0 @@

3

lib/framework/koa.js

@@ -7,3 +7,2 @@ 'use strict'

const passport = require('passport')
const deprecate = require('depd')('koa-passport')

@@ -33,7 +32,5 @@ /**

get: function() {
deprecate('getting ctx.req.' + userProperty + ' is deprecated in favour of ctx.state.' + userProperty)
return ctx.passport[userProperty]
},
set: function(val) {
deprecate('setting ctx.req.' + userProperty + ' is deprecated in favour of ctx.state.' + userProperty)
ctx.passport[userProperty] = val

@@ -40,0 +37,0 @@ }

@@ -7,3 +7,3 @@ {

},
"version": "2.2.1",
"version": "2.2.2",
"description": "Passport middleware for Koa",

@@ -21,3 +21,2 @@ "keywords": [

"dependencies": {
"depd": "^1.1.0",
"passport": "^0.3.0"

@@ -30,3 +29,3 @@ },

"koa-route": "^3.0.0",
"mocha": "^2.2.0",
"mocha": "^3.0.0",
"passport-local": "^1.0.0",

@@ -33,0 +32,0 @@ "supertest": "^1.0.0",

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