New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-transform-cup-globals

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-cup-globals - npm Package Compare versions

Comparing version 1.0.0-rc.1 to 1.0.0-rc.2

8

index.js

@@ -18,3 +18,3 @@ module.exports = babel => {

const {name} = path.node;
if (name !== '__DEV__' && name !== '__TARGET__') {
if (name !== '__DEV__' && name !== '__NODE__' && name !== '__BROWSER__') {
return;

@@ -35,7 +35,7 @@ }

const target = state.opts.target;
path.replaceWith(t.stringLiteral(target));
path.replaceWith(t.booleanLiteral(target === name));
}
}
}
},
},
};
};
{
"name": "babel-plugin-transform-cup-globals",
"version": "1.0.0-rc.1",
"version": "1.0.0-rc.2",
"description": "Babel plugin for transforming create-universal-package globals",

@@ -5,0 +5,0 @@ "author": "Ryan Tsao <ryan.j.tsao@gmail.com>",

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