level-sublevel
Advanced tools
Comparing version 1.0.4 to 2.0.0
14
index.js
@@ -22,4 +22,14 @@ | ||
db.pre = db.hooks.pre | ||
db.post = db.hooks.post | ||
db.pre = function (hook) { | ||
r.hooks.pre({ | ||
start: '', | ||
end : sep | ||
} | ||
, hook) | ||
return db | ||
} | ||
db.post = function (hook) { | ||
db.hooks.post({start: '', end: sep}, hook) | ||
return db | ||
} | ||
@@ -26,0 +36,0 @@ return db |
{ | ||
"name": "level-sublevel", | ||
"description": "", | ||
"version": "1.0.4", | ||
"version": "2.0.0", | ||
"homepage": "https://github.com/dominictarr/level-sublevel", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -70,9 +70,2 @@ # level-sublevel | ||
## Known Issues | ||
Until this issue is closed https://github.com/rvagg/node-levelup/issues/86 | ||
hooks do not work correctly until the database is fully opened. | ||
Use `levelup(dir, function (err, db) {...})` to open db, | ||
not `var db = levelup(dir)`. | ||
## License | ||
@@ -79,0 +72,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
187
6940
74