@ts-graphviz/adapter 2.0.5-next-d0b54a18248207de01f60c17dcd24b13ee4f03d7 → 2.0.5-next-b3a3323c70e72c87b7728684a5862b5d6e54fbb9

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,13 +1,15 @@
1
1
  # @ts-graphviz/adapter
2
2
 
3
- ## 2.0.5-next-d0b54a18248207de01f60c17dcd24b13ee4f03d7
3
+ ## 2.0.5-next-b3a3323c70e72c87b7728684a5862b5d6e54fbb9
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - [#1179](https://github.com/ts-graphviz/ts-graphviz/pull/1179) [`f48ae4a`](https://github.com/ts-graphviz/ts-graphviz/commit/f48ae4a36fde430cf4a4769189243acd76560946) Thanks [@kamiazya](https://github.com/kamiazya)! - build(deps-dev): bump vite-plugin-dts from 3.9.1 to 4.2.1
8
8
 
9
- - Updated dependencies [[`f48ae4a`](https://github.com/ts-graphviz/ts-graphviz/commit/f48ae4a36fde430cf4a4769189243acd76560946)]:
10
- - @ts-graphviz/common@2.1.4-next-d0b54a18248207de01f60c17dcd24b13ee4f03d7
9
+ - [#1214](https://github.com/ts-graphviz/ts-graphviz/pull/1214) [`b3a3323`](https://github.com/ts-graphviz/ts-graphviz/commit/b3a3323c70e72c87b7728684a5862b5d6e54fbb9) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump vite from 5.2.8 to 5.4.8
10
+
11
+ - Updated dependencies [[`f48ae4a`](https://github.com/ts-graphviz/ts-graphviz/commit/f48ae4a36fde430cf4a4769189243acd76560946), [`b3a3323`](https://github.com/ts-graphviz/ts-graphviz/commit/b3a3323c70e72c87b7728684a5862b5d6e54fbb9)]:
12
+ - @ts-graphviz/common@2.1.4-next-b3a3323c70e72c87b7728684a5862b5d6e54fbb9
11
13
 
12
14
  ## 2.0.4
13
15
 
@@ -18,8 +18,7 @@ function* createCommandArgs(options) {
18
18
  y = false,
19
19
  scale
20
20
  } = options;
21
- if (suppressWarnings)
22
- yield "-q";
21
+ if (suppressWarnings) yield "-q";
23
22
  yield `-T${format}`;
24
23
  if (attributes.graph) {
25
24
  for (const [key, value] of Object.entries(attributes.graph)) {
@@ -36,22 +35,16 @@ function* createCommandArgs(options) {
36
35
  yield `-E${key}${escapeValue(value)}`;
37
36
  }
38
37
  }
39
- if (typeof scale === "number" && !Number.isNaN(scale))
40
- yield `-s${scale}`;
41
- if (Array.isArray(library))
42
- for (const lib of library)
43
- yield `-l${lib}`;
44
- if (y === true)
45
- yield "-y";
38
+ if (typeof scale === "number" && !Number.isNaN(scale)) yield `-s${scale}`;
39
+ if (Array.isArray(library)) for (const lib of library) yield `-l${lib}`;
40
+ if (y === true) yield "-y";
46
41
  if (typeof options.layout === "string") {
47
42
  yield `-K${options.layout}`;
48
43
  switch (options.layout) {
49
44
  case "neato": {
50
45
  const { reduce, noop } = options;
51
- if (reduce === true)
52
- yield "-x";
53
- if (typeof noop === "number")
54
- yield `-n${noop}`;
46
+ if (reduce === true) yield "-x";
47
+ if (typeof noop === "number") yield `-n${noop}`;
55
48
  break;
56
49
  }
57
50
  case "fdp": {
@@ -64,14 +57,11 @@ function* createCommandArgs(options) {
64
57
  temperature
65
58
  } = options;
66
59
  yield ["-L", grid ? "" : "g", oldAttractive ? "O" : ""].join("");
67
- if (typeof iterations === "number")
68
- yield `-Ln${iterations}`;
69
- if (typeof unscaledFactor === "number")
70
- yield `-LU${unscaledFactor}`;
60
+ if (typeof iterations === "number") yield `-Ln${iterations}`;
61
+ if (typeof unscaledFactor === "number") yield `-LU${unscaledFactor}`;
71
62
  if (typeof overlapExpansionFactor === "number")
72
63
  yield `-LC${overlapExpansionFactor}`;
73
- if (typeof temperature === "number")
74
- yield `-LT${temperature}`;
64
+ if (typeof temperature === "number") yield `-LT${temperature}`;
75
65
  break;
76
66
  }
77
67
  }
@@ -16,8 +16,7 @@ function* createCommandArgs(options) {
16
16
  y = false,
17
17
  scale
18
18
  } = options;
19
- if (suppressWarnings)
20
- yield "-q";
19
+ if (suppressWarnings) yield "-q";
21
20
  yield `-T${format}`;
22
21
  if (attributes.graph) {
23
22
  for (const [key, value] of Object.entries(attributes.graph)) {
@@ -34,22 +33,16 @@ function* createCommandArgs(options) {
34
33
  yield `-E${key}${escapeValue(value)}`;
35
34
  }
36
35
  }
37
- if (typeof scale === "number" && !Number.isNaN(scale))
38
- yield `-s${scale}`;
39
- if (Array.isArray(library))
40
- for (const lib of library)
41
- yield `-l${lib}`;
42
- if (y === true)
43
- yield "-y";
36
+ if (typeof scale === "number" && !Number.isNaN(scale)) yield `-s${scale}`;
37
+ if (Array.isArray(library)) for (const lib of library) yield `-l${lib}`;
38
+ if (y === true) yield "-y";
44
39
  if (typeof options.layout === "string") {
45
40
  yield `-K${options.layout}`;
46
41
  switch (options.layout) {
47
42
  case "neato": {
48
43
  const { reduce, noop } = options;
49
- if (reduce === true)
50
- yield "-x";
51
- if (typeof noop === "number")
52
- yield `-n${noop}`;
44
+ if (reduce === true) yield "-x";
45
+ if (typeof noop === "number") yield `-n${noop}`;
53
46
  break;
54
47
  }
55
48
  case "fdp": {
@@ -62,14 +55,11 @@ function* createCommandArgs(options) {
62
55
  temperature
63
56
  } = options;
64
57
  yield ["-L", grid ? "" : "g", oldAttractive ? "O" : ""].join("");
65
- if (typeof iterations === "number")
66
- yield `-Ln${iterations}`;
67
- if (typeof unscaledFactor === "number")
68
- yield `-LU${unscaledFactor}`;
58
+ if (typeof iterations === "number") yield `-Ln${iterations}`;
59
+ if (typeof unscaledFactor === "number") yield `-LU${unscaledFactor}`;
69
60
  if (typeof overlapExpansionFactor === "number")
70
61
  yield `-LC${overlapExpansionFactor}`;
71
- if (typeof temperature === "number")
72
- yield `-LT${temperature}`;
62
+ if (typeof temperature === "number") yield `-LT${temperature}`;
73
63
  break;
74
64
  }
75
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-graphviz/adapter",
3
- "version": "2.0.5-next-d0b54a18248207de01f60c17dcd24b13ee4f03d7",
3
+ "version": "2.0.5-next-b3a3323c70e72c87b7728684a5862b5d6e54fbb9",
4
4
  "description": "Graphviz Runtime adapters for Cross Platform",
5
5
  "keywords": [
6
6
  "graphviz",
@@ -51,12 +51,12 @@
51
51
  "module": "./lib/node.js",
52
52
  "types": "./lib/node.d.ts",
53
53
  "dependencies": {
54
- "@ts-graphviz/common": "^2.1.4-next-d0b54a18248207de01f60c17dcd24b13ee4f03d7"
54
+ "@ts-graphviz/common": "^2.1.4-next-b3a3323c70e72c87b7728684a5862b5d6e54fbb9"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/node": "^20.12.7",
58
58
  "typescript": "^5.4.5",
59
- "vite": "^5.2.8",
59
+ "vite": "^5.4.8",
60
60
  "vite-plugin-dts": "^4.2.1"
61
61
  },
62
62
  "engines": {