prod/service-worker-28ddbc7ef7a575da0539a0f05f4bfdae.js
function fetchDocAsynchronously(metadata, row, winningRev$$1) {
    var key = metadata.id + "::" + winningRev$$1;
    docIdRevIndex.get(key).onsuccess =  function onGetDoc(e) {
      row.doc = decodeDoc(e.target.result);
      if (opts.conflicts) {
        var conflicts = pouchdbMerge.collectConflicts(metadata);
        if (conflicts.length) {
          row.doc._conflicts = conflicts;
        }
      }
      fetchAttachmentsIfNecessary(row.doc, opts, txn);
    };
  }
function fetchDocAsynchronously(metadata, row, winningRev$$1) {
    var key = metadata.id + "::" + winningRev$$1;
    docIdRevIndex.get(key).onsuccess =  function onGetDoc(e) {
      row.doc = decodeDoc(e.target.result);
      if (opts.conflicts) {
        var conflicts = pouchdbMerge.collectConflicts(metadata);
        if (conflicts.length) {
          row.doc._conflicts = conflicts;
        }
      }
      fetchAttachmentsIfNecessary(row.doc, opts, txn);
    };
  }
function fetchDocAsynchronously ( metadata , row , winningRev$$1 ) { var key = metadata . id + "::" + winningRev$$1 ; docIdRevIndex . get ( key ) . onsuccess = function onGetDoc ( e ) { row . doc = decodeDoc ( e . target . result ) ; if ( opts . conflicts ) { var conflicts = pouchdbMerge . collectConflicts ( metadata ) ; if ( conflicts . length ) { row . doc . _conflicts = conflicts ; } } fetchAttachmentsIfNecessary ( row . doc , opts , txn ) ; } ; }
if the user specifies include_docs=true, then we don't want to block the main cursor while we're fetching the doc
if the user specifies include_docs = true then we don t want to block the main cursor while we re fetching the doc