Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
Add db.supports.events
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Oct 9, 2021
1 parent 1836164 commit 15ea858
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
19 changes: 18 additions & 1 deletion lib/levelup.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,24 @@ function LevelUP (db, options, callback) {
deferredOpen: true,
openCallback: true,
promises: true,
streams: true
streams: true,
events: {
opening: true,
open: true,
ready: true,
closing: true,
closed: true,
put: true,
del: true,
batch: true,
clear: true,
error: true
},

// Unsupported abstract-leveldown features
idempotentOpen: false,
passiveOpen: false,
serialize: false
})

// Experimental: enrich levelup interface
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"deferred-leveldown": "^7.0.0",
"level-errors": "^3.0.1",
"level-iterator-stream": "^5.0.0",
"level-supports": "^2.0.1",
"level-supports": "^2.0.2",
"queue-microtask": "^1.2.3"
},
"devDependencies": {
Expand Down

0 comments on commit 15ea858

Please sign in to comment.