lib/index.js
function baseRequest(uri, cb) {
  var url = `${BASE_URL}${uri}`;
  request(url, function (error, response, body) {
    debug(`Url: ${url} statusCode: ${response && response.statusCode}`);
    if(error || (response && response.statusCode === 404)) {
       cb(error || response);
    }
    cb(null, JSON.parse(body));
  });
}
function baseRequest(uri, cb) {
  var url = `${BASE_URL}${uri}`;
  request(url, function (error, response, body) {
    debug(`Url: ${url} statusCode: ${response && response.statusCode}`);
    if(error || (response && response.statusCode === 404)) {
       cb(error || response);
    }
    cb(null, JSON.parse(body));
  });
}
function baseRequest ( uri , cb ) { var url = ` ${ BASE_URL } ${ uri } ` ; request ( url , function ( error , response , body ) { debug ( ` ${ url } ${ response && response . statusCode } ` ) ; if ( error || ( response && response . statusCode === 404 ) ) { cb ( error || response ) ; } cb ( null , JSON . parse ( body ) ) ; } ) ; }
baseRequest - description

@param  {type} uri description
@param  {callback} cb  description
@private
baseRequest - description