@aromix/core 0.4.8 → 0.4.9
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.d.ts +3 -1
- package/dist/index.js +7 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,4 +21,6 @@ declare function LoadEnv<Shape extends AxSchemaShape = AxSchemaShape>(options: P
|
|
|
21
21
|
schema: AxObjectSchema<Shape>;
|
|
22
22
|
}>): <Key extends keyof Shape["base"]>(key: Key) => Shape["base"][Key];
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
declare function MongoCluster(): void;
|
|
25
|
+
|
|
26
|
+
export { LoadEnv, MongoCluster, type Unit, system };
|
package/dist/index.js
CHANGED
|
@@ -78,8 +78,9 @@ function LoadEnv(options) {
|
|
|
78
78
|
if (options.schema) {
|
|
79
79
|
const [result, issues] = options.schema.parseBase(process.env);
|
|
80
80
|
if (issues) {
|
|
81
|
+
console.error("[LoadEnv] Env Validation failed:");
|
|
81
82
|
console.error(issues);
|
|
82
|
-
|
|
83
|
+
process.exit(1);
|
|
83
84
|
}
|
|
84
85
|
values = result;
|
|
85
86
|
}
|
|
@@ -88,7 +89,12 @@ function LoadEnv(options) {
|
|
|
88
89
|
}
|
|
89
90
|
return env;
|
|
90
91
|
}
|
|
92
|
+
|
|
93
|
+
// src/common/MongoCluster.ts
|
|
94
|
+
function MongoCluster() {
|
|
95
|
+
}
|
|
91
96
|
export {
|
|
92
97
|
LoadEnv,
|
|
98
|
+
MongoCluster,
|
|
93
99
|
system
|
|
94
100
|
};
|