github-pages-deploy-action/node_modules/@octokit/plugin-paginate-rest/dist-src/index.js
James Ives a5a215d318 Revert
2020-06-06 12:27:02 -04:00

16 lines
434 B
JavaScript

import { VERSION } from "./version";
import { paginate } from "./paginate";
import { iterator } from "./iterator";
/**
* @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;