@jiangnian520/midway-response 1.0.0 → 1.0.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.
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export { ResponseConfiguration as Configuration } from './configuration';
2
2
  export { AjaxResult } from './core/ajax-result';
3
3
  export { BaseController } from './core/base-controller';
4
4
  export { GlobalExceptionFilter } from './core/global-exception.filter';
5
+ export { ResponseMiddleware } from './core/response.middleware';
5
6
  export * from './interface';
6
7
  /**
7
8
  * ==========================================
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.GlobalExceptionFilter = exports.BaseController = exports.AjaxResult = exports.Configuration = void 0;
17
+ exports.ResponseMiddleware = exports.GlobalExceptionFilter = exports.BaseController = exports.AjaxResult = exports.Configuration = void 0;
18
18
  var configuration_1 = require("./configuration");
19
19
  Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return configuration_1.ResponseConfiguration; } });
20
20
  var ajax_result_1 = require("./core/ajax-result");
@@ -23,6 +23,8 @@ var base_controller_1 = require("./core/base-controller");
23
23
  Object.defineProperty(exports, "BaseController", { enumerable: true, get: function () { return base_controller_1.BaseController; } });
24
24
  var global_exception_filter_1 = require("./core/global-exception.filter");
25
25
  Object.defineProperty(exports, "GlobalExceptionFilter", { enumerable: true, get: function () { return global_exception_filter_1.GlobalExceptionFilter; } });
26
+ var response_middleware_1 = require("./core/response.middleware");
27
+ Object.defineProperty(exports, "ResponseMiddleware", { enumerable: true, get: function () { return response_middleware_1.ResponseMiddleware; } });
26
28
  __exportStar(require("./interface"), exports);
27
29
  /**
28
30
  * ==========================================
@@ -62,4 +64,4 @@ __exportStar(require("./interface"), exports);
62
64
  * // 框架会自动捕获,并返回 { code: 400, msg: '参数错误', data: null }
63
65
  * ```
64
66
  */
65
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxpREFBeUU7QUFBaEUsOEdBQUEscUJBQXFCLE9BQWlCO0FBQy9DLGtEQUFnRDtBQUF2Qyx5R0FBQSxVQUFVLE9BQUE7QUFDbkIsMERBQXdEO0FBQS9DLGlIQUFBLGNBQWMsT0FBQTtBQUN2QiwwRUFBdUU7QUFBOUQsZ0lBQUEscUJBQXFCLE9BQUE7QUFDOUIsOENBQTRCO0FBRTVCOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBcUNHIn0=
67
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxpREFBeUU7QUFBaEUsOEdBQUEscUJBQXFCLE9BQWlCO0FBQy9DLGtEQUFnRDtBQUF2Qyx5R0FBQSxVQUFVLE9BQUE7QUFDbkIsMERBQXdEO0FBQS9DLGlIQUFBLGNBQWMsT0FBQTtBQUN2QiwwRUFBdUU7QUFBOUQsZ0lBQUEscUJBQXFCLE9BQUE7QUFDOUIsa0VBQWdFO0FBQXZELHlIQUFBLGtCQUFrQixPQUFBO0FBQzNCLDhDQUE0QjtBQUU1Qjs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQXFDRyJ9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiangnian520/midway-response",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "专为 Midway 4.0 打造的统一响应与异常格式化组件,支持全自动包装与耗时统计。",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",