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

Function parseBase64

lib/index-browser.js:4400–4408  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

4398}
4399
4400function parseBase64(data) {
4401 try {
4402 return thisAtob(data);
4403 } catch (e) {
4404 var err = createError(BAD_ARG,
4405 'Attachment is not a valid base64 string');
4406 return {error: err};
4407 }
4408}
4409
4410function preprocessString(att, blobType, callback) {
4411 var asBinary = parseBase64(att.data);

Callers 1

preprocessStringFunction · 0.70

Calls 2

thisAtobFunction · 0.70
createErrorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…