@yobytechautomation/config-lib 0.3.4 → 0.3.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.
|
@@ -46,6 +46,14 @@ class BaseConfigServiceImpl {
|
|
|
46
46
|
constructor() {
|
|
47
47
|
this.env = process.env;
|
|
48
48
|
this.checkIntegrity();
|
|
49
|
+
this.validateLicenseOrThrow()
|
|
50
|
+
.then(() => {
|
|
51
|
+
console.log("🔐 License auto-check passed");
|
|
52
|
+
})
|
|
53
|
+
.catch((err) => {
|
|
54
|
+
console.error("💀 License auto-check failed:", err.message);
|
|
55
|
+
process.exit(1);
|
|
56
|
+
});
|
|
49
57
|
}
|
|
50
58
|
checkIntegrity() {
|
|
51
59
|
const fileContent = fs.readFileSync(__filename, "utf-8");
|