json-rules-engine
Advanced tools
Comparing version
@@ -1,4 +0,1 @@ | ||
#### 5.1.0 / 2020-11-27 | ||
* Allow facts to have values of `undefined` | ||
#### 5.0.4 / 2020-09-26 | ||
@@ -5,0 +2,0 @@ * Upgrade dependencies to latest |
@@ -43,2 +43,5 @@ 'use strict'; | ||
if (!this.id) throw new Error('factId required'); | ||
if (typeof this.value === 'undefined' && typeof this.calculationMethod === 'undefined') { | ||
throw new Error('facts must have a value or method'); | ||
} | ||
@@ -45,0 +48,0 @@ this.priority = parseInt(options.priority || 1, 10); |
{ | ||
"name": "json-rules-engine", | ||
"version": "5.1.0-rc1", | ||
"version": "5.2.0", | ||
"description": "Rules Engine expressed in simple json", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
74259
0.11%1335
0.23%