Socket
Socket
Sign inDemoInstall

@react-native-community/cli-platform-ios

Package Overview
Dependencies
Maintainers
31
Versions
203
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native-community/cli-platform-ios - npm Package Compare versions

Comparing version 2.9.0 to 2.10.0

19

build/commands/runIOS/index.js

@@ -135,5 +135,20 @@ "use strict";

}
/**
* If provided simulator does not exist, try simulators in following order
* - iPhone X
* - iPhone 8
*/
const selectedSimulator = (0, _findMatchingSimulator.default)(simulators, args.simulator);
/**
* Flow does not properly infer the type of the second argument to reduce().
* See https://github.com/facebook/flow/issues/5182.
* TODO [flow-bin@>=0.107.0]: Remove workaround.
*/
const fallbackSimulators = ['iPhone X', 'iPhone 8'];
const selectedSimulator = fallbackSimulators.reduce((simulator, fallback) => {
return simulator || (0, _findMatchingSimulator.default)(simulators, fallback);
}, (0, _findMatchingSimulator.default)(simulators, args.simulator));
if (!selectedSimulator) {

@@ -391,3 +406,3 @@ throw new (_cliTools().CLIError)(`Could not find "${args.simulator}" simulator`);

description: 'Explicitly set simulator to use. Optionally include iOS version between' + 'parenthesis at the end to match an exact version: "iPhone 6 (10.0)"',
default: 'iPhone X'
default: 'iPhone 11'
}, {

@@ -394,0 +409,0 @@ name: '--configuration [string]',

4

package.json
{
"name": "@react-native-community/cli-platform-ios",
"version": "2.9.0",
"version": "2.10.0",
"license": "MIT",

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

],
"gitHead": "e7784f51d834471fde9e15dc1fa72b3b72e384e1"
"gitHead": "ca9947dd066755d28c1e6d4c16a8c9338a661eb7"
}
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