code: function withConfig(fn) {
    return (source, options={}) => {
      options.type = 'dom';
      options.client = options.client || rp;
  
      return fn(source, options);
    }
  }
docs: Wraps the given function such that its
  called with a configured options object.
  
  @param  {function} fn The function to wrap.
  @return {function} The wrapped function.