@pata-dev/library-utils 1.0.1 → 1.0.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.
@@ -0,0 +1,2 @@
1
+ export declare const GetUser: (...dataOrPipes: (string | import("@nestjs/common").PipeTransform<any, any> | import("@nestjs/common").Type<import("@nestjs/common").PipeTransform<any, any>> | undefined)[]) => ParameterDecorator;
2
+ //# sourceMappingURL=get-user.decorator.d.ts.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=get-user.decorator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user.decorator.js","sourceRoot":"","sources":["../../src/decorators/get-user.decorator.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export * from "./middlewares/jwt.middleware";
2
+ export * from "./utils/logger.util";
3
+ export * from "./utils/exception-handler";
4
+ export * from "./decorators/get-user.decorator";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,21 @@
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("./middlewares/jwt.middleware"), exports);
18
+ __exportStar(require("./utils/logger.util"), exports);
19
+ __exportStar(require("./utils/exception-handler"), exports);
20
+ __exportStar(require("./decorators/get-user.decorator"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,sDAAoC;AACpC,4DAA0C;AAC1C,kEAAgD"}
@@ -0,0 +1,5 @@
1
+ import { NestMiddleware } from "@nestjs/common";
2
+ export declare class JwtMiddleware implements NestMiddleware {
3
+ use(req: any, res: any, next: () => void): void;
4
+ }
5
+ //# sourceMappingURL=jwt.middleware.d.ts.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=jwt.middleware.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=exception-handler.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=logger.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.util.js","sourceRoot":"","sources":["../../src/utils/logger.util.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pata-dev/library-utils",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Shared utilities for NestJS services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",