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

Commit

Permalink
Add manifest (Level/community#83)
Browse files Browse the repository at this point in the history
Cherry-picked from Level/leveldown#685.
Closes #144.
  • Loading branch information
vweevers committed Nov 4, 2019
1 parent 4888b97 commit 5eee577
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion leveldown.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,19 @@ function LevelDOWN (location) {
throw new Error('constructor requires a location string argument')
}

AbstractLevelDOWN.call(this)
AbstractLevelDOWN.call(this, {
bufferKeys: true,
snapshots: true,
permanence: true,
seek: true,
clear: true,
createIfMissing: true,
errorIfExists: true,
additionalMethods: {
approximateSize: true,
compactRange: true
}
})

this.location = location
this.context = binding.db_init()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"prepublishOnly": "npm run dependency-check"
},
"dependencies": {
"abstract-leveldown": "~6.1.1",
"abstract-leveldown": "~6.2.2",
"napi-macros": "~2.0.0",
"node-gyp-build": "~4.1.0"
},
Expand Down

0 comments on commit 5eee577

Please sign in to comment.