@datapos/datapos-development 0.3.179 â 0.3.180
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.
|
@@ -7485,8 +7485,8 @@ const Jc = ["critical", "high", "moderate", "low", "unknown"], ct = gs(vs);
|
|
|
7485
7485
|
async function rh() {
|
|
7486
7486
|
try {
|
|
7487
7487
|
console.info("đ Building configuration...");
|
|
7488
|
-
const e = JSON.parse(await F.readFile("package.json", "utf8")), t = JSON.parse(await F.readFile("config.json", "utf8"))
|
|
7489
|
-
|
|
7488
|
+
const e = JSON.parse(await F.readFile("package.json", "utf8")), t = JSON.parse(await F.readFile("config.json", "utf8"));
|
|
7489
|
+
e.name != null && (t.id = e.name.replace("@datapos/", "").replace("@data-positioning/", "")), e.version != null && (t.version = e.version), await F.writeFile("config.json", JSON.stringify(t, void 0, 4), "utf8"), console.info("â
Configuration built.");
|
|
7490
7490
|
} catch (e) {
|
|
7491
7491
|
console.error("â Error building configuration.", e);
|
|
7492
7492
|
}
|
|
@@ -7529,11 +7529,13 @@ async function nh() {
|
|
|
7529
7529
|
try {
|
|
7530
7530
|
console.info("đ Building connector configuration...");
|
|
7531
7531
|
const [e, t, i] = await Promise.all([
|
|
7532
|
-
F.readFile("package.json", "utf8").then((
|
|
7533
|
-
F.readFile("config.json", "utf8").then((
|
|
7532
|
+
F.readFile("package.json", "utf8").then((h) => JSON.parse(h)),
|
|
7533
|
+
F.readFile("config.json", "utf8").then((h) => JSON.parse(h)),
|
|
7534
7534
|
F.readFile("src/index.ts", "utf8")
|
|
7535
|
-
]), r =
|
|
7536
|
-
|
|
7535
|
+
]), r = fs.parse(t);
|
|
7536
|
+
console.log(2222, r);
|
|
7537
|
+
const n = Xc(i), u = Qc(n);
|
|
7538
|
+
n.operations.length > 0 ? console.info(`âšī¸ Implements ${n.operations.length} operations.`) : console.warn("â ī¸ Implements no operations."), u === "unknown" ? console.warn("â ī¸ No usage identified.") : console.info(`âšī¸ Supports '${u}' usage.`), t.id = e.name ?? t.id, t.version = e.version ?? t.version, t.operations = n.operations, t.usageId = u, await F.writeFile("config.json", JSON.stringify(t, void 0, 4), "utf8"), console.info("â
Connector configuration built.");
|
|
7537
7539
|
} catch (e) {
|
|
7538
7540
|
console.error("â Error building connector configuration.", e);
|
|
7539
7541
|
}
|
package/package.json
CHANGED