How to use the pouchdb/extras/promise.resolve function in pouchdb

To help you get started, we’ve selected a few pouchdb examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pouchdb-community / worker-pouch / lib / worker / make-pouch-creator.js View on Github external
function createLocalPouch(args) {

  if (typeof args[0] === 'string') {
    args = [{name: args[0]}];

  return Promise.resolve({
    pouch: new PouchDB(args[0])