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

Function normalize

lib/index.js:3940–3956  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

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