change-string-case/node_modules/@octokit/plugin-paginate-rest/dist-src/index.js

23 lines
553 B
JavaScript
Raw Normal View History

2022-11-04 00:55:07 +08:00
import { VERSION } from "./version";
import { paginate } from "./paginate";
import { iterator } from "./iterator";
2023-10-26 04:27:07 +08:00
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)
})
};
2022-11-04 00:55:07 +08:00
}
paginateRest.VERSION = VERSION;
2023-10-26 04:27:07 +08:00
export {
composePaginateRest,
isPaginatingEndpoint,
paginateRest,
paginatingEndpoints
};