istanbul-lib-instrument
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="1.3.1"></a> | ||
## [1.3.1](https://github.com/istanbuljs/istanbul-lib-instrument/compare/v1.3.0...v1.3.1) (2016-12-27) | ||
### Bug Fixes | ||
* function declaration assignment now retains function name ([#33](https://github.com/istanbuljs/istanbul-lib-instrument/issues/33)) ([2d781da](https://github.com/istanbuljs/istanbul-lib-instrument/commit/2d781da)) | ||
<a name="1.3.0"></a> | ||
@@ -7,0 +17,0 @@ # [1.3.0](https://github.com/istanbuljs/istanbul-lib-instrument/compare/v1.2.0...v1.3.0) (2016-11-10) |
@@ -234,2 +234,10 @@ 'use strict'; | ||
} | ||
if (!n.id) { | ||
var decl = path.find(function (node) { | ||
return node.isVariableDeclarator(); | ||
}); | ||
if (decl) { | ||
n.id = decl.get('id').node; | ||
} | ||
} | ||
var name = path.node.id ? path.node.id.name : path.node.name; | ||
@@ -236,0 +244,0 @@ var index = this.cov.newFunction(name, dloc, path.node.body.loc); |
{ | ||
"name": "istanbul-lib-instrument", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Core istanbul API for JS code coverage", | ||
@@ -5,0 +5,0 @@ "author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>", |
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
99779
876