@midwayjs/web 3.9.9 → 3.10.1

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.
@@ -15,8 +15,7 @@ const path_1 = require("path");
15
15
  let EggConfiguration = class EggConfiguration {
16
16
  init() {
17
17
  this.decoratorService.registerParameterHandler(core_1.WEB_ROUTER_PARAM_KEY, options => {
18
- var _a;
19
- return (0, core_1.extractKoaLikeValue)(options.metadata.type, options.metadata.propertyData, options.originParamType, (_a = options.metadata) === null || _a === void 0 ? void 0 : _a.pipes)(options.originArgs[0], options.originArgs[1]);
18
+ return (0, core_1.extractKoaLikeValue)(options.metadata.type, options.metadata.propertyData, options.originParamType)(options.originArgs[0], options.originArgs[1]);
20
19
  });
21
20
  }
22
21
  async onReady() {
@@ -14,14 +14,14 @@ export interface IMidwayWebBaseApplication {
14
14
  * @deprecated since version 3.0.0
15
15
  * Please use Application from '@midwayjs/web'
16
16
  */
17
- export declare type IMidwayWebApplication = IMidwayApplication<Context, EggApplication & IMidwayWebBaseApplication>;
17
+ export type IMidwayWebApplication = IMidwayApplication<Context, EggApplication & IMidwayWebBaseApplication>;
18
18
  export interface Application extends IMidwayWebApplication {
19
19
  }
20
20
  /**
21
21
  * @deprecated since version 3.0.0
22
22
  * Please use Context from '@midwayjs/web'
23
23
  */
24
- export declare type IMidwayWebContext<ResponseBodyT = unknown> = IMidwayContext<EggContext<ResponseBodyT>>;
24
+ export type IMidwayWebContext<ResponseBodyT = unknown> = IMidwayContext<EggContext<ResponseBodyT>>;
25
25
  export interface Context<ResponseBodyT = unknown> extends IMidwayWebContext<ResponseBodyT> {
26
26
  session: {
27
27
  /**
@@ -59,8 +59,8 @@ export interface Context<ResponseBodyT = unknown> extends IMidwayWebContext<Resp
59
59
  * @deprecated since version 3.0.0
60
60
  * Please use NextFunction from '@midwayjs/web'
61
61
  */
62
- export declare type IMidwayWebNext = BaseNextFunction;
63
- export declare type NextFunction = BaseNextFunction;
62
+ export type IMidwayWebNext = BaseNextFunction;
63
+ export type NextFunction = BaseNextFunction;
64
64
  export interface IMidwayWebConfigurationOptions extends IConfigurationOptions {
65
65
  app?: IMidwayWebApplication;
66
66
  plugins?: {
@@ -110,7 +110,7 @@ export interface IMidwayWebConfigurationOptions extends IConfigurationOptions {
110
110
  * @deprecated since version 3.0.0
111
111
  * Please use IMiddleware from '@midwayjs/core'
112
112
  */
113
- export declare type MidwayWebMiddleware = Middleware<DefaultState, Context>;
113
+ export type MidwayWebMiddleware = Middleware<DefaultState, Context>;
114
114
  /**
115
115
  * @deprecated since version 3.0.0
116
116
  * Please use IMiddleware from '@midwayjs/core'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/web",
3
- "version": "3.9.9",
3
+ "version": "3.10.1",
4
4
  "description": "Midway Web Framework for Egg.js",
5
5
  "main": "dist/index",
6
6
  "typings": "index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "license": "MIT",
30
30
  "devDependencies": {
31
31
  "@midwayjs/logger": "^2.15.0",
32
- "@midwayjs/mock": "^3.9.0",
32
+ "@midwayjs/mock": "^3.10.1",
33
33
  "dayjs": "1.11.7",
34
34
  "egg-logger": "2.9.1",
35
35
  "egg-mock": "4.2.1",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@eggjs/router": "^2.0.0",
48
- "@midwayjs/core": "^3.9.0",
48
+ "@midwayjs/core": "^3.10.1",
49
49
  "egg": "^2.28.0",
50
50
  "egg-cluster": "^1.27.1",
51
51
  "find-up": "5.0.0",
@@ -59,5 +59,5 @@
59
59
  "engines": {
60
60
  "node": ">=12"
61
61
  },
62
- "gitHead": "95bb5b3f23b41f685372c45d1c3bb12a3e31b4e0"
62
+ "gitHead": "6bc9f7a97e4188399d2406f5a38bad5aeb983e07"
63
63
  }