fiberx-backend-toolkit 0.0.37 → 0.0.39
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.
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "express-serve-static-core";
|
|
2
|
+
declare module "express-serve-static-core" {
|
|
3
|
+
interface Response {
|
|
4
|
+
errResponse: (code?: number, msg?: string, data?: any) => Response;
|
|
5
|
+
successResponse: (code?: number, msg?: string, data?: any) => Response;
|
|
6
|
+
infoResponse: (code?: number, msg?: string, data?: any) => Response;
|
|
7
|
+
handle404Error: () => Response;
|
|
8
|
+
}
|
|
9
|
+
interface Request {
|
|
10
|
+
getCookie: (name: string) => string | undefined;
|
|
11
|
+
setCookie: (name: string, value: string, options?: {
|
|
12
|
+
max_age?: number;
|
|
13
|
+
}) => void;
|
|
14
|
+
clearCookie: (name: string) => void;
|
|
15
|
+
request_id?: string;
|
|
16
|
+
clientIp?: string;
|
|
17
|
+
}
|
|
18
|
+
}
|
package/dist/types/main.d.ts
CHANGED
package/dist/types/main.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fiberx-backend-toolkit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.39",
|
|
4
4
|
"description": "A TypeScript backend toolkit providing shared domain logic, infrastructure helpers, and utilities for FiberX server-side applications and services.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./dist/index.js",
|