triangulum 0.12.2-aarch64-linux-gnu → 0.12.3-aarch64-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 +44 -50
- 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: af8cc786afe4717c078bd2d7c8ce1acea0377a17628b564aed744a5c379e1470
|
|
4
|
+
data.tar.gz: 0316d74834a2e5739d9be6b05fcbb8bc612bf379626ad2e61633077e4d36c392
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c22eda7be9fdda679b4f5b4086dd911df20e73b865e47f25ff57b47f94b467c08675533f673c91b6fe02dcdbdfab5cf079bcca29ac836ead142646d8bad5144
|
|
7
|
+
data.tar.gz: fb73c99198a35f0569b05c0837cbb5085457ab74a6b839f7b6cbab22938b58d1c42ae787de85d7b30b3f85662058950af9116737d1e26812eeb8d9f11d2656a4
|
|
@@ -174493,71 +174493,65 @@ ${i3}`;
|
|
|
174493
174493
|
}
|
|
174494
174494
|
var T2 = (e6) => e6.replace(/[^a-zA-Z0-9]/g, "_");
|
|
174495
174495
|
function E2(e6, t3, n3, r3 = false) {
|
|
174496
|
-
let i3 = e6?.nodes?.nodes || [], a3 = new Map(t3?.map((e7) => [e7.identifier, e7])), o4 = /* @__PURE__ */ new Set, s4 = (
|
|
174497
|
-
let
|
|
174498
|
-
if (!
|
|
174496
|
+
let i3 = e6?.nodes?.nodes || [], a3 = new Map(t3?.map((e7) => [e7.identifier, e7])), o4 = /* @__PURE__ */ new Set, s4 = (t4, n4, a4) => {
|
|
174497
|
+
let o5 = i3.find((e7) => e7?.id === t4);
|
|
174498
|
+
if (!o5 || !o5.functionDefinition?.identifier)
|
|
174499
174499
|
return "undefined";
|
|
174500
|
-
let
|
|
174501
|
-
let
|
|
174502
|
-
if (!
|
|
174503
|
-
return r3 ? `/* @pos ${
|
|
174504
|
-
if (
|
|
174505
|
-
let
|
|
174506
|
-
|
|
174507
|
-
|
|
174508
|
-
|
|
174509
|
-
|
|
174510
|
-
|
|
174511
|
-
|
|
174512
|
-
|
|
174513
|
-
|
|
174514
|
-
|
|
174515
|
-
return t4 !== undefined && n4 !== undefined ? `${c5}` : c5;
|
|
174516
|
-
}, c4 = (e7, t4 = "") => {
|
|
174517
|
-
if (o4.has(e7))
|
|
174500
|
+
let c5 = (o5.parameters?.nodes || []).map((n5, i4) => {
|
|
174501
|
+
let a5 = n5.value;
|
|
174502
|
+
if (!a5)
|
|
174503
|
+
return r3 ? `/* @pos ${t4} ${i4} */ {}` : `/* @pos ${t4} ${i4} */ undefined`;
|
|
174504
|
+
if (a5.__typename === "ReferenceValue") {
|
|
174505
|
+
let n6 = a5, r4 = typeof n6.inputIndex == "number" ? `p_${T2(n6.nodeFunctionId ?? "undefined")}_${n6.parameterIndex}[${n6.inputIndex}]` : n6.nodeFunctionId ? `node_${T2(n6.nodeFunctionId)}` : `flow_${T2(e6?.id ?? "undefined")}`;
|
|
174506
|
+
return n6.referencePath?.forEach((e7) => {
|
|
174507
|
+
r4 += `?.${e7.path}`;
|
|
174508
|
+
}), `/* @pos ${t4} ${i4} */ ${r4}`;
|
|
174509
|
+
}
|
|
174510
|
+
return a5.__typename === "LiteralValue" ? `/* @pos ${t4} ${i4} */ ${y2(a5?.value)}` : a5.__typename === "NodeFunctionIdWrapper" ? s4(a5.id, t4, i4) : r3 ? `/* @pos ${t4} ${i4} */ ({} as any)` : `/* @pos ${t4} ${i4} */ undefined`;
|
|
174511
|
+
}).join(", "), l5 = `${`fn_${o5.functionDefinition.identifier.replace(/::/g, "_")}`}(${c5})`;
|
|
174512
|
+
return n4 !== undefined && a4 !== undefined ? `${l5}` : l5;
|
|
174513
|
+
}, c4 = (t4, l5 = "") => {
|
|
174514
|
+
if (o4.has(t4))
|
|
174518
174515
|
return "";
|
|
174519
|
-
let
|
|
174520
|
-
if (!
|
|
174516
|
+
let u5 = i3.find((e7) => e7?.id === t4);
|
|
174517
|
+
if (!u5 || !u5.functionDefinition)
|
|
174521
174518
|
return "";
|
|
174522
|
-
o4.add(
|
|
174523
|
-
let
|
|
174524
|
-
if (!
|
|
174525
|
-
return `${
|
|
174519
|
+
o4.add(t4);
|
|
174520
|
+
let d5 = a3.get(u5.functionDefinition.identifier);
|
|
174521
|
+
if (!d5)
|
|
174522
|
+
return `${l5}// Error: Function ${u5.functionDefinition.identifier} not found
|
|
174526
174523
|
`;
|
|
174527
|
-
let
|
|
174528
|
-
r3 || (
|
|
174529
|
-
let
|
|
174524
|
+
let f5 = { parameters: [] };
|
|
174525
|
+
r3 || (f5 = g3(d5));
|
|
174526
|
+
let p5 = (u5.parameters?.nodes || []).map((i4, a4) => {
|
|
174530
174527
|
let o5 = i4.value;
|
|
174531
174528
|
if (!o5)
|
|
174532
|
-
return r3 ? `/* @pos ${
|
|
174529
|
+
return r3 ? `/* @pos ${t4} ${a4} */ {}` : `/* @pos ${t4} ${a4} */ undefined`;
|
|
174533
174530
|
if (o5.__typename === "ReferenceValue") {
|
|
174534
|
-
let
|
|
174535
|
-
|
|
174536
|
-
|
|
174537
|
-
|
|
174538
|
-
return t5.referencePath?.forEach((e8) => {
|
|
174539
|
-
n4 += `?.${e8.path}`;
|
|
174540
|
-
}), `/* @pos ${e7} ${a4} */ ${n4}`;
|
|
174531
|
+
let n4 = o5, r4 = typeof n4.inputIndex == "number" ? `p_${T2(n4.nodeFunctionId ?? "undefined")}_${n4.parameterIndex}[${n4.inputIndex}]` : n4.nodeFunctionId ? `node_${T2(n4.nodeFunctionId)}` : `flow_${T2(e6?.id ?? "undefined")}`;
|
|
174532
|
+
return n4.referencePath?.forEach((e7) => {
|
|
174533
|
+
r4 += `?.${e7.path}`;
|
|
174534
|
+
}), `/* @pos ${t4} ${a4} */ ${r4}`;
|
|
174541
174535
|
}
|
|
174542
174536
|
if (o5.__typename === "LiteralValue")
|
|
174543
|
-
return `/* @pos ${
|
|
174537
|
+
return `/* @pos ${t4} ${a4} */ ${y2(o5?.value)}`;
|
|
174544
174538
|
if (o5.__typename === "NodeFunctionIdWrapper") {
|
|
174545
|
-
let
|
|
174539
|
+
let e7 = o5;
|
|
174546
174540
|
if (r3)
|
|
174547
|
-
return `/* @pos ${
|
|
174548
|
-
${c4(
|
|
174541
|
+
return `/* @pos ${t4} ${a4} */ (...${`p_${T2(t4)}_${a4}`}) => {
|
|
174542
|
+
${c4(e7.id, l5 + " ")}${l5}}`;
|
|
174549
174543
|
{
|
|
174550
|
-
let r4 =
|
|
174551
|
-
return r4 && h3(r4, n3)[0].variant === m3.NODE ? `/* @pos ${
|
|
174552
|
-
${c4(
|
|
174544
|
+
let r4 = f5.parameters[a4];
|
|
174545
|
+
return r4 && h3(r4, n3)[0].variant === m3.NODE ? `/* @pos ${t4} ${a4} */ (...${`p_${T2(t4)}_${a4}`}) => {
|
|
174546
|
+
${c4(e7.id, l5 + " ")}${l5}}` : `/* @pos ${t4} ${a4} */ ${s4(e7.id, t4, a4)}`;
|
|
174553
174547
|
}
|
|
174554
174548
|
}
|
|
174555
|
-
return r3 ? `/* @pos ${
|
|
174556
|
-
}).join(", "),
|
|
174557
|
-
|
|
174558
|
-
let
|
|
174549
|
+
return r3 ? `/* @pos ${t4} ${a4} */ {}` : `/* @pos ${t4} ${a4} */ undefined`;
|
|
174550
|
+
}).join(", "), _3 = `node_${T2(u5.id)}`, v3 = `fn_${u5?.functionDefinition?.identifier?.replace(/::/g, "_")}`;
|
|
174551
|
+
p5.includes("undefined");
|
|
174552
|
+
let b3 = `${l5}${u5.functionDefinition.identifier === "std::control::return" ? "return " : `const ${_3} = `}${v3}(${p5}) ;
|
|
174559
174553
|
`;
|
|
174560
|
-
return
|
|
174554
|
+
return u5.nextNodeId && (b3 += c4(u5.nextNodeId, l5)), b3;
|
|
174561
174555
|
}, l4 = w2(n3), u4 = `declare function flow${e6?.signature ?? "(): void"}`, d4 = t3?.map((e7) => `declare function fn_${e7.identifier?.replace(/::/g, "_")}${e7.signature}`).join(`
|
|
174562
174556
|
`), f4 = new Set(i3.map((e7) => e7?.nextNodeId).filter((e7) => !!e7)), p4 = /* @__PURE__ */ new Set;
|
|
174563
174557
|
return i3.forEach((e7) => e7?.parameters?.nodes?.forEach((e8) => {
|
data/lib/triangulum/version.rb
CHANGED