@naman_deep_singh/errors-utils 1.3.1 → 1.3.3
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/index.d.ts +6 -0
- package/dist/cjs/index.js +24 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.js +24 -0
- package/dist/types/index.d.ts +6 -0
- package/package.json +4 -4
package/README.md
CHANGED
package/dist/cjs/index.d.ts
CHANGED
|
@@ -6,5 +6,11 @@ export * from './error/ForbiddenError';
|
|
|
6
6
|
export * from './error/NotFoundError';
|
|
7
7
|
export * from './error/ConflictError';
|
|
8
8
|
export * from './error/ValidationError';
|
|
9
|
+
export * from './error/RateLimitError';
|
|
10
|
+
export * from './error/TooManyRequestsError';
|
|
11
|
+
export * from './error/TokenExpiredError';
|
|
12
|
+
export * from './error/TokenMalformedError';
|
|
9
13
|
export * from './error/InternalServerError';
|
|
14
|
+
export * from './error/CryptoIntegrityError';
|
|
15
|
+
export * from './constants';
|
|
10
16
|
export * from './middleware/express';
|
package/dist/cjs/index.js
CHANGED
|
@@ -14,13 +14,37 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// =========================
|
|
18
|
+
// Base Errors
|
|
19
|
+
// =========================
|
|
17
20
|
__exportStar(require("./error/AppError"), exports);
|
|
18
21
|
__exportStar(require("./error/HTTPError"), exports);
|
|
22
|
+
// =========================
|
|
23
|
+
// 4xx Client Errors
|
|
24
|
+
// =========================
|
|
19
25
|
__exportStar(require("./error/BadRequestError"), exports);
|
|
20
26
|
__exportStar(require("./error/UnauthorizedError"), exports);
|
|
21
27
|
__exportStar(require("./error/ForbiddenError"), exports);
|
|
22
28
|
__exportStar(require("./error/NotFoundError"), exports);
|
|
23
29
|
__exportStar(require("./error/ConflictError"), exports);
|
|
24
30
|
__exportStar(require("./error/ValidationError"), exports);
|
|
31
|
+
__exportStar(require("./error/RateLimitError"), exports);
|
|
32
|
+
__exportStar(require("./error/TooManyRequestsError"), exports);
|
|
33
|
+
// =========================
|
|
34
|
+
// Auth / Token Errors
|
|
35
|
+
// =========================
|
|
36
|
+
__exportStar(require("./error/TokenExpiredError"), exports);
|
|
37
|
+
__exportStar(require("./error/TokenMalformedError"), exports);
|
|
38
|
+
// =========================
|
|
39
|
+
// 5xx Server Errors
|
|
40
|
+
// =========================
|
|
25
41
|
__exportStar(require("./error/InternalServerError"), exports);
|
|
42
|
+
__exportStar(require("./error/CryptoIntegrityError"), exports);
|
|
43
|
+
// =========================
|
|
44
|
+
// Constants
|
|
45
|
+
// =========================
|
|
46
|
+
__exportStar(require("./constants"), exports);
|
|
47
|
+
// =========================
|
|
48
|
+
// Express Middleware
|
|
49
|
+
// =========================
|
|
26
50
|
__exportStar(require("./middleware/express"), exports);
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -6,5 +6,11 @@ export * from './error/ForbiddenError';
|
|
|
6
6
|
export * from './error/NotFoundError';
|
|
7
7
|
export * from './error/ConflictError';
|
|
8
8
|
export * from './error/ValidationError';
|
|
9
|
+
export * from './error/RateLimitError';
|
|
10
|
+
export * from './error/TooManyRequestsError';
|
|
11
|
+
export * from './error/TokenExpiredError';
|
|
12
|
+
export * from './error/TokenMalformedError';
|
|
9
13
|
export * from './error/InternalServerError';
|
|
14
|
+
export * from './error/CryptoIntegrityError';
|
|
15
|
+
export * from './constants';
|
|
10
16
|
export * from './middleware/express';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,10 +1,34 @@
|
|
|
1
|
+
// =========================
|
|
2
|
+
// Base Errors
|
|
3
|
+
// =========================
|
|
1
4
|
export * from './error/AppError';
|
|
2
5
|
export * from './error/HTTPError';
|
|
6
|
+
// =========================
|
|
7
|
+
// 4xx Client Errors
|
|
8
|
+
// =========================
|
|
3
9
|
export * from './error/BadRequestError';
|
|
4
10
|
export * from './error/UnauthorizedError';
|
|
5
11
|
export * from './error/ForbiddenError';
|
|
6
12
|
export * from './error/NotFoundError';
|
|
7
13
|
export * from './error/ConflictError';
|
|
8
14
|
export * from './error/ValidationError';
|
|
15
|
+
export * from './error/RateLimitError';
|
|
16
|
+
export * from './error/TooManyRequestsError';
|
|
17
|
+
// =========================
|
|
18
|
+
// Auth / Token Errors
|
|
19
|
+
// =========================
|
|
20
|
+
export * from './error/TokenExpiredError';
|
|
21
|
+
export * from './error/TokenMalformedError';
|
|
22
|
+
// =========================
|
|
23
|
+
// 5xx Server Errors
|
|
24
|
+
// =========================
|
|
9
25
|
export * from './error/InternalServerError';
|
|
26
|
+
export * from './error/CryptoIntegrityError';
|
|
27
|
+
// =========================
|
|
28
|
+
// Constants
|
|
29
|
+
// =========================
|
|
30
|
+
export * from './constants';
|
|
31
|
+
// =========================
|
|
32
|
+
// Express Middleware
|
|
33
|
+
// =========================
|
|
10
34
|
export * from './middleware/express';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,5 +6,11 @@ export * from './error/ForbiddenError';
|
|
|
6
6
|
export * from './error/NotFoundError';
|
|
7
7
|
export * from './error/ConflictError';
|
|
8
8
|
export * from './error/ValidationError';
|
|
9
|
+
export * from './error/RateLimitError';
|
|
10
|
+
export * from './error/TooManyRequestsError';
|
|
11
|
+
export * from './error/TokenExpiredError';
|
|
12
|
+
export * from './error/TokenMalformedError';
|
|
9
13
|
export * from './error/InternalServerError';
|
|
14
|
+
export * from './error/CryptoIntegrityError';
|
|
15
|
+
export * from './constants';
|
|
10
16
|
export * from './middleware/express';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naman_deep_singh/errors-utils",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Standardized error classes and Express middleware for consistent error handling with TypeScript",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"@types/express": "^5.0.5",
|
|
27
27
|
"@types/node": "^25.0.1",
|
|
28
28
|
"express": "^5.1.0",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
29
|
+
"rimraf": "^5.0.5",
|
|
30
|
+
"typescript": "^5.9.3"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@naman_deep_singh/response-utils": "^2.
|
|
33
|
+
"@naman_deep_singh/response-utils": "^2.1.4"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "pnpm run build:types && tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json",
|