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