This repository was archived by the owner on Dec 2, 2024. It is now read-only.
File tree 2 files changed +9
-8
lines changed
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,14 @@ var DEFAULT_PREFIX = 'level-js-'
18
18
19
19
function Level ( location , opts ) {
20
20
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
+
22
29
opts = opts || { }
23
30
24
31
if ( typeof location !== 'string' ) {
@@ -28,12 +35,6 @@ function Level (location, opts) {
28
35
this . location = location
29
36
this . prefix = opts . prefix || DEFAULT_PREFIX
30
37
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
- }
37
38
}
38
39
39
40
inherits ( Level , AbstractLevelDOWN )
Original file line number Diff line number Diff line change 26
26
"./util/immediate.js" : " ./util/immediate-browser.js"
27
27
},
28
28
"dependencies" : {
29
- "abstract-leveldown" : " ~6.1 .1" ,
29
+ "abstract-leveldown" : " ~6.2 .1" ,
30
30
"immediate" : " ~3.2.3" ,
31
31
"inherits" : " ^2.0.3" ,
32
32
"ltgt" : " ^2.1.2"
You can’t perform that action at this time.
0 commit comments