@nathapp/nestjs-common 1.0.1-rc.11 → 1.0.1-rc.12

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.
@@ -1,8 +1,6 @@
1
1
  import { HttpException } from "@nestjs/common";
2
2
  export declare class HttpMicroServiceException extends HttpException {
3
3
  private _ret;
4
- private _message;
5
4
  constructor(ret: number, message: string);
6
5
  get ret(): number;
7
- get message(): string;
8
6
  }
@@ -4,15 +4,12 @@ exports.HttpMicroServiceException = void 0;
4
4
  const common_1 = require("@nestjs/common");
5
5
  class HttpMicroServiceException extends common_1.HttpException {
6
6
  constructor(ret, message) {
7
- super({ ret, msg: message }, 200);
7
+ super({ ret, message }, 200);
8
8
  this._ret = ret;
9
- this._message = message;
9
+ this.message = message;
10
10
  }
11
11
  get ret() {
12
12
  return this._ret;
13
13
  }
14
- get message() {
15
- return this._message;
16
- }
17
14
  }
18
15
  exports.HttpMicroServiceException = HttpMicroServiceException;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nathapp/nestjs-common",
3
- "version": "1.0.1-rc.11",
3
+ "version": "1.0.1-rc.12",
4
4
  "description": "NestJs Common Library",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && tsc -p tsconfig.json",