prod/service-worker-28ddbc7ef7a575da0539a0f05f4bfdae.js
function compactTree(metadata) {
  var revs = [];
  traverseRevTree(metadata.rev_tree, function (isLeaf, pos,
                                               revHash, ctx, opts) {
    if (opts.status === 'available' && !isLeaf) {
      revs.push(pos + '-' + revHash);
      opts.status = 'missing';
    }
  });
  return revs;
}
function compactTree(metadata) {
  var revs = [];
  traverseRevTree(metadata.rev_tree, function (isLeaf, pos,
                                               revHash, ctx, opts) {
    if (opts.status === 'available' && !isLeaf) {
      revs.push(pos + '-' + revHash);
      opts.status = 'missing';
    }
  });
  return revs;
}
function compactTree ( metadata ) { var revs = [ ] ; traverseRevTree ( metadata . rev_tree , function ( isLeaf , pos , revHash , ctx , opts ) { if ( opts . status === 'available' && ! isLeaf ) { revs . push ( pos + '-' + revHash ) ; opts . status = 'missing' ; } } ) ; return revs ; }
compact a tree by marking its non-leafs as missing, and return a list of revs to delete
compact a tree by marking its non - leafs as missing and return a list of revs to delete