(db)
| 632 | // Checks if a PouchDB object is "remote" or not. This is |
| 633 | |
| 634 | function isRemote(db) { |
| 635 | if (typeof db._remote === 'boolean') { |
| 636 | return db._remote; |
| 637 | } |
| 638 | /* istanbul ignore next */ |
| 639 | if (typeof db.type === 'function') { |
| 640 | guardedConsole('warn', |
| 641 | 'db.type() is deprecated and will be removed in ' + |
| 642 | 'a future version of PouchDB'); |
| 643 | return db.type() === 'http'; |
| 644 | } |
| 645 | /* istanbul ignore next */ |
| 646 | return false; |
| 647 | } |
| 648 | |
| 649 | function listenerCount(ee, type) { |
| 650 | return 'listenerCount' in ee ? ee.listenerCount(type) : |
no test coverage detected
searching dependent graphs…