@rafikidota/iroh 0.33.1 → 0.35.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.
@@ -1,6 +1,5 @@
1
1
  export interface BootstrapLoggerOptions {
2
- url: string;
3
- swagger?: string;
2
+ swagger: string;
4
3
  }
5
4
  export declare class BootstrapLogger {
6
5
  private static logger;
@@ -1,15 +1,53 @@
1
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
36
  exports.BootstrapLogger = void 0;
4
37
  const common_1 = require("@nestjs/common");
38
+ const dotenv = __importStar(require("dotenv"));
39
+ dotenv.config();
5
40
  class BootstrapLogger {
6
41
  static start(options) {
7
42
  const line = this.log(options);
8
43
  this.logger.debug(line);
9
44
  }
10
45
  static log(options) {
11
- const { url, swagger } = options;
12
- if (swagger) {
46
+ const { swagger } = options;
47
+ const host = process.env.API_HOST || 'http://localhost';
48
+ const port = process.env.API_PORT;
49
+ const url = process.env.API_URL || `${host}:${port}`;
50
+ if (url && swagger) {
13
51
  return `Swagger running on ${url}/${swagger} 🚀`;
14
52
  }
15
53
  return `App running on ${url} 🚀`;
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"bootstrap.logger.js","sourceRoot":"","sources":["../../../src/common/loggers/bootstrap.logger.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAwC;AACxC,+CAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAMhB,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,OAAgC;QACjD,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;QAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,kBAAkB,CAAC;QACxD,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;QAClC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,GAAG,IAAI,IAAI,IAAI,EAAE,CAAC;QACrD,IAAI,GAAG,IAAI,OAAO,EAAE,CAAC;YACnB,OAAO,sBAAsB,GAAG,IAAI,OAAO,KAAK,CAAC;QACnD,CAAC;QACD,OAAO,kBAAkB,GAAG,KAAK,CAAC;IACpC,CAAC;;AAhBH,0CAiBC;AAhBgB,sBAAM,GAAG,IAAI,eAAM,CAAC,eAAe,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rafikidota/iroh",
3
- "version": "0.33.1",
3
+ "version": "0.35.0",
4
4
  "description": "Sometimes, the best way to solve your own problems is to help someone else.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,15 +30,15 @@
30
30
  "@angular-devkit/core": "19.2.13",
31
31
  "@angular-devkit/schematics": "19.2.13",
32
32
  "@nestjs/axios": "4.0.0",
33
- "@nestjs/common": "11.1.2",
33
+ "@nestjs/common": "11.1.3",
34
34
  "@nestjs/config": "4.0.2",
35
- "@nestjs/core": "11.1.2",
35
+ "@nestjs/core": "11.1.3",
36
36
  "@nestjs/jwt": "11.0.0",
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.5.0",
41
- "@swc/core": "1.11.29",
40
+ "@rafikidota/serpens": "1.6.0",
41
+ "@swc/core": "1.11.31",
42
42
  "@swc/helpers": "0.5.17",
43
43
  "axios": "1.9.0",
44
44
  "bcrypt": "6.0.0",
@@ -57,12 +57,12 @@
57
57
  "@eslint/eslintrc": "3.3.1",
58
58
  "@eslint/js": "9.28.0",
59
59
  "@types/bcrypt": "5.0.2",
60
- "@types/express": "5.0.2",
61
- "@types/node": "22.15.29",
60
+ "@types/express": "5.0.3",
61
+ "@types/node": "22.15.30",
62
62
  "@types/passport-jwt": "4.0.1",
63
63
  "@types/uuid": "10.0.0",
64
- "@typescript-eslint/eslint-plugin": "8.33.0",
65
- "@typescript-eslint/parser": "8.33.0",
64
+ "@typescript-eslint/eslint-plugin": "8.34.0",
65
+ "@typescript-eslint/parser": "8.34.0",
66
66
  "eslint": "9.28.0",
67
67
  "eslint-config-prettier": "10.1.5",
68
68
  "eslint-plugin-import": "2.31.0",
@@ -73,7 +73,7 @@
73
73
  "prettier": "3.5.3",
74
74
  "rimraf": "6.0.1",
75
75
  "typescript": "5.8.3",
76
- "typescript-eslint": "8.33.0"
76
+ "typescript-eslint": "8.34.0"
77
77
  },
78
78
  "peerDependencies": {},
79
79
  "schematics": "./collection.json",