Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/* istanbul ignore else */
if (!leveldown) {
leveldown = requireLeveldown();
/* istanbul ignore if */
if (leveldown instanceof Error) {
return callback(leveldown);
}
}
var _opts = Object.assign({
db: leveldown,
migrate: migrate
}, opts);
CoreLevelPouch.call(this, _opts, callback);
}
function CustomLevelPouch(opts, callback) {
var _opts = assign({
db: db
}, opts);
CoreLevelPouch.call(this, _opts, callback);
}
function FruitDownPouch(opts, callback) {
var _opts = Object.assign({
db: fruitdown
}, opts);
CoreLevelPouch.call(this, _opts, callback);
}
function MemDownPouch(opts, callback) {
var _opts = Object.assign({
db: memdown
}, opts);
CoreLevelPouch.call(this, _opts, callback);
}
function LocalStoragePouch(opts, callback) {
var _opts = Object.assign({
db: localstoragedown
}, opts);
CoreLevelPouch.call(this, _opts, callback);
}