@thi.ng/rstream-dot 3.0.75 → 3.0.76
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/CHANGELOG.md +1 -1
- package/index.js +4 -8
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
package/index.js
CHANGED
|
@@ -7,12 +7,9 @@ export * from "./api.js";
|
|
|
7
7
|
const getNodeType = (sub) => sub instanceof Stream ? "Stream" : sub instanceof StreamSync ? "StreamSync" : sub instanceof StreamMerge ? "StreamMerge" : void 0;
|
|
8
8
|
const getChildren = (sub) => {
|
|
9
9
|
let children = [];
|
|
10
|
-
if (sub.subs)
|
|
11
|
-
|
|
12
|
-
if (sub.
|
|
13
|
-
children.push(sub.__owner);
|
|
14
|
-
if (sub.wrapped)
|
|
15
|
-
children.push(...getChildren(sub.wrapped));
|
|
10
|
+
if (sub.subs) children.push(...sub.subs);
|
|
11
|
+
if (sub.__owner) children.push(sub.__owner);
|
|
12
|
+
if (sub.wrapped) children.push(...getChildren(sub.wrapped));
|
|
16
13
|
return children;
|
|
17
14
|
};
|
|
18
15
|
const dotNode = (s, opts) => {
|
|
@@ -34,8 +31,7 @@ const traverse = (subs, opts, state) => {
|
|
|
34
31
|
opts || (opts = {});
|
|
35
32
|
state || (state = { id: 0, subs: /* @__PURE__ */ new Map(), rels: [] });
|
|
36
33
|
for (let sub of subs) {
|
|
37
|
-
if (state.subs.get(sub))
|
|
38
|
-
return state;
|
|
34
|
+
if (state.subs.get(sub)) return state;
|
|
39
35
|
const id = state.id;
|
|
40
36
|
const desc = {
|
|
41
37
|
id,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/rstream-dot",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.76",
|
|
4
4
|
"description": "Graphviz DOT conversion of @thi.ng/rstream dataflow graph topologies",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/rstream": "^8.
|
|
40
|
-
"@thi.ng/strings": "^3.7.
|
|
41
|
-
"@thi.ng/transducers": "^9.0.
|
|
39
|
+
"@thi.ng/rstream": "^8.5.0",
|
|
40
|
+
"@thi.ng/strings": "^3.7.33",
|
|
41
|
+
"@thi.ng/transducers": "^9.0.5"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@microsoft/api-extractor": "^7.43.
|
|
45
|
-
"esbuild": "^0.
|
|
46
|
-
"typedoc": "^0.25.
|
|
47
|
-
"typescript": "^5.4.
|
|
44
|
+
"@microsoft/api-extractor": "^7.43.2",
|
|
45
|
+
"esbuild": "^0.21.1",
|
|
46
|
+
"typedoc": "^0.25.13",
|
|
47
|
+
"typescript": "^5.4.5"
|
|
48
48
|
},
|
|
49
49
|
"keywords": [
|
|
50
50
|
"conversion",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
],
|
|
87
87
|
"year": 2018
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "df34b4a9e650cc7323575356de207d78933bdcf3\n"
|
|
90
90
|
}
|