@pata-dev/library-utils 1.0.0
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/dist/decorators/get-user.decorator.d.ts +2 -0
- package/dist/decorators/get-user.decorator.d.ts.map +1 -0
- package/dist/decorators/get-user.decorator.js +3 -0
- package/dist/decorators/get-user.decorator.js.map +1 -0
- package/dist/middlewares/jwt.middleware.d.ts +5 -0
- package/dist/middlewares/jwt.middleware.d.ts.map +1 -0
- package/dist/middlewares/jwt.middleware.js +3 -0
- package/dist/middlewares/jwt.middleware.js.map +1 -0
- package/dist/utils/exception-handler.d.ts +7 -0
- package/dist/utils/exception-handler.d.ts.map +1 -0
- package/dist/utils/exception-handler.js +3 -0
- package/dist/utils/exception-handler.js.map +1 -0
- package/dist/utils/logger.util.d.ts +6 -0
- package/dist/utils/logger.util.d.ts.map +1 -0
- package/dist/utils/logger.util.js +3 -0
- package/dist/utils/logger.util.js.map +1 -0
- package/package.json +22 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/get-user.decorator.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,CAAC,MAAM,OAAO,EAAE,CAAC,GAAG,WAAW,EAAE,CAAC,MAAM,GAAG,OAAO,gBAAgB,EAAE,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,OAAO,gBAAgB,EAAE,IAAI,CAAC,OAAO,gBAAgB,EAAE,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,KAAK,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user.decorator.js","sourceRoot":"","sources":["../../src/decorators/get-user.decorator.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwt.middleware.d.ts","sourceRoot":"","sources":["../../src/middlewares/jwt.middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,MAAM,CAAC,OAAO,OAAO,aAAc,YAAW,cAAc;IACxD,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,IAAI,GAAG,IAAI;CAClD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwt.middleware.js","sourceRoot":"","sources":["../../src/middlewares/jwt.middleware.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ArgumentsHost, ExceptionFilter } from '@nestjs/common';
|
|
2
|
+
export declare const getStatusCode: (exception: unknown) => number;
|
|
3
|
+
export declare const getErrorMessage: (exception: unknown) => string;
|
|
4
|
+
export declare class GlobalExceptionFilter implements ExceptionFilter {
|
|
5
|
+
catch(exception: any, host: ArgumentsHost): void;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=exception-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exception-handler.d.ts","sourceRoot":"","sources":["../../src/utils/exception-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAChE,MAAM,CAAC,OAAO,CAAC,MAAM,aAAa,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,MAAM,CAAC;AACnE,MAAM,CAAC,OAAO,CAAC,MAAM,eAAe,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,MAAM,CAAC;AACrE,MAAM,CAAC,OAAO,OAAO,qBAAsB,YAAW,eAAe;IACjE,KAAK,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,aAAa,GAAG,IAAI;CACnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exception-handler.js","sourceRoot":"","sources":["../../src/utils/exception-handler.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const logInfo: (message: string) => void;
|
|
2
|
+
export declare const logError: (message: string, error?: any) => void;
|
|
3
|
+
export declare const logWarning: (message: string) => void;
|
|
4
|
+
export declare const logDebug: (message: string) => void;
|
|
5
|
+
export declare const logTrace: (message: string) => void;
|
|
6
|
+
//# sourceMappingURL=logger.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.util.d.ts","sourceRoot":"","sources":["../../src/utils/logger.util.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,CAAC,MAAM,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;AACxD,MAAM,CAAC,OAAO,CAAC,MAAM,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;AACtE,MAAM,CAAC,OAAO,CAAC,MAAM,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;AAC3D,MAAM,CAAC,OAAO,CAAC,MAAM,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;AACzD,MAAM,CAAC,OAAO,CAAC,MAAM,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.util.js","sourceRoot":"","sources":["../../src/utils/logger.util.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pata-dev/library-utils",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Shared utilities for NestJS services",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc"
|
|
12
|
+
},
|
|
13
|
+
"author": "",
|
|
14
|
+
"license": "ISC",
|
|
15
|
+
"type": "commonjs",
|
|
16
|
+
"peerDependencies": {
|
|
17
|
+
"@nestjs/common": "^11.0.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"typescript": "^5.7.3"
|
|
21
|
+
}
|
|
22
|
+
}
|