@datapos/datapos-development 0.3.184 → 0.3.185

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.
@@ -7571,7 +7571,10 @@ async function sh() {
7571
7571
  V.readFile("config.json", "utf8").then((h) => JSON.parse(h)),
7572
7572
  V.readFile("src/index.ts", "utf8")
7573
7573
  ]), s = Wc.safeParse(e);
7574
- s.success ? console.log("Valid config:", s.data) : (console.log("Validation errors:"), console.table(s.error.issues));
7574
+ if (s.success)
7575
+ console.info("ℹ️ Configuration is valid.");
7576
+ else
7577
+ throw console.log("Configuration validation errors:"), console.table(s.error.issues), new Error("Configuration is invalid.");
7575
7578
  const a = Jc(i), o = Gc(a);
7576
7579
  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.");
7577
7580
  } catch (t) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-development",
3
- "version": "0.3.184",
3
+ "version": "0.3.185",
4
4
  "description": "A library of utilities for managing the Data Positioning repositories.",
5
5
  "license": "MIT",
6
6
  "author": "Jonathan Terrell <terrell.jm@gmail.com>",