babel-plugin-debug-macros
Advanced tools
Comparing version 0.3.0 to 0.3.1
# Changelog | ||
## v0.3.1 (2019-04-11) | ||
#### :rocket: Enhancement | ||
* [#77](https://github.com/ember-cli/babel-plugin-debug-macros/pull/77) Remove requirement for 'debugTools' options ([@chadhietala](https://github.com/chadhietala)) | ||
#### Committers: 1 | ||
- Chad Hietala ([@chadhietala](https://github.com/chadhietala)) | ||
## v0.3.0 (2019-01-29) | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "babel-plugin-debug-macros", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Debug macros and feature flag stripping", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -18,3 +18,3 @@ # Babel Debug Macros And Feature Flags | ||
['babel-debug-macros', { | ||
// @required | ||
// @optional | ||
debugTools: { | ||
@@ -21,0 +21,0 @@ isDebug: true, |
@@ -6,8 +6,8 @@ 'use strict'; | ||
function parseDebugTools(options) { | ||
let debugTools = options.debugTools || {}; | ||
let debugTools = options.debugTools || { | ||
isDebug: false, | ||
source: '', | ||
assertPredicateIndex: undefined, | ||
}; | ||
if (!debugTools) { | ||
throw new Error('You must specify `debugTools.source`'); | ||
} | ||
let isDebug = debugTools.isDebug; | ||
@@ -21,6 +21,2 @@ let debugToolsImport = debugTools.source; | ||
if (isDebug === undefined) { | ||
throw new Error('You must specify `debugTools.isDebug`'); | ||
} | ||
return { | ||
@@ -27,0 +23,0 @@ isDebug, |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
285514
87
1605
2