Socket
Socket
Sign inDemoInstall

babel-plugin-debug-macros

Package Overview
Dependencies
1
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.6 to 0.1.7

5

dist/lib/utils/macros.js

@@ -101,2 +101,4 @@ 'use strict';

value: function _inlineEnvFlags(path) {
var _this = this;
var envFlags = this.envFlags,

@@ -107,3 +109,4 @@ builder = this.builder;

var binding = path.scope.getBinding(flag);
if (binding) {
if (binding && binding.path.isImportSpecifier() && binding.path.parent.source.value === _this.envFlagsSource) {
binding.referencePaths.forEach(function (p) {

@@ -110,0 +113,0 @@ return p.replaceWith(builder.t.booleanLiteral(envFlags[flag]));

2

package.json

@@ -13,3 +13,3 @@ {

"name": "babel-plugin-debug-macros",
"version": "0.1.6",
"version": "0.1.7",
"description": "Debug macros and feature flag stripping",

@@ -16,0 +16,0 @@ "main": "dist/index.js",

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