json-rules-engine
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -0,1 +1,4 @@ | ||
#### 5.0.1 / 2020-01-18 | ||
* BUGFIX: `DEBUG` envs works with cookies disables | ||
#### 5.0.0 / 2019-11-29 | ||
@@ -2,0 +5,0 @@ * BREAKING CHANGES |
@@ -8,5 +8,9 @@ 'use strict'; | ||
function debug(message) { | ||
if (typeof process !== 'undefined' && process.env && process.env.DEBUG && process.env.DEBUG.match(/json-rules-engine/) || typeof window !== 'undefined' && window.localStorage && window.localStorage.debug && window.localStorage.debug.match(/json-rules-engine/)) { | ||
console.log(message); | ||
try { | ||
if (typeof process !== 'undefined' && process.env && process.env.DEBUG && process.env.DEBUG.match(/json-rules-engine/) || typeof window !== 'undefined' && window.localStorage && window.localStorage.debug && window.localStorage.debug.match(/json-rules-engine/)) { | ||
console.log(message); | ||
} | ||
} catch (ex) { | ||
// Do nothing | ||
} | ||
} |
{ | ||
"name": "json-rules-engine", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Rules Engine expressed in simple json", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
72933
1334