function extractAttrs(args, version) {
  let params
  let page
  if (semver.gte(version, '13.4.13')) {
    const [, , , match] = args
    page = match?.definition?.pathname
    params = { ...match?.params }
  } else {
    ;[, , , params, page] = args
  }

  return { params, page }
}
Extracts the page and params from an API request

@param {object} args arguments to runApi
@param {string} version next.js version
@returns {object} { page, params }