@expo/config
Advanced tools
+15
-7
@@ -315,8 +315,13 @@ "use strict"; | ||
| } | ||
| const DYNAMIC_CONFIG_EXTS = ['.ts', '.mts', '.cts', '.mjs', '.cjs', '.js']; | ||
| function getDynamicConfigFilePath(projectRoot) { | ||
| for (const fileName of ['app.config.ts', 'app.config.js']) { | ||
| const fileNames = DYNAMIC_CONFIG_EXTS.map(ext => `app.config${ext}`); | ||
| for (const fileName of fileNames) { | ||
| const configPath = _path().default.join(projectRoot, fileName); | ||
| if (_fs().default.existsSync(configPath)) { | ||
| return configPath; | ||
| } | ||
| try { | ||
| const stat = _fs().default.statSync(configPath); | ||
| if (stat.isFile()) { | ||
| return configPath; | ||
| } | ||
| } catch {} | ||
| } | ||
@@ -328,5 +333,8 @@ return null; | ||
| const configPath = _path().default.join(projectRoot, fileName); | ||
| if (_fs().default.existsSync(configPath)) { | ||
| return configPath; | ||
| } | ||
| try { | ||
| const stat = _fs().default.statSync(configPath); | ||
| if (stat.isFile()) { | ||
| return configPath; | ||
| } | ||
| } catch {} | ||
| } | ||
@@ -333,0 +341,0 @@ return null; |
+3
-3
| { | ||
| "name": "@expo/config", | ||
| "version": "55.0.6", | ||
| "version": "55.0.7", | ||
| "description": "A library for interacting with the app.json", | ||
@@ -39,3 +39,3 @@ "main": "build/index.js", | ||
| "@expo/json-file": "^10.0.12", | ||
| "@expo/require-utils": "^55.0.0", | ||
| "@expo/require-utils": "^55.0.1", | ||
| "deepmerge": "^4.3.1", | ||
@@ -56,3 +56,3 @@ "getenv": "^2.0.0", | ||
| }, | ||
| "gitHead": "aeb65063e482533ed1119f736555bcca5af2af94" | ||
| "gitHead": "22e2ad4afba05b91f833f8cf07a36637748a1f70" | ||
| } |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
157428
0.57%1861
0.43%Updated