@propeller-commerce/propeller-v2-react-ui 0.23.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2787,7 +2787,8 @@ function machineLanguageCandidates(machineLanguage, language, extra) {
|
|
|
2787
2787
|
async function resolveMachineAcrossLanguages(candidates, fetchOne) {
|
|
2788
2788
|
for (const language of candidates) {
|
|
2789
2789
|
try {
|
|
2790
|
-
|
|
2790
|
+
const machine = await fetchOne(language);
|
|
2791
|
+
if (machine !== null && machine !== void 0) return { machine, language };
|
|
2791
2792
|
} catch (error) {
|
|
2792
2793
|
if (!isMachineNotFound(error)) throw error;
|
|
2793
2794
|
}
|