(db)
| 647 | // Checks if a PouchDB object is "remote" or not. This is |
| 648 | |
| 649 | function isRemote(db) { |
| 650 | if (typeof db._remote === 'boolean') { |
| 651 | return db._remote; |
| 652 | } |
| 653 | /* istanbul ignore next */ |
| 654 | if (typeof db.type === 'function') { |
| 655 | guardedConsole('warn', |
| 656 | 'db.type() is deprecated and will be removed in ' + |
| 657 | 'a future version of PouchDB'); |
| 658 | return db.type() === 'http'; |
| 659 | } |
| 660 | /* istanbul ignore next */ |
| 661 | return false; |
| 662 | } |
| 663 | |
| 664 | function listenerCount(ee, type) { |
| 665 | return 'listenerCount' in ee ? ee.listenerCount(type) : |
no test coverage detected
searching dependent graphs…