File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ const statsdClient = new StatsD({
17
17
18
18
function hash ( host ) {
19
19
return crypto . createHash ( 'sha1' )
20
- . update ( host )
21
- . digest ( 'hex' )
22
- . slice ( 0 , 8 )
20
+ . update ( host )
21
+ . digest ( 'hex' )
22
+ . slice ( 0 , 8 )
23
23
}
24
24
25
25
function parseRegistryUrl ( registry ) {
Original file line number Diff line number Diff line change 17
17
"nyc" : " ^11.0.2" ,
18
18
"proxyquire" : " ^2.0.0" ,
19
19
"redis-mock" : " ^0.18.0" ,
20
- "standard" : " ^10 .0.2 " ,
20
+ "standard" : " ^11 .0.0 " ,
21
21
"tap" : " ^11.0.0"
22
22
},
23
23
"engines" : {
Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ const {
62
62
test ( 'check follower invalid http response' , t => {
63
63
t . plan ( 1 )
64
64
nock ( 'https://skimdb.npmjs.com' )
65
- . get ( '/registry' )
66
- . reply ( 500 , { } )
65
+ . get ( '/registry' )
66
+ . reply ( 500 , { } )
67
67
68
68
checkFollower ( {
69
69
registry : {
@@ -77,8 +77,8 @@ const {
77
77
test ( 'check follower valid seq' , t => {
78
78
t . plan ( 4 )
79
79
nock ( 'https://skimdb.npmjs.com' )
80
- . get ( '/registry' )
81
- . reply ( 200 , { update_seq : 5000 } )
80
+ . get ( '/registry' )
81
+ . reply ( 200 , { update_seq : 5000 } )
82
82
83
83
const client = redis . createClient ( )
84
84
client . set ( 'gk-seq' , 4000 , err => {
@@ -105,8 +105,8 @@ const {
105
105
test ( 'check follower invalid seq' , t => {
106
106
t . plan ( 5 )
107
107
nock ( 'https://skimdb.npmjs.com' )
108
- . get ( '/registry' )
109
- . reply ( 200 , { update_seq : 5000 } )
108
+ . get ( '/registry' )
109
+ . reply ( 200 , { update_seq : 5000 } )
110
110
111
111
const client = redis . createClient ( )
112
112
client . set ( 'gk-seq' , 6000 , err => {
You can’t perform that action at this time.
0 commit comments