Comparing version 2.0.0-beta-3 to 2.0.0-beta-4
{ | ||
"name": "mscgenjs", | ||
"version": "2.0.0-beta-3", | ||
"version": "2.0.0-beta-4", | ||
"description": "Sequence chart rendering library", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -147,20 +147,16 @@ # mscgen_js - core package | ||
```javascript | ||
mscgenjs.translateMsc( | ||
'wordwraparcs=on; you =>> me: can we translate this to Mscgen please?; me >> you: "yes, you can - use translateMsc";', | ||
{ | ||
inputType: "msgenny", // defaults to mscgen - other accepted formats: msgenny, xu, json | ||
outputType: "mscgen" // defaults to json - other accepted formats: mscgen, msgenny, xu, dot, doxygen, ast | ||
}, | ||
function(pError, pSuccess){ | ||
if(Boolean(pError)){ | ||
console.log("error:", pError); | ||
return; | ||
try { | ||
let lResult = mscgenjs.translateMsc( | ||
'wordwraparcs=on; you =>> me: can we translate this to Mscgen please?; me >> you: "yes, you can - use translateMsc";', | ||
{ | ||
inputType: "msgenny", // defaults to mscgen - other accepted formats: msgenny, xu, json | ||
outputType: "mscgen" // defaults to json - other accepted formats: mscgen, msgenny, xu, dot, doxygen, ast | ||
} | ||
if(Boolean(pSuccess)){ | ||
// the transpiled result is in pSuccess | ||
console.log(pSuccess); | ||
return; | ||
} | ||
console.log("Neither success nor failure. I do not even."); | ||
} | ||
); | ||
console.log(lResult); | ||
} catch (pError) { | ||
console.error(pError); | ||
} | ||
); | ||
@@ -212,10 +208,11 @@ | ||
We built mscgen_js on various libraries, each of which have their own | ||
license (incidentally all MIT style): | ||
license: | ||
- mscgen_js uses [requirejs][requirejs.license] and [amdefine][amdefine.license] | ||
for modularization. | ||
- We generated its parsers with [pegjs][pegjs.license]. | ||
- mscgen_js automated tests use [mocha][21], [chai][39], | ||
[chai-xml][40] and [jsdom][jsdom.license]. | ||
- mscgen_js automated tests use [jest](https://facebook.github.io/jest), | ||
[jest-json-schema](https://github.com/americanexpress/jest-json-schema), | ||
[chai][39], [chai-xml][40] and [jsdom][jsdom.license]. | ||
It uses [istanbul][28], [eslint][22], [dependency-cruiser][23] and [nsp][35] to maintain some | ||
It uses [eslint][22], [dependency-cruiser][23] and [nsp][35] to maintain some | ||
modicum of verifiable code quality. You can see the build history in | ||
@@ -275,4 +272,4 @@ [Travis][travis.mscgenjs] and an indication of the shape of the code at | ||
[mscgenjs.unit]: https://github.com/mscgenjs/mscgenjs-core/tree/master/test | ||
[mscgenjs.unit.parse]: https://github.com/mscgenjs/mscgenjs-core/blob/master/test/parse/t_mscgenparser_node.js | ||
[mscgenjs.unit.render]: https://github.com/mscgenjs/mscgenjs-core/blob/master/test/render/graphics/t_renderast.js | ||
[mscgenjs.unit.parse]: https://github.com/mscgenjs/mscgenjs-core/blob/master/test/parse/mscgenparser.spec.js | ||
[mscgenjs.unit.render]: https://github.com/mscgenjs/mscgenjs-core/blob/master/test/render/graphics/renderast.spec.js | ||
[mscgenjs.license]: LICENSE.md | ||
@@ -288,8 +285,6 @@ [mscgenjs.doc.msgenny]: doc/msgenny.md | ||
[travis.mscgenjs.badge]: https://travis-ci.org/mscgenjs/mscgenjs-core.svg?branch=master | ||
[21]: doc/licenses/license.mocha.md | ||
[22]: doc/licenses/license.eslint.md | ||
[23]: https://github.com/sverweij/dependency-cruiser | ||
[28]: doc/licenses/license.istanbul.md | ||
[35]: https://nodesecurity.io/ | ||
[39]: https://github.com/chaijs/chai | ||
[40]: https://github.com/krampstudio/chai-xml |
@@ -92,3 +92,3 @@ /* istanbul ignore else */ | ||
version: "2.0.0-beta-3", | ||
version: "2.0.0-beta-4", | ||
@@ -95,0 +95,0 @@ getAllowedValues: function() { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
927854
83
287