Socket
Socket
Sign inDemoInstall

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

Package Overview
Dependencies
Maintainers
34
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 14.0.1 to 14.1.0

21

build/config/findPackageClassName.js

@@ -60,7 +60,22 @@ "use strict";

let packages = getClassNameMatches(files, folder);
if (!packages.length) {
files = getMainActivityFiles(folder, false);
packages = getClassNameMatches(files, folder);
if (packages && packages.length > 0 && Array.isArray(packages[0])) {
return packages[0][1];
}
/*
When module contains `expo-module.config.json` we return null
because expo modules follow other practices and don't implement
ReactPackage/TurboReactPackage directly, so it doesn't make sense
to scan and read hundreds of files to get package class name.
Exception is `expo` package itself which contains `expo-module.config.json`
and implements `ReactPackage/TurboReactPackage`.
Following logic is done due to performance optimization.
*/
if (_fs().default.existsSync(_path().default.join(folder, '..', 'expo-module.config.json'))) {
return null;
}
files = getMainActivityFiles(folder, false);
packages = getClassNameMatches(files, folder);
// @ts-ignore

@@ -67,0 +82,0 @@ return packages.length ? packages[0][1] : null;

10

package.json
{
"name": "@react-native-community/cli-platform-android",
"version": "14.0.1",
"version": "14.1.0",
"license": "MIT",

@@ -10,7 +10,7 @@ "main": "build/index.js",

"dependencies": {
"@react-native-community/cli-tools": "14.0.1",
"@react-native-community/cli-tools": "14.1.0",
"chalk": "^4.1.2",
"execa": "^5.0.0",
"fast-glob": "^3.3.2",
"fast-xml-parser": "^4.2.4",
"fast-xml-parser": "^4.4.1",
"logkitty": "^0.7.1"

@@ -25,3 +25,3 @@ },

"devDependencies": {
"@react-native-community/cli-types": "14.0.1",
"@react-native-community/cli-types": "14.1.0",
"@types/fs-extra": "^8.1.0"

@@ -35,3 +35,3 @@ },

},
"gitHead": "18e8dbaba3ede0db9fe3290dab8678ce79072f2b"
"gitHead": "9eb448fe7286bdf5f12a820c75be4ef0cf5eef67"
}

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