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

babel-preset-expo

Package Overview
Dependencies
Maintainers
0
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.3 to 12.0.0-preview.4

6

build/environment-restricted-imports.js

@@ -10,4 +10,4 @@ "use strict";

const { types: t } = api;
const isAnyServerEnvironment = api.caller(common_1.getIsReactServer) || api.caller(common_1.getIsServer);
const forbiddenPackages = isAnyServerEnvironment
const isReactServer = api.caller(common_1.getIsReactServer);
const forbiddenPackages = isReactServer
? FORBIDDEN_REACT_SERVER_IMPORTS

@@ -18,3 +18,3 @@ : FORBIDDEN_CLIENT_IMPORTS;

if (source === forbiddenImport) {
if (isAnyServerEnvironment) {
if (isReactServer) {
throw path.buildCodeFrameError(`Importing '${forbiddenImport}' module is not allowed in a React server bundle. Add the "use client" directive to this file or one of the parent modules to allow importing this module.`);

@@ -21,0 +21,0 @@ }

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

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

},
"gitHead": "d5b7ec4949eb461634b2f02a1a0ff1df2a0e2a21"
"gitHead": "1f7a56b5a5bcef23ac6e55b16db53077f6a4065c"
}
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