Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-react-constant-elements

Package Overview
Dependencies
Maintainers
6
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-react-constant-elements - npm Package Compare versions

Comparing version 7.8.3 to 7.9.0

13

lib/index.js

@@ -12,6 +12,2 @@ "use strict";

var _helperAnnotateAsPure = _interopRequireDefault(require("@babel/helper-annotate-as-pure"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _default = (0, _helperPluginUtils.declare)((api, options) => {

@@ -98,10 +94,3 @@ api.assertVersion(7);

path.traverse(immutabilityVisitor, state);
if (state.isImmutable) {
const hoisted = path.hoist();
if (hoisted) {
(0, _helperAnnotateAsPure.default)(hoisted);
}
}
if (state.isImmutable) path.hoist();
}

@@ -108,0 +97,0 @@

7

package.json
{
"name": "@babel/plugin-transform-react-constant-elements",
"version": "7.8.3",
"version": "7.9.0",
"description": "Treat React JSX elements as value types and hoist them to the highest scope",

@@ -15,3 +15,2 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-react-constant-elements",

"dependencies": {
"@babel/helper-annotate-as-pure": "^7.8.3",
"@babel/helper-plugin-utils": "^7.8.3"

@@ -23,6 +22,6 @@ },

"devDependencies": {
"@babel/core": "^7.8.3",
"@babel/core": "^7.9.0",
"@babel/helper-plugin-test-runner": "^7.8.3"
},
"gitHead": "a7620bd266ae1345975767bbc7abf09034437017"
"gitHead": "8d5e422be27251cfaadf8dd2536b31b4a5024b02"
}
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