ts-graphviz 1.3.3 → 1.3.4-dev.584eb2ac9

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/README.md CHANGED
@@ -534,6 +534,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
534
534
  <td align="center"><a href="https://github.com/ChristianMurphy"><img src="https://avatars.githubusercontent.com/u/3107513?v=4?s=100" width="100px;" alt="Christian Murphy"/><br /><sub><b>Christian Murphy</b></sub></a><br /><a href="https://github.com/ts-graphviz/ts-graphviz/commits?author=ChristianMurphy" title="Code">💻</a> <a href="#ideas-ChristianMurphy" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/ts-graphviz/ts-graphviz/commits?author=ChristianMurphy" title="Documentation">📖</a></td>
535
535
  <td align="center"><a href="https://github.com/ArtemAdamenko"><img src="https://avatars.githubusercontent.com/u/2178516?v=4?s=100" width="100px;" alt="Artem"/><br /><sub><b>Artem</b></sub></a><br /><a href="https://github.com/ts-graphviz/ts-graphviz/issues?q=author%3AArtemAdamenko" title="Bug reports">🐛</a></td>
536
536
  <td align="center"><a href="https://github.com/fredericohpandolfo"><img src="https://avatars.githubusercontent.com/u/24229136?v=4?s=100" width="100px;" alt="fredericohpandolfo"/><br /><sub><b>fredericohpandolfo</b></sub></a><br /><a href="https://github.com/ts-graphviz/ts-graphviz/issues?q=author%3Afredericohpandolfo" title="Bug reports">🐛</a></td>
537
+ <td align="center"><a href="https://github.com/diegoquinteiro"><img src="https://avatars.githubusercontent.com/u/1878108?v=4?s=100" width="100px;" alt="diegoquinteiro"/><br /><sub><b>diegoquinteiro</b></sub></a><br /><a href="https://github.com/ts-graphviz/ts-graphviz/issues?q=author%3Adiegoquinteiro" title="Bug reports">🐛</a></td>
537
538
  </tr>
538
539
  </tbody>
539
540
  </table>
package/lib/ast/index.cjs CHANGED
@@ -537,7 +537,7 @@ function peg$parse(input, options) {
537
537
  return b.createElement(
538
538
  'AttributeList',
539
539
  {
540
- kind: _kind.toLowerCase(),
540
+ kind: `${_kind.slice(0, 1).toUpperCase()}${_kind.slice(1).toLowerCase()}`,
541
541
  },
542
542
  children,
543
543
  );
package/lib/ast/index.js CHANGED
@@ -528,7 +528,7 @@ function peg$parse(input, options) {
528
528
  return b.createElement(
529
529
  'AttributeList',
530
530
  {
531
- kind: _kind.toLowerCase(),
531
+ kind: `${_kind.slice(0, 1).toUpperCase()}${_kind.slice(1).toLowerCase()}`,
532
532
  },
533
533
  children,
534
534
  );
package/package.json CHANGED
@@ -1,114 +1,114 @@
1
1
  {
2
- "name": "ts-graphviz",
3
- "version": "1.3.3",
4
- "author": "kamiazya <yuki@kamiazya.tech>",
5
- "description": "Graphviz library for TypeScript.",
6
- "homepage": "https://ts-graphviz.github.io/ts-graphviz/",
7
- "type": "module",
8
- "repository": {
9
- "type": "git",
10
- "url": "https://github.com/ts-graphviz/ts-graphviz.git"
11
- },
12
- "keywords": [
13
- "graphviz",
14
- "dot"
15
- ],
16
- "bugs": {
17
- "url": "https://github.com/ts-graphviz/ts-graphviz/issues"
18
- },
19
- "funding": {
20
- "type": "github",
21
- "url": "https://github.com/sponsors/kamiazya"
22
- },
23
- "main": "./lib/index.cjs",
24
- "module": "./lib/index.js",
25
- "types": "lib/index.d.ts",
26
- "exports": {
27
- ".": {
28
- "require": {
29
- "types": "./lib/index.d.ts",
30
- "default": "./lib/index.cjs"
31
- },
32
- "import": {
33
- "types": "./lib/index.d.ts",
34
- "default": "./lib/index.js"
35
- }
2
+ "name": "ts-graphviz",
3
+ "version": "1.3.4-dev.584eb2ac9",
4
+ "author": "kamiazya <yuki@kamiazya.tech>",
5
+ "description": "Graphviz library for TypeScript.",
6
+ "homepage": "https://ts-graphviz.github.io/ts-graphviz/",
7
+ "type": "module",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/ts-graphviz/ts-graphviz.git"
36
11
  },
37
- "./ast": {
38
- "require": {
39
- "types": "./lib/ast/index.d.ts",
40
- "default": "./lib/ast/index.cjs"
41
- },
42
- "import": {
43
- "types": "./lib/ast/index.d.ts",
44
- "default": "./lib/ast/index.js"
45
- }
12
+ "keywords": [
13
+ "graphviz",
14
+ "dot"
15
+ ],
16
+ "bugs": {
17
+ "url": "https://github.com/ts-graphviz/ts-graphviz/issues"
46
18
  },
47
- "./adapter": {
48
- "deno": {
49
- "types": "./lib/adapter/deno/mod.d.ts",
50
- "default": "./lib/adapter/deno/mod.js"
51
- },
52
- "node": {
53
- "require": "./lib/adapter/index.cjs",
54
- "import": "./lib/adapter/index.js",
55
- "types": "./lib/adapter/index.d.ts"
56
- }
19
+ "funding": {
20
+ "type": "github",
21
+ "url": "https://github.com/sponsors/kamiazya"
57
22
  },
58
- "./package.json": "./package.json"
59
- },
60
- "typesVersions": {
61
- "*": {
62
- "ast": [
63
- "lib/ast"
64
- ],
65
- "adapter": [
66
- "lib/adapter"
67
- ]
23
+ "main": "./lib/index.cjs",
24
+ "module": "./lib/index.js",
25
+ "types": "lib/index.d.ts",
26
+ "exports": {
27
+ ".": {
28
+ "require": {
29
+ "types": "./lib/index.d.ts",
30
+ "default": "./lib/index.cjs"
31
+ },
32
+ "import": {
33
+ "types": "./lib/index.d.ts",
34
+ "default": "./lib/index.js"
35
+ }
36
+ },
37
+ "./ast": {
38
+ "require": {
39
+ "types": "./lib/ast/index.d.ts",
40
+ "default": "./lib/ast/index.cjs"
41
+ },
42
+ "import": {
43
+ "types": "./lib/ast/index.d.ts",
44
+ "default": "./lib/ast/index.js"
45
+ }
46
+ },
47
+ "./adapter": {
48
+ "deno": {
49
+ "types": "./lib/adapter/deno/mod.d.ts",
50
+ "default": "./lib/adapter/deno/mod.js"
51
+ },
52
+ "node": {
53
+ "require": "./lib/adapter/index.cjs",
54
+ "import": "./lib/adapter/index.js",
55
+ "types": "./lib/adapter/index.d.ts"
56
+ }
57
+ },
58
+ "./package.json": "./package.json"
59
+ },
60
+ "typesVersions": {
61
+ "*": {
62
+ "ast": [
63
+ "lib/ast"
64
+ ],
65
+ "adapter": [
66
+ "lib/adapter"
67
+ ]
68
+ }
69
+ },
70
+ "license": "MIT",
71
+ "engines": {
72
+ "node": ">=14.16"
73
+ },
74
+ "scripts": {
75
+ "build:peggy": "peggy --plugin ts-pegjs --extra-options-file src/ast/dot-shim/parser/peggy.options.json -o src/ast/dot-shim/parser/_parse.ts src/ast/dot-shim/parser/dot.peggy",
76
+ "prebuild": "yarn build:peggy",
77
+ "build:deno": "cp -r src/adapter/deno lib/adapter/deno",
78
+ "build:node": "tsc -p tsconfig.build.json && rollup -c",
79
+ "build": "yarn build:node && yarn build:deno",
80
+ "postbuild": "prettier --write ./lib/**/index.{js,cjs,d.ts}",
81
+ "pretest": "yarn build:peggy",
82
+ "test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest",
83
+ "format": "eslint --ext ts src --fix && prettier --write './**/*.{ts,js,json,yaml}' '!lib'",
84
+ "lint": "eslint --ext ts src",
85
+ "predoc": "yarn build:peggy",
86
+ "doc": "typedoc"
87
+ },
88
+ "devDependencies": {
89
+ "@rollup/plugin-replace": "^4.0.0",
90
+ "@types/jest": "^28.1.6",
91
+ "@types/jest-specific-snapshot": "^0.5.6",
92
+ "@typescript-eslint/eslint-plugin": "^5.33.0",
93
+ "@typescript-eslint/parser": "^5.33.0",
94
+ "eslint": "^8.22.0",
95
+ "eslint-config-prettier": "^8.5.0",
96
+ "eslint-plugin-import": "^2.26.0",
97
+ "eslint-plugin-jest": "^26.8.2",
98
+ "eslint-plugin-prettier": "^4.2.1",
99
+ "jest": "^28.1.3",
100
+ "jest-snapshot-serializer-raw": "^1.2.0",
101
+ "jest-specific-snapshot": "^5.0.0",
102
+ "peggy": "^2.0.1",
103
+ "prettier": "^2.7.1",
104
+ "prettier-plugin-pegjs": "^0.5.0",
105
+ "rollup": "^2.77.3",
106
+ "rollup-plugin-delete": "^2.0.0",
107
+ "rollup-plugin-dts": "^4.2.2",
108
+ "svgo": "^2.8.0",
109
+ "ts-jest": "^28.0.7",
110
+ "ts-pegjs": "^2.1.0",
111
+ "typedoc": "^0.23.15",
112
+ "typescript": "^4.7.4"
68
113
  }
69
- },
70
- "license": "MIT",
71
- "engines": {
72
- "node": ">=14.16"
73
- },
74
- "scripts": {
75
- "build:peggy": "peggy --plugin ts-pegjs --extra-options-file src/ast/dot-shim/parser/peggy.options.json -o src/ast/dot-shim/parser/_parse.ts src/ast/dot-shim/parser/dot.peggy",
76
- "prebuild": "yarn build:peggy",
77
- "build:deno": "cp -r src/adapter/deno lib/adapter/deno",
78
- "build:node": "tsc -p tsconfig.build.json && rollup -c",
79
- "build": "yarn build:node && yarn build:deno",
80
- "postbuild": "prettier --write ./lib/**/index.{js,cjs,d.ts}",
81
- "pretest": "yarn build:peggy",
82
- "test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest",
83
- "format": "eslint --ext ts src --fix && prettier --write './**/*.{ts,js,json,yaml}' '!lib'",
84
- "lint": "eslint --ext ts src",
85
- "predoc": "yarn build:peggy",
86
- "doc": "typedoc"
87
- },
88
- "devDependencies": {
89
- "@rollup/plugin-replace": "^4.0.0",
90
- "@types/jest": "^28.1.6",
91
- "@types/jest-specific-snapshot": "^0.5.6",
92
- "@typescript-eslint/eslint-plugin": "^5.33.0",
93
- "@typescript-eslint/parser": "^5.33.0",
94
- "eslint": "^8.22.0",
95
- "eslint-config-prettier": "^8.5.0",
96
- "eslint-plugin-import": "^2.26.0",
97
- "eslint-plugin-jest": "^26.8.2",
98
- "eslint-plugin-prettier": "^4.2.1",
99
- "jest": "^28.1.3",
100
- "jest-snapshot-serializer-raw": "^1.2.0",
101
- "jest-specific-snapshot": "^5.0.0",
102
- "peggy": "^2.0.1",
103
- "prettier": "^2.7.1",
104
- "prettier-plugin-pegjs": "^0.5.0",
105
- "rollup": "^2.77.3",
106
- "rollup-plugin-delete": "^2.0.0",
107
- "rollup-plugin-dts": "^4.2.2",
108
- "svgo": "^2.8.0",
109
- "ts-jest": "^28.0.7",
110
- "ts-pegjs": "^2.1.0",
111
- "typedoc": "^0.23.15",
112
- "typescript": "^4.7.4"
113
- }
114
- }
114
+ }