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

Commit

Permalink
Add manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Oct 1, 2019
1 parent 99e20d9 commit 87cdb9b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
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

0 comments on commit 87cdb9b

Please sign in to comment.