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

@expo/dev-server

Package Overview
Dependencies
Maintainers
22
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expo/dev-server - npm Package Compare versions

Comparing version 0.4.1 to 0.5.0

8

build/HermesBundler.js

@@ -155,8 +155,8 @@ "use strict";

// Check android/app/build.gradle for "enableHermes: true"
// Check android/app/build.gradle for "enableHermes: true", for SDK < 48
const appBuildGradlePath = _path().default.join(projectRoot, 'android', 'app', 'build.gradle');
if (_fsExtra().default.existsSync(appBuildGradlePath)) {
const content = await _fsExtra().default.readFile(appBuildGradlePath, 'utf8');
const isPropsReference = content.search(/^\s*(enableHermes:|hermesEnabled\s*=)\s*\(findProperty\('expo.jsEngine'\) \?: "(jsc|hermes)"\) == "hermes",?\s+/m) >= 0;
const isHermesBare = content.search(/^\s*(enableHermes:|hermesEnabled\s*=)\s*true,?\s+/m) >= 0;
const isPropsReference = content.search(/^\s*enableHermes:\s*\(findProperty\('expo.jsEngine'\) \?: "jsc"\) == "hermes",?\s+/m) >= 0;
const isHermesBare = content.search(/^\s*enableHermes:\s*true,?\s+/m) >= 0;
if (!isPropsReference && isHermesManaged !== isHermesBare) {

@@ -171,3 +171,3 @@ return true;

const props = parseGradleProperties(await _fsExtra().default.readFile(gradlePropertiesPath, 'utf8'));
const isHermesBare = props['expo.jsEngine'] === 'hermes';
const isHermesBare = props['expo.jsEngine'] === 'hermes' || props['hermesEnabled'] === 'true';
if (isHermesManaged !== isHermesBare) {

@@ -174,0 +174,0 @@ return true;

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

// Dangerously pick the platform out of the request URL
// like: http:\\\\/\\\\/192.168.6.113:19000\\\\/index.bundle&platform=android\dev=true&hot=false&minify=false
// like: http:\\\\/\\\\/192.168.6.113:8081\\\\/index.bundle&platform=android\dev=true&hot=false&minify=false
return (_body$0$match$ = (_body$0$match = body[0].match(/[?|&]platform=(\w+)[&|\\]/)) === null || _body$0$match === void 0 ? void 0 : _body$0$match[1]) !== null && _body$0$match$ !== void 0 ? _body$0$match$ : null;

@@ -62,0 +62,0 @@ }

{
"name": "@expo/dev-server",
"version": "0.4.1",
"version": "0.5.0",
"description": "Development servers for starting React Native projects",

@@ -34,3 +34,3 @@ "main": "build/MetroDevServer.js",

"@expo/bunyan": "4.0.0",
"@expo/metro-config": "~0.9.0",
"@expo/metro-config": "~0.10.0",
"@expo/osascript": "2.0.33",

@@ -57,3 +57,3 @@ "@expo/spawn-async": "^1.5.0",

},
"gitHead": "66d0501185956602c144a03a891bdb34d3c03910"
"gitHead": "fa5ecca8251986b9f197cc14074eec0ab6dfb6db"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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