Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-debug-macros

Package Overview
Dependencies
Maintainers
1
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.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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc