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

Function ddocValidator

lib/index-browser.es.js:9212–9218  ·  view source on GitHub ↗
(ddoc, viewName)

Source from the content-addressed store, hash-verified

9210}
9211
9212function ddocValidator(ddoc, viewName) {
9213 var fun = ddoc.views && ddoc.views[viewName];
9214 if (typeof fun.map !== 'string') {
9215 throw new NotFoundError('ddoc ' + ddoc._id + ' has no string view named ' +
9216 viewName + ', instead found object of type: ' + typeof fun.map);
9217 }
9218}
9219
9220var localDocName = 'mrviews';
9221var abstract = createAbstractMapReduce(localDocName, mapper, reducer, ddocValidator);

Callers 1

queryPromisedFunction · 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…