(opts, callback)
| 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; |
no outgoing calls
no test coverage detected