This repository was archived by the owner on Dec 2, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,14 @@ var DEFAULT_PREFIX = 'level-js-'
1818
1919function Level ( location , opts ) {
2020 if ( ! ( this instanceof Level ) ) return new Level ( location , opts )
21- AbstractLevelDOWN . call ( this )
21+
22+ AbstractLevelDOWN . call ( this , {
23+ bufferKeys : support . bufferKeys ( indexedDB ) ,
24+ snapshots : true ,
25+ permanence : true ,
26+ clear : true
27+ } )
28+
2229 opts = opts || { }
2330
2431 if ( typeof location !== 'string' ) {
@@ -28,12 +35,6 @@ function Level (location, opts) {
2835 this . location = location
2936 this . prefix = opts . prefix || DEFAULT_PREFIX
3037 this . version = parseInt ( opts . version || 1 , 10 )
31-
32- // Experimental, do not externally rely on this object yet.
33- // See Level/community#42.
34- this . supports = {
35- bufferKeys : support . bufferKeys ( indexedDB )
36- }
3738}
3839
3940inherits ( Level , AbstractLevelDOWN )
Original file line number Diff line number Diff line change 2626 "./util/immediate.js" : " ./util/immediate-browser.js"
2727 },
2828 "dependencies" : {
29- "abstract-leveldown" : " ~6.1 .1" ,
29+ "abstract-leveldown" : " ~6.2 .1" ,
3030 "immediate" : " ~3.2.3" ,
3131 "inherits" : " ^2.0.3" ,
3232 "ltgt" : " ^2.1.2"
You can’t perform that action at this time.
0 commit comments