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

sol2uml

Package Overview
Dependencies
Maintainers
1
Versions
85
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 2.0.0 to 2.0.1

5

lib/converterClasses2Storage.js

@@ -5,2 +5,3 @@ "use strict";

const umlClass_1 = require("./umlClass");
const associations_1 = require("./associations");
var StorageType;

@@ -49,5 +50,5 @@ (function (StorageType) {

newInheritedContracts.forEach((parent) => {
const parentClass = umlClasses.find((umlClass) => umlClass.name === parent.targetUmlClassName);
const parentClass = (0, associations_1.findAssociatedClass)(parent, umlClass, umlClasses);
if (!parentClass)
throw Error(`Failed to find parent contract ${parent.targetUmlClassName} of ${umlClass.name}`);
throw Error(`Failed to find parent contract ${parent.targetUmlClassName} of ${umlClass.absolutePath}`);
// recursively parse inherited contract

@@ -54,0 +55,0 @@ parseStorage(parentClass, umlClasses, storages, storageObjects, inheritedContracts);

3

lib/sol2uml.js

@@ -104,4 +104,3 @@ #! /usr/bin/env node

const { umlClasses, contractName } = await (0, parserGeneral_1.parserUmlClasses)(fileFolderAddress, combinedOptions);
const filteredUmlClasses = (0, filterClasses_1.classesConnectedToBaseContracts)(umlClasses, [combinedOptions.contractName || contractName]);
const storageObjects = (0, converterClasses2Storage_1.convertClasses2StorageObjects)(combinedOptions.contractName || contractName, filteredUmlClasses);
const storageObjects = (0, converterClasses2Storage_1.convertClasses2StorageObjects)(combinedOptions.contractName || contractName, umlClasses);
if ((0, regEx_1.isAddress)(fileFolderAddress)) {

@@ -108,0 +107,0 @@ // The first object is the contract

{
"name": "sol2uml",
"version": "2.0.0",
"version": "2.0.1",
"description": "Unified Modeling Language (UML) class diagram generator for Solidity contracts",

@@ -5,0 +5,0 @@ "main": "./lib/index.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