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

sol2uml

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sol2uml - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

15

lib/parser.js

@@ -207,9 +207,20 @@ "use strict";

umlClass = addAssociations(node.variables, umlClass);
umlClass = parseExpression(node.initialValue, umlClass);
break;
case 'ForStatement':
// @ts-ignore type of body is a Block and not a Statement
umlClass = addAssociations(node.body.statements, umlClass);
umlClass = parseExpression(node.conditionExpression, umlClass);
umlClass = parseExpression(node.loopExpression.expression, umlClass);
break;
case 'WhileStatement':
// @ts-ignore type of body is a Block and not a Statement
umlClass = addAssociations(node.body.statements, umlClass);
break;
case 'DoWhileStatement':
// @ts-ignore type of body is a Block and not a Statement
umlClass = addAssociations(node.body.statements, umlClass);
umlClass = parseExpression(node.condition, umlClass);
break;
case 'ReturnStatement':
case 'ExpressionStatement':

@@ -229,2 +240,3 @@ umlClass = parseExpression(node.expression, umlClass);

}
umlClass = parseExpression(node.condition, umlClass);
break;

@@ -238,2 +250,5 @@ default:

function parseExpression(expression, umlClass) {
if (!expression || !expression.type) {
return umlClass;
}
if (expression.type === 'BinaryOperation') {

@@ -240,0 +255,0 @@ umlClass = parseExpression(expression.left, umlClass);

2

package.json
{
"name": "sol2uml",
"version": "1.1.4",
"version": "1.1.5",
"description": "Unified Modeling Language (UML) class diagram generator for Solidity contracts",

@@ -5,0 +5,0 @@ "main": "./lib/sol2uml.js",

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