/usr/local/lib/node_modules/pm2/node_modules/js-git/mixins
NameSizeModeActions
add-cache.js16250644editdlrm
create-tree.js39340644editdlrm
delay.js14610644editdlrm
fall-through.js8110644editdlrm
formats.js36380644editdlrm
fs-db.js105440644editdlrm
indexed-db.js39350644editdlrm
mem-cache.js15720644editdlrm
mem-db.js22890644editdlrm
pack-ops.js59440644editdlrm
path-to-entry.js12630644editdlrm
read-combiner.js7610644editdlrm
sync.js42050644editdlrm
walkers.js39140644editdlrm
websql-db.js44870644editdlrm
Edit: /usr/local/lib/node_modules/pm2/node_modules/js-git/mixins/read-combiner.js (761B)
"use strict"; // This replaces loadAs with a version that batches concurrent requests for // the same hash. module.exports = function (repo) { var pendingReqs = {}; var loadAs = repo.loadAs; repo.loadAs = newLoadAs; function newLoadAs(type, hash, callback) { if (!callback) return newLoadAs.bind(null, type, hash); var list = pendingReqs[hash]; if (list) { if (list.type !== type) callback(new Error("Type mismatch")); else list.push(callback); return; } list = pendingReqs[hash] = [callback]; list.type = type; loadAs.call(repo, type, hash, function () { delete pendingReqs[hash]; for (var i = 0, l = list.length; i < l; i++) { list[i].apply(this, arguments); } }); } };