@ccci/micro-server 0.0.3 → 0.0.6

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 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -72958,6 +72958,7 @@ var EXPIRY = process.env.JWT_EXPIRY ? process.env.JWT_EXPIRY : "30 days";
72958
72958
  var ISSUER = process.env.JWT_ISSUER ? process.env.JWT_ISSUER : "*.service";
72959
72959
 
72960
72960
  // src/utils/RouterFactory.ts
72961
+ var __dirname = "/Users/ariel/work/bun-server/src/utils";
72961
72962
  var API_CONTEXT = process.env.API_CONTEXT || "api";
72962
72963
 
72963
72964
  class RouterFactory {
@@ -72970,7 +72971,7 @@ class RouterFactory {
72970
72971
  if (file.toLowerCase().indexOf(".js") || file.toLowerCase().indexOf(".ts")) {
72971
72972
  let fileName = fullName.replace(folderName, API_CONTEXT).replace(".js", "").replace(".ts", "").split("\\").join("/");
72972
72973
  let endpoint = `/${fileName}`;
72973
- let routeFile = `../${fullName}`;
72974
+ let routeFile = `${__dirname}/${fullName}`;
72974
72975
  import(routeFile).then((routerClass) => {
72975
72976
  let router = new routerClass.default;
72976
72977
  app.use(endpoint, (req, res, next) => this.authenticate(req, res, next, router.grantPublicAccess), router.getRoutes());
@@ -73394,8 +73395,9 @@ var constructErrors = function(errors) {
73394
73395
 
73395
73396
  // src/utils/DatabaseConnector.ts
73396
73397
  import fs2 from "fs";
73398
+ var __dirname = "/Users/ariel/work/bun-server/src/utils";
73397
73399
  var env = "development";
73398
- var configPath = "config/config.json";
73400
+ var configPath = `${__dirname}/config/config.json`;
73399
73401
 
73400
73402
  class DatabaseConnector {
73401
73403
  static connections;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "0.0.3",
3
+ "version": "0.0.6",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",