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

Function normalize

lib/index.es.js:3935–3951  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

3933}
3934
3935function normalize(opts) {
3936 if (opts.view && !opts.filter) {
3937 opts.filter = '_view';
3938 }
3939
3940 if (opts.selector && !opts.filter) {
3941 opts.filter = '_selector';
3942 }
3943
3944 if (opts.filter && typeof opts.filter === 'string') {
3945 if (opts.filter === '_view') {
3946 opts.view = normalizeDesignDocFunctionName(opts.view);
3947 } else {
3948 opts.filter = normalizeDesignDocFunctionName(opts.filter);
3949 }
3950 }
3951}
3952
3953function shouldFilter(changesHandler, opts) {
3954 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…