@eggjs/tegg-controller-plugin 3.6.2 → 3.7.0

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.
Files changed (2) hide show
  1. package/README.md +3 -2
  2. package/package.json +10 -10
package/README.md CHANGED
@@ -48,13 +48,14 @@ Middleware 支持多个入参,依次传入要生效的中间件
48
48
  ```ts
49
49
  // app/middleware/global_log.ts
50
50
  import { Context } from 'egg';
51
+ import type { Next } from '@eggjs/controller-decorator';
51
52
 
52
- export default async function globalLog(ctx: Context, next: any) {
53
+ export default async function globalLog(ctx: Context, next: Next) {
53
54
  ctx.logger.info('have a request');
54
55
  return next();
55
56
  }
56
57
 
57
- export default async function globalLog2(ctx: Context, next: any) {
58
+ export default async function globalLog2(ctx: Context, next: Next) {
58
59
  ctx.logger.info('have a request2');
59
60
  return next();
60
61
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "tegg"
8
8
  ]
9
9
  },
10
- "version": "3.6.2",
10
+ "version": "3.7.0",
11
11
  "description": "controller decorator for egg",
12
12
  "keywords": [
13
13
  "egg",
@@ -48,11 +48,11 @@
48
48
  "dependencies": {
49
49
  "@eggjs/egg-module-common": "^3.2.3",
50
50
  "@eggjs/router": "^2.0.1",
51
- "@eggjs/tegg": "^3.6.0",
52
- "@eggjs/tegg-common-util": "^3.2.3",
53
- "@eggjs/tegg-loader": "^3.5.0",
54
- "@eggjs/tegg-metadata": "^3.5.0",
55
- "@eggjs/tegg-runtime": "^3.5.0",
51
+ "@eggjs/tegg": "^3.7.0",
52
+ "@eggjs/tegg-common-util": "^3.7.0",
53
+ "@eggjs/tegg-loader": "^3.7.0",
54
+ "@eggjs/tegg-metadata": "^3.7.0",
55
+ "@eggjs/tegg-runtime": "^3.7.0",
56
56
  "egg-errors": "^2.3.0",
57
57
  "globby": "^10.0.2",
58
58
  "koa-compose": "^3.2.1",
@@ -60,9 +60,9 @@
60
60
  "sdk-base": "^4.2.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@eggjs/module-test-util": "^3.5.0",
64
- "@eggjs/tegg-config": "^3.2.3",
65
- "@eggjs/tegg-plugin": "^3.6.2",
63
+ "@eggjs/module-test-util": "^3.7.0",
64
+ "@eggjs/tegg-config": "^3.7.0",
65
+ "@eggjs/tegg-plugin": "^3.7.0",
66
66
  "@types/mocha": "^10.0.1",
67
67
  "@types/node": "^18.11.18",
68
68
  "cross-env": "^7.0.3",
@@ -77,5 +77,5 @@
77
77
  "publishConfig": {
78
78
  "access": "public"
79
79
  },
80
- "gitHead": "dadffcec60507bc079b0568713db4e5a608e8b25"
80
+ "gitHead": "c09aba3d398f0ac93f087c82947f736489a064c9"
81
81
  }