File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const fs = require('fs')
5
5
const net = require ( 'net' )
6
6
const stream = require ( 'stream' )
7
7
const through2 = require ( 'through2' )
8
- const shortid = require ( 'shortid ' )
8
+ const nanoid = require ( 'nanoid ' )
9
9
const hex = require ( 'hexer' )
10
10
11
11
var hexerIn = hex . Transform ( { prefix : '< ' } )
@@ -40,7 +40,7 @@ module.exports = function (debug) {
40
40
hexerOut . pipe ( self . _output )
41
41
}
42
42
43
- socket . id = shortid . generate ( )
43
+ socket . id = nanoid ( 7 )
44
44
socket . setKeepAlive ( ! ! self . _keepalive )
45
45
if ( self . _encoding ) socket . setEncoding ( self . _encoding )
46
46
self . emit ( 'connection' , socket )
Original file line number Diff line number Diff line change 45
45
"datagram-stream" : " ^1.1.1" ,
46
46
"debug" : " ^3.1.0" ,
47
47
"hexer" : " ^1.5.0" ,
48
- "shortid " : " ^2 .2.8 " ,
48
+ "nanoid " : " ^0 .2.2 " ,
49
49
"through2" : " ^2.0.3"
50
50
}
51
51
}
You can’t perform that action at this time.
0 commit comments