Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pouchdb-adapter-leveldb

Package Overview
Dependencies
Maintainers
3
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pouchdb-adapter-leveldb - npm Package Compare versions

Comparing version 5.4.1 to 5.4.2

17

lib/index.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc