Socket
Socket
Sign inDemoInstall

istanbul-lib-instrument

Package Overview
Dependencies
Maintainers
2
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.4.0 to 1.4.1

.nyc_output/4d31929246591108ecf4d89431e67485.json

10

CHANGELOG.md

@@ -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)

7

dist/visitor.js

@@ -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]));

2

package.json
{
"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>",

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