@ccci/micro-server 0.0.11 → 0.0.14
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.
- package/dist/index.js +2 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -78109,6 +78109,7 @@ class DatabaseConnector {
|
|
|
78109
78109
|
static rootDir;
|
|
78110
78110
|
constructor(path) {
|
|
78111
78111
|
DatabaseConnector.rootDir = path;
|
|
78112
|
+
console.log("DatabaseConnector.rootDir :>> ", DatabaseConnector.rootDir);
|
|
78112
78113
|
}
|
|
78113
78114
|
static async init() {
|
|
78114
78115
|
DatabaseConnector.connections = [];
|
|
@@ -78206,8 +78207,6 @@ class RouterFactory {
|
|
|
78206
78207
|
}
|
|
78207
78208
|
|
|
78208
78209
|
// src/utils/ApplicationServer.ts
|
|
78209
|
-
var __dirname = "/Users/ariel/work/bun-server/src/utils";
|
|
78210
|
-
|
|
78211
78210
|
class ApplicationServer {
|
|
78212
78211
|
static async bootstrap(path2, port) {
|
|
78213
78212
|
const app = import_express.default();
|
|
@@ -78215,7 +78214,7 @@ class ApplicationServer {
|
|
|
78215
78214
|
app.use(helmet());
|
|
78216
78215
|
app.use(import_express.default.json());
|
|
78217
78216
|
app.use(import_express_fileupload.default());
|
|
78218
|
-
const db = new DatabaseConnector(
|
|
78217
|
+
const db = new DatabaseConnector(path2);
|
|
78219
78218
|
await db.initializeModels();
|
|
78220
78219
|
await db.connect();
|
|
78221
78220
|
new RouterFactory(app, path2, "routes");
|