@expo/fingerprint
Advanced tools
Comparing version 0.10.1 to 0.10.2
@@ -18,4 +18,7 @@ "use strict"; | ||
async function loadConfigAsync(projectRoot, silent = false) { | ||
const configFile = await resolveConfigFileAsync(projectRoot); | ||
if (!configFile) { | ||
let configFile; | ||
try { | ||
configFile = await resolveConfigFileAsync(projectRoot); | ||
} | ||
catch { | ||
return null; | ||
@@ -55,10 +58,9 @@ } | ||
async function resolveConfigFileAsync(projectRoot) { | ||
return await Promise.race(CONFIG_FILES.map(async (file) => { | ||
return await Promise.any(CONFIG_FILES.map(async (file) => { | ||
const configPath = path_1.default.resolve(projectRoot, file); | ||
try { | ||
const stat = await promises_1.default.stat(configPath); | ||
return stat.isFile() ? configPath : null; | ||
const stat = await promises_1.default.stat(configPath); | ||
if (!stat.isFile()) { | ||
throw new Error(`Config file is not a file: ${configPath}`); | ||
} | ||
catch { } | ||
return null; | ||
return configPath; | ||
})); | ||
@@ -65,0 +67,0 @@ } |
{ | ||
"name": "@expo/fingerprint", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"description": "A library to generate a fingerprint from a React Native project", | ||
@@ -60,3 +60,3 @@ "main": "build/index.js", | ||
}, | ||
"gitHead": "d8434a8d6017606a9cc92f179c4cfd8ce5aa7f36" | ||
"gitHead": "c36230e565489a9bbc214704b48a4b266520d157" | ||
} |
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
141293
2122