File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 33exports . Client = Client
44exports . Server = Server
55
6- var bn = require ( 'bn.js' )
6+ var BN = require ( 'bn.js' )
77var bncode = require ( 'bncode' )
88var compact2string = require ( 'compact2string' )
99var dgram = require ( 'dgram' )
@@ -702,7 +702,7 @@ function toUInt32 (n) {
702702
703703function toUInt64 ( n ) {
704704 if ( n > MAX_UINT || typeof n === 'string' ) {
705- var bytes = bn ( n ) . toArray ( )
705+ var bytes = new BN ( n ) . toArray ( )
706706 while ( bytes . length < 8 ) {
707707 bytes . unshift ( 0 )
708708 }
Original file line number Diff line number Diff line change 1919 "querystring" : " ^0.2.0" ,
2020 "run-parallel" : " ^1.0.0" ,
2121 "string2compact" : " ^1.1.0" ,
22- "bn.js" : " ^0.3.1 "
22+ "bn.js" : " ^0.4.3 "
2323 },
2424 "devDependencies" : {
2525 "parse-torrent" : " ^1.1.0" ,
You can’t perform that action at this time.
0 commit comments