istanbul-lib-instrument
Advanced tools
Comparing version 2.3.2 to 3.0.0
@@ -6,2 +6,25 @@ # Change Log | ||
<a name="3.0.0"></a> | ||
# [3.0.0](https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@2.3.2...istanbul-lib-instrument@3.0.0) (2018-09-06) | ||
### Chores | ||
* Update test for babel 7. ([#218](https://github.com/istanbuljs/istanbuljs/issues/218)) ([9cf4d43](https://github.com/istanbuljs/istanbuljs/commit/9cf4d43)), closes [#205](https://github.com/istanbuljs/istanbuljs/issues/205) | ||
### Features | ||
* Add option plugins ([#205](https://github.com/istanbuljs/istanbuljs/issues/205)) ([312f81f](https://github.com/istanbuljs/istanbuljs/commit/312f81f)) | ||
* Update babel to 7.0.0. ([#215](https://github.com/istanbuljs/istanbuljs/issues/215)) ([8a96613](https://github.com/istanbuljs/istanbuljs/commit/8a96613)) | ||
### BREAKING CHANGES | ||
* was added which requires an option for the `decorators` | ||
plugin. Add it to get tests working again, commit updated api.md. | ||
<a name="2.3.2"></a> | ||
@@ -8,0 +31,0 @@ ## [2.3.2](https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@2.3.1...istanbul-lib-instrument@2.3.2) (2018-07-24) |
@@ -7,2 +7,8 @@ "use strict"; | ||
exports.createInstrumenter = createInstrumenter; | ||
Object.defineProperty(exports, "defaultOpts", { | ||
enumerable: true, | ||
get: function get() { | ||
return _instrumenter.defaultOpts; | ||
} | ||
}); | ||
Object.defineProperty(exports, "programVisitor", { | ||
@@ -21,3 +27,3 @@ enumerable: true, | ||
var _instrumenter = _interopRequireDefault(require("./instrumenter")); | ||
var _instrumenter = _interopRequireWildcard(require("./instrumenter")); | ||
@@ -30,2 +36,4 @@ var _visitor = _interopRequireDefault(require("./visitor")); | ||
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,0 +40,0 @@ * createInstrumenter creates a new instrumenter with the |
@@ -6,2 +6,3 @@ "use strict"; | ||
}); | ||
exports.defaultOpts = defaultOpts; | ||
exports.default = void 0; | ||
@@ -37,3 +38,4 @@ | ||
sourceMapUrlCallback: null, | ||
debug: false | ||
debug: false, | ||
plugins: ['asyncGenerators', 'dynamicImport', 'objectRestSpread', 'optionalCatchBinding', 'flow', 'jsx'] | ||
}; | ||
@@ -57,2 +59,3 @@ } | ||
* @param {boolean} [opts.debug=false] - turn debugging on | ||
* @param {array} [opts.plugins=['asyncGenerators','dynamicImport','objectRestSpread','optionalCatchBinding','flow','jsx']] - set plugins | ||
*/ | ||
@@ -112,3 +115,3 @@ | ||
sourceType: opts.esModules ? "module" : "script", | ||
plugins: ['asyncGenerators', 'dynamicImport', 'objectRestSpread', 'optionalCatchBinding', 'flow', 'jsx'] | ||
plugins: opts.plugins | ||
}); | ||
@@ -115,0 +118,0 @@ const ee = (0, _visitor.default)(t, filename, { |
{ | ||
"name": "istanbul-lib-instrument", | ||
"version": "2.3.2", | ||
"version": "3.0.0", | ||
"description": "Core istanbul API for JS code coverage", | ||
@@ -17,7 +17,7 @@ "author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>", | ||
"dependencies": { | ||
"@babel/generator": "7.0.0-beta.51", | ||
"@babel/parser": "7.0.0-beta.51", | ||
"@babel/template": "7.0.0-beta.51", | ||
"@babel/traverse": "7.0.0-beta.51", | ||
"@babel/types": "7.0.0-beta.51", | ||
"@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.1", | ||
@@ -27,10 +27,8 @@ "semver": "^5.5.0" | ||
"devDependencies": { | ||
"@babel/cli": "7.0.0-beta.51", | ||
"@babel/core": "7.0.0-beta.51", | ||
"@babel/preset-env": "7.0.0-beta.51", | ||
"@babel/register": "7.0.0-beta.51", | ||
"@babel/cli": "^7.0.0", | ||
"@babel/core": "^7.0.0", | ||
"@babel/preset-env": "^7.0.0", | ||
"@babel/register": "^7.0.0", | ||
"chai": "^4.1.2", | ||
"clone": "^2.1.1", | ||
"coveralls": "^3.0.1", | ||
"cross-env": "^5.1.6", | ||
"debug": "^3.1.0", | ||
@@ -37,0 +35,0 @@ "documentation": "^7.1.0", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
51406
12
888
0
+ Added@babel/code-frame@7.26.2(transitive)
+ Added@babel/generator@7.26.2(transitive)
+ Added@babel/helper-string-parser@7.25.9(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Added@babel/parser@7.26.2(transitive)
+ Added@babel/template@7.25.9(transitive)
+ Added@babel/traverse@7.25.9(transitive)
+ Added@babel/types@7.26.0(transitive)
+ Added@jridgewell/gen-mapping@0.3.5(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjsesc@3.0.2(transitive)
+ Addedpicocolors@1.1.1(transitive)
- Removed@babel/code-frame@7.0.0-beta.51(transitive)
- Removed@babel/generator@7.0.0-beta.51(transitive)
- Removed@babel/helper-function-name@7.0.0-beta.51(transitive)
- Removed@babel/helper-get-function-arity@7.0.0-beta.51(transitive)
- Removed@babel/helper-split-export-declaration@7.0.0-beta.51(transitive)
- Removed@babel/highlight@7.0.0-beta.51(transitive)
- Removed@babel/parser@7.0.0-beta.51(transitive)
- Removed@babel/template@7.0.0-beta.51(transitive)
- Removed@babel/traverse@7.0.0-beta.51(transitive)
- Removed@babel/types@7.0.0-beta.51(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removeddebug@3.2.7(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedesutils@2.0.3(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedinvariant@2.2.4(transitive)
- Removedjs-tokens@3.0.2(transitive)
- Removedjsesc@2.5.2(transitive)
- Removedlodash@4.17.21(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedsource-map@0.5.7(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedto-fast-properties@2.0.0(transitive)
- Removedtrim-right@1.0.1(transitive)
Updated@babel/generator@^7.0.0
Updated@babel/parser@^7.0.0
Updated@babel/template@^7.0.0
Updated@babel/traverse@^7.0.0
Updated@babel/types@^7.0.0