pouchdb-adapter-leveldb
Advanced tools
Comparing version 5.4.1 to 5.4.2
@@ -37,9 +37,16 @@ 'use strict'; | ||
var leveldown = requireLeveldown(); | ||
function LevelDownPouch(opts, callback) { | ||
/* istanbul ignore if */ | ||
if (leveldown instanceof Error) { | ||
return callback(leveldown); | ||
// Users can pass in their own leveldown alternative here, in which case | ||
// it overrides the default one. (This is in addition to the custom builds.) | ||
var leveldown = opts.db; | ||
/* istanbul ignore else */ | ||
if (!leveldown) { | ||
leveldown = requireLeveldown(); | ||
/* istanbul ignore if */ | ||
if (leveldown instanceof Error) { | ||
return callback(leveldown); | ||
} | ||
} | ||
@@ -46,0 +53,0 @@ |
{ | ||
"name": "pouchdb-adapter-leveldb", | ||
"version": "5.4.1", | ||
"version": "5.4.2", | ||
"description": "PouchDB adapter using LevelDB as its backing store.", | ||
@@ -18,4 +18,4 @@ "main": "./lib/index.js", | ||
"leveldown": "1.4.6", | ||
"pouchdb-adapter-leveldb-core": "5.4.1" | ||
"pouchdb-adapter-leveldb-core": "5.4.2" | ||
} | ||
} |
@@ -5,9 +5,16 @@ import CoreLevelPouch from 'pouchdb-adapter-leveldb-core'; | ||
var leveldown = requireLeveldown(); | ||
function LevelDownPouch(opts, callback) { | ||
/* istanbul ignore if */ | ||
if (leveldown instanceof Error) { | ||
return callback(leveldown); | ||
// Users can pass in their own leveldown alternative here, in which case | ||
// it overrides the default one. (This is in addition to the custom builds.) | ||
var leveldown = opts.db; | ||
/* istanbul ignore else */ | ||
if (!leveldown) { | ||
leveldown = requireLeveldown(); | ||
/* istanbul ignore if */ | ||
if (leveldown instanceof Error) { | ||
return callback(leveldown); | ||
} | ||
} | ||
@@ -14,0 +21,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16709
114
+ Addedpouchdb-adapter-leveldb-core@5.4.2(transitive)
+ Addedpouchdb-adapter-utils@5.4.2(transitive)
+ Addedpouchdb-binary-utils@5.4.2(transitive)
+ Addedpouchdb-errors@5.4.2(transitive)
+ Addedpouchdb-json@5.4.2(transitive)
+ Addedpouchdb-md5@5.4.2(transitive)
+ Addedpouchdb-merge@5.4.2(transitive)
+ Addedpouchdb-promise@5.4.2(transitive)
+ Addedpouchdb-utils@5.4.2(transitive)
+ Addedsublevel-pouchdb@1.0.1(transitive)
- Removedpouchdb-adapter-leveldb-core@5.4.1(transitive)
- Removedpouchdb-adapter-utils@5.4.1(transitive)
- Removedpouchdb-binary-utils@5.4.1(transitive)
- Removedpouchdb-errors@5.4.1(transitive)
- Removedpouchdb-json@5.4.1(transitive)
- Removedpouchdb-md5@5.4.1(transitive)
- Removedpouchdb-merge@5.4.1(transitive)
- Removedpouchdb-promise@5.4.1(transitive)
- Removedpouchdb-utils@5.4.1(transitive)
- Removedsublevel-pouchdb@1.0.0(transitive)