Socket
Socket
Sign inDemoInstall

babel-plugin-debug-macros

Package Overview
Dependencies
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-debug-macros - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

8

CHANGELOG.md
# 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 @@

3

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc