lib/search.js
/*
 * Extract navigation tokens for next pages, parse results and call
 * `checkFinished` to repeat the process with next page if necessary.
 */
Extract navigation tokens for next pages, parse results and call
`checkFinished` to repeat the process with next page if necessary.
Extract navigation tokens for next pages parse results and call ` checkFinished ` to repeat the process with next page if necessary .
function processAndRecur (html, opts, savedApps, mappings, fSid) {
  if (!fSid) {
    const match = html.match(pattern);
    if (match.length > 0) {
      fSid = match[0];
    }
  }
  if (R.is(String, html)) {
    html = scriptData.parse(html);
  }
  const apps = appList.extract(mappings.apps, html);
  const token = R.path(mappings.token, html);
  return checkFinished(opts, [...savedApps, ...apps], token, fSid);
}
function processAndRecur ( html , opts , savedApps , mappings , fSid ) { if ( ! fSid ) { const match = html . match ( pattern ) ; if ( match . length > 0 ) { fSid = match [ 0 ] ; } } if ( R . is ( String , html ) ) { html = scriptData . parse ( html ) ; } const apps = appList . extract ( mappings . apps , html ) ; const token = R . path ( mappings . token , html ) ; return checkFinished ( opts , [ ... savedApps , ... apps ] , token , fSid ) ; }
Extract navigation tokens for next pages, parse results and call
 `checkFinished` to repeat the process with next page if necessary.
Extract navigation tokens for next pages parse results and call ` checkFinished ` to repeat the process with next page if necessary .