level-sublevel
Advanced tools
Comparing version 6.1.6 to 6.1.7
//define the key ordering for level-sublevelq | ||
var join = '\x01', separate = '\x00' | ||
//var join = '\x01', separate = '\x00' | ||
var join = '#', separate = '!' | ||
@@ -6,0 +6,0 @@ |
{ | ||
"name": "level-sublevel", | ||
"description": "partition levelup databases", | ||
"version": "6.1.6", | ||
"version": "6.1.7", | ||
"homepage": "https://github.com/dominictarr/level-sublevel", | ||
@@ -6,0 +6,0 @@ "repository": { |
10
shell.js
var EventEmitter = require('events').EventEmitter | ||
var addpre = require('./range').addPrefix | ||
var errors = require('levelup/lib/errors') | ||
function isFunction (f) { | ||
@@ -94,5 +96,9 @@ return 'function' === typeof f | ||
emitter.get = function (key, opts, cb) { | ||
if('function' === typeof opts) | ||
if('function' === typeof opts) | ||
cb = opts, opts = {} | ||
nut.get(key, prefix, mergeOpts(opts), cb) | ||
nut.get(key, prefix, mergeOpts(opts), function (err, value) { | ||
if(err) cb(err) | ||
else if(value) cb(null, value) | ||
else cb(new errors.NotFoundError()) | ||
}) | ||
} | ||
@@ -99,0 +105,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
72567
45
2157