abler-api 0.1.67 → 0.1.68
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/dist/cjs/pp-util.js +20 -16
- package/package.json +1 -1
package/dist/cjs/pp-util.js
CHANGED
|
@@ -1643,25 +1643,29 @@ class preconditions$1 {
|
|
|
1643
1643
|
}
|
|
1644
1644
|
|
|
1645
1645
|
static async checkAll() {
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1646
|
+
try {
|
|
1647
|
+
// for (let i = 0; i < preconditions.checkFunctions.length; i++) {
|
|
1648
|
+
// const f = preconditions.checkFunctions[i];
|
|
1649
|
+
// // preconditions.addCheckPromise(f.check(f.args));
|
|
1650
|
+
// preconditions.pushMessage(await f.check(f.args));
|
|
1651
|
+
// }
|
|
1652
|
+
while (preconditions$1.checkFunctions.length > 0) {
|
|
1653
|
+
const f = preconditions$1.checkFunctions.shift();
|
|
1653
1654
|
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1655
|
+
if (preconditions$1.pushMessage(await f.check(f.args)) && f.blocked) {
|
|
1656
|
+
break;
|
|
1657
|
+
}
|
|
1658
|
+
} // for (let i = 0; i < preconditions.checkPromises.length; i++) {
|
|
1659
|
+
// preconditions.pushMessage(await preconditions.checkPromises[i]);
|
|
1660
|
+
// }
|
|
1660
1661
|
|
|
1661
1662
|
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1663
|
+
while (preconditions$1.checkPromises.length > 0) {
|
|
1664
|
+
const p = preconditions$1.checkPromises.shift();
|
|
1665
|
+
preconditions$1.pushMessage(await p);
|
|
1666
|
+
}
|
|
1667
|
+
} catch (e) {
|
|
1668
|
+
preconditions$1.pushMessage(e.message);
|
|
1665
1669
|
}
|
|
1666
1670
|
|
|
1667
1671
|
let text = "";
|