mirror of
https://github.com/diligencia/semantic-branch-version.git
synced 2024-11-27 16:23:50 +08:00
16 lines
436 B
JavaScript
16 lines
436 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;
|