Comparing version 7.0.13 to 7.0.14
{ | ||
"name": "mermaid", | ||
"version": "7.0.13", | ||
"version": "7.0.14", | ||
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.", | ||
@@ -27,3 +27,3 @@ "main": "dist/mermaid.core.js", | ||
"test": "yarn lint && yarn karma", | ||
"jison": "gulp jison", | ||
"jison": "node -r babel-register node_modules/.bin/gulp jison", | ||
"prepublishOnly": "yarn build && yarn release && yarn test" | ||
@@ -30,0 +30,0 @@ }, |
@@ -87,12 +87,12 @@ /* parser generated by jison 0.4.17 */ | ||
case 5: | ||
this.$=$$[$0-1]+$$[$0]; | ||
this.$=$$[$0-1]+$$[$0]; | ||
break; | ||
case 6: | ||
this.$=$$[$0]; | ||
this.$=$$[$0]; | ||
break; | ||
case 7: | ||
yy.addRelation($$[$0]); | ||
yy.addRelation($$[$0]); | ||
break; | ||
case 8: | ||
$$[$0-1].title = yy.cleanupLabel($$[$0]); yy.addRelation($$[$0-1]); | ||
$$[$0-1].title = yy.cleanupLabel($$[$0]); yy.addRelation($$[$0-1]); | ||
break; | ||
@@ -103,3 +103,3 @@ case 12: | ||
case 13: | ||
this.$ = [$$[$0]]; | ||
this.$ = [$$[$0]]; | ||
break; | ||
@@ -122,3 +122,3 @@ case 14: | ||
case 19: | ||
this.$ = {'id1':$$[$0-2],'id2':$$[$0], relation:$$[$0-1], relationTitle1:'none', relationTitle2:'none'}; | ||
this.$ = {'id1':$$[$0-2],'id2':$$[$0], relation:$$[$0-1], relationTitle1:'none', relationTitle2:'none'}; | ||
break; | ||
@@ -129,18 +129,18 @@ case 20: | ||
case 21: | ||
this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-2], relationTitle1:'none', relationTitle2:$$[$0-1]}; | ||
this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-2], relationTitle1:'none', relationTitle2:$$[$0-1]}; | ||
break; | ||
case 22: | ||
this.$ = {id1:$$[$0-4], id2:$$[$0], relation:$$[$0-2], relationTitle1:$$[$0-3], relationTitle2:$$[$0-1]} | ||
this.$ = {id1:$$[$0-4], id2:$$[$0], relation:$$[$0-2], relationTitle1:$$[$0-3], relationTitle2:$$[$0-1]} | ||
break; | ||
case 23: | ||
this.$={type1:$$[$0-2],type2:$$[$0],lineType:$$[$0-1]}; | ||
this.$={type1:$$[$0-2],type2:$$[$0],lineType:$$[$0-1]}; | ||
break; | ||
case 24: | ||
this.$={type1:'none',type2:$$[$0],lineType:$$[$0-1]}; | ||
this.$={type1:'none',type2:$$[$0],lineType:$$[$0-1]}; | ||
break; | ||
case 25: | ||
this.$={type1:$$[$0-1],type2:'none',lineType:$$[$0]}; | ||
this.$={type1:$$[$0-1],type2:'none',lineType:$$[$0]}; | ||
break; | ||
case 26: | ||
this.$={type1:'none',type2:'none',lineType:$$[$0]}; | ||
this.$={type1:'none',type2:'none',lineType:$$[$0]}; | ||
break; | ||
@@ -738,8 +738,8 @@ case 27: | ||
exports.main = function commonjsMain(args) { | ||
// if (!args[1]) { | ||
// console.log('Usage: '+args[0]+' FILE'); | ||
// process.exit(1); | ||
// } | ||
// var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8"); | ||
// return exports.parser.parse(source); | ||
if (!args[1]) { | ||
console.log('Usage: '+args[0]+' FILE'); | ||
process.exit(1); | ||
} | ||
var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8"); | ||
return exports.parser.parse(source); | ||
}; | ||
@@ -749,2 +749,2 @@ if (typeof module !== 'undefined' && require.main === module) { | ||
} | ||
} | ||
} |
@@ -87,15 +87,15 @@ /* parser generated by jison 0.4.17 */ | ||
case 1: | ||
return yy; | ||
return yy; | ||
break; | ||
case 4: | ||
break; | ||
case 6: | ||
yy.setInfo(true); | ||
yy.setInfo(true); | ||
break; | ||
case 7: | ||
yy.setMessage($$[$0]); | ||
yy.setMessage($$[$0]); | ||
break; | ||
case 8: | ||
this.$ = $$[$0-1].substring(1).trim().replace(/\\n/gm, "\n"); | ||
this.$ = $$[$0-1].substring(1).trim().replace(/\\n/gm, "\n"); | ||
break; | ||
@@ -625,8 +625,8 @@ } | ||
exports.main = function commonjsMain(args) { | ||
// if (!args[1]) { | ||
// console.log('Usage: '+args[0]+' FILE'); | ||
// process.exit(1); | ||
// } | ||
// var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8"); | ||
// return exports.parser.parse(source); | ||
if (!args[1]) { | ||
console.log('Usage: '+args[0]+' FILE'); | ||
process.exit(1); | ||
} | ||
var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8"); | ||
return exports.parser.parse(source); | ||
}; | ||
@@ -636,2 +636,2 @@ if (typeof module !== 'undefined' && require.main === module) { | ||
} | ||
} | ||
} |
@@ -122,3 +122,3 @@ /* parser generated by jison 0.4.17 */ | ||
this.$={op:$$[$0-2],id:$$[$0-1]}; | ||
break; | ||
@@ -128,3 +128,3 @@ case 44: | ||
this.$={op:$$[$0-1],id:$$[$0]}; | ||
break; | ||
@@ -736,8 +736,8 @@ case 48: | ||
exports.main = function commonjsMain(args) { | ||
// if (!args[1]) { | ||
// console.log('Usage: '+args[0]+' FILE'); | ||
// process.exit(1); | ||
// } | ||
// var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8"); | ||
// return exports.parser.parse(source); | ||
if (!args[1]) { | ||
console.log('Usage: '+args[0]+' FILE'); | ||
process.exit(1); | ||
} | ||
var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8"); | ||
return exports.parser.parse(source); | ||
}; | ||
@@ -747,2 +747,2 @@ if (typeof module !== 'undefined' && require.main === module) { | ||
} | ||
} | ||
} |
@@ -955,8 +955,8 @@ /* parser generated by jison 0.4.17 */ | ||
exports.main = function commonjsMain(args) { | ||
// if (!args[1]) { | ||
// console.log('Usage: '+args[0]+' FILE'); | ||
// process.exit(1); | ||
// } | ||
// var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8"); | ||
// return exports.parser.parse(source); | ||
if (!args[1]) { | ||
console.log('Usage: '+args[0]+' FILE'); | ||
process.exit(1); | ||
} | ||
var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8"); | ||
return exports.parser.parse(source); | ||
}; | ||
@@ -966,2 +966,2 @@ if (typeof module !== 'undefined' && require.main === module) { | ||
} | ||
} | ||
} |
@@ -87,6 +87,6 @@ /* parser generated by jison 0.4.17 */ | ||
case 1: | ||
return $$[$0-1]; | ||
return $$[$0-1]; | ||
break; | ||
case 2: | ||
this.$ = [] | ||
this.$ = [] | ||
break; | ||
@@ -97,3 +97,3 @@ case 3: | ||
case 4: case 5: | ||
this.$ = $$[$0] | ||
this.$ = $$[$0] | ||
break; | ||
@@ -652,8 +652,8 @@ case 6: case 7: | ||
exports.main = function commonjsMain(args) { | ||
// if (!args[1]) { | ||
// console.log('Usage: '+args[0]+' FILE'); | ||
// process.exit(1); | ||
// } | ||
// var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8"); | ||
// return exports.parser.parse(source); | ||
if (!args[1]) { | ||
console.log('Usage: '+args[0]+' FILE'); | ||
process.exit(1); | ||
} | ||
var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8"); | ||
return exports.parser.parse(source); | ||
}; | ||
@@ -663,2 +663,2 @@ if (typeof module !== 'undefined' && require.main === module) { | ||
} | ||
} | ||
} |
@@ -87,3 +87,3 @@ /* parser generated by jison 0.4.17 */ | ||
case 1: | ||
return $$[$0-1]; | ||
return $$[$0-1]; | ||
break; | ||
@@ -130,3 +130,3 @@ case 2: | ||
case 18: | ||
this.$ = $$[$0-1]+ ":" + $$[$0] | ||
this.$ = $$[$0-1]+ ":" + $$[$0] | ||
break; | ||
@@ -140,3 +140,3 @@ case 19: | ||
case 21: | ||
yy.count += 1 | ||
yy.count += 1 | ||
break; | ||
@@ -693,8 +693,8 @@ } | ||
exports.main = function commonjsMain(args) { | ||
// if (!args[1]) { | ||
// console.log('Usage: '+args[0]+' FILE'); | ||
// process.exit(1); | ||
// } | ||
// var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8"); | ||
// return exports.parser.parse(source); | ||
if (!args[1]) { | ||
console.log('Usage: '+args[0]+' FILE'); | ||
process.exit(1); | ||
} | ||
var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8"); | ||
return exports.parser.parse(source); | ||
}; | ||
@@ -704,2 +704,2 @@ if (typeof module !== 'undefined' && require.main === module) { | ||
} | ||
} | ||
} |
@@ -87,6 +87,6 @@ /* parser generated by jison 0.4.17 */ | ||
case 3: | ||
yy.apply($$[$0]);return $$[$0]; | ||
yy.apply($$[$0]);return $$[$0]; | ||
break; | ||
case 4: | ||
this.$ = [] | ||
this.$ = [] | ||
break; | ||
@@ -97,3 +97,3 @@ case 5: | ||
case 6: case 7: | ||
this.$ = $$[$0] | ||
this.$ = $$[$0] | ||
break; | ||
@@ -154,3 +154,3 @@ case 8: | ||
case 21: | ||
this.$ = $$[$0-3].concat([{type: 'and', parText:$$[$0-1], signalType: yy.LINETYPE.PAR_AND}, $$[$0]]); | ||
this.$ = $$[$0-3].concat([{type: 'and', parText:$$[$0-1], signalType: yy.LINETYPE.PAR_AND}, $$[$0]]); | ||
break; | ||
@@ -170,12 +170,12 @@ case 22: | ||
case 26: | ||
this.$ = [$$[$0-2], $$[$0]]; | ||
this.$ = [$$[$0-2], $$[$0]]; | ||
break; | ||
case 27: | ||
this.$ = $$[$0]; | ||
this.$ = $$[$0]; | ||
break; | ||
case 28: | ||
this.$ = yy.PLACEMENT.LEFTOF; | ||
this.$ = yy.PLACEMENT.LEFTOF; | ||
break; | ||
case 29: | ||
this.$ = yy.PLACEMENT.RIGHTOF; | ||
this.$ = yy.PLACEMENT.RIGHTOF; | ||
break; | ||
@@ -199,18 +199,18 @@ case 30: | ||
case 34: | ||
this.$ = yy.LINETYPE.SOLID_OPEN; | ||
this.$ = yy.LINETYPE.SOLID_OPEN; | ||
break; | ||
case 35: | ||
this.$ = yy.LINETYPE.DOTTED_OPEN; | ||
this.$ = yy.LINETYPE.DOTTED_OPEN; | ||
break; | ||
case 36: | ||
this.$ = yy.LINETYPE.SOLID; | ||
this.$ = yy.LINETYPE.SOLID; | ||
break; | ||
case 37: | ||
this.$ = yy.LINETYPE.DOTTED; | ||
this.$ = yy.LINETYPE.DOTTED; | ||
break; | ||
case 38: | ||
this.$ = yy.LINETYPE.SOLID_CROSS; | ||
this.$ = yy.LINETYPE.SOLID_CROSS; | ||
break; | ||
case 39: | ||
this.$ = yy.LINETYPE.DOTTED_CROSS; | ||
this.$ = yy.LINETYPE.DOTTED_CROSS; | ||
break; | ||
@@ -716,23 +716,23 @@ case 40: | ||
break; | ||
case 5: this.begin('ID'); return 10; | ||
case 5: this.begin('ID'); return 10; | ||
break; | ||
case 6: this.begin('ALIAS'); return 39; | ||
case 6: this.begin('ALIAS'); return 39; | ||
break; | ||
case 7: this.popState(); this.popState(); this.begin('LINE'); return 12; | ||
case 7: this.popState(); this.popState(); this.begin('LINE'); return 12; | ||
break; | ||
case 8: this.popState(); this.popState(); return 5; | ||
case 8: this.popState(); this.popState(); return 5; | ||
break; | ||
case 9: this.begin('LINE'); return 20; | ||
case 9: this.begin('LINE'); return 20; | ||
break; | ||
case 10: this.begin('LINE'); return 22; | ||
case 10: this.begin('LINE'); return 22; | ||
break; | ||
case 11: this.begin('LINE'); return 23; | ||
case 11: this.begin('LINE'); return 23; | ||
break; | ||
case 12: this.begin('LINE'); return 24; | ||
case 12: this.begin('LINE'); return 24; | ||
break; | ||
case 13: this.begin('LINE'); return 25; | ||
case 13: this.begin('LINE'); return 25; | ||
break; | ||
case 14: this.begin('LINE'); return 27; | ||
case 14: this.begin('LINE'); return 27; | ||
break; | ||
case 15: this.popState(); return 13; | ||
case 15: this.popState(); return 13; | ||
break; | ||
@@ -749,5 +749,5 @@ case 16:return 21; | ||
break; | ||
case 21: this.begin('ID'); return 15; | ||
case 21: this.begin('ID'); return 15; | ||
break; | ||
case 22: this.begin('ID'); return 16; | ||
case 22: this.begin('ID'); return 16; | ||
break; | ||
@@ -762,3 +762,3 @@ case 23:return 18; | ||
break; | ||
case 27: yy_.yytext = yy_.yytext.trim(); return 39; | ||
case 27: yy_.yytext = yy_.yytext.trim(); return 39; | ||
break; | ||
@@ -808,8 +808,8 @@ case 28:return 42; | ||
exports.main = function commonjsMain(args) { | ||
// if (!args[1]) { | ||
// console.log('Usage: '+args[0]+' FILE'); | ||
// process.exit(1); | ||
// } | ||
// var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8"); | ||
// return exports.parser.parse(source); | ||
if (!args[1]) { | ||
console.log('Usage: '+args[0]+' FILE'); | ||
process.exit(1); | ||
} | ||
var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8"); | ||
return exports.parser.parse(source); | ||
}; | ||
@@ -819,2 +819,2 @@ if (typeof module !== 'undefined' && require.main === module) { | ||
} | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
4135014
88103
10