istanbul-lib-instrument
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="1.4.1"></a> | ||
## [1.4.1](https://github.com/istanbuljs/istanbul-lib-instrument/compare/v1.4.0...v1.4.1) (2017-01-04) | ||
### Bug Fixes | ||
* address regression discussed in https://github.com/istanbuljs/babel-plugin-istanbul/issues/78 ([#40](https://github.com/istanbuljs/istanbul-lib-instrument/issues/40)) ([7f458a3](https://github.com/istanbuljs/istanbul-lib-instrument/commit/7f458a3)) | ||
<a name="1.4.0"></a> | ||
@@ -7,0 +17,0 @@ # [1.4.0](https://github.com/istanbuljs/istanbul-lib-instrument/compare/v1.3.1...v1.4.0) (2017-01-02) |
@@ -188,3 +188,8 @@ 'use strict'; | ||
} else if ((path.isFunctionExpression() || path.isArrowFunctionExpression()) && T.isVariableDeclarator(path.parentPath)) { | ||
path.parentPath.parentPath.insertBefore(T.expressionStatement(increment)); | ||
var parent = path.findParent(function (path) { | ||
return path.parentPath.isProgram(); | ||
}); | ||
if (parent) { | ||
parent.insertBefore(T.expressionStatement(increment)); | ||
} | ||
} else /* istanbul ignore else: not expected */if (path.isExpression()) { | ||
@@ -191,0 +196,0 @@ path.replaceWith(T.sequenceExpression([increment, path.node])); |
{ | ||
"name": "istanbul-lib-instrument", | ||
"version": "1.4.0", | ||
"version": "1.4.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
100976
875