istanbul-lib-instrument
Advanced tools
Comparing version 1.7.4 to 1.7.5
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="1.7.5"></a> | ||
## [1.7.5](https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@1.7.4...istanbul-lib-instrument@1.7.5) (2017-08-23) | ||
### Bug Fixes | ||
* name of function is now preserved or named exports ([#79](https://github.com/istanbuljs/istanbuljs/issues/79)) ([2ce8974](https://github.com/istanbuljs/istanbuljs/commit/2ce8974)) | ||
<a name="1.7.4"></a> | ||
@@ -8,0 +19,0 @@ ## [1.7.4](https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@1.7.3...istanbul-lib-instrument@1.7.4) (2017-07-16) |
@@ -200,3 +200,5 @@ 'use strict'; | ||
var parent = path.parentPath.parentPath; | ||
if (parent && (T.isProgram(parent.parentPath) || T.isBlockStatement(parent.parentPath))) { | ||
if (parent && T.isExportNamedDeclaration(parent.parentPath)) { | ||
parent.parentPath.insertBefore(T.expressionStatement(increment)); | ||
} else if (parent && (T.isProgram(parent.parentPath) || T.isBlockStatement(parent.parentPath))) { | ||
parent.insertBefore(T.expressionStatement(increment)); | ||
@@ -203,0 +205,0 @@ } else { |
{ | ||
"name": "istanbul-lib-instrument", | ||
"version": "1.7.4", | ||
"version": "1.7.5", | ||
"description": "Core istanbul API for JS code coverage", | ||
@@ -5,0 +5,0 @@ "author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>", |
51825
905