opticore-webapp 1.0.22 → 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 +8 -2
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +6 -1
- package/package.json +1 -1
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
|
@@ -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
|
@@ -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
|
};
|