From 2b031ef2ecf3d062c8a3844addcf8087f3a6745c Mon Sep 17 00:00:00 2001 From: d11e9 Date: Tue, 29 Sep 2015 11:25:34 +0100 Subject: [PATCH] re-add soljson.js and add version func --- index.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8b516b3bb4..6589bfd43f 100644 --- a/index.js +++ b/index.js @@ -6,5 +6,6 @@ compileJSON = soljson.cwrap("compileJSON", "string", ["string", "number"]); module.exports = { compile: function(input, optimise){ return JSON.parse( compileJSON(input, optimise) ); - } + }, + version: soljson.cwrap("version", "string", []) } \ No newline at end of file diff --git a/package.json b/package.json index 5fa306cb52..ddfad50340 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "solc", - "version": "0.1.3-1", + "version": "0.1.3-2", "description": "Solidity compiler", "main": "index.js", "scripts": {