@thi.ng/rstream-dot 3.0.74 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-04-23T07:02:18Z
3
+ - **Last updated**: 2024-05-08T18:24:32Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
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
- children.push(...sub.subs);
12
- if (sub.__owner)
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.74",
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.4.2",
40
- "@thi.ng/strings": "^3.7.32",
41
- "@thi.ng/transducers": "^9.0.3"
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.0",
45
- "esbuild": "^0.20.2",
46
- "typedoc": "^0.25.12",
47
- "typescript": "^5.4.3"
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": "5dd66c18a3862a3af69a5b2f49563f7cbdd960c2\n"
89
+ "gitHead": "df34b4a9e650cc7323575356de207d78933bdcf3\n"
90
90
  }