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

Function isRemote

lib/index-browser.js:634–647  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

632// Checks if a PouchDB object is "remote" or not. This is
633
634function 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
649function listenerCount(ee, type) {
650 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…