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

babel-preset-expo

Package Overview
Dependencies
Maintainers
28
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-expo - npm Package Compare versions

Comparing version 12.0.0-preview.5 to 12.0.0-preview.6

6

build/server-actions-plugin.js

@@ -100,3 +100,3 @@ "use strict";

// Create a top-level declaration for the extracted function.
const bindingKind = 'const';
const bindingKind = 'var';
const functionDeclaration = t.exportNamedDeclaration(t.variableDeclaration(bindingKind, [

@@ -298,3 +298,3 @@ t.variableDeclarator(extractedIdentifier, extractedFunctionExpr),

// Replace `export default foo = async () => {}` with `const foo = async () => {}`
path.replaceWith(t.variableDeclaration('const', [t.variableDeclarator(id, right)]));
path.replaceWith(t.variableDeclaration('var', [t.variableDeclarator(id, right)]));
// Insert `(() => _registerServerReference(foo, "file:///unknown", "default"))();`

@@ -311,3 +311,3 @@ path.insertAfter(t.exportNamedDeclaration(null, [exportedSpecifier]));

// @ts-expect-error: Transform `export default async () => {}` to `const $$INLINE_ACTION = async () => {}`
path.node.declaration = t.variableDeclaration('const', [
path.node.declaration = t.variableDeclaration('var', [
t.variableDeclarator(extractedIdentifier, path.node.declaration),

@@ -314,0 +314,0 @@ ]);

{
"name": "babel-preset-expo",
"version": "12.0.0-preview.5",
"version": "12.0.0-preview.6",
"description": "The Babel preset for Expo projects",

@@ -73,3 +73,3 @@ "main": "build/index.js",

},
"gitHead": "d97ae0839fa465cee14e13ca38f3c6c84c124d82"
"gitHead": "9c8be1c4186d8ff93433db9afa3b6a92fc5f7dcc"
}
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