cache-memory
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -5,8 +5,5 @@ 'use strict'; | ||
let debuggingEnabled = false; | ||
module.exports = { | ||
enableDebugging: () => { debuggingEnabled = true }, | ||
log: (message, loggingObj) => { | ||
if (!debuggingEnabled) return; | ||
if (!debug.enabled) return; | ||
@@ -17,3 +14,3 @@ if (loggingObj !== undefined && typeof loggingObj === 'object') { | ||
Object.keys(loggingObj).forEach(key => { | ||
toLog += `, ${key} : ${JSON.stringify(loggingObj[key])}` | ||
toLog += `, ${key}: ${JSON.stringify(loggingObj[key])}` | ||
}) | ||
@@ -20,0 +17,0 @@ |
{ | ||
"name": "cache-memory", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -100,3 +100,2 @@ # cache-memory | ||
- `count`: Function called every time an object is added or removed from cache. | ||
- `logDebugMessages`: logs debug messages if set to true | ||
@@ -103,0 +102,0 @@ ** hit, miss, added, removed functions are all called with the following object structure. |
39947
878
390