opticore-webapp 1.0.21 → 1.0.23

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.cjs CHANGED
@@ -30,7 +30,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
- WebServer: () => WebServerCore
33
+ WebServer: () => WebServerCore,
34
+ envPath: () => envPath
34
35
  });
35
36
  module.exports = __toCommonJS(index_exports);
36
37
 
@@ -578,7 +579,12 @@ var WebServerCore = class {
578
579
  );
579
580
  }
580
581
  };
582
+
583
+ // src/utils/envPath.utils.ts
584
+ var import_process = __toESM(require("process"), 1);
585
+ var envPath = import_process.default.cwd() + "/config/env/.env";
581
586
  // Annotate the CommonJS export names for ESM import in node:
582
587
  0 && (module.exports = {
583
- WebServer
588
+ WebServer,
589
+ envPath
584
590
  });
package/dist/index.d.cts CHANGED
@@ -27,7 +27,7 @@ declare class WebServerCore {
27
27
  private readonly openSSLErrors;
28
28
  private readonly systemErrors;
29
29
  constructor(app: express.Application, loggerConfig: LoggerCore, localLanguage: string, environnementPath: any, corsOriginOptions?: Partial<CorsOptions>);
30
- onStartServer(routers: TFeatureRoutes[], dbConnexion: () => any): any;
30
+ onStartServer(routers: TFeatureRoutes[], dbConnexion: () => void): any;
31
31
  onListeningOnServerEvent(serverWeb: Server): void;
32
32
  onRequestOnServerEvent(serverWeb: Server): void;
33
33
  private translationWebAppLoader;
@@ -36,8 +36,10 @@ declare class WebServerCore {
36
36
  private infoWebApp;
37
37
  }
38
38
 
39
+ declare const envPath: string;
40
+
39
41
  type KernelModuleType = [{
40
42
  featureRoute: IRouteDefinition[];
41
43
  }[], () => void];
42
44
 
43
- export { type IRouteDefinition, type KernelModuleType, type TFeatureRoutes, WebServerCore as WebServer };
45
+ export { type IRouteDefinition, type KernelModuleType, type TFeatureRoutes, WebServerCore as WebServer, envPath };
package/dist/index.d.ts CHANGED
@@ -27,7 +27,7 @@ declare class WebServerCore {
27
27
  private readonly openSSLErrors;
28
28
  private readonly systemErrors;
29
29
  constructor(app: express.Application, loggerConfig: LoggerCore, localLanguage: string, environnementPath: any, corsOriginOptions?: Partial<CorsOptions>);
30
- onStartServer(routers: TFeatureRoutes[], dbConnexion: () => any): any;
30
+ onStartServer(routers: TFeatureRoutes[], dbConnexion: () => void): any;
31
31
  onListeningOnServerEvent(serverWeb: Server): void;
32
32
  onRequestOnServerEvent(serverWeb: Server): void;
33
33
  private translationWebAppLoader;
@@ -36,8 +36,10 @@ declare class WebServerCore {
36
36
  private infoWebApp;
37
37
  }
38
38
 
39
+ declare const envPath: string;
40
+
39
41
  type KernelModuleType = [{
40
42
  featureRoute: IRouteDefinition[];
41
43
  }[], () => void];
42
44
 
43
- export { type IRouteDefinition, type KernelModuleType, type TFeatureRoutes, WebServerCore as WebServer };
45
+ export { type IRouteDefinition, type KernelModuleType, type TFeatureRoutes, WebServerCore as WebServer, envPath };
package/dist/index.js CHANGED
@@ -550,6 +550,11 @@ var WebServerCore = class {
550
550
  );
551
551
  }
552
552
  };
553
+
554
+ // src/utils/envPath.utils.ts
555
+ import process4 from "process";
556
+ var envPath = process4.cwd() + "/config/env/.env";
553
557
  export {
554
- WebServerCore as WebServer
558
+ WebServerCore as WebServer,
559
+ envPath
555
560
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opticore-webapp",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "wep server",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -36,7 +36,7 @@
36
36
  "opticore-logger": "^1.0.13",
37
37
  "opticore-request-call-event": "^1.0.1",
38
38
  "opticore-router": "^1.0.10",
39
- "opticore-translator": "^1.0.7",
39
+ "opticore-translator": "^1.0.8",
40
40
  "opticore-validator": "^1.0.3"
41
41
  },
42
42
  "devDependencies": {