@ccci/micro-server 1.0.40 → 1.0.41

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -87519,21 +87519,16 @@ import fs from "fs";
87519
87519
 
87520
87520
  // src/utils/Logger.ts
87521
87521
  var import_winston = __toESM(require_winston(), 1);
87522
- var { combine, timestamp, json: json2, errors, cli, splat, prettyPrint, printf } = import_winston.default.format;
87522
+ var { combine, timestamp, errors, cli, splat } = import_winston.default.format;
87523
87523
  var logger = import_winston.default.createLogger({
87524
87524
  level: "info",
87525
- format: combine(timestamp(), errors({ stack: true }), prettyPrint(), splat(), printf((info) => {
87526
- if (typeof info.message === "object") {
87527
- info.message = JSON.stringify(info.message, null, 3);
87528
- }
87529
- return info.message;
87530
- })),
87525
+ format: combine(errors({ stack: true }), timestamp(), cli(), splat()),
87531
87526
  transports: [new import_winston.default.transports.Console]
87532
87527
  });
87533
87528
 
87534
87529
  class Logger {
87535
87530
  static info(message, details) {
87536
- logger.info(`${message} %o`, details);
87531
+ logger.info(`${message}${details ? " %o" : ""}`, details);
87537
87532
  }
87538
87533
  static error(error) {
87539
87534
  logger.error(error);
@@ -87744,7 +87739,6 @@ class ApplicationServer {
87744
87739
  Logger.info("Initializing DB Connection...\n");
87745
87740
  const db = new DatabaseConnector(process.cwd());
87746
87741
  const conn = await DatabaseConnector.init();
87747
- Logger.info("Connecting :>> ", conn);
87748
87742
  await db.initializeModels();
87749
87743
  ApplicationServer.app.get("/", (req, resp) => {
87750
87744
  return resp.sendFile(path3.resolve("index.html"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",