onroute-policy-engine 1.6.5 → 1.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.
@@ -135,7 +135,10 @@ function addRuntimeFacts(engine, policy) {
135
135
  if (typeof params.minValue === 'number') {
136
136
  cost = Math.max(cost, params.minValue);
137
137
  }
138
- return cost;
138
+ if (typeof params.maxValue === 'number') {
139
+ cost = Math.min(cost, params.maxValue);
140
+ }
141
+ return Math.round(cost);
139
142
  });
140
143
  /**
141
144
  * Add runtime fact to look up the permit cost from a matrix of
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "v1.6.5";
1
+ export declare const version = "v1.7.0";
package/dist/version.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  // Generated by genversion.
5
- exports.version = 'v1.6.5';
5
+ exports.version = 'v1.7.0';
package/package.json CHANGED
@@ -89,5 +89,5 @@
89
89
  ],
90
90
  "testEnvironment": "node"
91
91
  },
92
- "version": "v1.6.5"
92
+ "version": "v1.7.0"
93
93
  }