lib/TwitterClient.js
/*
  * This method tries to append a property to the search_metadata provided by
  * Twitter, by parsing the search_metadata.next_results and appending a
  * next_max_id property to the response
  * 
  * This is used only when searching Tweets
  */
This method tries to append a property to the search_metadata provided by
Twitter, by parsing the search_metadata.next_results and appending a
next_max_id property to the response

This is used only when searching Tweets
This method tries to append a property to the search_metadata provided by Twitter by parsing the search_metadata . next_results and appending a next_max_id property to the response This is used only when searching Tweets
appendNextIdToSearchMetadata(data) {
    data = JSON.parse(data);
    try {
      const { next_results } = data.search_metadata;
      const index = next_results.indexOf('max_id=');
      if(index !== -1) {
        data.search_metadata.next_max_id = Number(next_results.substr(index + 7).split('&')[0]);
      }
    } catch(e) { }
    return JSON.stringify(data);
  }
appendNextIdToSearchMetadata ( data ) { data = JSON . parse ( data ) ; try { const { next_results } = data . search_metadata ; const index = next_results . indexOf ( 'max_id=' ) ; if ( index !== - 1 ) { data . search_metadata . next_max_id = Number ( next_results . substr ( index + 7 ) . split ( '&' ) [ 0 ] ) ; } } catch ( e ) { } return JSON . stringify ( data ) ; }
This method tries to append a property to the search_metadata provided by
 Twitter, by parsing the search_metadata.next_results and appending a
 next_max_id property to the response
This method tries to append a property to the search_metadata provided by Twitter by parsing the search_metadata . next_results and appending a next_max_id property to the response