istanbul-lib-instrument
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [3.3.0](https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@3.2.0...istanbul-lib-instrument@3.3.0) (2019-04-24) | ||
### Features | ||
* Enable classProperties and classPrivateProperties parsers and coverage. ([#379](https://github.com/istanbuljs/istanbuljs/issues/379)) ([c09dc38](https://github.com/istanbuljs/istanbuljs/commit/c09dc38)) | ||
# [3.2.0](https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@3.1.2...istanbul-lib-instrument@3.2.0) (2019-04-09) | ||
@@ -8,0 +19,0 @@ |
@@ -43,9 +43,3 @@ "use strict"; | ||
* implemented in a released version of node.js */ | ||
plugins: ['asyncGenerators', 'bigInt', | ||
/* Verify and add upon release of node.js 12: | ||
* classProperties | ||
* classPrivateProperties | ||
* classPrivateMethods | ||
*/ | ||
'dynamicImport', 'importMeta', 'objectRestSpread', 'optionalCatchBinding', 'flow', 'jsx'] | ||
plugins: ['asyncGenerators', 'bigInt', 'classProperties', 'classPrivateProperties', 'dynamicImport', 'importMeta', 'objectRestSpread', 'optionalCatchBinding', 'flow', 'jsx'] | ||
}; | ||
@@ -52,0 +46,0 @@ } |
@@ -16,2 +16,4 @@ "use strict"; | ||
var _instrumenter = require("./instrumenter"); | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } | ||
@@ -32,3 +34,3 @@ | ||
sourceType: 'script', | ||
plugins: ['asyncGenerators', 'dynamicImport', 'objectRestSpread', 'optionalCatchBinding', 'flow', 'jsx'] | ||
plugins: (0, _instrumenter.defaultOpts)().plugins | ||
}); | ||
@@ -35,0 +37,0 @@ let covScope; |
@@ -353,2 +353,6 @@ "use strict"; | ||
function coverClassPropDeclarator(path) { | ||
this.insertStatementCounter(path.get('value')); | ||
} | ||
function makeBlock(path) { | ||
@@ -500,2 +504,4 @@ const T = this.types; | ||
ClassDeclaration: entries(parenthesizedExpressionProp('superClass')), | ||
ClassProperty: entries(coverClassPropDeclarator), | ||
ClassPrivateProperty: entries(coverClassPropDeclarator), | ||
ObjectMethod: entries(coverFunction), | ||
@@ -502,0 +508,0 @@ ExpressionStatement: entries(coverStatement), |
{ | ||
"name": "istanbul-lib-instrument", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"description": "Core istanbul API for JS code coverage", | ||
@@ -16,8 +16,8 @@ "author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>", | ||
"dependencies": { | ||
"@babel/generator": "^7.0.0", | ||
"@babel/parser": "^7.0.0", | ||
"@babel/template": "^7.0.0", | ||
"@babel/traverse": "^7.0.0", | ||
"@babel/types": "^7.0.0", | ||
"istanbul-lib-coverage": "^2.0.4", | ||
"@babel/generator": "^7.4.0", | ||
"@babel/parser": "^7.4.3", | ||
"@babel/template": "^7.4.0", | ||
"@babel/traverse": "^7.4.3", | ||
"@babel/types": "^7.4.0", | ||
"istanbul-lib-coverage": "^2.0.5", | ||
"semver": "^6.0.0" | ||
@@ -43,3 +43,3 @@ }, | ||
}, | ||
"gitHead": "9f8aebf1f08159df20358d77fe98c809d2027c5f" | ||
"gitHead": "90e60cc47833bb780680f916488ca24f0be36ca2" | ||
} |
@@ -1,3 +0,2 @@ | ||
istanbul-lib-instrument | ||
----------------------- | ||
## istanbul-lib-instrument | ||
@@ -13,13 +12,11 @@ [![Build Status](https://travis-ci.org/istanbuljs/istanbul-lib-instrument.svg?branch=master)](https://travis-ci.org/istanbuljs/istanbul-lib-instrument) | ||
* The old API that is mostly unchanged (except for incompatibilities noted) and | ||
performs the instrumentation using babel as a library. | ||
- The old API that is mostly unchanged (except for incompatibilities noted) and | ||
performs the instrumentation using babel as a library. | ||
* A `programVisitor` function for the Babel AST that can be used by a Babel plugin | ||
to emit instrumentation for ES6 code directly without any source map | ||
processing. This is the preferred path for babel users. The Babel plugin is | ||
called `babel-plugin-istanbul`. | ||
- A `programVisitor` function for the Babel AST that can be used by a Babel plugin | ||
to emit instrumentation for ES6 code directly without any source map | ||
processing. This is the preferred path for babel users. The Babel plugin is | ||
called `babel-plugin-istanbul`. | ||
Incompatibilities and changes to instrumentation behavior can be found in | ||
[v0-changes.md](v0-changes.md). | ||
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
55170
22
Updated@babel/generator@^7.4.0
Updated@babel/parser@^7.4.3
Updated@babel/template@^7.4.0
Updated@babel/traverse@^7.4.3
Updated@babel/types@^7.4.0
Updatedistanbul-lib-coverage@^2.0.5