istanbul-lib-coverage
Advanced tools
Comparing version 1.2.0 to 2.0.0
@@ -6,2 +6,18 @@ # Change Log | ||
<a name="2.0.0"></a> | ||
# [2.0.0](https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-coverage@1.2.0...istanbul-lib-coverage@2.0.0) (2018-06-06) | ||
### Bug Fixes | ||
* use null prototype for map objects ([#177](https://github.com/istanbuljs/istanbuljs/issues/177)) ([9a5a30c](https://github.com/istanbuljs/istanbuljs/commit/9a5a30c)) | ||
### BREAKING CHANGES | ||
* a null prototype is now used in several places rather than the default `{}` assignment. | ||
<a name="1.2.0"></a> | ||
@@ -8,0 +24,0 @@ # [1.2.0](https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-coverage@1.1.2...istanbul-lib-coverage@1.2.0) (2018-03-04) |
@@ -11,3 +11,3 @@ /* | ||
function loadMap(source) { | ||
var data = {}; | ||
var data = Object.create(null); | ||
Object.keys(source).forEach(function (k) { | ||
@@ -31,3 +31,3 @@ var cov = source[k]; | ||
if (!obj) { | ||
this.data = {}; | ||
this.data = Object.create(null); | ||
} else if (obj instanceof CoverageMap) { | ||
@@ -34,0 +34,0 @@ this.data = obj.data; |
@@ -173,3 +173,3 @@ /* | ||
statements = this.data.s, | ||
lineMap = {}; | ||
lineMap = Object.create(null); | ||
@@ -176,0 +176,0 @@ Object.keys(statements).forEach(function (st) { |
{ | ||
"name": "istanbul-lib-coverage", | ||
"version": "1.2.0", | ||
"version": "2.0.0", | ||
"description": "Data library for istanbul coverage objects", | ||
@@ -16,5 +16,5 @@ "author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>", | ||
"devDependencies": { | ||
"chai": "^3.0.0", | ||
"jshint": "^2.8.0", | ||
"mocha": "^3.2.0" | ||
"chai": "^4.1.2", | ||
"jshint": "^2.9.5", | ||
"mocha": "^5.2.0" | ||
}, | ||
@@ -21,0 +21,0 @@ "karmaDeps": { |
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
21980