@yobytechautomation/config-lib 0.1.9 → 0.2.0

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.
@@ -57,7 +57,7 @@ class BaseConfigServiceImpl {
57
57
  const cachePath = path.join(process.cwd(), '.license-cache.json');
58
58
  try {
59
59
  const apiKey = this.env.LICENSE_KEY;
60
- if (!apiKey) {
60
+ if (!apiKey || apiKey.length < 10) {
61
61
  throw new Error('LICENSE_KEY missing');
62
62
  }
63
63
  // 🔥 ENCODED URL (hidden)
@@ -76,7 +76,7 @@ class BaseConfigServiceImpl {
76
76
  });
77
77
  const status = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.status;
78
78
  if (status !== 'active') {
79
- throw new Error(`License ${status}`);
79
+ throw new Error(`License ${status}. Please contact vendor.`);
80
80
  }
81
81
  // ✅ SAVE CACHE FILE
82
82
  fs.writeFileSync(cachePath, JSON.stringify({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yobytechautomation/config-lib",
3
- "version": "0.1.9",
3
+ "version": "0.2.0",
4
4
  "description": "Shared multi-environment configuration helpers for SDC NestJS services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",