@naman_deep_singh/errors-utils 1.4.0 → 1.4.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/README.md +1 -1
- package/dist/cjs/error/index.d.ts +14 -0
- package/dist/cjs/error/index.js +39 -0
- package/dist/cjs/index.d.ts +1 -13
- package/dist/cjs/index.js +2 -21
- package/dist/esm/error/index.d.ts +14 -0
- package/dist/esm/error/index.js +23 -0
- package/dist/esm/index.d.ts +1 -13
- package/dist/esm/index.js +2 -21
- package/dist/types/error/index.d.ts +14 -0
- package/dist/types/index.d.ts +1 -13
- package/package.json +1 -1
- /package/dist/cjs/error/{ServiceUnavailable.d.ts → ServiceUnavailableError.d.ts} +0 -0
- /package/dist/cjs/error/{ServiceUnavailable.js → ServiceUnavailableError.js} +0 -0
- /package/dist/esm/error/{ServiceUnavailable.d.ts → ServiceUnavailableError.d.ts} +0 -0
- /package/dist/esm/error/{ServiceUnavailable.js → ServiceUnavailableError.js} +0 -0
- /package/dist/types/error/{ServiceUnavailable.d.ts → ServiceUnavailableError.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './AppError';
|
|
2
|
+
export * from './HTTPError';
|
|
3
|
+
export * from './BadRequestError';
|
|
4
|
+
export * from './UnauthorizedError';
|
|
5
|
+
export * from './ForbiddenError';
|
|
6
|
+
export * from './NotFoundError';
|
|
7
|
+
export * from './ConflictError';
|
|
8
|
+
export * from './ValidationError';
|
|
9
|
+
export * from './TooManyRequestsError';
|
|
10
|
+
export * from './TokenExpiredError';
|
|
11
|
+
export * from './TokenMalformedError';
|
|
12
|
+
export * from './InternalServerError';
|
|
13
|
+
export * from './CryptoIntegrityError';
|
|
14
|
+
export * from './ServiceUnavailableError';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AppError"), exports);
|
|
18
|
+
__exportStar(require("./HTTPError"), exports);
|
|
19
|
+
// =========================
|
|
20
|
+
// 4xx Client Errors
|
|
21
|
+
// =========================
|
|
22
|
+
__exportStar(require("./BadRequestError"), exports);
|
|
23
|
+
__exportStar(require("./UnauthorizedError"), exports);
|
|
24
|
+
__exportStar(require("./ForbiddenError"), exports);
|
|
25
|
+
__exportStar(require("./NotFoundError"), exports);
|
|
26
|
+
__exportStar(require("./ConflictError"), exports);
|
|
27
|
+
__exportStar(require("./ValidationError"), exports);
|
|
28
|
+
__exportStar(require("./TooManyRequestsError"), exports);
|
|
29
|
+
// =========================
|
|
30
|
+
// Auth / Token Errors
|
|
31
|
+
// =========================
|
|
32
|
+
__exportStar(require("./TokenExpiredError"), exports);
|
|
33
|
+
__exportStar(require("./TokenMalformedError"), exports);
|
|
34
|
+
// =========================
|
|
35
|
+
// 5xx Server Errors
|
|
36
|
+
// =========================
|
|
37
|
+
__exportStar(require("./InternalServerError"), exports);
|
|
38
|
+
__exportStar(require("./CryptoIntegrityError"), exports);
|
|
39
|
+
__exportStar(require("./ServiceUnavailableError"), exports);
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
export * from './errorRegistry';
|
|
2
|
-
export * from './error
|
|
3
|
-
export * from './error/HTTPError';
|
|
4
|
-
export * from './error/BadRequestError';
|
|
5
|
-
export * from './error/UnauthorizedError';
|
|
6
|
-
export * from './error/ForbiddenError';
|
|
7
|
-
export * from './error/NotFoundError';
|
|
8
|
-
export * from './error/ConflictError';
|
|
9
|
-
export * from './error/ValidationError';
|
|
10
|
-
export * from './error/TooManyRequestsError';
|
|
11
|
-
export * from './error/TokenExpiredError';
|
|
12
|
-
export * from './error/TokenMalformedError';
|
|
13
|
-
export * from './error/InternalServerError';
|
|
14
|
-
export * from './error/CryptoIntegrityError';
|
|
2
|
+
export * from './error';
|
|
15
3
|
export * from './constants';
|
|
16
4
|
export * from './middleware/express';
|
package/dist/cjs/index.js
CHANGED
|
@@ -16,28 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./errorRegistry"), exports);
|
|
18
18
|
// =========================
|
|
19
|
-
|
|
20
|
-
__exportStar(require("./error/HTTPError"), exports);
|
|
19
|
+
// default errors
|
|
21
20
|
// =========================
|
|
22
|
-
|
|
23
|
-
// =========================
|
|
24
|
-
__exportStar(require("./error/BadRequestError"), exports);
|
|
25
|
-
__exportStar(require("./error/UnauthorizedError"), exports);
|
|
26
|
-
__exportStar(require("./error/ForbiddenError"), exports);
|
|
27
|
-
__exportStar(require("./error/NotFoundError"), exports);
|
|
28
|
-
__exportStar(require("./error/ConflictError"), exports);
|
|
29
|
-
__exportStar(require("./error/ValidationError"), exports);
|
|
30
|
-
__exportStar(require("./error/TooManyRequestsError"), exports);
|
|
31
|
-
// =========================
|
|
32
|
-
// Auth / Token Errors
|
|
33
|
-
// =========================
|
|
34
|
-
__exportStar(require("./error/TokenExpiredError"), exports);
|
|
35
|
-
__exportStar(require("./error/TokenMalformedError"), exports);
|
|
36
|
-
// =========================
|
|
37
|
-
// 5xx Server Errors
|
|
38
|
-
// =========================
|
|
39
|
-
__exportStar(require("./error/InternalServerError"), exports);
|
|
40
|
-
__exportStar(require("./error/CryptoIntegrityError"), exports);
|
|
21
|
+
__exportStar(require("./error"), exports);
|
|
41
22
|
// =========================
|
|
42
23
|
// Constants
|
|
43
24
|
// =========================
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './AppError';
|
|
2
|
+
export * from './HTTPError';
|
|
3
|
+
export * from './BadRequestError';
|
|
4
|
+
export * from './UnauthorizedError';
|
|
5
|
+
export * from './ForbiddenError';
|
|
6
|
+
export * from './NotFoundError';
|
|
7
|
+
export * from './ConflictError';
|
|
8
|
+
export * from './ValidationError';
|
|
9
|
+
export * from './TooManyRequestsError';
|
|
10
|
+
export * from './TokenExpiredError';
|
|
11
|
+
export * from './TokenMalformedError';
|
|
12
|
+
export * from './InternalServerError';
|
|
13
|
+
export * from './CryptoIntegrityError';
|
|
14
|
+
export * from './ServiceUnavailableError';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from './AppError';
|
|
2
|
+
export * from './HTTPError';
|
|
3
|
+
// =========================
|
|
4
|
+
// 4xx Client Errors
|
|
5
|
+
// =========================
|
|
6
|
+
export * from './BadRequestError';
|
|
7
|
+
export * from './UnauthorizedError';
|
|
8
|
+
export * from './ForbiddenError';
|
|
9
|
+
export * from './NotFoundError';
|
|
10
|
+
export * from './ConflictError';
|
|
11
|
+
export * from './ValidationError';
|
|
12
|
+
export * from './TooManyRequestsError';
|
|
13
|
+
// =========================
|
|
14
|
+
// Auth / Token Errors
|
|
15
|
+
// =========================
|
|
16
|
+
export * from './TokenExpiredError';
|
|
17
|
+
export * from './TokenMalformedError';
|
|
18
|
+
// =========================
|
|
19
|
+
// 5xx Server Errors
|
|
20
|
+
// =========================
|
|
21
|
+
export * from './InternalServerError';
|
|
22
|
+
export * from './CryptoIntegrityError';
|
|
23
|
+
export * from './ServiceUnavailableError';
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
export * from './errorRegistry';
|
|
2
|
-
export * from './error
|
|
3
|
-
export * from './error/HTTPError';
|
|
4
|
-
export * from './error/BadRequestError';
|
|
5
|
-
export * from './error/UnauthorizedError';
|
|
6
|
-
export * from './error/ForbiddenError';
|
|
7
|
-
export * from './error/NotFoundError';
|
|
8
|
-
export * from './error/ConflictError';
|
|
9
|
-
export * from './error/ValidationError';
|
|
10
|
-
export * from './error/TooManyRequestsError';
|
|
11
|
-
export * from './error/TokenExpiredError';
|
|
12
|
-
export * from './error/TokenMalformedError';
|
|
13
|
-
export * from './error/InternalServerError';
|
|
14
|
-
export * from './error/CryptoIntegrityError';
|
|
2
|
+
export * from './error';
|
|
15
3
|
export * from './constants';
|
|
16
4
|
export * from './middleware/express';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,27 +1,8 @@
|
|
|
1
1
|
export * from './errorRegistry';
|
|
2
2
|
// =========================
|
|
3
|
-
|
|
4
|
-
export * from './error/HTTPError';
|
|
3
|
+
// default errors
|
|
5
4
|
// =========================
|
|
6
|
-
|
|
7
|
-
// =========================
|
|
8
|
-
export * from './error/BadRequestError';
|
|
9
|
-
export * from './error/UnauthorizedError';
|
|
10
|
-
export * from './error/ForbiddenError';
|
|
11
|
-
export * from './error/NotFoundError';
|
|
12
|
-
export * from './error/ConflictError';
|
|
13
|
-
export * from './error/ValidationError';
|
|
14
|
-
export * from './error/TooManyRequestsError';
|
|
15
|
-
// =========================
|
|
16
|
-
// Auth / Token Errors
|
|
17
|
-
// =========================
|
|
18
|
-
export * from './error/TokenExpiredError';
|
|
19
|
-
export * from './error/TokenMalformedError';
|
|
20
|
-
// =========================
|
|
21
|
-
// 5xx Server Errors
|
|
22
|
-
// =========================
|
|
23
|
-
export * from './error/InternalServerError';
|
|
24
|
-
export * from './error/CryptoIntegrityError';
|
|
5
|
+
export * from './error';
|
|
25
6
|
// =========================
|
|
26
7
|
// Constants
|
|
27
8
|
// =========================
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './AppError';
|
|
2
|
+
export * from './HTTPError';
|
|
3
|
+
export * from './BadRequestError';
|
|
4
|
+
export * from './UnauthorizedError';
|
|
5
|
+
export * from './ForbiddenError';
|
|
6
|
+
export * from './NotFoundError';
|
|
7
|
+
export * from './ConflictError';
|
|
8
|
+
export * from './ValidationError';
|
|
9
|
+
export * from './TooManyRequestsError';
|
|
10
|
+
export * from './TokenExpiredError';
|
|
11
|
+
export * from './TokenMalformedError';
|
|
12
|
+
export * from './InternalServerError';
|
|
13
|
+
export * from './CryptoIntegrityError';
|
|
14
|
+
export * from './ServiceUnavailableError';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
export * from './errorRegistry';
|
|
2
|
-
export * from './error
|
|
3
|
-
export * from './error/HTTPError';
|
|
4
|
-
export * from './error/BadRequestError';
|
|
5
|
-
export * from './error/UnauthorizedError';
|
|
6
|
-
export * from './error/ForbiddenError';
|
|
7
|
-
export * from './error/NotFoundError';
|
|
8
|
-
export * from './error/ConflictError';
|
|
9
|
-
export * from './error/ValidationError';
|
|
10
|
-
export * from './error/TooManyRequestsError';
|
|
11
|
-
export * from './error/TokenExpiredError';
|
|
12
|
-
export * from './error/TokenMalformedError';
|
|
13
|
-
export * from './error/InternalServerError';
|
|
14
|
-
export * from './error/CryptoIntegrityError';
|
|
2
|
+
export * from './error';
|
|
15
3
|
export * from './constants';
|
|
16
4
|
export * from './middleware/express';
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|