istanbul-lib-instrument
Advanced tools
Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4
@@ -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 @@ }, |
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
97076
2185