Skip to content

Commit

Permalink
🎨(naming): add friendly name for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
whatwewant committed Mar 16, 2019
1 parent b51c991 commit 0ed4541
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@koex/redis",
"version": "0.0.1",
"version": "0.0.2",
"description": "redis for koa extend",
"main": "lib/index.js",
"module": "lib/index.js",
Expand All @@ -16,7 +16,6 @@
},
"devDependencies": {
"@types/debug": "^0.0.31",
"@types/ioredis": "^4.0.4",
"@types/koa": "^2.0.47",
"@types/mocha": "^5.2.5",
"@types/node": "^10.9.4",
Expand Down Expand Up @@ -67,6 +66,7 @@
"access": "public"
},
"dependencies": {
"@types/ioredis": "^4.0.4",
"ioredis": "^4.2.0"
}
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ declare module 'koa' {
export default (options?: ioredis.RedisOptions) => {
const redis = new ioredis(options);

return async function helmet(ctx: Context, next: () => Promise<void>) {
return async function koexRedis(ctx: Context, next: () => Promise<void>) {
if (!ctx.redis) {
ctx.redis = redis;
}
Expand Down

0 comments on commit 0ed4541

Please sign in to comment.