sol2uml 2.5.3 → 2.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -137,7 +137,7 @@ class EtherscanParser {
137
137
  // match whitespace before import
138
138
  // and characters after import up to ;
139
139
  // replace all in file and match across multiple lines
140
- const removedImports = removedPragmaSolidity.replace(/(\s)(import.*;)/gm, '$1/* $2 */');
140
+ const removedImports = removedPragmaSolidity.replace(/^\s*?(import.*?;)/gms, '/* $1 */');
141
141
  // Rename SPDX-License-Identifier to SPDX--License-Identifier so the merged file will compile
142
142
  const removedSPDX = removedImports.replace(/SPDX-/, 'SPDX--');
143
143
  solidityCode += removedSPDX;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sol2uml",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
4
4
  "description": "Solidity contract visualisation tool.",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -36,7 +36,7 @@
36
36
  "klaw": "^4.1.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@openzeppelin/contracts": "4.8.0",
39
+ "@openzeppelin/contracts": "^4.8.2",
40
40
  "@types/diff-match-patch": "^1.0.32",
41
41
  "@types/jest": "^29.4.0",
42
42
  "@types/klaw": "^3.0.3",