karma-coverage-istanbul-reporter
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -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) |
{ | ||
"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; |
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
25396
268
+ Added@babel/code-frame@7.24.7(transitive)
+ Added@babel/generator@7.25.6(transitive)
+ Added@babel/helper-string-parser@7.24.8(transitive)
+ Added@babel/helper-validator-identifier@7.24.7(transitive)
+ Added@babel/highlight@7.24.7(transitive)
+ Added@babel/parser@7.25.6(transitive)
+ Added@babel/template@7.25.0(transitive)
+ Added@babel/traverse@7.25.6(transitive)
+ Added@babel/types@7.25.6(transitive)
+ Added@jridgewell/gen-mapping@0.3.5(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedappend-transform@1.0.0(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcompare-versions@3.6.0(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addeddefault-require-extensions@2.0.0(transitive)
+ Addedglobals@11.12.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedhtml-escaper@2.0.2(transitive)
+ Addedistanbul-api@2.1.7(transitive)
+ Addedistanbul-lib-coverage@2.0.5(transitive)
+ Addedistanbul-lib-hook@2.0.7(transitive)
+ Addedistanbul-lib-instrument@3.3.0(transitive)
+ Addedistanbul-lib-report@2.0.8(transitive)
+ Addedistanbul-lib-source-maps@3.0.6(transitive)
+ Addedistanbul-reports@2.2.7(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjsesc@2.5.2(transitive)
+ Addedmake-dir@2.1.0(transitive)
+ Addedpicocolors@1.1.0(transitive)
+ Addedpify@4.0.1(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedstrip-bom@3.0.0(transitive)
+ Addedsupports-color@5.5.06.1.0(transitive)
+ Addedto-fast-properties@2.0.0(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedappend-transform@0.4.0(transitive)
- Removedbabel-code-frame@6.26.0(transitive)
- Removedbabel-generator@6.26.1(transitive)
- Removedbabel-messages@6.23.0(transitive)
- Removedbabel-runtime@6.26.0(transitive)
- Removedbabel-template@6.26.0(transitive)
- Removedbabel-traverse@6.26.0(transitive)
- Removedbabel-types@6.26.0(transitive)
- Removedbabylon@6.18.0(transitive)
- Removedchalk@1.1.3(transitive)
- Removedcore-js@2.6.12(transitive)
- Removeddebug@2.6.93.2.7(transitive)
- Removeddefault-require-extensions@1.0.0(transitive)
- Removeddetect-indent@4.0.0(transitive)
- Removedesutils@2.0.3(transitive)
- Removedglobals@9.18.0(transitive)
- Removedhandlebars@4.7.8(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhas-flag@1.0.0(transitive)
- Removedinvariant@2.2.4(transitive)
- Removedis-finite@1.1.0(transitive)
- Removedis-utf8@0.2.1(transitive)
- Removedistanbul-api@1.3.7(transitive)
- Removedistanbul-lib-coverage@1.2.1(transitive)
- Removedistanbul-lib-hook@1.2.2(transitive)
- Removedistanbul-lib-instrument@1.10.2(transitive)
- Removedistanbul-lib-report@1.1.5(transitive)
- Removedistanbul-lib-source-maps@1.2.6(transitive)
- Removedistanbul-reports@1.5.1(transitive)
- Removedjs-tokens@3.0.2(transitive)
- Removedjsesc@1.3.0(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedms@2.0.0(transitive)
- Removedneo-async@2.6.2(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedregenerator-runtime@0.11.1(transitive)
- Removedrepeating@2.0.1(transitive)
- Removedsource-map@0.5.7(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedstrip-bom@2.0.0(transitive)
- Removedsupports-color@2.0.03.2.3(transitive)
- Removedto-fast-properties@1.0.3(transitive)
- Removedtrim-right@1.0.1(transitive)
- Removeduglify-js@3.19.3(transitive)
- Removedwordwrap@1.0.0(transitive)
Updatedistanbul-api@^2.0.5