Socket
Socket
Sign inDemoInstall

karma-coverage-istanbul-reporter

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-coverage-istanbul-reporter - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

11

CHANGELOG.md

@@ -5,2 +5,13 @@ # Change Log

<a name="2.0.3"></a>
## [2.0.3](https://github.com/mattlewis92/karma-coverage-istanbul-reporter/compare/v2.0.2...v2.0.3) (2018-09-01)
### Bug Fixes
* update istanbuljs to 2.x ([a835e22](https://github.com/mattlewis92/karma-coverage-istanbul-reporter/commit/a835e22)), closes [#52](https://github.com/mattlewis92/karma-coverage-istanbul-reporter/issues/52)
* use correct source file path separators on windows ([938e93c](https://github.com/mattlewis92/karma-coverage-istanbul-reporter/commit/938e93c)), closes [#47](https://github.com/mattlewis92/karma-coverage-istanbul-reporter/issues/47)
<a name="2.0.2"></a>

@@ -7,0 +18,0 @@ ## [2.0.2](https://github.com/mattlewis92/karma-coverage-istanbul-reporter/compare/v2.0.1...v2.0.2) (2018-08-24)

43

package.json
{
"name": "karma-coverage-istanbul-reporter",
"version": "2.0.2",
"version": "2.0.3",
"description": "A karma reporter that uses the latest istanbul 1.x APIs (with full sourcemap support) to report coverage.",

@@ -41,17 +41,17 @@ "main": "src/reporter.js",

"dependencies": {
"istanbul-api": "^1.3.1",
"istanbul-api": "^2.0.5",
"minimatch": "^3.0.4"
},
"devDependencies": {
"@commitlint/cli": "^6.2.0",
"@commitlint/config-conventional": "^6.1.3",
"@commitlint/prompt": "^6.1.3",
"@types/chai": "^4.1.3",
"@types/mocha": "^5.2.0",
"@commitlint/cli": "^7.0.0",
"@commitlint/config-conventional": "^7.0.1",
"@commitlint/prompt": "^7.0.0",
"@types/chai": "^4.1.4",
"@types/mocha": "^5.2.5",
"chai": "^4.0.0",
"codecov-lite": "^0.1.3",
"commitizen": "^2.9.6",
"commitizen": "^2.10.1",
"husky": "^0.14.3",
"istanbul-instrumenter-loader": "^3.0.1",
"karma": "^2.0.2",
"karma": "^3.0.0",
"karma-mocha": "^1.3.0",

@@ -61,14 +61,14 @@ "karma-phantomjs-launcher": "^1.0.2",

"karma-webpack": "^3.0.0",
"mocha": "^5.1.1",
"nyc": "^11.8.0",
"prettier": "^1.12.1",
"pretty-quick": "^1.4.1",
"mocha": "^5.2.0",
"nyc": "^13.0.1",
"prettier": "^1.14.2",
"pretty-quick": "^1.6.0",
"rimraf": "^2.5.4",
"standard-version": "^4.3.0",
"ts-loader": "^4.3.0",
"tslint": "^5.10.0",
"standard-version": "^4.4.0",
"ts-loader": "^4.5.0",
"tslint": "^5.11.0",
"tslint-loader": "^3.6.0",
"typescript": "^2.8.3",
"webpack": "^4.8.3",
"xo": "^0.21.0"
"typescript": "^3.0.1",
"webpack": "^4.17.1",
"xo": "^0.22.0"
},

@@ -93,3 +93,6 @@ "nyc": {

"indent": 0
}
},
"ignore": [
"{test,tests,spec,__tests__}/fixture{s,}/**"
]
},

@@ -96,0 +99,0 @@ "config": {

@@ -5,4 +5,2 @@ const path = require('path');

function fixWebpackFilePath(filePath) {
const isWin = process.platform.startsWith('win');
if (filePath.indexOf('!') !== -1) {

@@ -16,7 +14,11 @@ filePath = filePath.split('!').pop();

return filePath;
}
function fixPathSeparators(filePath) {
const isWin = process.platform.startsWith('win');
// Workaround for https://github.com/mattlewis92/karma-coverage-istanbul-reporter/issues/9
if (isWin) {
filePath = filePath.replace(/\\/g, '/');
return filePath.replace(/\//g, '\\');
}
return filePath;

@@ -39,8 +41,11 @@ }

sourceRoot = fixPathSeparators(sourceRoot);
return Object.assign({}, sourceMap, {
sourceRoot: sourceRoot, // eslint-disable-line object-shorthand
file: fixPathSeparators(sourceMap.file),
sourceRoot,
sources: (sourceMap.sources || []).map(source => {
source = fixWebpackFilePath(source);
if (sourceMap.sourceRoot && source.startsWith(sourceMap.sourceRoot)) {
source = source.replace(sourceMap.sourceRoot, '');
if (sourceRoot && source.startsWith(sourceRoot)) {
source = source.replace(sourceRoot, '');
}

@@ -47,0 +52,0 @@ return source;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc