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

abstract-leveldown

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abstract-leveldown - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

11

abstract-leveldown.js
/* Copyright (c) 2013 Rod Vagg, MIT License */
function checkKeyValue(obj, type) {
function checkKeyValue (obj, type) {
if (obj === null || obj === undefined)

@@ -100,2 +100,3 @@ return new Error(type + ' cannot be `null` or `undefined`')

if (err) return callback(err)
if (!Buffer.isBuffer(key)) key = String(key)
if (typeof options != 'object')

@@ -119,2 +120,4 @@ options = {}

if (err) return callback(err)
if (!Buffer.isBuffer(key)) key = String(key)
if (!Buffer.isBuffer(value)) value = String(value)
if (typeof options != 'object')

@@ -136,2 +139,3 @@ options = {}

if (err) return callback(err)
if (!Buffer.isBuffer(key)) key = String(key)
if (typeof options != 'object')

@@ -171,2 +175,4 @@ options = {}

if (!Buffer.isBuffer(start)) start = String(start)
if (!Buffer.isBuffer(end)) end = String(end)
if (typeof this._approximateSize == 'function')

@@ -189,2 +195,3 @@ return this._approximateSize(start, end, callback)

module.exports.AbstractLevelDOWN = AbstractLevelDOWN
module.exports.AbstractIterator = AbstractIterator
module.exports.AbstractIterator = AbstractIterator
module.exports.checkKeyValue = checkKeyValue

2

package.json
{
"name" : "abstract-leveldown"
, "description" : "An abstract prototype matching the LevelDOWN API"
, "version" : "0.0.1"
, "version" : "0.0.2"
, "homepage" : "https://github.com/rvagg/node-abstract-leveldown"

@@ -6,0 +6,0 @@ , "authors" : [

Sorry, the diff of this file is not supported yet

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