Socket
Socket
Sign inDemoInstall

egg-redis

Package Overview
Dependencies
18
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.1 to 2.3.2

6

History.md
2.3.2 / 2019-04-24
==================
**fixes**
* [[`ce7e40e`](http://github.com/eggjs/egg-redis/commit/ce7e40eaae3f635654aaa101493e6cf4a921c6cc)] - fix: should listen redis ready event before app start (#29) (killa <<killa123@126.com>>)
2.3.1 / 2019-04-10

@@ -3,0 +9,0 @@ ==================

12

lib/redis.js
'use strict';
const assert = require('assert');
const awaitFirst = require('await-first');

@@ -54,11 +55,4 @@ module.exports = app => {

const index = count++;
if (app.config.redis.supportTimeCommand) {
const serverTimes = await client.time();
// [ '1543378095', '393297' ]
const dateTime = new Date(Number(String(serverTimes[0]) + String(serverTimes[1]).substring(0, 3)));
app.coreLogger.info(`[egg-redis] instance[${index}] status OK, redis server currentTime: ${dateTime}`);
} else {
await client.get('egg-redis-hello');
app.coreLogger.info(`[egg-redis] instance[${index}] status OK, client ready`);
}
await awaitFirst(client, [ 'ready', 'error' ]);
app.coreLogger.info(`[egg-redis] instance[${index}] status OK, client ready`);
});

@@ -65,0 +59,0 @@

{
"name": "egg-redis",
"version": "2.3.1",
"version": "2.3.2",
"description": "Redis plugin for egg",

@@ -24,16 +24,17 @@ "eggPlugin": {

"dependencies": {
"ioredis": "^3.2.2",
"@types/ioredis": "^4.0.1"
"@types/ioredis": "^4.0.10",
"await-first": "^1.0.0",
"ioredis": "^4.9.0"
},
"devDependencies": {
"@types/node": "^10.9.4",
"typescript": "^3.0.3",
"autod": "^3.0.1",
"egg": "^2.3.0",
"egg-bin": "^4.4.0",
"egg-ci": "^1.8.0",
"egg-mock": "^3.14.0",
"eslint": "^4.18.1",
"eslint-config-egg": "^7.0.0",
"supertest": "^3.0.0",
"autod": "^3.1.0",
"egg": "^2.21.1",
"egg-bin": "^4.13.0",
"egg-ci": "^1.11.0",
"egg-mock": "^3.22.2",
"eslint": "^5.16.0",
"eslint-config-egg": "^7.3.1",
"supertest": "^4.0.2",
"typescript": "^3.4.5",
"utility": "^1.9.0"

@@ -40,0 +41,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc