MCPcopy
hub / github.com/apache/pouchdb / isRemote

Function isRemote

lib/index.es.js:649–662  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

647// Checks if a PouchDB object is "remote" or not. This is
648
649function 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
664function listenerCount(ee, type) {
665 return 'listenerCount' in ee ? ee.listenerCount(type) :

Callers 5

_setupMethod · 0.70
shouldFilterFunction · 0.70
queryPromisedFunction · 0.70
createAbstractMapReduceFunction · 0.70

Calls 2

guardedConsoleFunction · 0.70
typeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…