@rafikidota/iroh 0.32.0 → 0.33.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/common/loggers/bootstrap.logger.d.ts +1 -2
- package/dist/common/loggers/bootstrap.logger.js +1 -2
- package/dist/common/loggers/bootstrap.logger.js.map +1 -1
- package/dist/common/parsers/query.parser.js +4 -3
- package/dist/common/parsers/query.parser.js.map +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ import { CoreModule } from './modules/core.module';
|
|
|
37
37
|
})
|
|
38
38
|
export class AppModule implements NestModule {
|
|
39
39
|
configure(consumer: MiddlewareConsumer) {
|
|
40
|
-
consumer.apply(StartTimeMiddleware).forRoutes('
|
|
40
|
+
consumer.apply(StartTimeMiddleware).forRoutes('/*path');
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
```
|
|
@@ -8,8 +8,7 @@ class BootstrapLogger {
|
|
|
8
8
|
this.logger.debug(line);
|
|
9
9
|
}
|
|
10
10
|
static log(options) {
|
|
11
|
-
const {
|
|
12
|
-
const url = `${host}:${port}`;
|
|
11
|
+
const { url, swagger } = options;
|
|
13
12
|
if (swagger) {
|
|
14
13
|
return `Swagger running on ${url}/${swagger} 🚀`;
|
|
15
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.logger.js","sourceRoot":"","sources":["../../../src/common/loggers/bootstrap.logger.ts"],"names":[],"mappings":";;;AAAA,2CAAwC;
|
|
1
|
+
{"version":3,"file":"bootstrap.logger.js","sourceRoot":"","sources":["../../../src/common/loggers/bootstrap.logger.ts"],"names":[],"mappings":";;;AAAA,2CAAwC;AAOxC,MAAa,eAAe;IAG1B,MAAM,CAAC,KAAK,CAAC,OAA+B;QAC1C,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IACO,MAAM,CAAC,GAAG,CAAC,OAA+B;QAChD,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;QACjC,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,sBAAsB,GAAG,IAAI,OAAO,KAAK,CAAC;QACnD,CAAC;QACD,OAAO,kBAAkB,GAAG,KAAK,CAAC;IACpC,CAAC;;AAbH,0CAcC;AAbgB,sBAAM,GAAG,IAAI,eAAM,CAAC,eAAe,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.QueryParser = void 0;
|
|
4
4
|
const common_1 = require("@nestjs/common");
|
|
5
|
-
const
|
|
5
|
+
const timestamp_logger_1 = require("../loggers/providers/timestamp.logger");
|
|
6
6
|
class QueryParser {
|
|
7
7
|
static parse(query) {
|
|
8
|
+
this.logger.start();
|
|
8
9
|
if (query.limit) {
|
|
9
10
|
query.limit = Number(query.limit);
|
|
10
11
|
}
|
|
@@ -27,7 +28,7 @@ class QueryParser {
|
|
|
27
28
|
else {
|
|
28
29
|
this.logger.error('Unknown error occurred while parsing options');
|
|
29
30
|
}
|
|
30
|
-
throw new
|
|
31
|
+
throw new common_1.BadRequestException('Invalid JSON in query param');
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
}
|
|
@@ -36,5 +37,5 @@ class QueryParser {
|
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
exports.QueryParser = QueryParser;
|
|
39
|
-
QueryParser.logger = new
|
|
40
|
+
QueryParser.logger = new timestamp_logger_1.TimestampLogger(QueryParser.name);
|
|
40
41
|
//# sourceMappingURL=query.parser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.parser.js","sourceRoot":"","sources":["../../../src/common/parsers/query.parser.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"query.parser.js","sourceRoot":"","sources":["../../../src/common/parsers/query.parser.ts"],"names":[],"mappings":";;;AAAA,2CAAqD;AACrD,4EAAwE;AAGxE,MAAa,WAAW;IAEtB,MAAM,CAAC,KAAK,CAAC,KAAgB;QAC3B,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QACpB,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACpC,CAAC;QACD,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;YACjB,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACtC,CAAC;QACD,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;YACf,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAClC,CAAC;QACD,IAAI,KAAK,EAAE,OAAO,EAAE,CAAC;YACnB,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;gBACtC,IAAI,CAAC;oBACH,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;oBAChD,KAAK,GAAG,EAAE,GAAG,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;gBAC/C,CAAC;gBAAC,OAAO,KAAc,EAAE,CAAC;oBACxB,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;wBAC3B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;oBACnC,CAAC;yBAAM,CAAC;wBACN,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,8CAA8C,CAAC,CAAC;oBACpE,CAAC;oBACD,MAAM,IAAI,4BAAmB,CAAC,6BAA6B,CAAC,CAAC;gBAC/D,CAAC;YACH,CAAC;QACH,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;QAC7C,OAAO,EAAE,GAAG,KAAK,EAAE,CAAC;IACtB,CAAC;;AA9BH,kCA+BC;AA9ByB,kBAAM,GAAG,IAAI,kCAAe,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rafikidota/iroh",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.1",
|
|
4
4
|
"description": "Sometimes, the best way to solve your own problems is to help someone else.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@nestjs/passport": "11.0.5",
|
|
38
38
|
"@nestjs/swagger": "11.2.0",
|
|
39
39
|
"@nestjs/typeorm": "11.0.0",
|
|
40
|
-
"@rafikidota/serpens": "1.
|
|
40
|
+
"@rafikidota/serpens": "1.5.0",
|
|
41
41
|
"@swc/core": "1.11.29",
|
|
42
42
|
"@swc/helpers": "0.5.17",
|
|
43
43
|
"axios": "1.9.0",
|
|
@@ -55,18 +55,18 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@eslint/eslintrc": "3.3.1",
|
|
58
|
-
"@eslint/js": "9.
|
|
58
|
+
"@eslint/js": "9.28.0",
|
|
59
59
|
"@types/bcrypt": "5.0.2",
|
|
60
60
|
"@types/express": "5.0.2",
|
|
61
|
-
"@types/node": "22.15.
|
|
61
|
+
"@types/node": "22.15.29",
|
|
62
62
|
"@types/passport-jwt": "4.0.1",
|
|
63
63
|
"@types/uuid": "10.0.0",
|
|
64
64
|
"@typescript-eslint/eslint-plugin": "8.33.0",
|
|
65
65
|
"@typescript-eslint/parser": "8.33.0",
|
|
66
|
-
"eslint": "9.
|
|
66
|
+
"eslint": "9.28.0",
|
|
67
67
|
"eslint-config-prettier": "10.1.5",
|
|
68
68
|
"eslint-plugin-import": "2.31.0",
|
|
69
|
-
"eslint-plugin-prettier": "5.4.
|
|
69
|
+
"eslint-plugin-prettier": "5.4.1",
|
|
70
70
|
"globals": "16.2.0",
|
|
71
71
|
"husky": "9.1.7",
|
|
72
72
|
"lint-staged": "16.1.0",
|