File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # 3.0.9
2+ - RESTv2: fix [cb] find/replace error to cb where appropriate
3+
14# 3.0.8
25- RESTv2: fixes cancelOrderWithCid function
36- RESTv2: removes cancelOrderWithDate function
Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ class RESTv2 {
299299 */
300300 _cb ( err , res , cb ) {
301301 return new Promise ( ( resolve , reject ) => {
302- const _isCbFunc = [ cb ] && _isFunction ( cb )
302+ const _isCbFunc = _isFunction ( cb )
303303 if ( err ) {
304304 if ( err . error && err . error [ 1 ] === 10114 ) {
305305 err . message += ' see https://github.com/bitfinexcom/bitfinex-api-node/blob/master/README.md#nonce-too-small for help'
@@ -508,7 +508,7 @@ class RESTv2 {
508508 * @param {Function } [cb] - callback
509509 * @returns {Promise } p
510510 */
511- conf ( keys = [ ] , [ cb ] = ( ) => { } ) {
511+ conf ( keys = [ ] , cb = ( ) => { } ) {
512512 if ( _isEmpty ( keys ) ) {
513513 return Promise . resolve ( [ ] )
514514 }
Original file line number Diff line number Diff line change 11{
22 "name" : " bfx-api-node-rest" ,
3- "version" : " 3.0.8 " ,
3+ "version" : " 3.0.9 " ,
44 "description" : " Official Bitfinex REST v1 & v2 API interfaces" ,
55 "engines" : {
66 "node" : " >=8.3.0"
You can’t perform that action at this time.
0 commit comments