@saasquatch/program-boilerplate 3.6.2-0 → 3.7.0

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.
Files changed (2) hide show
  1. package/dist/utils.js +4 -2
  2. package/package.json +1 -1
package/dist/utils.js CHANGED
@@ -234,10 +234,12 @@ function getRewardUnitsFromJsonata(expr) {
234
234
  return [expr.value];
235
235
  }
236
236
  if (expr.type === "condition") {
237
+ const lhs = getRewardUnitsFromJsonata(
237
238
  // @ts-ignore: expr.then isn't present in the AST typedef for some reason
238
- const lhs = extractJsonataRewardUnits(expr.then);
239
+ expr.then);
240
+ const rhs = getRewardUnitsFromJsonata(
239
241
  // @ts-ignore: expr.else isn't present in the AST typedef for some reason
240
- const rhs = extractJsonataRewardUnits(expr.else);
242
+ expr.else);
241
243
  if (lhs !== undefined || rhs !== undefined) {
242
244
  return [...(lhs !== null && lhs !== void 0 ? lhs : []), ...(rhs !== null && rhs !== void 0 ? rhs : [])];
243
245
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasquatch/program-boilerplate",
3
- "version": "3.6.2-0",
3
+ "version": "3.7.0",
4
4
  "description": "Boilerplate for writing programs",
5
5
  "main": "dist/index.js",
6
6
  "files": [