MCPcopy Index your code
hub / github.com/github-tools/github / getNextPage

Function getNextPage

lib/Requestable.js:295–304  ·  view source on GitHub ↗
(linksHeader = '')

Source from the content-addressed store, hash-verified

293}
294
295function getNextPage(linksHeader = '') {
296 const links = linksHeader.split(/\s*,\s*/); // splits and strips the urls
297 return links.reduce(function(nextUrl, link) {
298 if (link.search(/rel="next"/) !== -1) {
299 return (link.match(/<(.*)>/) || [])[1];
300 }
301
302 return nextUrl;
303 }, undefined);
304}
305
306function callbackErrorOrThrow(cb, path) {
307 return function handler(object) {

Callers 1

_requestAllPagesMethod · 0.70

Calls 1

searchMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…