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

babel-plugin-transform-define

Package Overview
Dependencies
Maintainers
19
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-define - npm Package Compare versions

Comparing version 2.1.3 to 2.1.4

6

CHANGELOG.md
# Changelog
## 2.1.4
### Patch Changes
- follow-up to last release, also prevent object properties from being replaced ([#88](https://github.com/FormidableLabs/babel-plugin-transform-define/pull/88))
## 2.1.3

@@ -4,0 +10,0 @@

3

lib/index.js

@@ -100,4 +100,5 @@ "use strict";

|| isImportIdentifier(nodePath)
// Do not transform Object keys unless they are computed like {[key]: value}
// Do not transform Object keys / properties unless they are computed like {[key]: value}
|| nodePath.key === "key" && nodePath.parent.computed === false
|| nodePath.key === "property" && nodePath.parent.computed === false
) {

@@ -104,0 +105,0 @@ return;

{
"name": "babel-plugin-transform-define",
"description": "Babel plugin that replaces member expressions and typeof statements with strings",
"version": "2.1.3",
"version": "2.1.4",
"contributors": [

@@ -6,0 +6,0 @@ "Eric Baer <me@ericbaer.com> (https://github.com/baer)",

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