@datapos/datapos-development 0.3.185 → 0.3.186
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.
|
@@ -7573,8 +7573,10 @@ async function sh() {
|
|
|
7573
7573
|
]), s = Wc.safeParse(e);
|
|
7574
7574
|
if (s.success)
|
|
7575
7575
|
console.info("ℹ️ Configuration is valid.");
|
|
7576
|
-
else
|
|
7577
|
-
|
|
7576
|
+
else {
|
|
7577
|
+
console.log("❌ Configuration is invalid:"), console.table(s.error.issues);
|
|
7578
|
+
return;
|
|
7579
|
+
}
|
|
7578
7580
|
const a = Jc(i), o = Gc(a);
|
|
7579
7581
|
a.operations.length > 0 ? console.info(`ℹ️ Implements ${a.operations.length} operations.`) : console.warn("⚠️ Implements no operations."), o === "unknown" ? console.warn("⚠️ No usage identified.") : console.info(`ℹ️ Supports '${o}' usage.`), e.id = t.name ?? e.id, e.version = t.version ?? e.version, e.operations = a.operations, e.usageId = o, await V.writeFile("config.json", JSON.stringify(e, void 0, 4), "utf8"), console.info("✅ Connector configuration built.");
|
|
7580
7582
|
} catch (t) {
|
package/package.json
CHANGED