From d93636e5697b4ca59bbfebd6e197b3dcebf064f2 Mon Sep 17 00:00:00 2001 From: Paul Cuthbertson Date: Tue, 5 Apr 2016 22:43:47 +0100 Subject: [PATCH] Bumps version to v0.2.0. Fixes indentation in parser. --- package.json | 2 +- src/parser/index.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index eee535a..463c71c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "starlight", "description": "A Lua -> ES6 transpiler", - "version": "0.1.8", + "version": "0.2.0", "author": { "name": "Paul Cuthbertson" }, diff --git a/src/parser/index.js b/src/parser/index.js index 1ddc74b..abe89d9 100644 --- a/src/parser/index.js +++ b/src/parser/index.js @@ -59,16 +59,16 @@ function parseScriptTags (tags) { let x = superagent .get(src) .end((error, response) => { - if (error) { - resolve({}); + if (error) { + resolve({}); - } else { - resolve({ + } else { + resolve({ modname: tag.dataset.modname, body: response.text }); - } - }); + } + }); })); } else {