turf-common 1.0.8 → 1.0.11

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,5 +1,6 @@
1
1
  import { IAppBadRequestException } from "../types/app-badrequest-exception.type";
2
2
  export declare class AppBadRequestException extends Error {
3
- private errorDetails;
3
+ private _error;
4
4
  constructor(appBadRequestException: IAppBadRequestException);
5
+ get error(): any;
5
6
  }
@@ -19,12 +19,17 @@ exports.AppBadRequestException = void 0;
19
19
  var AppBadRequestException = /** @class */ (function (_super) {
20
20
  __extends(AppBadRequestException, _super);
21
21
  function AppBadRequestException(appBadRequestException) {
22
- var _this = _super.call(this) || this;
23
- _this.message = appBadRequestException.message.join(",");
24
- _this.errorDetails = appBadRequestException;
25
- return _this;
26
- // this.appBadRequestException = appBadRequestException;
22
+ return _super.call(this, appBadRequestException.message.join(",")) || this;
23
+ // this.message = appBadRequestException.message.join(",");
24
+ // this._error = appBadRequestException;
27
25
  }
26
+ Object.defineProperty(AppBadRequestException.prototype, "error", {
27
+ get: function () {
28
+ return this.error;
29
+ },
30
+ enumerable: false,
31
+ configurable: true
32
+ });
28
33
  return AppBadRequestException;
29
34
  }(Error));
30
35
  exports.AppBadRequestException = AppBadRequestException;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.0.8",
3
+ "version": "1.0.11",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -10,6 +10,7 @@
10
10
  "scripts": {
11
11
  "clean": "del build",
12
12
  "build": "npm run clean && tsc",
13
+ "version:deploy": "npm version patch && git push && npm run build && npm publish",
13
14
  "test": "echo \"Error: no test specified\" && exit 1"
14
15
  },
15
16
  "repository": {