Comparing version 0.2.14 to 0.2.15
@@ -6,2 +6,8 @@ "use strict"; | ||
const kauthProvider = new lib_1.KauthProvider(kauthConfig); | ||
if (kauthConfig.mockHandler) { | ||
return async function middleware(ctx, next) { | ||
await kauthConfig.mockHandler(ctx); | ||
await next(); | ||
}; | ||
} | ||
return async function middleware(ctx, next) { | ||
@@ -8,0 +14,0 @@ await kauthProvider.dispatch(ctx, next); |
@@ -0,1 +1,10 @@ | ||
## [0.2.15](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-egg/compare/v0.2.14...v0.2.15) (2021-01-14) | ||
### Features | ||
* mockHandler ([7776e64](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-egg/commit/7776e64ab7ebf688780091c8c8648307e986f798)) | ||
## [0.2.14](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-egg/compare/v0.2.13...v0.2.14) (2021-01-14) | ||
@@ -2,0 +11,0 @@ |
{ | ||
"name": "egg-kauth", | ||
"version": "0.2.14", | ||
"version": "0.2.15", | ||
"description": "egg kauth plugin", | ||
@@ -31,3 +31,3 @@ "eggPlugin": { | ||
"dependencies": { | ||
"kauth-sdk-node": "^0.1.9" | ||
"kauth-sdk-node": "^0.1.10" | ||
}, | ||
@@ -34,0 +34,0 @@ "devDependencies": { |
28825
504
Updatedkauth-sdk-node@^0.1.10