How to use the pouchdb-wrappers.uninstallWrapperMethods function in pouchdb-wrappers

To help you get started, we’ve selected a few pouchdb-wrappers 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 / pouchdb-server / packages / node_modules / pouchdb-auth / lib / index.js View on Github external
if (i === -1) {
    throw new Error("Not an authentication database.");
  }
  utils.dbData.dbs.splice(i, 1);
  var info = utils.dbData.dataByDBIdx.splice(i, 1)[0];

  for (var name in api) {
    /* istanbul ignore else */
    if (api.hasOwnProperty(name)) {
      delete db[name];
    }
  }

  if (!info.isOnlineAuthDB) {
    systemDB.uninstallSystemDBProtection(db);
    wrappers.uninstallWrapperMethods(db, writeWrappers);
  }

  Validation.uninstallValidationMethods.call(db);
};

pouchdb-wrappers

Makes wrapping PouchDB functions a lot easier.

Apache-2.0
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis