MCPcopy Create free account
hub / github.com/apache/pouchdb / encodeDocId

Function encodeDocId

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

Source from the content-addressed store, hash-verified

6717}
6718
6719function encodeDocId(id) {
6720 if (/^_design/.test(id)) {
6721 return '_design/' + encodeURIComponent(id.slice(8));
6722 }
6723 if (id.startsWith('_local/')) {
6724 return '_local/' + encodeURIComponent(id.slice(7));
6725 }
6726 return encodeURIComponent(id);
6727}
6728
6729function preprocessAttachments$1(doc) {
6730 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…