Socket
Socket
Sign inDemoInstall

@react-native-community/cli-config

Package Overview
Dependencies
Maintainers
30
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native-community/cli-config - npm Package Compare versions

Comparing version 14.0.0-alpha.2 to 14.0.0-alpha.3

1

build/loadConfig.js

@@ -85,2 +85,3 @@ "use strict";

platforms: userConfig.platforms,
assets: userConfig.assets,
get project() {

@@ -87,0 +88,0 @@ if (lazyProject) {

15

build/readConfigFromDisk.js

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

function _cosmiconfig() {
const data = _interopRequireDefault(require("cosmiconfig"));
const data = require("cosmiconfig");
_cosmiconfig = function () {

@@ -32,9 +32,9 @@ return data;

}
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* Places to look for the configuration file.
*/
const searchPlaces = ['react-native.config.js'];
const searchPlaces = ['react-native.config.js', 'react-native.config.ts'];

@@ -46,7 +46,6 @@ /**

function readConfigFromDisk(rootFolder) {
const explorer = (0, _cosmiconfig().default)('react-native', {
searchPlaces,
const explorer = (0, _cosmiconfig().cosmiconfigSync)('react-native', {
stopDir: rootFolder
});
const searchResult = explorer.searchSync(rootFolder);
const searchResult = explorer.search(rootFolder);
const config = searchResult ? searchResult.config : undefined;

@@ -65,7 +64,7 @@ const result = schema.projectConfig.validate(config);

function readDependencyConfigFromDisk(rootFolder, dependencyName) {
const explorer = (0, _cosmiconfig().default)('react-native', {
const explorer = (0, _cosmiconfig().cosmiconfigSync)('react-native', {
stopDir: rootFolder,
searchPlaces
});
const searchResult = explorer.searchSync(rootFolder);
const searchResult = explorer.search(rootFolder);
const config = searchResult ? searchResult.config : emptyDependencyConfig;

@@ -72,0 +71,0 @@ const result = schema.dependencyConfig.validate(config, {

@@ -144,3 +144,4 @@ "use strict";

unstable_reactLegacyComponentNames: _joi().default.array().items(_joi().default.string()).optional(),
automaticPodsInstallation: _joi().default.bool().default(false)
automaticPodsInstallation: _joi().default.bool().default(false),
assets: _joi().default.array().items(_joi().default.string()).default([])
}).default({}),

@@ -157,3 +158,4 @@ android: _joi().default

// @todo remove for RN 0.75
unstable_reactLegacyComponentNames: _joi().default.array().items(_joi().default.string()).optional()
unstable_reactLegacyComponentNames: _joi().default.array().items(_joi().default.string()).optional(),
assets: _joi().default.array().items(_joi().default.string()).default([])
}).default({})

@@ -160,0 +162,0 @@ }).default(),

{
"name": "@react-native-community/cli-config",
"version": "14.0.0-alpha.2",
"version": "14.0.0-alpha.3",
"license": "MIT",

@@ -11,5 +11,5 @@ "main": "build/index.js",

"dependencies": {
"@react-native-community/cli-tools": "14.0.0-alpha.2",
"@react-native-community/cli-tools": "14.0.0-alpha.3",
"chalk": "^4.1.2",
"cosmiconfig": "^5.1.0",
"cosmiconfig": "^9.0.0",
"deepmerge": "^4.3.0",

@@ -25,3 +25,3 @@ "fast-glob": "^3.3.2",

"devDependencies": {
"@react-native-community/cli-types": "14.0.0-alpha.2",
"@react-native-community/cli-types": "14.0.0-alpha.3",
"@types/cosmiconfig": "^5.0.3"

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

},
"gitHead": "61b6be6b86152fa9b6036968a15d7189de04ace8"
"gitHead": "be880b86cdb3f4ea104cf232b95d11f84613321b"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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