has-last-page.js 331 B

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