Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mscgenjs

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mscgenjs - npm Package Compare versions

Comparing version 1.2.7 to 1.2.8

2

package.json
{
"name": "mscgenjs",
"version": "1.2.7",
"version": "1.2.8",
"description": "Implementation of MscGen in JavaScript",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -22,7 +22,5 @@ /*

var EOL = "\n";
var gMinimal = false;
function init(pMinimal) {
if (true === pMinimal) {
gMinimal = true;
INDENT = "";

@@ -32,3 +30,2 @@ SP = "";

} else {
gMinimal = false;
INDENT = " ";

@@ -70,3 +67,3 @@ SP = " ";

"opener" : INDENT,
"separator" : "," + EOL,
"separator" : "," + EOL + INDENT,
"closer" : ";" + EOL + EOL

@@ -87,3 +84,3 @@ },

"opener" : INDENT,
"separator" : "," + EOL,
"separator" : "," + EOL + INDENT,
"closer" : ";" + EOL

@@ -90,0 +87,0 @@ },

@@ -40,2 +40,12 @@ var assert = require("assert");

});
it("correctly renders multiple options", function() {
var lProgram = renderer.render(fix.astOptionsMscgen);
var lExpectedProgram = 'msc {\n hscale="1.2",\n width="800",\n arcgradient="17",\n wordwraparcs="true";\n\n a;\n\n}';
assert.equal(lProgram, lExpectedProgram);
});
it("correctly renders parallel calls", function() {
var lProgram = renderer.render(fix.astSimpleParallel);
var lExpectedProgram = 'msc {\n a,\n b,\n c;\n\n b -> a [label="{paral"],\n b =>> c [label="lel}"];\n}';
assert.equal(lProgram, lExpectedProgram);
});
});

@@ -42,0 +52,0 @@

@@ -1,6 +0,6 @@

var assert = require("assert");
var assert = require("assert");
var renderer = require("../../../render/text/ast2msgenny");
var fix = require("../../astfixtures");
var utl = require("../../testutensils");
var path = require('path');
var fix = require("../../astfixtures");
var utl = require("../../testutensils");
var path = require('path');

@@ -7,0 +7,0 @@ describe('render/text/ast2msgenny', function() {

@@ -41,2 +41,14 @@ var assert = require("assert");

it("correctly renders multiple options", function() {
var lProgram = renderer.render(fix.astOptionsMscgen);
var lExpectedProgram = 'msc {\n hscale="1.2",\n width="800",\n arcgradient="17",\n wordwraparcs="true";\n\n a;\n\n}';
assert.equal(lProgram, lExpectedProgram);
});
it("correctly renders parallel calls", function() {
var lProgram = renderer.render(fix.astSimpleParallel);
var lExpectedProgram = 'msc {\n a,\n b,\n c;\n\n b -> a [label="{paral"],\n b =>> c [label="lel}"];\n}';
assert.equal(lProgram, lExpectedProgram);
});
});

@@ -43,0 +55,0 @@

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