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

Function encodeDocId

lib/index.es.js:6706–6714  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

6704}
6705
6706function encodeDocId(id) {
6707 if (/^_design/.test(id)) {
6708 return '_design/' + encodeURIComponent(id.slice(8));
6709 }
6710 if (id.startsWith('_local/')) {
6711 return '_local/' + encodeURIComponent(id.slice(7));
6712 }
6713 return encodeURIComponent(id);
6714}
6715
6716function preprocessAttachments$1(doc) {
6717 if (!doc._attachments || !Object.keys(doc._attachments)) {

Callers 2

HttpPouchFunction · 0.70
fetchDataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…