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

Method changes

lib/index-browser.js:2602–2616  ·  view source on GitHub ↗
(opts, callback)

Source from the content-addressed store, hash-verified

2600 }
2601
2602 changes(opts, callback) {
2603 if (typeof opts === 'function') {
2604 callback = opts;
2605 opts = {};
2606 }
2607
2608 opts = opts || {};
2609
2610 // By default set return_docs to false if the caller has opts.live = true,
2611 // this will prevent us from collecting the set of changes indefinitely
2612 // resulting in growing memory
2613 opts.return_docs = ('return_docs' in opts) ? opts.return_docs : !opts.live;
2614
2615 return new Changes$1(this, opts, callback);
2616 }
2617
2618 type() {
2619 return (typeof this._type === 'function') ? this._type() : this.adapter;

Callers 4

_compactMethod · 0.95
eventFunctionMethod · 0.45
processNextBatchFunction · 0.45
getChangesFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected