Skip to content

Commit eafc0f1

Browse files
authored
indexeddb: rename main adapter fn (#8770)
This helps differentiate from `pouchdb-adapter-idb` in stack traces.
1 parent 1a6a182 commit eafc0f1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/node_modules/pouchdb-adapter-indexeddb/src

packages/node_modules/pouchdb-adapter-indexeddb/src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var idbChanges = new changesHandler();
2626
// A shared list of database handles
2727
var openDatabases = {};
2828

29-
function IdbPouch(dbOpts, callback) {
29+
function IndexeddbPouch(dbOpts, callback) {
3030

3131
if (dbOpts.view_adapter) {
3232
console.log('Please note that the indexeddb adapter manages _find indexes itself, therefore it is not using your specified view_adapter');
@@ -161,10 +161,10 @@ function IdbPouch(dbOpts, callback) {
161161
}
162162

163163
// TODO: this isnt really valid permanently, just being lazy to start
164-
IdbPouch.valid = function () {
164+
IndexeddbPouch.valid = function () {
165165
return true;
166166
};
167167

168168
export default function (PouchDB) {
169-
PouchDB.adapter(ADAPTER_NAME, IdbPouch, true);
169+
PouchDB.adapter(ADAPTER_NAME, IndexeddbPouch, true);
170170
}

0 commit comments

Comments
 (0)