@midwayjs/passport 2.14.1 → 2.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.14.2](https://github.com/midwayjs/midway/compare/v2.14.1...v2.14.2) (2021-12-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * generate middleware typings ([#1442](https://github.com/midwayjs/midway/issues/1442)) ([1b2f99b](https://github.com/midwayjs/midway/commit/1b2f99b0fcfa6d87fa216ac9277d9f1240ef26a2))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.14.1](https://github.com/midwayjs/midway/compare/v2.14.0...v2.14.1) (2021-12-06)
7
18
 
8
19
 
@@ -39,6 +39,10 @@ function initialize(passport) {
39
39
  const login = req.login;
40
40
  ctx.login = ctx.logIn = function (user, options) {
41
41
  return new Promise((resolve, reject) => {
42
+ // fix session manager missing
43
+ if (!req._sessionManager) {
44
+ req._sessionManager = passport._sm;
45
+ }
42
46
  login.call(req, user, options, err => {
43
47
  if (err)
44
48
  reject(err);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midwayjs/passport",
3
3
  "description": "midway passport component",
4
- "version": "2.14.1",
4
+ "version": "2.14.2",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "files": [
@@ -23,11 +23,11 @@
23
23
  "devDependencies": {
24
24
  "@midwayjs/core": "^2.14.0",
25
25
  "@midwayjs/decorator": "^2.14.0",
26
- "@midwayjs/express": "^2.14.0",
27
- "@midwayjs/jwt": "^2.14.0",
28
- "@midwayjs/koa": "^2.14.0",
26
+ "@midwayjs/express": "^2.14.2",
27
+ "@midwayjs/jwt": "^2.14.2",
28
+ "@midwayjs/koa": "^2.14.2",
29
29
  "@midwayjs/mock": "^2.14.0",
30
- "@midwayjs/web": "^2.14.0",
30
+ "@midwayjs/web": "^2.14.2",
31
31
  "@types/passport": "^1.0.7",
32
32
  "@types/passport-local": "^1.0.34",
33
33
  "express-session": "^1.17.2",
@@ -37,5 +37,5 @@
37
37
  "peerDependencies": {
38
38
  "passport": "^0.5.0"
39
39
  },
40
- "gitHead": "b3dc5e27f4d611880e9525a3b798b99b349c3dd5"
40
+ "gitHead": "68b7fd9182619e8428f353f24a52254abce6e5bf"
41
41
  }