babel-plugin-debug-macros
Advanced tools
Comparing version 0.3.1 to 0.3.2
# Changelog | ||
## v0.3.2 (2019-06-20) | ||
#### :bug: Bug Fix | ||
* [#79](https://github.com/ember-cli/babel-plugin-debug-macros/pull/79) [BUGFIX] if our ancestor import declaration is removed short-circuit … ([@stefanpenner](https://github.com/stefanpenner)) | ||
#### Committers: 1 | ||
- Stefan Penner ([@stefanpenner](https://github.com/stefanpenner)) | ||
## v0.3.1 (2019-04-11) | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "babel-plugin-debug-macros", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Debug macros and feature flag stripping", | ||
@@ -41,2 +41,3 @@ "keywords": [ | ||
"babel-preset-env": "^1.6.1", | ||
"chai": "^4.2.0", | ||
"eslint": "^4.19.1", | ||
@@ -43,0 +44,0 @@ "eslint-config-prettier": "^2.9.0", |
@@ -16,3 +16,3 @@ 'use strict'; | ||
global: this.debugHelpers.global, | ||
assertPredicateIndex: options.debugTools.assertPredicateIndex, | ||
assertPredicateIndex: options.debugTools && options.debugTools.assertPredicateIndex, | ||
isDebug: options.debugTools.isDebug, | ||
@@ -61,4 +61,7 @@ }); | ||
if (this.localDebugBindings.length > 0) { | ||
this.localDebugBindings[0].parentPath.parentPath; | ||
let importPath = this.localDebugBindings[0].findParent(p => p.isImportDeclaration()); | ||
if (importPath === null) { | ||
// import declaration in question seems to have already been removed | ||
return; | ||
} | ||
let specifiers = importPath.get('specifiers'); | ||
@@ -65,0 +68,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
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
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
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
0
24181
12
7
449