has-previous-page.js 343 B

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