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

volos-cache-common

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

volos-cache-common - npm Package Compare versions

Comparing version 0.9.8 to 0.9.9

16

lib/cache-argo.js

@@ -26,2 +26,3 @@ /****************************************************************************

var debug = require('debug')('cache');
var _ = require('underscore');

@@ -65,3 +66,3 @@ var encoder = require('./cache-encoder');

if (buffer && fromCache) {
if (debugEnabled) { debug('cache hit: ' + key); }
if (debug.enabled) { debug('cache hit: ' + key); }
encoder.setFromCache(buffer, resp);

@@ -72,3 +73,3 @@ }

var populate = function(key, cb) {
if (debugEnabled) { debug('cache miss: ' + key); }
if (debug.enabled) { debug('cache miss: ' + key); }

@@ -90,12 +91,1 @@ var end = resp.end;

};
var debug;
var debugEnabled;
if (process.env.NODE_DEBUG && /cache/.test(process.env.NODE_DEBUG)) {
debug = function(x) {
console.log('Cache: ' + x);
};
debugEnabled = true;
} else {
debug = function() { };
}

@@ -28,2 +28,3 @@ /****************************************************************************

var encoder = require('./cache-encoder');
var debug = require('debug')('cache');

@@ -60,3 +61,3 @@ function CacheConnect(cache, options) {

if (buffer && fromCache) {
if (debugEnabled) { debug('cache hit: ' + key); }
if (debug.enabled) { debug('cache hit: ' + key); }
return encoder.setFromCache(buffer, resp);

@@ -67,3 +68,3 @@ }

var populate = function(key, cb) {
if (debugEnabled) { debug('cache miss: ' + key); }
if (debug.enabled) { debug('cache miss: ' + key); }
var doCache, content, headers;

@@ -116,12 +117,1 @@

};
var debug;
var debugEnabled;
if (process.env.NODE_DEBUG && /cache/.test(process.env.NODE_DEBUG)) {
debug = function(x) {
console.log('Cache: ' + x);
};
debugEnabled = true;
} else {
debug = function() { };
}

3

package.json
{
"name": "volos-cache-common",
"version": "0.9.8",
"version": "0.9.9",
"main": "lib/cache.js",

@@ -12,2 +12,3 @@ "license": "MIT",

"dependencies": {
"debug": "1.0.x",
"underscore": "1.6.x"

@@ -14,0 +15,0 @@ },

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