docs: function wrap (func) {
    return () => new Promise((resolve, reject) => {
      func()
        .then(x => resolve(x))
        .catch(err => {
          let status = _get(err, 'response.status')
          let text = _get(err, 'content.text')
  
          if (status || text) {
            console.warn(`API error: ${text} (${status})`)
            return resolve(null)
          }
  
          reject(err)
        })
    })
  }