@cloud-cli/on 1.6.5 → 1.6.6

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 CHANGED
@@ -8326,8 +8326,7 @@ var To = class e {
8326
8326
  for (let n of this.workflows) {
8327
8327
  if (n.on.provider !== e) continue;
8328
8328
  if (n.on.if) try {
8329
- let e = mn.evaluateConditions(n.on.if, { inputs: t });
8330
- if (process.env.DEBUG && console.log("shouldRun", typeof e, e), !e) {
8329
+ if (!await mn.evaluateConditions(n.on.if, { inputs: t })) {
8331
8330
  console.log(`⏩ Skipped ${n.id} based on conditions: ${n.on.if}`, { inputs: t });
8332
8331
  continue;
8333
8332
  }
@@ -8902,16 +8901,12 @@ async function Jo(e) {
8902
8901
  }
8903
8902
  async function Yo(e) {
8904
8903
  let { step: t, stepIndex: n } = e, r = t.id || `step-${n}`, i = t.name || r;
8905
- if (t.if) {
8906
- let n = await mn.evaluateConditions(t.if, e.executionContext);
8907
- if (!n) return Uo && console.log("Skipped step due to condition", typeof n, n), {
8908
- failed: !1,
8909
- cancelled: !1,
8910
- skipped: !0,
8911
- report: null
8912
- };
8913
- }
8914
- return t.eval ? Xo({
8904
+ return t.if && !await mn.evaluateConditions(t.if, e.executionContext) ? (Uo && console.log(`⏩ Skipped step ${t.id} based on condition: ${t.if}`, e.executionContext), {
8905
+ failed: !1,
8906
+ cancelled: !1,
8907
+ skipped: !0,
8908
+ report: null
8909
+ }) : t.eval ? Xo({
8915
8910
  ...e,
8916
8911
  stepId: r,
8917
8912
  stepName: i,
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAEV,mBAAmB,EACnB,oBAAoB,EAGrB,MAAM,YAAY,CAAC;AAGpB,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,aAAa,CAA0C;IAC/D,OAAO,CAAC,SA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2B9B,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAStC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAQ5B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-cli/on",
3
- "version": "1.6.5",
3
+ "version": "1.6.6",
4
4
  "description": "CLI entry point for the on plugin ecosystem.",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.30.3",