level-sublevel
Advanced tools
Comparing version 4.0.5 to 4.1.0
{ | ||
"name": "level-sublevel", | ||
"description": "", | ||
"version": "4.0.5", | ||
"version": "4.1.0", | ||
"homepage": "https://github.com/dominictarr/level-sublevel", | ||
@@ -6,0 +6,0 @@ "repository": { |
var EventEmitter = require('events').EventEmitter | ||
var inherits = require('util').inherits | ||
var ranges = require('string-range') | ||
var fixRange = require('level-fix-range') | ||
@@ -123,3 +124,3 @@ inherits(SubDB, EventEmitter) | ||
var p = this.prefix() | ||
return r.hooks.pre(range, function (ch, add) { | ||
return r.hooks.pre(fixRange(range), function (ch, add) { | ||
hook({ | ||
@@ -141,3 +142,3 @@ key: ch.key.substring(p.length), | ||
console.log('posthook range', range) | ||
return r.hooks.post(range, function (data) { | ||
return r.hooks.post(fixRange(range), function (data) { | ||
hook({key: data.key.substring(p.length), value: data.value, type: data.type}) | ||
@@ -144,0 +145,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
17661
516