@expo/config
Advanced tools
Comparing version 9.0.0 to 9.0.1
@@ -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, |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
151487
1824