connect-redis
Advanced tools
Comparing version 7.1.0 to 7.1.1
@@ -36,3 +36,5 @@ "use strict"; | ||
const redisSrv = __importStar(require("./testdata/server")); | ||
(0, blue_tape_1.default)("setup", redisSrv.connect); | ||
(0, blue_tape_1.default)("setup", async () => { | ||
await redisSrv.connect(); | ||
}); | ||
(0, blue_tape_1.default)("defaults", async (t) => { | ||
@@ -39,0 +41,0 @@ let client = (0, redis_1.createClient)({ url: `redis://localhost:${redisSrv.port}` }); |
@@ -8,3 +8,5 @@ import test from "blue-tape"; | ||
import * as redisSrv from "./testdata/server"; | ||
test("setup", redisSrv.connect); | ||
test("setup", async () => { | ||
await redisSrv.connect(); | ||
}); | ||
test("defaults", async (t) => { | ||
@@ -11,0 +13,0 @@ let client = createClient({ url: `redis://localhost:${redisSrv.port}` }); |
@@ -9,3 +9,5 @@ import test from "blue-tape" | ||
test("setup", redisSrv.connect) | ||
test("setup", async () => { | ||
await redisSrv.connect() | ||
}) | ||
@@ -48,3 +50,3 @@ test("defaults", async (t) => { | ||
client: any, | ||
t: test.Test | ||
t: test.Test, | ||
): Promise<void> { | ||
@@ -90,3 +92,3 @@ const P = (f: any) => promisify(f).bind(store) | ||
], | ||
"stored two keys data" | ||
"stored two keys data", | ||
) | ||
@@ -93,0 +95,0 @@ |
@@ -156,3 +156,3 @@ import {SessionData, Store} from "express-session" | ||
null, | ||
keys.map((k) => k.substring(len)) | ||
keys.map((k) => k.substring(len)), | ||
) | ||
@@ -159,0 +159,0 @@ } catch (err) { |
{ | ||
"name": "connect-redis", | ||
"description": "Redis session store for Connect", | ||
"version": "7.1.0", | ||
"version": "7.1.1", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -32,18 +32,18 @@ "contributors": [ | ||
"devDependencies": { | ||
"@types/blue-tape": "^0.1.33", | ||
"@types/express-session": "^1.17.6", | ||
"@types/node": "^18.13.0", | ||
"@typescript-eslint/eslint-plugin": "^5.52.0", | ||
"@typescript-eslint/parser": "^5.52.0", | ||
"@types/blue-tape": "^0.1.36", | ||
"@types/express-session": "^1.17.10", | ||
"@types/node": "^20.11.5", | ||
"@typescript-eslint/eslint-plugin": "^6.19.0", | ||
"@typescript-eslint/parser": "^6.19.0", | ||
"blue-tape": "^1.0.0", | ||
"eslint": "^8.34.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"eslint": "^8.56.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"express-session": "^1.17.3", | ||
"ioredis": "^5.3.1", | ||
"ioredis": "^5.3.2", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.8.4", | ||
"prettier-plugin-organize-imports": "^3.2.2", | ||
"redis": "^4.6.4", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.9.5" | ||
"prettier": "^3.2.4", | ||
"prettier-plugin-organize-imports": "^3.2.4", | ||
"redis": "^4.6.12", | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.3.3" | ||
}, | ||
@@ -50,0 +50,0 @@ "peerDependencies": { |
@@ -59,3 +59,3 @@ ![Build Status](https://github.com/tj/connect-redis/workflows/build/badge.svg?branch=master) [![npm](https://img.shields.io/npm/v/connect-redis.svg)](https://npmjs.com/package/connect-redis) [![code-style](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://gitter.im/jlongster/prettier) ![Downloads](https://img.shields.io/npm/dm/connect-redis.svg) | ||
// Initialize sesssion storage. | ||
// Initialize session storage. | ||
app.use( | ||
@@ -67,3 +67,3 @@ session({ | ||
secret: "keyboard cat", | ||
}) | ||
}), | ||
) | ||
@@ -70,0 +70,0 @@ ``` |
@@ -15,5 +15,5 @@ { | ||
"esModuleInterop": true, | ||
"resolveJsonModule": true | ||
"resolveJsonModule": true, | ||
}, | ||
"exclude": ["node_modules", "dist"] | ||
"exclude": ["node_modules", "dist"], | ||
} |
Sorry, the diff of this file is not supported yet
43802
990