@ccci/micro-server 0.0.21 → 0.0.24

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 +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -78132,6 +78132,7 @@ class DatabaseConnector {
78132
78132
  }
78133
78133
  });
78134
78134
  }
78135
+ console.log("DatabaseConnector.connection.models :>> ", DatabaseConnector.connection.models);
78135
78136
  }
78136
78137
  getConnections() {
78137
78138
  return DatabaseConnector.connections.length > 0 ? DatabaseConnector.connections : [DatabaseConnector.connection];
@@ -78216,13 +78217,15 @@ class ApplicationServer {
78216
78217
  app.use(helmet());
78217
78218
  app.use(import_express.default.json());
78218
78219
  app.use(import_express_fileupload.default());
78220
+ console.log("#### Creating DB Connection");
78219
78221
  const db = new DatabaseConnector(path2);
78220
78222
  const conn = await DatabaseConnector.init();
78221
78223
  await db.connect(conn[0]);
78222
78224
  await db.initializeModels();
78225
+ console.log("#### Connected");
78223
78226
  new RouterFactory(app, path2, "routes");
78224
78227
  app.listen(port, () => {
78225
- console.log(`REST API server ready at: http://127.0.0.1:${port}`);
78228
+ console.log(`API Sever ready at: http://127.0.0.1:${port}`);
78226
78229
  });
78227
78230
  }
78228
78231
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "0.0.21",
3
+ "version": "0.0.24",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",