change-string-case/node_modules/@octokit/plugin-paginate-rest/dist-src/index.js
Alex Szczuczko d0603cd0a7 npm install
2023-10-25 14:27:07 -06:00

23 lines
553 B
JavaScript

import { VERSION } from "./version";
import { paginate } from "./paginate";
import { iterator } from "./iterator";
import { composePaginateRest } from "./compose-paginate";
import {
isPaginatingEndpoint,
paginatingEndpoints
} from "./paginating-endpoints";
function paginateRest(octokit) {
return {
paginate: Object.assign(paginate.bind(null, octokit), {
iterator: iterator.bind(null, octokit)
})
};
}
paginateRest.VERSION = VERSION;
export {
composePaginateRest,
isPaginatingEndpoint,
paginateRest,
paginatingEndpoints
};