New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

koa-2-ioredis

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-2-ioredis - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

7

index.js
const debug = require('debug')('koa2:ioredis');
const Redis = require('ioredis');
const config = require('config');
const redis = require('./redis');
const redis = new Redis(config.redis);
module.exports = () => async (ctx, next) => {
ctx.redis = redis;
debug('ctx.redis');
debug('Redis created');
await next();
};

@@ -5,3 +5,3 @@ {

"repository": "evheniy/koa-2-ioredis",
"version": "1.0.0",
"version": "1.1.0",
"scripts": {

@@ -8,0 +8,0 @@ "lint": "eslint index.js tests",

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