ts-graphviz 1.5.2-dev.2db2ba0c3 → 1.5.2
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/lib/adapter/browser/index.cjs +0 -2
- package/lib/adapter/node/index.cjs +0 -2
- package/lib/adapter/utils/index.cjs +0 -2
- package/lib/ast/index.cjs +2 -4
- package/lib/ast/index.js +2 -2
- package/lib/common/index.cjs +0 -2
- package/lib/core/index.cjs +0 -2
- package/lib/index.cjs +0 -2
- package/lib/utils/index.cjs +0 -2
- package/media/adapter-state-machine.svg +1 -1
- package/package.json +120 -120
package/lib/ast/index.cjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var index_js = require('../utils/index.cjs');
|
|
6
4
|
var index_js$1 = require('../common/index.cjs');
|
|
7
5
|
|
|
@@ -323,7 +321,7 @@ function peg$padEnd(str, targetLength, padString) {
|
|
|
323
321
|
padString += padString.repeat(targetLength);
|
|
324
322
|
return str + padString.slice(0, targetLength);
|
|
325
323
|
}
|
|
326
|
-
|
|
324
|
+
let SyntaxError$1 = class SyntaxError extends Error {
|
|
327
325
|
static buildMessage(expected, found) {
|
|
328
326
|
function hex(ch) {
|
|
329
327
|
return ch.charCodeAt(0).toString(16).toUpperCase();
|
|
@@ -456,7 +454,7 @@ class SyntaxError$1 extends Error {
|
|
|
456
454
|
}
|
|
457
455
|
return str;
|
|
458
456
|
}
|
|
459
|
-
}
|
|
457
|
+
};
|
|
460
458
|
function peg$parse(input, options) {
|
|
461
459
|
options = options !== undefined ? options : {};
|
|
462
460
|
const peg$FAILED = {};
|
package/lib/ast/index.js
CHANGED
|
@@ -314,7 +314,7 @@ function peg$padEnd(str, targetLength, padString) {
|
|
|
314
314
|
padString += padString.repeat(targetLength);
|
|
315
315
|
return str + padString.slice(0, targetLength);
|
|
316
316
|
}
|
|
317
|
-
|
|
317
|
+
let SyntaxError$1 = class SyntaxError extends Error {
|
|
318
318
|
static buildMessage(expected, found) {
|
|
319
319
|
function hex(ch) {
|
|
320
320
|
return ch.charCodeAt(0).toString(16).toUpperCase();
|
|
@@ -447,7 +447,7 @@ class SyntaxError$1 extends Error {
|
|
|
447
447
|
}
|
|
448
448
|
return str;
|
|
449
449
|
}
|
|
450
|
-
}
|
|
450
|
+
};
|
|
451
451
|
function peg$parse(input, options) {
|
|
452
452
|
options = options !== undefined ? options : {};
|
|
453
453
|
const peg$FAILED = {};
|
package/lib/common/index.cjs
CHANGED
package/lib/core/index.cjs
CHANGED
package/lib/index.cjs
CHANGED
package/lib/utils/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg width="172pt" height="211pt" viewBox="0 0 172.44 211.09"
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="172pt" height="211pt" viewBox="0 0 172.44 211.09"><g class="graph" transform="translate(4 207.09)"><path fill="#fff" stroke="transparent" d="M-4 4v-211.09h172.44V4H-4z"/><g class="node"><circle cx="89.85" cy="-171.89" r="31.4" fill="none" stroke="#000"/><text x="89.85" y="-168.19" font-family="Times,serif" font-size="14" text-anchor="middle">DOT</text></g><g class="node"><circle cx="44.85" cy="-44.85" r="44.69" fill="none" stroke="#000"/><text x="44.85" y="-41.15" font-family="Times,serif" font-size="14" text-anchor="middle">Stream</text></g><g class="edge"><path fill="none" stroke="#000" d="M66.46-151.09c-7.72 7.95-15.4 17.76-19.61 28.4-2.87 7.24-4.54 15.17-5.4 23.11"/><path stroke="#000" d="m44.94-99.32-4.18 9.73-2.8-10.21 6.98.48z"/><text x="80.35" y="-111.49" font-family="Times,serif" font-size="14" text-anchor="middle">toStream</text></g><g class="node"><circle cx="135.85" cy="-44.85" r="28.7" fill="none" stroke="#000"/><text x="135.85" y="-41.15" font-family="Times,serif" font-size="14" text-anchor="middle">File</text></g><g class="edge"><path fill="none" stroke="#000" d="M104.32-144.01c3.38 6.84 6.79 14.26 9.53 21.32 4.95 12.76 9.35 27.09 12.89 39.89"/><path stroke="#000" d="m130.18-83.48-.79 10.56-5.97-8.75 6.76-1.81z"/><text x="139.85" y="-111.49" font-family="Times,serif" font-size="14" text-anchor="middle">toFile</text></g></g></svg>
|
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.5.2",
|
|
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
|
+
}
|
|
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 && 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": "^4.0.0",
|
|
101
|
-
"@types/jest": "^28.1.6",
|
|
102
|
-
"@types/jest-specific-snapshot": "^0.5.6",
|
|
103
|
-
"@typescript-eslint/eslint-plugin": "^5.33.0",
|
|
104
|
-
"@typescript-eslint/parser": "^5.33.0",
|
|
105
|
-
"eslint": "^8.22.0",
|
|
106
|
-
"eslint-config-prettier": "^8.5.0",
|
|
107
|
-
"eslint-plugin-import": "^2.26.0",
|
|
108
|
-
"eslint-plugin-jest": "^26.8.2",
|
|
109
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
110
|
-
"jest": "^28.1.3",
|
|
111
|
-
"jest-snapshot-serializer-raw": "^1.2.0",
|
|
112
|
-
"jest-specific-snapshot": "^5.0.0",
|
|
113
|
-
"peggy": "^2.0.1",
|
|
114
|
-
"prettier": "^2.7.1",
|
|
115
|
-
"prettier-plugin-pegjs": "^0.5.0",
|
|
116
|
-
"rollup": "^2.77.3",
|
|
117
|
-
"rollup-plugin-delete": "^2.0.0",
|
|
118
|
-
"rollup-plugin-dts": "^4.2.2",
|
|
119
|
-
"svgo": "^2.8.0",
|
|
120
|
-
"ts-jest": "^28.0.7",
|
|
121
|
-
"ts-pegjs": "^2.1.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 && 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": "^2.1.0",
|
|
122
|
+
"typedoc": "^0.23.15",
|
|
123
|
+
"typescript": "^4.7.4"
|
|
124
|
+
}
|
|
125
|
+
}
|