github-pages-deploy-action/node_modules/@octokit/plugin-paginate-rest/dist-src/index.js

16 lines
436 B
JavaScript
Raw Normal View History

2020-03-02 21:16:42 +08:00
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), {
2020-07-05 03:43:39 +08:00
iterator: iterator.bind(null, octokit),
}),
2020-03-02 21:16:42 +08:00
};
}
paginateRest.VERSION = VERSION;