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

simple-node-framework

Package Overview
Dependencies
Maintainers
0
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-node-framework - npm Package Compare versions

Comparing version 6.0.29 to 6.0.30

8

lib/cache.js
const Loggable = require('./base/loggable');
const config = require('./config');
const redis = require('./redis').instance;
const ProcessTimer = require('././util/process-timer');
const errorHandler = require('./error').instance;

@@ -17,2 +18,3 @@ const objectHash = require('object-hash');

this.errorHandler = errorHandler;
this.timer = new ProcessTimer();
}

@@ -55,2 +57,4 @@

const timer = this.timer.start();
return this.redis

@@ -60,3 +64,5 @@ .get(key)

(cache) => {
if(this.config.cache.logHits) this.log.debug(`Hit from cache [${key}]`);
const interval = this.timer.writeLog(timer, 'loadResponse');
if(this.config.cache.logHits)
this.log.debug(`Hit from cache [${key}] [${interval.milliseconds}]`, { natural: { responseTime: interval.milliseconds } });
res.status(cache.status).set(cache.headers).send(cache.body);

@@ -63,0 +69,0 @@ },

2

package.json
{
"name": "simple-node-framework",
"version": "6.0.29",
"version": "6.0.30",
"keywords": [

@@ -5,0 +5,0 @@ "basic",

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