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

Function normalize

lib/index-browser.js:4100–4116  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

4098}
4099
4100function normalize(opts) {
4101 if (opts.view && !opts.filter) {
4102 opts.filter = '_view';
4103 }
4104
4105 if (opts.selector && !opts.filter) {
4106 opts.filter = '_selector';
4107 }
4108
4109 if (opts.filter && typeof opts.filter === 'string') {
4110 if (opts.filter === '_view') {
4111 opts.view = normalizeDesignDocFunctionName(opts.view);
4112 } else {
4113 opts.filter = normalizeDesignDocFunctionName(opts.filter);
4114 }
4115 }
4116}
4117
4118function shouldFilter(changesHandler, opts) {
4119 return opts.filter && typeof opts.filter === 'string' &&

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…