Socket
Socket
Sign inDemoInstall

@expo/config

Package Overview
Dependencies
Maintainers
27
Versions
229
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expo/config - npm Package Compare versions

Comparing version 9.0.0 to 9.0.1

13

build/Config.js

@@ -123,2 +123,4 @@ "use strict";

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
let hasWarnedAboutRootConfig = false;
/**

@@ -132,2 +134,13 @@ * If a config has an `expo` object then that will be used as the config.

if (!config) return config === undefined ? null : config;
if (config.expo && !hasWarnedAboutRootConfig) {
const keys = Object.keys(config).filter(key => key !== 'expo');
if (keys.length) {
hasWarnedAboutRootConfig = true;
const ansiYellow = str => `\u001B[33m${str}\u001B[0m`;
const ansiGray = str => `\u001B[90m${str}\u001B[0m`;
const ansiBold = str => `\u001B[1m${str}\u001B[22m`;
const plural = keys.length > 1;
console.warn(ansiYellow(ansiBold('Warning: ') + `Root-level ${ansiBold(`"expo"`)} object found. Ignoring extra key${plural ? 's' : ''} in Expo config: ${keys.map(key => `"${key}"`).join(', ')}\n` + ansiGray(`Learn more: https://expo.fyi/root-expo-object`)));
}
}
const {

@@ -134,0 +147,0 @@ mods,

4

package.json
{
"name": "@expo/config",
"version": "9.0.0",
"version": "9.0.1",
"description": "A library for interacting with the app.json",

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

},
"gitHead": "4165b8d72e1b9a1889c2767534cc619e21468110"
"gitHead": "f8f9d041c6467f325b58c7913e0f5ed1af102e11"
}

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