level-sublevel
Advanced tools
Comparing version 6.3.15 to 6.3.16
@@ -11,5 +11,10 @@ | ||
module.exports = function (db, opts) { | ||
var sublevel = function (db, opts) { | ||
opts = merge(db.options, opts) | ||
return shell ( nut ( db, precodec, codec ), [], ReadStream, opts) | ||
} | ||
module.exports = function (db, opts) { | ||
if (typeof db.sublevel === 'function' && typeof db.clone === 'function') return db.clone(opts) | ||
return sublevel(db, opts) | ||
} |
{ | ||
"name": "level-sublevel", | ||
"description": "partition levelup databases", | ||
"version": "6.3.15", | ||
"version": "6.3.16", | ||
"homepage": "https://github.com/dominictarr/level-sublevel", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -106,2 +106,6 @@ var EventEmitter = require('events').EventEmitter | ||
emitter.clone = function(opts) { | ||
return sublevel(nut, prefix, createStream, mergeOpts(opts)) | ||
} | ||
emitter.sublevel = function (name, opts) { | ||
@@ -108,0 +112,0 @@ return emitter.sublevels[name] = |
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
76473
2291