Files
release-action/node_modules/@octokit/plugin-paginate-rest/dist-src/index.js
Nick Cipollo 880be3d0a7
Some checks failed
Test / check_pr (push) Has been cancelled
Prepare 1.8.6 release
2021-05-24 11:25:03 -04:00

17 lines
494 B
JavaScript

import { VERSION } from "./version";
import { paginate } from "./paginate";
import { iterator } from "./iterator";
export { composePaginateRest } from "./compose-paginate";
/**
* @param octokit Octokit instance
* @param options Options passed to Octokit constructor
*/
export function paginateRest(octokit) {
return {
paginate: Object.assign(paginate.bind(null, octokit), {
iterator: iterator.bind(null, octokit),
}),
};
}
paginateRest.VERSION = VERSION;