Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cache-memory

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-memory - npm Package Compare versions

Comparing version 2.1.3 to 2.1.4

7

lib/logger.js

@@ -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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc