abler-api 0.1.59 → 0.1.60
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 +14 -11
- package/package.json +1 -1
package/dist/cjs/pp-util.js
CHANGED
|
@@ -1612,22 +1612,25 @@ class preconditions$1 {
|
|
|
1612
1612
|
return preconditions$1;
|
|
1613
1613
|
}
|
|
1614
1614
|
|
|
1615
|
+
static pushMessage(msg) {
|
|
1616
|
+
if (msg) {
|
|
1617
|
+
if (!preconditions$1.messages) {
|
|
1618
|
+
preconditions$1.messages = [];
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
preconditions$1.messages.push(`${preconditions$1.messages.length + 1}. ${msg}`);
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1615
1625
|
static async checkAll() {
|
|
1616
1626
|
for (let i = 0; i < preconditions$1.checkFunctions.length; i++) {
|
|
1617
|
-
const f = preconditions$1.checkFunctions[i];
|
|
1618
|
-
|
|
1627
|
+
const f = preconditions$1.checkFunctions[i]; // preconditions.addCheckPromise(f.check(f.args));
|
|
1628
|
+
|
|
1629
|
+
preconditions$1.pushMessage(await f.check(f.args));
|
|
1619
1630
|
}
|
|
1620
1631
|
|
|
1621
1632
|
for (let i = 0; i < preconditions$1.checkPromises.length; i++) {
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
if (msg) {
|
|
1625
|
-
if (!preconditions$1.messages) {
|
|
1626
|
-
preconditions$1.messages = [];
|
|
1627
|
-
}
|
|
1628
|
-
|
|
1629
|
-
preconditions$1.messages.push(`${preconditions$1.messages.length + 1}. ${msg}`);
|
|
1630
|
-
}
|
|
1633
|
+
preconditions$1.pushMessage(await preconditions$1.checkPromises[i]);
|
|
1631
1634
|
}
|
|
1632
1635
|
|
|
1633
1636
|
let text = "";
|