orchestrar 0.3.1 → 0.3.2
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/orchestrator.js +5 -1
- package/package.json +1 -1
package/orchestrator.js
CHANGED
|
@@ -446,7 +446,11 @@ async function fileExists(filePath) {
|
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
448
|
|
|
449
|
-
function unwrap(result, label) {
|
|
449
|
+
async function unwrap(result, label) {
|
|
450
|
+
if (result && typeof result.then === "function") {
|
|
451
|
+
result = await result;
|
|
452
|
+
}
|
|
453
|
+
|
|
450
454
|
if (!result || typeof result !== "object") {
|
|
451
455
|
return result;
|
|
452
456
|
}
|