fiscalia_bo-nest-helpers 1.0.35 → 1.0.37

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,3 +1,4 @@
1
1
  import { INestApplication } from '@nestjs/common';
2
2
  import { IPackageJson } from 'src/dto';
3
3
  export declare const configSwagger: (app: INestApplication, packageJson: IPackageJson) => void;
4
+ export declare const printServerInitLog: (app: INestApplication, packageJson: IPackageJson) => Promise<void>;
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.configSwagger = void 0;
3
+ exports.printServerInitLog = exports.configSwagger = void 0;
4
4
  const swagger_1 = require("@nestjs/swagger");
5
5
  const package_json_helper_1 = require("./package-json.helper");
6
+ const chalk_1 = require("chalk");
6
7
  const configSwagger = (app, packageJson) => {
7
8
  const config = new swagger_1.DocumentBuilder()
8
9
  .setTitle((0, package_json_helper_1.nameParsePresentation)(packageJson.name))
@@ -25,4 +26,8 @@ const configSwagger = (app, packageJson) => {
25
26
  });
26
27
  };
27
28
  exports.configSwagger = configSwagger;
29
+ const printServerInitLog = async (app, packageJson) => {
30
+ console.info(chalk_1.bold.blue(`🚀 "${packageJson.name}", version:"${packageJson.version}" is listening ON PORT`, `${await app.getUrl()}/api`));
31
+ };
32
+ exports.printServerInitLog = printServerInitLog;
28
33
  //# sourceMappingURL=swagger.helper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"swagger.helper.js","sourceRoot":"","sources":["../../src/helpers/swagger.helper.ts"],"names":[],"mappings":";;;AACA,6CAAiE;AACjE,+DAA8D;AAGvD,MAAM,aAAa,GAAG,CAAC,GAAqB,EAAE,WAAyB,EAAE,EAAE;IAChF,MAAM,MAAM,GAAG,IAAI,yBAAe,EAAE;SACjC,QAAQ,CAAC,IAAA,2CAAqB,EAAC,WAAW,CAAC,IAAI,CAAC,CAAC;SACjD,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC;SAC/B,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a,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC3D,uBAAa,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE;QACxC,eAAe,EAAE,IAAA,2CAAqB,EAAC,WAAW,CAAC,IAAI,CAAC;QACxD,aAAa,EAAE,8BAA8B;QAC7C,SAAS,EAAE;;;;;KAKV;KACF,CAAC,CAAC;AACL,CAAC,CAAC;AArBW,QAAA,aAAa,iBAqBxB;AASK,MAAM,kBAAkB,GAAG,KAAK,EAAE,GAAqB,EAAE,WAAyB,EAAE,EAAE;IAC3F,OAAO,CAAC,IAAI,CACV,YAAI,CAAC,IAAI,CACP,OAAO,WAAW,CAAC,IAAI,eAAe,WAAW,CAAC,OAAO,wBAAwB,EACjF,GAAG,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAC5B,CACF,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,kBAAkB,sBAO7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fiscalia_bo-nest-helpers",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "description": "Helpers y servicios para NestJS",
5
5
  "author": "DNTIC - Ministerio Público",
6
6
  "contact": {