File tree 6 files changed +23
-21
lines changed
6 files changed +23
-21
lines changed Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
strategy :
11
11
matrix :
12
- node : [16, 18]
12
+ node : [16, 18, 20 ]
13
13
name : Node v${{ matrix.node }}
14
14
steps :
15
15
- uses : actions/checkout@v3
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ class RedisStore extends Store {
153
153
let keys = await this . _getAllKeys ( )
154
154
return cb (
155
155
null ,
156
- keys . map ( ( k ) => k . substring ( len ) )
156
+ keys . map ( ( k ) => k . substring ( len ) ) ,
157
157
)
158
158
} catch ( err ) {
159
159
return cb ( err )
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ import {createClient} from "redis"
6
6
import RedisStore from "./"
7
7
import * as redisSrv from "./testdata/server"
8
8
9
- test ( "setup" , redisSrv . connect )
9
+ test ( "setup" , async ( ) => {
10
+ await redisSrv . connect ( )
11
+ } )
10
12
11
13
test ( "defaults" , async ( t ) => {
12
14
let client = createClient ( { url : `redis://localhost:${ redisSrv . port } ` } )
@@ -44,7 +46,7 @@ test("teardown", redisSrv.disconnect)
44
46
async function lifecycleTest (
45
47
store : RedisStore ,
46
48
client : any ,
47
- t : test . Test
49
+ t : test . Test ,
48
50
) : Promise < void > {
49
51
const P = ( f : any ) => promisify ( f ) . bind ( store )
50
52
let res = await P ( store . clear ) ( )
@@ -85,7 +87,7 @@ async function lifecycleTest(
85
87
{ id : "123" , foo : "bar" } ,
86
88
{ id : "456" , cookie : { expires} } ,
87
89
] ,
88
- "stored two keys data"
90
+ "stored two keys data" ,
89
91
)
90
92
91
93
await P ( store . destroy ) ( "456" )
Original file line number Diff line number Diff line change 29
29
"url" : " git@github.com:tj/connect-redis.git"
30
30
},
31
31
"devDependencies" : {
32
- "@types/blue-tape" : " ^0.1.33 " ,
33
- "@types/express-session" : " ^1.17.6 " ,
34
- "@types/node" : " ^18.13.0 " ,
35
- "@typescript-eslint/eslint-plugin" : " ^5.52 .0" ,
36
- "@typescript-eslint/parser" : " ^5.52 .0" ,
32
+ "@types/blue-tape" : " ^0.1.36 " ,
33
+ "@types/express-session" : " ^1.17.10 " ,
34
+ "@types/node" : " ^20.11.5 " ,
35
+ "@typescript-eslint/eslint-plugin" : " ^6.19 .0" ,
36
+ "@typescript-eslint/parser" : " ^6.19 .0" ,
37
37
"blue-tape" : " ^1.0.0" ,
38
- "eslint" : " ^8.34 .0" ,
39
- "eslint-config-prettier" : " ^8.6 .0" ,
38
+ "eslint" : " ^8.56 .0" ,
39
+ "eslint-config-prettier" : " ^9.1 .0" ,
40
40
"express-session" : " ^1.17.3" ,
41
- "ioredis" : " ^5.3.1 " ,
41
+ "ioredis" : " ^5.3.2 " ,
42
42
"nyc" : " ^15.1.0" ,
43
- "prettier" : " ^2.8 .4" ,
44
- "prettier-plugin-organize-imports" : " ^3.2.2 " ,
45
- "redis" : " ^4.6.4 " ,
46
- "ts-node" : " ^10.9.1 " ,
47
- "typescript" : " ^4.9.5 "
43
+ "prettier" : " ^3.2 .4" ,
44
+ "prettier-plugin-organize-imports" : " ^3.2.4 " ,
45
+ "redis" : " ^4.6.12 " ,
46
+ "ts-node" : " ^10.9.2 " ,
47
+ "typescript" : " ^5.3.3 "
48
48
},
49
49
"peerDependencies" : {
50
50
"express-session" : " >=1"
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ app.use(
63
63
resave: false , // required: force lightweight session keep alive (touch)
64
64
saveUninitialized: false , // recommended: only save session when data exists
65
65
secret: " keyboard cat" ,
66
- })
66
+ }),
67
67
)
68
68
```
69
69
Original file line number Diff line number Diff line change 12
12
"declaration" : true ,
13
13
"outDir" : " ./dist/cjs" ,
14
14
"esModuleInterop" : true ,
15
- "resolveJsonModule" : true
15
+ "resolveJsonModule" : true ,
16
16
},
17
- "exclude" : [" node_modules" , " dist" ]
17
+ "exclude" : [" node_modules" , " dist" ],
18
18
}
You can’t perform that action at this time.
0 commit comments