@thebester/common 1.0.13 → 1.0.14

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,5 @@
1
1
  import { CustomError } from "./custom-error";
2
- declare class BadRequestError extends CustomError {
2
+ export declare class BadRequestError extends CustomError {
3
3
  message: string;
4
4
  statusCode: number;
5
5
  constructor(message: string);
@@ -8,4 +8,3 @@ declare class BadRequestError extends CustomError {
8
8
  field?: string;
9
9
  }[];
10
10
  }
11
- export default BadRequestError;
@@ -1,5 +1,5 @@
1
1
  import { CustomError } from "./custom-error";
2
- class BadRequestError extends CustomError {
2
+ export class BadRequestError extends CustomError {
3
3
  constructor(message) {
4
4
  super(message);
5
5
  this.message = message;
@@ -11,4 +11,3 @@ class BadRequestError extends CustomError {
11
11
  return [{ message: this.message }];
12
12
  }
13
13
  }
14
- export default BadRequestError;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thebester/common",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",