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

Function encodeDocId

lib/index.js:6711–6719  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

6709}
6710
6711function encodeDocId(id) {
6712 if (/^_design/.test(id)) {
6713 return '_design/' + encodeURIComponent(id.slice(8));
6714 }
6715 if (id.startsWith('_local/')) {
6716 return '_local/' + encodeURIComponent(id.slice(7));
6717 }
6718 return encodeURIComponent(id);
6719}
6720
6721function preprocessAttachments$1(doc) {
6722 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…