Socket
Socket
Sign inDemoInstall

babel-plugin-istanbul

Package Overview
Dependencies
Maintainers
3
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-istanbul - npm Package Compare versions

Comparing version 5.1.4 to 5.2.0

16

CHANGELOG.md

@@ -1,5 +0,19 @@

# Change Log
# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [5.2.0](https://github.com/istanbuljs/babel-plugin-istanbul/compare/v5.1.4...v5.2.0) (2019-07-18)
### Bug Fixes
* Print explicit error if use with babel 6 is attempted ([#207](https://github.com/istanbuljs/babel-plugin-istanbul/issues/207)) ([a12cf16](https://github.com/istanbuljs/babel-plugin-istanbul/commit/a12cf16))
### Features
* Support turning off node_modules default exclude via flag ([#172](https://github.com/istanbuljs/babel-plugin-istanbul/issues/172)) ([a314f06](https://github.com/istanbuljs/babel-plugin-istanbul/commit/a314f06))
## [5.1.4](https://github.com/istanbuljs/babel-plugin-istanbul/compare/v5.1.3...v5.1.4) (2019-04-25)

@@ -6,0 +20,0 @@

52

lib/index.js

@@ -6,3 +6,3 @@ "use strict";

});
exports["default"] = void 0;
exports.default = void 0;

@@ -13,7 +13,9 @@ var _fs = require("fs");

var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _istanbulLibInstrument = require("istanbul-lib-instrument");
var testExclude = require('test-exclude');
const testExclude = require('test-exclude');
var findUp = require('find-up');
const findUp = require('find-up');

@@ -29,8 +31,8 @@ function getRealpath(n) {

function makeShouldSkip() {
var exclude;
let exclude;
return function shouldSkip(file, opts) {
if (!exclude || exclude.cwd !== opts.cwd) {
var cwd = getRealpath(process.env.NYC_CWD || process.cwd());
var nycConfig = process.env.NYC_CONFIG ? JSON.parse(process.env.NYC_CONFIG) : {};
var config = {};
const cwd = getRealpath(process.env.NYC_CWD || process.cwd());
const nycConfig = process.env.NYC_CONFIG ? JSON.parse(process.env.NYC_CONFIG) : {};
let config = {};

@@ -45,3 +47,5 @@ if (Object.keys(opts).length > 0) {

include: nycConfig.include,
exclude: nycConfig.exclude
exclude: nycConfig.exclude,
// Make sure this is true unless explicitly set to `false`. `undefined` is still `true`.
excludeNodeModules: nycConfig.excludeNodeModules !== false
};

@@ -53,3 +57,3 @@ } else {

configPath: (0, _path.dirname)(findUp.sync('package.json', {
cwd: cwd
cwd
}))

@@ -60,3 +64,3 @@ };

exclude = testExclude(Object.assign({
cwd: cwd
cwd
}, config));

@@ -69,11 +73,12 @@ }

function makeVisitor(_ref) {
var t = _ref.types;
var shouldSkip = makeShouldSkip();
var _default = (0, _helperPluginUtils.declare)(api => {
api.assertVersion(7);
const t = api.types;
const shouldSkip = makeShouldSkip();
return {
visitor: {
Program: {
enter: function enter(path) {
enter(path) {
this.__dv__ = null;
var realPath = getRealpath(this.file.opts.filename);
const realPath = getRealpath(this.file.opts.filename);

@@ -84,3 +89,5 @@ if (shouldSkip(realPath, this.opts)) {

var inputSourceMap = this.opts.inputSourceMap;
let {
inputSourceMap
} = this.opts;

@@ -95,3 +102,3 @@ if (this.opts.useInlineSourceMaps !== false) {

coverageVariable: '__coverage__',
inputSourceMap: inputSourceMap
inputSourceMap
});

@@ -101,3 +108,4 @@

},
exit: function exit(path) {
exit(path) {
if (!this.__dv__) {

@@ -107,3 +115,3 @@ return;

var result = this.__dv__.exit(path);
const result = this.__dv__.exit(path);

@@ -114,8 +122,8 @@ if (this.opts.onCover) {

}
}
}
};
}
});
var _default = makeVisitor;
exports["default"] = _default;
exports.default = _default;
{
"name": "babel-plugin-istanbul",
"version": "5.1.4",
"version": "5.2.0",
"author": "Thai Pangsakulyanont @dtinth",

@@ -12,2 +12,3 @@ "license": "BSD-3-Clause",

"dependencies": {
"@babel/helper-plugin-utils": "^7.0.0",
"find-up": "^3.0.0",

@@ -21,3 +22,2 @@ "istanbul-lib-instrument": "^3.3.0",

"@babel/plugin-transform-modules-commonjs": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"@babel/register": "^7.4.0",

@@ -31,3 +31,3 @@ "chai": "^4.2.0",

"standard": "^12.0.1",
"standard-version": "^5.0.2"
"standard-version": "^6.0.1"
},

@@ -34,0 +34,0 @@ "scripts": {

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