flowink 0.1.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.
@@ -0,0 +1,12 @@
1
+ // @ts-ignore: JISON doesn't support types
2
+ import flowJisonParser from './flow.jison';
3
+
4
+ const newParser = Object.assign({}, flowJisonParser);
5
+
6
+ newParser.parse = (src: string): unknown => {
7
+ // remove the trailing whitespace after closing curly braces when ending a line break
8
+ const newSrc = src.replace(/}\s*\n/g, '}\n');
9
+ return flowJisonParser.parse(newSrc);
10
+ };
11
+
12
+ export default newParser;
@@ -0,0 +1,14 @@
1
+ {
2
+ "project": "mermaid",
3
+ "tag": "mermaid@12.0.0",
4
+ "commit": "98a0945418c76238f15df2afaddbba4272656c3b",
5
+ "upstream": "https://github.com/mermaid-js/mermaid",
6
+ "sources": {
7
+ "grammar": "packages/mermaid/src/diagrams/flowchart/parser/flow.jison",
8
+ "semantic": "packages/mermaid/src/diagrams/flowchart/flowDb.ts",
9
+ "parser-wrapper": "packages/mermaid/src/diagrams/flowchart/parser/flowParser.ts"
10
+ },
11
+ "grammarSha256": "e9891eb4f646140e5110e72ef5f79b099677a265ba1a84884b39a573b56d1c68",
12
+ "license": "MIT",
13
+ "note": "flow.jison is vendored unmodified. FlowSemanticDB is a DOM-free adapter derived from flowDb.ts for FlowInk's FlowGraph IR."
14
+ }