Skip to content

Commit 6a59e2e

Browse files
committed
1.0.1
- fixes backwards compatibility with node@8
1 parent cdf4965 commit 6a59e2e

File tree

4 files changed

+96
-95
lines changed

4 files changed

+96
-95
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.0.1 (04/20/2019)
2+
3+
- fixes backwards compatibility with node@8
4+
15
# 1.0.0 (04/20/2019)
26

37
- removes react dependencies

bin/index.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
const fs = require('fs');
44
const path = require('path');
5-
const { promisify } = require('util');
6-
7-
const writeFile = promisify(fs.writeFile);
85

96
const parser = require('../');
107
const { generate } = require('../lib/generate');
@@ -46,12 +43,12 @@ Options:
4643
const { out } = program;
4744

4845
process.stdin
49-
.pipe(parser(async (res) => {
46+
.pipe(parser((res) => {
5047
const outputPath = out ? path.resolve(__dirname, out) : path.resolve(process.cwd(), 'tap.html');
5148

5249
// generate the html report
53-
const output = await generate(res);
50+
const output = generate(res);
5451

55-
await writeFile(outputPath, output);
52+
fs.writeFileSync(outputPath, output);
5653
}))
5754
.pipe(process.stdout);

0 commit comments

Comments
 (0)