triangulum 0.12.1-x86_64-linux-gnu → 0.12.3-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02d87ee23ce6c979af2a987ac65fb47332ab4f0a8cbde6451e6d4f28c32bfbc0
4
- data.tar.gz: 52f61fa7a03eab94c829a55c31b53002cbd95f6e14dd727b5c8e2bc7cd45295c
3
+ metadata.gz: 9cf5d8c78d20f033e93c7f55ee1bff8c56951abb5edf8ae4c4e49cb4b9c28b30
4
+ data.tar.gz: 1ae4b26bbc003c10214a27381b544d2058cc9b0217869eab6608f19e0013dc7a
5
5
  SHA512:
6
- metadata.gz: d29e2f1e65ed3bad5d46f8f1f721ecb2a636ed8f1d2e989590a2009dbbf3f011af9fa0dfcc0005732f437d6cd24722b9a7a21441346dafa078b23feee39223f8
7
- data.tar.gz: 0de5474d00cb1ded81133839489e517c7e84c252f8146005fdb4b9d15d10a1a5b8b15da3ff39a079b5c4d73a4a46d9f44eb5844e1cb4772fc25f282ef5a3157c
6
+ metadata.gz: 3f3ebeb927f80c62920747f5fe0c65820e5d8c5e00fb1b0d443e466d5e48cb27c3b02cf9a658a7769f855e69a5909228dfc5cf9a925633add9da9b384ed918e2
7
+ data.tar.gz: 3156063a20d6268f45015c5aff0ffc20a54d6d482f1566e54eea60b54ab84ee78204447cee935175f12013393aa16e894a36e5b459ef11d91ae54ff06bb24252
@@ -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 = (e7, t4, n4) => {
174497
- let a4 = i3.find((t5) => t5?.id === e7);
174498
- if (!a4 || !a4.functionDefinition?.identifier)
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 o5 = (a4.parameters?.nodes || []).map((t5, n5) => {
174501
- let i4 = t5.value;
174502
- if (!i4)
174503
- return r3 ? `/* @pos ${e7} ${n5} */ {}` : `/* @pos ${e7} ${n5} */ undefined`;
174504
- if (i4.__typename === "ReferenceValue") {
174505
- let t6 = i4;
174506
- if (!t6.nodeFunctionId)
174507
- return `/* @pos ${e7} ${n5} */ undefined`;
174508
- let r4 = typeof t6.inputIndex == "number" ? `p_${T2(t6.nodeFunctionId)}_${t6.parameterIndex}[${t6.inputIndex}]` : `node_${T2(t6.nodeFunctionId)}`;
174509
- return t6.referencePath?.forEach((e8) => {
174510
- r4 += `?.${e8.path}`;
174511
- }), `/* @pos ${e7} ${n5} */ ${r4}`;
174512
- }
174513
- return i4.__typename === "LiteralValue" ? `/* @pos ${e7} ${n5} */ ${y2(i4?.value)}` : i4.__typename === "NodeFunctionIdWrapper" ? s4(i4.id, e7, n5) : r3 ? `/* @pos ${e7} ${n5} */ ({} as any)` : `/* @pos ${e7} ${n5} */ undefined`;
174514
- }).join(", "), c5 = `${`fn_${a4.functionDefinition.identifier.replace(/::/g, "_")}`}(${o5})`;
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 l5 = i3.find((t5) => t5?.id === e7);
174520
- if (!l5 || !l5.functionDefinition)
174516
+ let u5 = i3.find((e7) => e7?.id === t4);
174517
+ if (!u5 || !u5.functionDefinition)
174521
174518
  return "";
174522
- o4.add(e7);
174523
- let u5 = a3.get(l5.functionDefinition.identifier);
174524
- if (!u5)
174525
- return `${t4}// Error: Function ${l5.functionDefinition.identifier} not found
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 d5 = { parameters: [] };
174528
- r3 || (d5 = g3(u5));
174529
- let f5 = (l5.parameters?.nodes || []).map((i4, a4) => {
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 ${e7} ${a4} */ {}` : `/* @pos ${e7} ${a4} */ undefined`;
174529
+ return r3 ? `/* @pos ${t4} ${a4} */ {}` : `/* @pos ${t4} ${a4} */ undefined`;
174533
174530
  if (o5.__typename === "ReferenceValue") {
174534
- let t5 = o5;
174535
- if (!t5.nodeFunctionId)
174536
- return `/* @pos ${e7} ${a4} */ undefined`;
174537
- let n4 = typeof t5.inputIndex == "number" ? `p_${T2(t5.nodeFunctionId)}_${t5.parameterIndex}[${t5.inputIndex}]` : `node_${T2(t5.nodeFunctionId)}`;
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 ${e7} ${a4} */ ${y2(o5?.value)}`;
174537
+ return `/* @pos ${t4} ${a4} */ ${y2(o5?.value)}`;
174544
174538
  if (o5.__typename === "NodeFunctionIdWrapper") {
174545
- let i5 = o5;
174539
+ let e7 = o5;
174546
174540
  if (r3)
174547
- return `/* @pos ${e7} ${a4} */ (...${`p_${T2(e7)}_${a4}`}) => {
174548
- ${c4(i5.id, t4 + " ")}${t4}}`;
174541
+ return `/* @pos ${t4} ${a4} */ (...${`p_${T2(t4)}_${a4}`}) => {
174542
+ ${c4(e7.id, l5 + " ")}${l5}}`;
174549
174543
  {
174550
- let r4 = d5.parameters[a4];
174551
- return r4 && h3(r4, n3)[0].variant === m3.NODE ? `/* @pos ${e7} ${a4} */ (...${`p_${T2(e7)}_${a4}`}) => {
174552
- ${c4(i5.id, t4 + " ")}${t4}}` : `/* @pos ${e7} ${a4} */ ${s4(i5.id, e7, a4)}`;
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 ${e7} ${a4} */ {}` : `/* @pos ${e7} ${a4} */ undefined`;
174556
- }).join(", "), p5 = `node_${T2(l5.id)}`, _3 = `fn_${l5?.functionDefinition?.identifier?.replace(/::/g, "_")}`;
174557
- f5.includes("undefined");
174558
- let v3 = `${t4}${l5.functionDefinition.identifier === "std::control::return" ? "return " : `const ${p5} = `}${_3}(${f5}) ;
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 l5.nextNodeId && (v3 += c4(l5.nextNodeId, t4)), v3;
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) => {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Triangulum
4
- VERSION = '0.12.1'
4
+ VERSION = '0.12.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: triangulum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.3
5
5
  platform: x86_64-linux-gnu
6
6
  authors:
7
7
  - Niklas van Schrick