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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ddcf4cd27bb76109802a7eee01718f0ebfab66fe298d29278a7e5d929d08e9d6
4
- data.tar.gz: b758d155199f9c3cd44d788054ef397c92fbb63cacb1da68a86c5dbd5da22aac
3
+ metadata.gz: 79d495692eaa7098054fe8e8dffe6dbbe043a73436b4939936df0721d98ef621
4
+ data.tar.gz: bd067e83805be3fc847fb08c78d8c73bec7034709d401ebbcb903df92eaf9195
5
5
  SHA512:
6
- metadata.gz: 86e9d27251c7d6a42cfaabbcb13488f79c054626633d71447cdc78cc3735de3c3dceee64be0b5cab5847bc6faa8c7d490ea9ec6c98989250eb96709d99c8a22d
7
- data.tar.gz: a06e7ee7519db81ea84c64baf007395dc292895191c226f658974314db50e5f480569a842d57b11d1278d5a430b268a7c885066fec13d188ea3d30de60eb745b
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.replace(/[^a-zA-Z0-9]/g, "_");
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 += `/* @pos ${t4} null */ if(${l5[0]}) {
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 += `/* @pos ${t4} null */ if(${l5[0]}) {
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 I2 = (e6, n3, r3) => {
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 = I2(validationInput.flow, validationInput.functions, validationInput.dataTypes);
174478
+ var result = E2(validationInput.flow, validationInput.functions, validationInput.dataTypes);
174477
174479
  console.info(JSON.stringify(result));
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Triangulum
4
- VERSION = '0.13.2'
4
+ VERSION = '0.14.0'
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.13.2
4
+ version: 0.14.0
5
5
  platform: x86_64-linux-gnu
6
6
  authors:
7
7
  - Niklas van Schrick