From 203e8bdd7142f2e0a400b750a6b5942b5551433f Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Mon, 24 Apr 2017 12:12:57 -0500 Subject: [PATCH] Fix line number. --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a0ae444..bbf7fa8 100644 --- a/index.js +++ b/index.js @@ -24,7 +24,7 @@ module.exports = function (txt, opt) { return; var offset = +parts[0]; var file = parts[1]; - var line = ++parts[2]; + var line = +parts[2]; map.addMapping({ generated: { diff --git a/package.json b/package.json index 6a82e6b..2df3e9d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "txt2map4wasm", - "version": "1.0.2", + "version": "1.0.3", "description": "Translates wasm text source map to JSON map", "main": "index.js", "scripts": {