@voidaliot/swaml-cli 0.17.0 → 0.17.1
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.
- package/dist/cli.mjs +2 -2
- package/dist/validate.mjs +1 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -175672,7 +175672,7 @@ async function buildCurrentDiagram(services, params) {
|
|
|
175672
175672
|
model.nodes.push({ id: id2, name: s2.$cstNode.text, keyword: "schedule", shape: "action", isDef: false, parent: diagramId(entry.id), source: source(s2), meta: { nonExecutableGrouping: true, gvExplicit: true, gvOwnerId: diagramId(entry.id), gvInScope: true, gvUsage: false } });
|
|
175673
175673
|
model.edges.push({ id: id2 + "->target", from: id2, to: diagramId(entry.id + "." + s2.operation), kind: "dependency", label: s2.kind === "after" ? "successful completion" : "activation", source: source(s2) });
|
|
175674
175674
|
});
|
|
175675
|
-
if (node2 && entry.ports?.length) node2.compartments = [{ title: "Ports", items: entry.ports.flatMap((p2) => p2.members.map((m2) => ({ text: m2.direction + " " + m2.kind + " " + p2.name + "." + m2.name + (m2.kind === "attribute" ? ": " + diagramElementName(m2.type) : "(" + m2.parameters.map((v2) => v2.direction + " " + v2.name + ": " + diagramElementName(v2.type)).join(", ") + ")" + (m2.kind === "operation" ? " returns " + diagramElementName(m2.type) : "")), source: node2.ports?.find((x2) => x2.id === node2.id + "::" + p2.name + "::" + m2.name)?.source ?? node2.source }))) }, ...node2.compartments ?? []];
|
|
175675
|
+
if (kind2 !== "iv" && node2 && entry.ports?.length) node2.compartments = [{ title: "Ports", items: entry.ports.flatMap((p2) => p2.members.map((m2) => ({ text: m2.direction + " " + m2.kind + " " + p2.name + "." + m2.name + (m2.kind === "attribute" ? ": " + diagramElementName(m2.type) : "(" + m2.parameters.map((v2) => v2.direction + " " + v2.name + ": " + diagramElementName(v2.type)).join(", ") + ")" + (m2.kind === "operation" ? " returns " + diagramElementName(m2.type) : "")), source: node2.ports?.find((x2) => x2.id === node2.id + "::" + p2.name + "::" + m2.name)?.source ?? node2.source }))) }, ...node2.compartments ?? []];
|
|
175676
175676
|
if (node2 && isPortUsage(ast)) {
|
|
175677
175677
|
node2.type = ast.definition?.$refText ?? "inline";
|
|
175678
175678
|
node2.meta = { ...node2.meta, optional: ast.optional, reversed: ast.reversed };
|
|
@@ -224840,7 +224840,7 @@ function parseArguments(args2, flags) {
|
|
|
224840
224840
|
// packages/cli/package.json
|
|
224841
224841
|
var package_default = {
|
|
224842
224842
|
name: "swaml-diagram",
|
|
224843
|
-
version: "0.17.
|
|
224843
|
+
version: "0.17.1",
|
|
224844
224844
|
private: true,
|
|
224845
224845
|
type: "module",
|
|
224846
224846
|
scripts: {
|
package/dist/validate.mjs
CHANGED
|
@@ -43725,7 +43725,7 @@ var init_swaml_module = __esm({
|
|
|
43725
43725
|
// packages/cli/package.json
|
|
43726
43726
|
var package_default = {
|
|
43727
43727
|
name: "swaml-diagram",
|
|
43728
|
-
version: "0.17.
|
|
43728
|
+
version: "0.17.1",
|
|
43729
43729
|
private: true,
|
|
43730
43730
|
type: "module",
|
|
43731
43731
|
scripts: {
|