triangulum 0.13.2-x86_64-linux-gnu → 0.14.0-x86_64-linux-gnu
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.
- checksums.yaml +4 -4
- data/lib/triangulum/js/single-validation.js +8 -6
- data/lib/triangulum/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 79d495692eaa7098054fe8e8dffe6dbbe043a73436b4939936df0721d98ef621
|
|
4
|
+
data.tar.gz: bd067e83805be3fc847fb08c78d8c73bec7034709d401ebbcb903df92eaf9195
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1494a0fa3febcb2aa3de6aaa4420d91c4e6846ac93ae9ac988358a1b3485a71d6752bb0fc6b215c843c33c40896ef78c57fa7f591246f70edb6c77354a37b377
|
|
7
|
+
data.tar.gz: bd0ea591dcd5182f915c61f9cd2d8b1ca2b249bf4c63cc2a263b607e0cb922e61a1c787e07cc6a7cf023084deef3a75892185031885eef26d6d6596ae8f5ee92
|
|
@@ -174362,7 +174362,7 @@ function x2(e6, t3 = "any", n3 = true) {
|
|
|
174362
174362
|
return `${n3 ? r3 : ""}
|
|
174363
174363
|
${i3}`;
|
|
174364
174364
|
}
|
|
174365
|
-
var S2 = (e6) => e6
|
|
174365
|
+
var S2 = (e6) => e6?.replace(/[^a-zA-Z0-9]/g, "_");
|
|
174366
174366
|
function C2(e6, t3, n3, r3 = false) {
|
|
174367
174367
|
let i3 = e6?.nodes?.nodes || [], a3 = new Map(t3?.map((e7) => [e7.identifier, e7])), o4 = /* @__PURE__ */ new Set, s4 = (t4, n4 = "") => {
|
|
174368
174368
|
let c5 = i3.find((e7) => e7?.id === t4);
|
|
@@ -174393,13 +174393,15 @@ ${s4(e7.id, n4 + " ")}${n4}}`;
|
|
|
174393
174393
|
l5.includes("undefined");
|
|
174394
174394
|
let f5 = `${n4}`;
|
|
174395
174395
|
return c5.functionDefinition.identifier === "std::control::return" ? f5 += `return /* @pos ${t4} null */ ${d5}(${l5.join(", ")}) ;
|
|
174396
|
-
` : c5.functionDefinition.identifier === "std::control::if" ? f5 +=
|
|
174396
|
+
` : c5.functionDefinition.identifier === "std::control::if" ? (f5 += `const ${u5} = /* @pos ${t4} null */ ${d5}(${l5.join(", ")}) ;
|
|
174397
|
+
`, f5 += `if(${l5[0]}) {
|
|
174397
174398
|
${s4(c5.parameters?.nodes?.[1]?.value?.id, n4 + " ")}
|
|
174398
|
-
}` : c5.functionDefinition.identifier === "std::control::if_else" ? f5 +=
|
|
174399
|
+
}`) : c5.functionDefinition.identifier === "std::control::if_else" ? (f5 += `const ${u5} = /* @pos ${t4} null */ ${d5}(${l5.join(", ")}) ;
|
|
174400
|
+
`, f5 += `if(${l5[0]}) {
|
|
174399
174401
|
${s4(c5.parameters?.nodes?.[1]?.value?.id, n4 + " ")}
|
|
174400
174402
|
} else {
|
|
174401
174403
|
${s4(c5.parameters?.nodes?.[2]?.value?.id, n4 + " ")}
|
|
174402
|
-
}` : f5 += `const ${u5} = /* @pos ${t4} null */ ${d5}(${l5.join(", ")}) ;
|
|
174404
|
+
}`) : f5 += `const ${u5} = /* @pos ${t4} null */ ${d5}(${l5.join(", ")}) ;
|
|
174403
174405
|
`, c5.nextNodeId && (f5 += s4(c5.nextNodeId, n4)), f5;
|
|
174404
174406
|
}, c4 = x2(n3), l4 = `declare function flow${e6?.signature ?? "(): void"}`, u4 = t3?.map((e7) => `declare function fn_${e7.identifier?.replace(/::/g, "_")}${e7.signature}`).join(`
|
|
174405
174407
|
`), d4 = new Set(i3.map((e7) => e7?.nextNodeId).filter((e7) => !!e7)), f4 = /* @__PURE__ */ new Set;
|
|
@@ -174419,7 +174421,7 @@ ${s4(e7.id, n4 + " ")}${n4}}`;
|
|
|
174419
174421
|
)();
|
|
174420
174422
|
`;
|
|
174421
174423
|
}
|
|
174422
|
-
var
|
|
174424
|
+
var E2 = (e6, n3, r3) => {
|
|
174423
174425
|
if (!e6?.startingNodeId)
|
|
174424
174426
|
return {
|
|
174425
174427
|
isValid: false,
|
|
@@ -174473,5 +174475,5 @@ var I2 = (e6, n3, r3) => {
|
|
|
174473
174475
|
// ../entrypoint/single-validation.ts
|
|
174474
174476
|
var data = await readSingleValidation(console);
|
|
174475
174477
|
var validationInput = mapToFlowValidation(data);
|
|
174476
|
-
var result =
|
|
174478
|
+
var result = E2(validationInput.flow, validationInput.functions, validationInput.dataTypes);
|
|
174477
174479
|
console.info(JSON.stringify(result));
|
data/lib/triangulum/version.rb
CHANGED