UNPKG

json-rules-engine

Version:
18 lines (15 loc) 528 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); function createDebug() { 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/)) { return console.debug.bind(console); } } catch (ex) { // Do nothing } return function () {}; } exports.default = createDebug();