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