puppeteer-to-istanbul
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -6,2 +6,9 @@ # Change Log | ||
<a name="1.2.2"></a> | ||
### [1.3.1](https://www.github.com/istanbuljs/puppeteer-to-istanbul/compare/v1.3.0...v1.3.1) (2020-05-11) | ||
### Bug Fixes | ||
* JSON encode URL ([8aa1c44](https://www.github.com/istanbuljs/puppeteer-to-istanbul/commit/8aa1c448252da995e7507272878eb00f44242215)) | ||
## [1.3.0](https://www.github.com/istanbuljs/puppeteer-to-istanbul/compare/v1.2.2...v1.3.0) (2020-04-14) | ||
@@ -8,0 +15,0 @@ |
@@ -50,3 +50,3 @@ const fs = require('fs') | ||
fs.writeSync(fd, `"${url}": ${JSON.stringify(data)}${(isLastIteration ? '' : ',')}`) | ||
fs.writeSync(fd, `${JSON.stringify(url)}: ${JSON.stringify(data)}${(isLastIteration ? '' : ',')}`) | ||
}) | ||
@@ -53,0 +53,0 @@ fs.writeSync(fd, '}') |
{ | ||
"name": "puppeteer-to-istanbul", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "convert from puppeteer's coverage output to a format that can be used by istanbul reports", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -23,2 +23,3 @@ /* globals describe, it, beforeEach */ | ||
var newPath = outputFiles.rewritePath('./sample_js/block-else-not-covered-1.js') | ||
if (newPath.includes('\\')) newPath = newPath.replace(/\\/g, '/') | ||
newPath.should.include(storagePath + '/sample_js/block-else-not-covered-1.js') | ||
@@ -74,3 +75,3 @@ }) | ||
const fixture = require('./fixtures/http-es6-modules.json') | ||
const coverageInfo = OutputFiles(fixture).getTransformedCoverage() | ||
const coverageInfo = OutputFiles(fixture).getTransformedCoverage().map(info => ({...info, url: info.url.replace(/\\/g, '/')})) | ||
@@ -77,0 +78,0 @@ coverageInfo[0].url.should.include('js/index.js') |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
38377
753
1