Socket
Socket
Sign inDemoInstall

istanbul-lib-coverage

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

istanbul-lib-coverage - npm Package Compare versions

Comparing version 1.2.0 to 2.0.0

16

CHANGELOG.md

@@ -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)

4

lib/coverage-map.js

@@ -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": {

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