@adarsh-tickets/common 1.0.4 → 1.0.6
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/build/errors/index.d.ts
CHANGED
package/build/errors/index.js
CHANGED
|
@@ -18,3 +18,4 @@ __exportStar(require("./database-connection.error"), exports);
|
|
|
18
18
|
__exportStar(require("./request-validator.error"), exports);
|
|
19
19
|
__exportStar(require("./bad-request.error"), exports);
|
|
20
20
|
__exportStar(require("./no-authenticate.error"), exports);
|
|
21
|
+
__exportStar(require("./no-found-error"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotFoundError = void 0;
|
|
4
|
+
const custom_error_abstract_1 = require("./custom-error-abstract");
|
|
5
|
+
class NotFoundError extends custom_error_abstract_1.AbstractCustomError {
|
|
6
|
+
constructor() {
|
|
7
|
+
super("Not found");
|
|
8
|
+
this.statusCode = 400;
|
|
9
|
+
Object.setPrototypeOf(this, NotFoundError.prototype);
|
|
10
|
+
}
|
|
11
|
+
serializeErrors() {
|
|
12
|
+
return [{ message: "Not found" }];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.NotFoundError = NotFoundError;
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./error-handler.middleware"), exports);
|
|
18
18
|
__exportStar(require("./validate-request.middleware"), exports);
|
|
19
19
|
__exportStar(require("./current-user.middleware"), exports);
|
|
20
|
+
__exportStar(require("./not-authorize.middleware"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adarsh-tickets/common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"main": "./build/index.js",
|
|
5
5
|
"types": "./build/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"clean": "del ./build/*",
|
|
11
11
|
"build": "npm run clean && tsc ",
|
|
12
|
-
"pub": "git add . && git commit -m \"
|
|
12
|
+
"pub": "git add . && git commit -m \"Update package code\" && npm version patch && npm run build && npm publish"
|
|
13
13
|
},
|
|
14
14
|
"keywords": [],
|
|
15
15
|
"author": "",
|