has-first-page.js 335 B

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