Socket
Socket
Sign inDemoInstall

metro-react-native-babel-preset

Package Overview
Dependencies
37
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.53.1 to 0.54.0

4

package.json
{
"name": "metro-react-native-babel-preset",
"version": "0.53.1",
"version": "0.54.0",
"description": "Babel preset for React Native applications",

@@ -55,3 +55,3 @@ "main": "src/index.js",

"@babel/template": "^7.0.0",
"metro-babel7-plugin-react-transform": "0.53.1",
"metro-babel7-plugin-react-transform": "0.54.0",
"react-transform-hmr": "^1.0.4"

@@ -58,0 +58,0 @@ },

@@ -123,2 +123,6 @@ /**

function unstable_disableES6Transforms(options) {
return !!(options && options.unstable_disableES6Transforms);
}
const getPreset = (src, options) => {

@@ -179,3 +183,6 @@ const isNull = src == null;

if (hasForOf || src.indexOf("Symbol") !== -1) {
if (
!unstable_disableES6Transforms(options) &&
(hasForOf || src.indexOf("Symbol") !== -1)
) {
extraPlugins.push(symbolMember);

@@ -182,0 +189,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc