@cloud-cli/on 1.6.0 → 1.6.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/dist/on.js +5 -2
- package/package.json +1 -1
package/dist/on.js
CHANGED
|
@@ -3297,8 +3297,11 @@ var pn = {
|
|
|
3297
3297
|
return this.evaluateExpression(n, t);
|
|
3298
3298
|
}
|
|
3299
3299
|
static async evaluateConditions(e, t = {}) {
|
|
3300
|
-
typeof e == "string" && (e = [e])
|
|
3301
|
-
for (let n of e)
|
|
3300
|
+
typeof e == "string" && (e = [e]);
|
|
3301
|
+
for (let n of e) {
|
|
3302
|
+
let e = await this.evaluateExpression(n, t);
|
|
3303
|
+
if (process.env.DEBUG && console.log("condition", e, n, t), e) return !0;
|
|
3304
|
+
}
|
|
3302
3305
|
return !1;
|
|
3303
3306
|
}
|
|
3304
3307
|
static async evaluateExpression(e, t = {}) {
|