@mermaid-js/mermaid-cli 9.4.0 → 10.0.0
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/dist/index.html +598 -606
- package/package.json +2 -2
- package/src/index.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mermaid-js/mermaid-cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "Command-line interface for mermaid",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "git@github.com:mermaid-js/mermaid-cli.git",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@fortawesome/fontawesome-free-webfonts": "^1.0.9",
|
|
30
30
|
"@mermaid-js/mermaid-mindmap": "^9.2.2",
|
|
31
|
-
"mermaid": "^
|
|
31
|
+
"mermaid": "^10.0.0",
|
|
32
32
|
"jest": "^29.0.1",
|
|
33
33
|
"standard": "^17.0.0",
|
|
34
34
|
"vite": "^4.0.3",
|
package/src/index.js
CHANGED
|
@@ -226,7 +226,10 @@ async function renderMermaid (browser, definition, outputFormat, { viewport, bac
|
|
|
226
226
|
mermaid.initialize(mermaidConfig)
|
|
227
227
|
// should throw an error if mmd diagram is invalid
|
|
228
228
|
try {
|
|
229
|
-
await mermaid.
|
|
229
|
+
await mermaid.run({
|
|
230
|
+
nodes: [container],
|
|
231
|
+
suppressErrors: false
|
|
232
|
+
})
|
|
230
233
|
} catch (error) {
|
|
231
234
|
if (error instanceof Error) {
|
|
232
235
|
// mermaid-js doesn't currently throws JS Errors, but let's leave this
|