Socket
Socket
Sign inDemoInstall

istanbul-lib-instrument

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

istanbul-lib-instrument - npm Package Compare versions

Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4

9

lib/source-coverage.js

@@ -43,3 +43,3 @@ /*

// function declaration and another for the entire function span
SourceCoverage.prototype.newFunction = function (name, loc, span) {
SourceCoverage.prototype.newFunction = function (name, decl, loc) {
this.meta.last.f += 1;

@@ -50,5 +50,4 @@ var f = this.meta.last.f;

name: name,
line: loc.start.line,
loc: this.cloneLocation(loc),
span: this.cloneLocation(span)
decl: this.cloneLocation(decl),
loc: this.cloneLocation(loc)
};

@@ -65,3 +64,3 @@ this.data.f[f] = 0;

this.data.branchMap[b] = {
line: loc.start.line,
loc: loc,
type: type,

@@ -68,0 +67,0 @@ locations: []

{
"name": "istanbul-lib-instrument",
"version": "1.0.0-alpha.3",
"version": "1.0.0-alpha.4",
"description": "Core istanbul API for JS code coverage",

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

"pretest": "jshint index.js lib/ test/",
"test": "node --harmony ./node_modules/istanbul/lib/cli.js cover --include-all-sources --print=both -x karma.conf.js -x 'support/**/*js' -x 'lib/vargen-browser.js' _mocha -- -r ./support/yaml-loader --recursive test/",
"test": "node --harmony ./node_modules/istanbul/lib/cli.js cover --include-all-sources --print=both -x karma.conf.js -x 'support/**' -x 'lib/vargen-browser.js' -x 'docs/**' _mocha -- -r ./support/yaml-loader --recursive test/",
"xposttest": "node ./node_modules/istanbul/lib/cli.js check-coverage --statements 95 --branches 80"

@@ -13,0 +13,0 @@ },

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