has-next-page.js 331 B

123456789
  1. module.exports = hasNextPage
  2. const deprecate = require('./deprecate')
  3. const getPageLinks = require('./get-page-links')
  4. function hasNextPage (link) {
  5. deprecate(`octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  6. return getPageLinks(link).next
  7. }