@ccci/micro-server 1.0.209 → 1.0.210

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 +8 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -296893,7 +296893,12 @@ class Logger {
296893
296893
  const table = new import_cli_table3.default({
296894
296894
  head: headers,
296895
296895
  wordWrap: true,
296896
- colWidths: headers.map(() => 20)
296896
+ wrapOnWordBoundary: false,
296897
+ colWidths: headers.map(() => 30),
296898
+ style: {
296899
+ head: ["green"],
296900
+ border: ["grey"]
296901
+ }
296897
296902
  });
296898
296903
  data.forEach((row) => {
296899
296904
  table.push(headers.map((h) => {
@@ -296952,7 +296957,6 @@ class DatabaseConnector {
296952
296957
  for (let i = 0;i < files.length; i++) {
296953
296958
  let file = files[i];
296954
296959
  await import(`${DatabaseConnector.rootDir}/models/${file}`).then((model) => {
296955
- Logger.info("Initializing Model :>> ", model.default);
296956
296960
  if (model && model.default && model.default.associate) {
296957
296961
  model.default.associate();
296958
296962
  }
@@ -302838,7 +302842,6 @@ class ApplicationServer {
302838
302842
  await RouterFactory.init(ApplicationServer.app, process.cwd(), options?.routeDir, options?.routeContext);
302839
302843
  const server = ApplicationServer.app.listen(port, async () => {
302840
302844
  Logger.info(`API Sever ready at: http://127.0.0.1:${port}\n`);
302841
- Logger.table(import_express_list_endpoints.default(ApplicationServer.app));
302842
302845
  if (options?.enableWebSocket) {
302843
302846
  WebSocketServer.init(options?.websocketPort, process.cwd(), options?.websocketDir);
302844
302847
  }
@@ -302864,6 +302867,8 @@ class ApplicationServer {
302864
302867
  const mailer = Mailer.getInstance();
302865
302868
  mailer.connect(options);
302866
302869
  }
302870
+ Logger.info("Listing all API endpoints");
302871
+ Logger.table(import_express_list_endpoints.default(ApplicationServer.app));
302867
302872
  if (sync) {
302868
302873
  if (Array.isArray(sync)) {
302869
302874
  sync.forEach(async (model) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.209",
3
+ "version": "1.0.210",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",