@living-architecture/riviere-query 0.3.4 → 0.3.5
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/domain-queries.js +3 -3
- package/dist/flow-queries.js +1 -1
- package/package.json +2 -2
package/dist/domain-queries.js
CHANGED
|
@@ -22,11 +22,11 @@ export function queryEntities(graph, domainName) {
|
|
|
22
22
|
for (const op of filtered) {
|
|
23
23
|
const key = `${op.domain}:${op.entity}`;
|
|
24
24
|
const existing = entityMap.get(key);
|
|
25
|
-
if (existing
|
|
26
|
-
entityMap.set(key, {
|
|
25
|
+
if (existing === undefined) {
|
|
26
|
+
entityMap.set(key, { name: op.entity, domain: op.domain, operations: [op] });
|
|
27
27
|
}
|
|
28
28
|
else {
|
|
29
|
-
entityMap.set(key, {
|
|
29
|
+
entityMap.set(key, { ...existing, operations: [...existing.operations, op] });
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
return Array.from(entityMap.values())
|
package/dist/flow-queries.js
CHANGED
|
@@ -56,7 +56,7 @@ export function queryFlows(graph) {
|
|
|
56
56
|
return;
|
|
57
57
|
const edges = outgoingEdges.get(nodeId);
|
|
58
58
|
const firstEdge = edges !== undefined && edges.length > 0 ? edges[0] : undefined;
|
|
59
|
-
const linkType = firstEdge
|
|
59
|
+
const linkType = firstEdge === undefined ? undefined : firstEdge.type;
|
|
60
60
|
const externalLinks = externalLinksBySource.get(nodeId) ?? [];
|
|
61
61
|
steps.push({ component, linkType, depth, externalLinks });
|
|
62
62
|
if (edges) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@living-architecture/riviere-query",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"zod": "^4.2.1",
|
|
26
|
-
"@living-architecture/riviere-schema": "0.3.
|
|
26
|
+
"@living-architecture/riviere-schema": "0.3.5"
|
|
27
27
|
}
|
|
28
28
|
}
|