Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

istanbul-lib-coverage

Package Overview
Dependencies
Maintainers
1
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.0.0-alpha.1 to 1.0.0-alpha.2

2

lib/coverage-map.js

@@ -113,3 +113,3 @@ /*

module.exports = {
CoverageMap: CoverageMap,
CoverageMap: CoverageMap
};

@@ -91,2 +91,6 @@ /*

/**
* returns a POJO that is JSON serializable. May be used to get the raw
* summary object.
*/
CoverageSummary.prototype.toJSON = function () {

@@ -216,3 +220,3 @@ return this.data;

// expose coverage data attributes
['path', 'statementMap', 'fnMap', 'branchMap', 's', 'f', 'b', 'sourceMappingUrl'].forEach(function (p) {
['path', 'statementMap', 'fnMap', 'branchMap', 's', 'f', 'b' ].forEach(function (p) {
Object.defineProperty(FileCoverage.prototype, p, {

@@ -241,9 +245,2 @@ enumerable: true,

};
/**
* saves the source map URL that was found in the source code
* @param {String} url the source map URL
*/
FileCoverage.prototype.setSourceMappingUrl = function (url) {
this.data.sourceMappingUrl = url;
};

@@ -250,0 +247,0 @@ /**

{
"name": "istanbul-lib-coverage",
"version": "1.0.0-alpha.1",
"version": "1.0.0-alpha.2",
"description": "Data library for istanbul coverage objects",

@@ -5,0 +5,0 @@ "author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>",

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