solidity-browser-compiler
Advanced tools
Comparing version
@@ -10,7 +10,9 @@ (function () { | ||
function browserSolidityCompiler() { | ||
// eslint-disable-next-line no-restricted-globals | ||
var ctx = self; | ||
ctx.addEventListener('message', ({ data }) => { | ||
const { id, input, version } = data; | ||
if (input === 'fetch-compiler-versions') { | ||
const { id, input, version, command } = data; | ||
if (command === 'fetch-compiler-versions') { | ||
fetch('https://binaries.soliditylang.org/bin/list.json') | ||
@@ -35,2 +37,3 @@ .then(response => response.json()) | ||
} | ||
function importScripts(_arg0) { | ||
@@ -37,0 +40,0 @@ throw new Error("Function not implemented."); |
{ | ||
"name": "solidity-browser-compiler", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "Package for compiling solidity code in the browser.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
6101
1.19%113
0.89%