{"_id":"octokit-pagination-methods","_rev":"2-6e51ab35a7a7c2444164303cb624856b","name":"octokit-pagination-methods","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"octokit-pagination-methods","version":"1.0.0","publishConfig":{"access":"public","tag":"latest"},"description":"Legacy Octokit pagination methods from v15","main":"index.js","directories":{"test":"test"},"scripts":{"coverage":"tap --coverage-report=html","coverage:upload":"npm run test && tap --coverage-report=text-lcov | coveralls","pretest":"standard && standard-markdown *.md","test":"tap --coverage test.js","semantic-release":"semantic-release"},"repository":{"type":"git","url":"git+https://github.com/gr2m/octokit-pagination-methods.git"},"keywords":["octokit","github","api","rest","plugin"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","bugs":{"url":"https://github.com/gr2m/octokit-pagination-methods/issues"},"homepage":"https://github.com/gr2m/octokit-pagination-methods#readme","devDependencies":{"@octokit/rest":"github:octokit/rest.js#next","coveralls":"^3.0.2","nock":"^10.0.2","semantic-release":"^15.10.8","simple-mock":"^0.8.0","standard":"^12.0.1","standard-markdown":"^5.0.1","tap":"^12.0.1"},"dependencies":{},"gitHead":"9262a873c8555652e6cad2fbeb52c4b6d394ee9d","_id":"octokit-pagination-methods@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"gr2m","email":"gregor@martynus.net"},"dist":{"integrity":"sha512-OunlM6gjJhgVbbR2XI6+Gej5WlKM6+NyilcVkwBoTyNKGfg/vBwtYrpV0N/gTFYTruTx59+97jGSu/+mMw7Hig==","shasum":"02bdae1daf5b39189933c7c64b98e64b13940e88","tarball":"https://registry.npmjs.org/octokit-pagination-methods/-/octokit-pagination-methods-1.0.0.tgz","fileCount":18,"unpackedSize":14477,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb5HGWCRA9TVsSAnZWagAAUsYP/jtSG5nEB37fjzXIs1UR\naA2jGL3DF4+jvjuqLs4ScLCxsxK6a3gz+YHnSD3lPylGSyoxAI9jzyggwCQS\nmnaKznFfzZSze4FYdnF4ZTGvCCAnqqsCiTEBqBOHXPlbIWx1PzHjFTjOS9KL\nuZxtb6kZmhTD7JFUnugWeiY21EJcthfcZKxFBULAfpB2XDHUIgmdP9FDADoV\nwri0dbayZkp1XwSAdMwtvwnD5aWRh6tJtclnVXkAM9tdKv83e6xEWv6LB7Ph\nnFojOTpFANWZ1Vd89ZtXGLnwV6n3QHbBBI0Cxq/1v+Tt8OVR/ygEUCWF0LfG\nDu2BzJ5ybmotfA8X7rPeQJd8KQ8rz4ZpkScJZ5+tL6IgPqLAYNUxJnbwFk1S\nOeehTi6HO0SAjXoJA/rYBkO3qtlujrv1cZHZTcn2DAfN0/Ke64oV7zZ6epCO\nQXb8BpOek3u4V8QY5lz6KmLCtSwmtzUIymWTGnTcfpRIRoWS8Lnmv4kPoYI/\nK7x5o6MaE9F37e66+tnvGP9QSbgkmWvv1GIw5e8k+I/oZ5RamwRxNSP1iirs\nXmifRB2GxirC86KojeQwS+oqvCadzJ584PWKkV4vYw8HMXWNNQqGO5lg4M90\nI5P+4R4hH+1ftB1+o6E4GT/jrxxE2qQmFh/rRIeJCM5FJbyz7/Av4KyO9J8d\nQOq/\r\n=BuSU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICC+z5vn1OmXyqoq26RsRqJgoGcLhvsAlKYAeDFRs7q8AiBIJNWUpWjWKaVyI8jNAMlSjXyQZ7If/IK3ES9SarlbhA=="}]},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/octokit-pagination-methods_1.0.0_1541697941433_0.11800715000371609"},"_hasShrinkwrap":false},"1.1.0":{"name":"octokit-pagination-methods","version":"1.1.0","publishConfig":{"access":"public","tag":"latest"},"description":"Legacy Octokit pagination methods from v15","main":"index.js","directories":{"test":"test"},"scripts":{"coverage":"tap --coverage-report=html","coverage:upload":"npm run test && tap --coverage-report=text-lcov | coveralls","pretest":"standard && standard-markdown *.md","test":"tap --coverage test.js","semantic-release":"semantic-release"},"repository":{"type":"git","url":"git+https://github.com/gr2m/octokit-pagination-methods.git"},"keywords":["octokit","github","api","rest","plugin"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","bugs":{"url":"https://github.com/gr2m/octokit-pagination-methods/issues"},"homepage":"https://github.com/gr2m/octokit-pagination-methods#readme","devDependencies":{"@octokit/rest":"github:octokit/rest.js#next","coveralls":"^3.0.2","nock":"^10.0.2","semantic-release":"^15.10.8","simple-mock":"^0.8.0","standard":"^12.0.1","standard-markdown":"^5.0.1","tap":"^12.0.1"},"dependencies":{},"gitHead":"cd4e0dffc7535bf7bca0e328a6aa70f81634f58d","_id":"octokit-pagination-methods@1.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"gr2m","email":"gregor@martynus.net"},"dist":{"integrity":"sha512-fZ4qZdQ2nxJvtcasX7Ghl+WlWS/d9IgnBIwFZXVNNZUmzpno91SX5bc5vuxiuKoCtK78XxGGNuSCrDC7xYB3OQ==","shasum":"cf472edc9d551055f9ef73f6e42b4dbb4c80bea4","tarball":"https://registry.npmjs.org/octokit-pagination-methods/-/octokit-pagination-methods-1.1.0.tgz","fileCount":19,"unpackedSize":15359,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb5HvdCRA9TVsSAnZWagAAEtgP/in1AAJbmrBP3AZ8XsMb\n056/ZSAmf4UhGjGBK/gLskEbgnNRcTEhmZmg31u+sD35/QQoM9p52Wlg7eeD\nfxprjxVvby3nxrGhAHNoc0ljJQjAWgth7fPssL3ZL/EZLey4xhDN5IBJPuks\naZ9LqYzvo0OTVSuwFA4x9Sih7GuaKHePYNgskDxS2SxSC1QonowH5KsAJdGz\n51mbaDAcvGHRD0jfTD/e8kAkhyPKsdqN+Wa+ePexq1VnQgDFO8rXXQPw0Ix0\nTMtT4ivOFGrvvxlcUr3gyB6lSyTE/en7lGf1+Eiya19XTqeJlHISu6HVVRUE\nJJgket5KJGdkYeexdsWyLKTxxJtbzxlDzJh3fcAWHWJpTh1wC6EoTEmjDWDS\nHJenypF/DM1EQX+Wx0/a7ctrQPX69BtPVI5baOzJ2fYNzL3rsdqVpQ4bmflr\nLBv5uR8wTS7aa8/3TDIF1qyiOWk/ljjpq0UZQthe3lEPj/OtAgGabcuzUfmf\npiL3dtEWXJlGbGd85oGoEBWAEGCzb/gkXxvE8weDhEgud+VAHAt2paLfJnT+\nyDrm88pwi37KN41IFHwlBnT1SBMy/L2EEZIGVP9W8Jn5TxtsCSFdoq+Ewr7d\nKvUxnSuuhw2M95ztEMmvBqTgrhyt2BkvOnMwsFJKhBfaFeiGui5GMn3yhFRm\nBu+6\r\n=XYfY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEphBxgqd+AMLdYVbyd7OLyC+F1nkAOl+fF/fovyFQ5PAiB494m/nX8Bl+rOj0M8K76uLFoDT9QSYo/E3pLtp83VIQ=="}]},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/octokit-pagination-methods_1.1.0_1541700573082_0.7670260291234887"},"_hasShrinkwrap":false}},"time":{"created":"2018-11-08T17:25:41.273Z","1.0.0":"2018-11-08T17:25:41.508Z","modified":"2022-05-12T02:05:55.690Z","1.1.0":"2018-11-08T18:09:33.261Z"},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"description":"Legacy Octokit pagination methods from v15","homepage":"https://github.com/gr2m/octokit-pagination-methods#readme","keywords":["octokit","github","api","rest","plugin"],"repository":{"type":"git","url":"git+https://github.com/gr2m/octokit-pagination-methods.git"},"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"bugs":{"url":"https://github.com/gr2m/octokit-pagination-methods/issues"},"license":"MIT","readme":"# octokit-pagination-methods\n\n> Legacy Octokit pagination methods from v15\n\n[![Build Status](https://travis-ci.com/gr2m/octokit-pagination-methods.svg?branch=master)](https://travis-ci.com/gr2m/octokit-pagination-methods)\n[![Coverage Status](https://coveralls.io/repos/gr2m/octokit-pagination-methods/badge.svg?branch=master)](https://coveralls.io/github/gr2m/octokit-pagination-methods?branch=master)\n[![Greenkeeper badge](https://badges.greenkeeper.io/gr2m/octokit-pagination-methods.svg)](https://greenkeeper.io/)\n\nSeveral pagination methods such as `octokit.hasNextPage()` and `octokit.getNextPage()` have been removed from `@octokit/request` in v16.0.0 in favor of `octokit.paginate()`. This plugin brings back the methods to ease the upgrade to v16.\n\n## Usage\n\n```js\nconst Octokit = require('@octokit/rest')\n  .plugin('octokit-pagination-methods')\nconst octokit = new Octokit()\n\noctokit.issues.getForRepo()\n\n  .then(async response => {\n    // returns true/false\n    octokit.hasNextPage(response)\n    octokit.hasPreviousPage(response)\n    octokit.hasFirstPage(response)\n    octokit.hasLastPage(response)\n\n    // fetch other pages\n    const nextPage = await octokit.getNextPage(response)\n    const previousPage = await octokit.getPreviousPage(response)\n    const firstPage = await octokit.getFirstPage(response)\n    const lastPage = await octokit.getLastPage(response)\n  })\n```\n\n## Credit\n\nThese methods have originally been created for `node-github` by [@mikedeboer](https://github.com/mikedeboer)\nwhile working at Cloud9 IDE, Inc. It was adopted and renamed by GitHub in 2017.\n\n## LICENSE\n\n[MIT](LICENSE)\n","readmeFilename":"README.md"}