MCPcopy Index your code
hub / github.com/apache/pouchdb / parseRevisionInfo

Function parseRevisionInfo

lib/index.js:4542–4553  ·  view source on GitHub ↗
(rev$$1)

Source from the content-addressed store, hash-verified

4540]);
4541
4542function parseRevisionInfo(rev$$1) {
4543 if (!/^\d+-/.test(rev$$1)) {
4544 return createError(INVALID_REV);
4545 }
4546 var idx = rev$$1.indexOf('-');
4547 var left = rev$$1.substring(0, idx);
4548 var right = rev$$1.substring(idx + 1);
4549 return {
4550 prefix: parseInt(left, 10),
4551 id: right
4552 };
4553}
4554
4555function makeRevTreeFromRevisions(revisions, opts) {
4556 var pos = revisions.start - revisions.ids.length + 1;

Callers 1

parseDocFunction · 0.70

Calls 1

createErrorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…