Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@expo/config

Package Overview
Dependencies
Maintainers
0
Versions
245
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.3-canary-20240627-1402f4b to 9.1.0-canary-20240628-1ba8152

56

build/Config.js

@@ -358,35 +358,33 @@ "use strict";

};
} else if (config.staticConfigPath) {
// Static with no dynamic config, this means we can append to the config automatically.
let outputConfig;
// If the config has an expo object (app.json) then append the options to that object.
if (config.rootConfig.expo) {
outputConfig = {
...config.rootConfig,
expo: {
...config.rootConfig.expo,
...modifications
}
};
} else {
// Otherwise (app.config.json) just add the config modification to the top most level.
outputConfig = {
...config.rootConfig,
} else if (config.staticConfigPath == null) {
// No config in the project, use a default location.
config.staticConfigPath = _path().default.join(projectRoot, 'app.json');
}
// Static with no dynamic config, this means we can append to the config automatically.
let outputConfig;
// If the config has an expo object (app.json) then append the options to that object.
if (config.rootConfig.expo) {
outputConfig = {
...config.rootConfig,
expo: {
...config.rootConfig.expo,
...modifications
};
}
if (!writeOptions.dryRun) {
await _jsonFile().default.writeAsync(config.staticConfigPath, outputConfig, {
json5: false
});
}
return {
type: 'success',
config: outputConfig
}
};
} else {
// Otherwise (app.config.json) just add the config modification to the top most level.
outputConfig = {
...config.rootConfig,
...modifications
};
}
if (!writeOptions.dryRun) {
await _jsonFile().default.writeAsync(config.staticConfigPath, outputConfig, {
json5: false
});
}
return {
type: 'fail',
message: 'No config exists',
config: null
type: 'success',
config: outputConfig
};

@@ -393,0 +391,0 @@ }

{
"name": "@expo/config",
"version": "9.0.3-canary-20240627-1402f4b",
"version": "9.1.0-canary-20240628-1ba8152",
"description": "A library for interacting with the app.json",

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

"@babel/code-frame": "~7.10.4",
"@expo/config-plugins": "8.0.6-canary-20240627-1402f4b",
"@expo/config-types": "52.0.0-canary-20240627-1402f4b",
"@expo/json-file": "8.3.4-canary-20240627-1402f4b",
"@expo/config-plugins": "8.0.7-canary-20240628-1ba8152",
"@expo/config-types": "52.0.0-canary-20240628-1ba8152",
"@expo/json-file": "8.3.4-canary-20240628-1ba8152",
"getenv": "^1.0.0",

@@ -51,3 +51,3 @@ "glob": "7.1.6",

"@types/require-from-string": "^1.2.1",
"expo-module-scripts": "3.6.0-canary-20240627-1402f4b"
"expo-module-scripts": "3.6.0-canary-20240628-1ba8152"
},

@@ -57,3 +57,3 @@ "publishConfig": {

},
"gitHead": "1402f4bcfdfcec328fc1e20cf1656bbefe7c3b7b"
"gitHead": "1ba815237ed606c5ee8488f68e49773fc9735cc3"
}

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