docs: function resolveMiddleware (manager, promise, name) {
    if (!manager.middleware.store.has(name)) {
      return promise
    }
  
    return promise
      .then(accumulator => {
        return middleware.resolve(manager, name, accumulator)
      })
      .then(middlewareResult => {
        if (middlewareResult.___resolve === true) {
          middlewareResult.debug(middlewareResult.uid, '- will bypass')
          // doing this until proven wrong :)
          const err = new Error('bypassing middleware')
          err.name = 'bypass'
          err.bypass = true
          err.bypassValue = middlewareResult
          throw err
        }
  
        return middlewareResult
      })
  }