From 2ce700667a7750a56195381e87d0afa092c83215 Mon Sep 17 00:00:00 2001 From: kangkang520 Date: Mon, 12 Nov 2018 23:58:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Ddts=E7=94=9F=E6=88=90bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/index.ts | 2 +- test/test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index bf182d9..09207cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ini-decode", - "version": "1.0.4", + "version": "1.0.5", "description": "", "main": "dist/index.js", "types": "typing/index.d.ts", diff --git a/src/index.ts b/src/index.ts index c8f8ec9..e53debe 100644 --- a/src/index.ts +++ b/src/index.ts @@ -75,7 +75,7 @@ function parseDetail(data: any, parent: any, key: any): string { else { return `{\n\t${Object.keys(data).map(key => { return `${key}: ${parseDetail(data[key], data, key).replace(/\n/g, '\n\t')}` - }).join('\n\t')}\n` + }).join('\n\t')}\n}` } } diff --git a/test/test.ts b/test/test.ts index f17cb26..edde86f 100644 --- a/test/test.ts +++ b/test/test.ts @@ -3,4 +3,4 @@ import { decode } from '../src' const content = fs.readFileSync(__dirname + '/test.ini') const res = decode(content) -console.log(res.json) \ No newline at end of file +console.log(res.dts) \ No newline at end of file