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

Method changes

lib/index.js:2443–2457  ·  view source on GitHub ↗
(opts, callback)

Source from the content-addressed store, hash-verified

2441 }
2442
2443 changes(opts, callback) {
2444 if (typeof opts === 'function') {
2445 callback = opts;
2446 opts = {};
2447 }
2448
2449 opts = opts || {};
2450
2451 // By default set return_docs to false if the caller has opts.live = true,
2452 // this will prevent us from collecting the set of changes indefinitely
2453 // resulting in growing memory
2454 opts.return_docs = ('return_docs' in opts) ? opts.return_docs : !opts.live;
2455
2456 return new Changes$1(this, opts, callback);
2457 }
2458
2459 type() {
2460 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