Socket
Socket
Sign inDemoInstall

mermaid

Package Overview
Dependencies
Maintainers
2
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mermaid - npm Package Compare versions

Comparing version 8.0.0-beta.5 to 8.0.0-beta.6

4

package.json
{
"name": "mermaid",
"version": "8.0.0-beta.5",
"version": "8.0.0-beta.6",
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",

@@ -41,3 +41,3 @@ "main": "dist/mermaid.core.js",

"d3": "^4.13.0",
"dagre-d3-renderer": "^0.5.1",
"dagre-d3-renderer": "^0.5.3",
"dagre-layout": "^0.8.6",

@@ -44,0 +44,0 @@ "graphlibrary": "^2.2.0",

@@ -321,3 +321,3 @@ import * as d3 from 'd3'

const type = typeof item
if (item === ' ') {
if (item.trim() === '') {
return false

@@ -333,3 +333,3 @@ }

const subGraph = { id: 'subGraph' + subCount, nodes: nodeList, title: title }
const subGraph = { id: 'subGraph' + subCount, nodes: nodeList, title: title.trim() }
subGraphs.push(subGraph)

@@ -336,0 +336,0 @@ subCount = subCount + 1

@@ -25,2 +25,13 @@ import flowDb from '../flowDb'

it('should handle subgraph with tab indentation', function () {
const res = flow.parser.parse('graph TB\nsubgraph One\n\ta1-->a2\nend')
const subgraphs = flow.parser.yy.getSubGraphs()
expect(subgraphs.length).toBe(1)
const subgraph = subgraphs[0]
expect(subgraph.nodes.length).toBe(2)
expect(subgraph.nodes[0]).toBe('a1')
expect(subgraph.nodes[1]).toBe('a2')
expect(subgraph.title).toBe('One')
})
it('should handle angle bracket ' > ' as direction LR', function () {

@@ -27,0 +38,0 @@ const res = flow.parser.parse('graph >;A-->B;')

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc