ts-graphviz 1.8.1-dev.286226f24 → 1.8.1
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 +3 -0
- package/lib/common/index.d.ts +2 -2
- package/lib/core/index.d.ts +2 -2
- package/package.json +120 -120
package/README.md
CHANGED
|
@@ -621,6 +621,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
621
621
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/seethroughdev"><img src="https://avatars.githubusercontent.com/u/203779?v=4?s=100" width="100px;" alt="Adam"/><br /><sub><b>Adam</b></sub></a><br /><a href="#question-seethroughdev" title="Answering Questions">💬</a></td>
|
|
622
622
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/trevor-scheer"><img src="https://avatars.githubusercontent.com/u/29644393?v=4?s=100" width="100px;" alt="Trevor Scheer"/><br /><sub><b>Trevor Scheer</b></sub></a><br /><a href="#a11y-trevor-scheer" title="Accessibility">️️️️♿️</a></td>
|
|
623
623
|
</tr>
|
|
624
|
+
<tr>
|
|
625
|
+
<td align="center" valign="top" width="14.28%"><a href="https://pre.ms"><img src="https://avatars.githubusercontent.com/u/238277?v=4?s=100" width="100px;" alt="Prem Pillai"/><br /><sub><b>Prem Pillai</b></sub></a><br /><a href="https://github.com/ts-graphviz/ts-graphviz/issues?q=author%3Acloud-on-prem" title="Bug reports">🐛</a></td>
|
|
626
|
+
</tr>
|
|
624
627
|
</tbody>
|
|
625
628
|
</table>
|
|
626
629
|
|
package/lib/common/index.d.ts
CHANGED
|
@@ -4393,9 +4393,9 @@ interface Attributes<T extends AttributeKey> {
|
|
|
4393
4393
|
*
|
|
4394
4394
|
* If the value corresponding to the key does not exist, undefined is returned.
|
|
4395
4395
|
*/
|
|
4396
|
-
get(key:
|
|
4396
|
+
get<K extends T>(key: K): Attribute<K> | undefined;
|
|
4397
4397
|
/** Set a value, by specifying the key of the attributes in the DOT object. */
|
|
4398
|
-
set(key:
|
|
4398
|
+
set<K extends T>(key: K, value: Attribute<K>): void;
|
|
4399
4399
|
/**
|
|
4400
4400
|
* Apply keys and values that can be specified for DOT objects collectively.
|
|
4401
4401
|
*
|
package/lib/core/index.d.ts
CHANGED
|
@@ -57,8 +57,8 @@ declare abstract class AttributesBase<T extends AttributeKey> extends DotObject
|
|
|
57
57
|
constructor(attributes?: AttributesObject<T>);
|
|
58
58
|
get values(): ReadonlyArray<[T, Attribute<T>]>;
|
|
59
59
|
get size(): number;
|
|
60
|
-
get(key:
|
|
61
|
-
set(key:
|
|
60
|
+
get<K extends T>(key: K): Attribute<K> | undefined;
|
|
61
|
+
set<K extends T>(key: K, value: Attribute<K>): void;
|
|
62
62
|
delete(key: T): void;
|
|
63
63
|
apply(attributes: AttributesObject<T> | AttributesEntities<T>): void;
|
|
64
64
|
clear(): void;
|
package/package.json
CHANGED
|
@@ -1,125 +1,125 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
"name": "ts-graphviz",
|
|
3
|
+
"version": "1.8.1",
|
|
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/ts-graphviz"
|
|
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
|
+
}
|
|
11
36
|
},
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
+
}
|
|
18
46
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
"
|
|
47
|
+
"./adapter": {
|
|
48
|
+
"browser": {
|
|
49
|
+
"require": "./lib/adapter/browser/index.cjs",
|
|
50
|
+
"import": "./lib/adapter/browser/index.js",
|
|
51
|
+
"types": "./lib/adapter/browser/index.d.ts"
|
|
52
|
+
},
|
|
53
|
+
"deno": {
|
|
54
|
+
"types": "./lib/adapter/deno/mod.d.ts",
|
|
55
|
+
"default": "./lib/adapter/deno/mod.js"
|
|
56
|
+
},
|
|
57
|
+
"node": {
|
|
58
|
+
"require": "./lib/adapter/node/index.cjs",
|
|
59
|
+
"import": "./lib/adapter/node/index.js",
|
|
60
|
+
"types": "./lib/adapter/node/index.d.ts"
|
|
61
|
+
},
|
|
62
|
+
"default": {
|
|
63
|
+
"types": "./lib/adapter/node/index.d.ts",
|
|
64
|
+
"require": "./lib/adapter/node/index.cjs",
|
|
65
|
+
"import": "./lib/adapter/node/index.js"
|
|
66
|
+
}
|
|
22
67
|
},
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
"browser": {
|
|
49
|
-
"require": "./lib/adapter/browser/index.cjs",
|
|
50
|
-
"import": "./lib/adapter/browser/index.js",
|
|
51
|
-
"types": "./lib/adapter/browser/index.d.ts"
|
|
52
|
-
},
|
|
53
|
-
"deno": {
|
|
54
|
-
"types": "./lib/adapter/deno/mod.d.ts",
|
|
55
|
-
"default": "./lib/adapter/deno/mod.js"
|
|
56
|
-
},
|
|
57
|
-
"node": {
|
|
58
|
-
"require": "./lib/adapter/node/index.cjs",
|
|
59
|
-
"import": "./lib/adapter/node/index.js",
|
|
60
|
-
"types": "./lib/adapter/node/index.d.ts"
|
|
61
|
-
},
|
|
62
|
-
"default": {
|
|
63
|
-
"types": "./lib/adapter/node/index.d.ts",
|
|
64
|
-
"require": "./lib/adapter/node/index.cjs",
|
|
65
|
-
"import": "./lib/adapter/node/index.js"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"./package.json": "./package.json"
|
|
69
|
-
},
|
|
70
|
-
"typesVersions": {
|
|
71
|
-
"*": {
|
|
72
|
-
"ast": [
|
|
73
|
-
"lib/ast"
|
|
74
|
-
],
|
|
75
|
-
"adapter": [
|
|
76
|
-
"lib/adapter/node"
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"license": "MIT",
|
|
81
|
-
"engines": {
|
|
82
|
-
"node": ">=14.16"
|
|
83
|
-
},
|
|
84
|
-
"runkitExampleFilename": "example/runkit.cjs",
|
|
85
|
-
"scripts": {
|
|
86
|
-
"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",
|
|
87
|
-
"prebuild": "yarn build:peggy",
|
|
88
|
-
"build:deno": "mkdir -p lib/adapter/deno && cp -r src/adapter/deno/* lib/adapter/deno && sed -i \"s/index.ts/index.js/g\" lib/adapter/deno/mod.js && sed -i \"s/index.ts/index.d.ts/g\" lib/adapter/deno/mod.d.ts",
|
|
89
|
-
"build:node": "tsc -p tsconfig.build.json --declaration && tsc -p tsconfig.build.json --removeComments && rollup -c",
|
|
90
|
-
"build": "yarn build:node && yarn build:deno",
|
|
91
|
-
"postbuild": "prettier --write ./lib/**/*.{js,cjs,d.ts}",
|
|
92
|
-
"pretest": "yarn build:peggy",
|
|
93
|
-
"test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest",
|
|
94
|
-
"format": "eslint --ext ts src --fix && prettier --write './**/*.{ts,js,json,yaml}' '!lib'",
|
|
95
|
-
"lint": "eslint --ext ts src",
|
|
96
|
-
"predoc": "yarn build:peggy",
|
|
97
|
-
"doc": "typedoc"
|
|
98
|
-
},
|
|
99
|
-
"devDependencies": {
|
|
100
|
-
"@rollup/plugin-replace": "^5.0.2",
|
|
101
|
-
"@types/jest": "^29.4.0",
|
|
102
|
-
"@types/jest-specific-snapshot": "^0.5.6",
|
|
103
|
-
"@typescript-eslint/eslint-plugin": "^5.49.0",
|
|
104
|
-
"@typescript-eslint/parser": "^5.49.0",
|
|
105
|
-
"eslint": "^8.32.0",
|
|
106
|
-
"eslint-config-prettier": "^8.6.0",
|
|
107
|
-
"eslint-plugin-import": "^2.27.5",
|
|
108
|
-
"eslint-plugin-jest": "^27.2.1",
|
|
109
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
110
|
-
"jest": "^29.4.1",
|
|
111
|
-
"jest-snapshot-serializer-raw": "^1.2.0",
|
|
112
|
-
"jest-specific-snapshot": "^7.0.0",
|
|
113
|
-
"peggy": "^2.0.1",
|
|
114
|
-
"prettier": "^2.8.3",
|
|
115
|
-
"prettier-plugin-pegjs": "^0.5.0",
|
|
116
|
-
"rollup": "^3.11.0",
|
|
117
|
-
"rollup-plugin-delete": "^2.0.0",
|
|
118
|
-
"rollup-plugin-dts": "5.1.1",
|
|
119
|
-
"svgo": "^3.0.2",
|
|
120
|
-
"ts-jest": "^29.0.5",
|
|
121
|
-
"ts-pegjs": "^3.0.0",
|
|
122
|
-
"typedoc": "^0.23.15",
|
|
123
|
-
"typescript": "^4.7.4"
|
|
68
|
+
"./package.json": "./package.json"
|
|
69
|
+
},
|
|
70
|
+
"typesVersions": {
|
|
71
|
+
"*": {
|
|
72
|
+
"ast": [
|
|
73
|
+
"lib/ast"
|
|
74
|
+
],
|
|
75
|
+
"adapter": [
|
|
76
|
+
"lib/adapter/node"
|
|
77
|
+
]
|
|
124
78
|
}
|
|
125
|
-
}
|
|
79
|
+
},
|
|
80
|
+
"license": "MIT",
|
|
81
|
+
"engines": {
|
|
82
|
+
"node": ">=14.16"
|
|
83
|
+
},
|
|
84
|
+
"runkitExampleFilename": "example/runkit.cjs",
|
|
85
|
+
"scripts": {
|
|
86
|
+
"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",
|
|
87
|
+
"prebuild": "yarn build:peggy",
|
|
88
|
+
"build:deno": "mkdir -p lib/adapter/deno && cp -r src/adapter/deno/* lib/adapter/deno && sed -i \"s/index.ts/index.js/g\" lib/adapter/deno/mod.js && sed -i \"s/index.ts/index.d.ts/g\" lib/adapter/deno/mod.d.ts",
|
|
89
|
+
"build:node": "tsc -p tsconfig.build.json --declaration && tsc -p tsconfig.build.json --removeComments && rollup -c",
|
|
90
|
+
"build": "yarn build:node && yarn build:deno",
|
|
91
|
+
"postbuild": "prettier --write ./lib/**/*.{js,cjs,d.ts}",
|
|
92
|
+
"pretest": "yarn build:peggy",
|
|
93
|
+
"test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest",
|
|
94
|
+
"format": "eslint --ext ts src --fix && prettier --write './**/*.{ts,js,json,yaml}' '!lib'",
|
|
95
|
+
"lint": "eslint --ext ts src",
|
|
96
|
+
"predoc": "yarn build:peggy",
|
|
97
|
+
"doc": "typedoc"
|
|
98
|
+
},
|
|
99
|
+
"devDependencies": {
|
|
100
|
+
"@rollup/plugin-replace": "^5.0.2",
|
|
101
|
+
"@types/jest": "^29.4.0",
|
|
102
|
+
"@types/jest-specific-snapshot": "^0.5.6",
|
|
103
|
+
"@typescript-eslint/eslint-plugin": "^5.49.0",
|
|
104
|
+
"@typescript-eslint/parser": "^5.49.0",
|
|
105
|
+
"eslint": "^8.32.0",
|
|
106
|
+
"eslint-config-prettier": "^8.6.0",
|
|
107
|
+
"eslint-plugin-import": "^2.27.5",
|
|
108
|
+
"eslint-plugin-jest": "^27.2.1",
|
|
109
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
110
|
+
"jest": "^29.4.1",
|
|
111
|
+
"jest-snapshot-serializer-raw": "^1.2.0",
|
|
112
|
+
"jest-specific-snapshot": "^7.0.0",
|
|
113
|
+
"peggy": "^2.0.1",
|
|
114
|
+
"prettier": "^2.8.3",
|
|
115
|
+
"prettier-plugin-pegjs": "^0.5.0",
|
|
116
|
+
"rollup": "^3.11.0",
|
|
117
|
+
"rollup-plugin-delete": "^2.0.0",
|
|
118
|
+
"rollup-plugin-dts": "5.1.1",
|
|
119
|
+
"svgo": "^3.0.2",
|
|
120
|
+
"ts-jest": "^29.0.5",
|
|
121
|
+
"ts-pegjs": "^3.0.0",
|
|
122
|
+
"typedoc": "^0.23.15",
|
|
123
|
+
"typescript": "^4.7.4"
|
|
124
|
+
}
|
|
125
|
+
}
|