fix: Resolve TypeScript errors
Signed-off-by: Hermes Agent <hermes@nosuchhost>
This commit is contained in:
35
client/node_modules/level-supports/index.js
generated
vendored
Normal file
35
client/node_modules/level-supports/index.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
'use strict'
|
||||
|
||||
// For (old) browser support
|
||||
var xtend = require('xtend')
|
||||
var assign = require('xtend/mutable')
|
||||
|
||||
module.exports = function supports () {
|
||||
var manifest = xtend.apply(null, arguments)
|
||||
|
||||
return assign(manifest, {
|
||||
// Features of abstract-leveldown
|
||||
bufferKeys: manifest.bufferKeys || false,
|
||||
snapshots: manifest.snapshots || false,
|
||||
permanence: manifest.permanence || false,
|
||||
seek: manifest.seek || false,
|
||||
clear: manifest.clear || false,
|
||||
|
||||
// Features of abstract-leveldown that levelup doesn't have
|
||||
status: manifest.status || false,
|
||||
|
||||
// Features of disk-based implementations
|
||||
createIfMissing: manifest.createIfMissing || false,
|
||||
errorIfExists: manifest.errorIfExists || false,
|
||||
|
||||
// Features of level(up) that abstract-leveldown doesn't have yet
|
||||
deferredOpen: manifest.deferredOpen || false,
|
||||
openCallback: manifest.openCallback || false,
|
||||
promises: manifest.promises || false,
|
||||
streams: manifest.streams || false,
|
||||
encodings: manifest.encodings || false,
|
||||
|
||||
// Methods that are not part of abstract-leveldown or levelup
|
||||
additionalMethods: xtend(manifest.additionalMethods)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user