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

dobi-cache-2

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dobi-cache-2 - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

6

lib/middleware.js

@@ -10,6 +10,8 @@ 'use strict';

const fetch = (callback) => {
const _callback = value => callback(null, value);
if (fn.length === 1) {
return fn(callback);
fn(_callback);
} else {
fn(req, res, _callback);
}
return fn(req, res, callback);
};

@@ -16,0 +18,0 @@ const asyncFetch = promisify(fetch);

@@ -26,3 +26,3 @@ {

},
"version": "3.0.1",
"version": "3.0.2",
"devDependencies": {

@@ -29,0 +29,0 @@ "eslint": "^5.5.0",

@@ -12,3 +12,3 @@ const express = require('express');

cache({ age: '5 minutes' }, (_req, _res, _next) => {
_next(null, 'hello world');
_next('hello world');
})(req, res, next);

@@ -15,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