jest-json-to-tap
Advanced tools
Comparing version 2.0.0 to 2.0.1
15
index.js
#!/usr/bin/env node | ||
const streamBuffers = require('stream-buffers'); | ||
const parseJestJsonOutput = require('./src/parseJestJsonOutput'); | ||
@@ -7,13 +8,11 @@ const jestOutputToTab = require('./src/jestOutputToTap'); | ||
const stdout = process.stdout; | ||
const inputChunks = []; | ||
const dataStreamBuffer = new streamBuffers.WritableStreamBuffer({ | ||
incrementAmount: 10 * 1024, | ||
initialSize: 100 * 1024 | ||
}); | ||
stdin.resume(); | ||
stdin.setEncoding('utf8'); | ||
stdin.pipe(dataStreamBuffer); | ||
stdin.on('data', (chunk) => { | ||
inputChunks.push(chunk); | ||
}); | ||
stdin.on('end', () => { | ||
const jestJsonOutput = inputChunks.join(); | ||
const jestJsonOutput = dataStreamBuffer.getContentsAsString('utf8'); | ||
const jestOutput = parseJestJsonOutput(jestJsonOutput); | ||
@@ -20,0 +19,0 @@ |
{ | ||
"name": "jest-json-to-tap", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Jest Json parser that outputs TAP results", | ||
@@ -42,3 +42,6 @@ "main": "index.js", | ||
] | ||
}, | ||
"dependencies": { | ||
"stream-buffers": "^3.0.1" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
4281
1
8
68
+ Addedstream-buffers@^3.0.1
+ Addedstream-buffers@3.0.3(transitive)