solidity-docgen
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -59,2 +59,3 @@ "use strict"; | ||
} | ||
solcOutput.sources = lodash_1.pick(solcOutput.sources, files); | ||
return solcOutput; | ||
@@ -76,3 +77,3 @@ }); | ||
const inputJSON = JSON.stringify(input); | ||
const solcOutputString = this.solc.compileStandardWrapper(inputJSON); | ||
const solcOutputString = this.solc.compileStandardWrapper(inputJSON, importCallback); | ||
const solcOutput = JSON.parse(solcOutputString); | ||
@@ -104,2 +105,14 @@ if (semver_1.default.satisfies(this.solc.version(), '^0.4')) { | ||
} | ||
function importCallback(path) { | ||
try { | ||
return { | ||
contents: fs_extra_1.default.readFileSync(path, 'utf8'), | ||
}; | ||
} | ||
catch (e) { | ||
return { | ||
error: e.message, | ||
}; | ||
} | ||
} | ||
//# sourceMappingURL=compile.js.map |
{ | ||
"name": "solidity-docgen", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "Solidity API documentation automatic generator.", | ||
@@ -5,0 +5,0 @@ "bin": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1136
245737