Socket
Socket
Sign inDemoInstall

istanbul-lib-instrument

Package Overview
Dependencies
34
Maintainers
3
Versions
74
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.2 to 3.0.0

23

CHANGELOG.md

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

10

dist/index.js

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

7

dist/instrumenter.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc