Skip to content

Commit

Permalink
Add manifest (Level/community#83) (#183)
Browse files Browse the repository at this point in the history
* Upgrade abstract-leveldown from ~6.1.1 to ~6.2.1
* Add manifest
  • Loading branch information
greenkeeper[bot] authored and vweevers committed Oct 1, 2019
1 parent 9a04b3b commit 4a0d645
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions index.js
Expand Up @@ -18,7 +18,14 @@ var DEFAULT_PREFIX = 'level-js-'

function Level (location, opts) {
if (!(this instanceof Level)) return new Level(location, opts)
AbstractLevelDOWN.call(this)

AbstractLevelDOWN.call(this, {
bufferKeys: support.bufferKeys(indexedDB),
snapshots: true,
permanence: true,
clear: true
})

opts = opts || {}

if (typeof location !== 'string') {
Expand All @@ -28,12 +35,6 @@ function Level (location, opts) {
this.location = location
this.prefix = opts.prefix || DEFAULT_PREFIX
this.version = parseInt(opts.version || 1, 10)

// Experimental, do not externally rely on this object yet.
// See Level/community#42.
this.supports = {
bufferKeys: support.bufferKeys(indexedDB)
}
}

inherits(Level, AbstractLevelDOWN)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -26,7 +26,7 @@
"./util/immediate.js": "./util/immediate-browser.js"
},
"dependencies": {
"abstract-leveldown": "~6.1.1",
"abstract-leveldown": "~6.2.1",
"immediate": "~3.2.3",
"inherits": "^2.0.3",
"ltgt": "^2.1.2"
Expand Down

0 comments on commit 4a0d645

Please sign in to comment.