abstract-leveldown
Advanced tools
Comparing version 0.0.1 to 0.0.2
/* 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 |
{ | ||
"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
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
28159
444