1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Oinktube/node_modules/level-supports/index.js
2022-07-15 11:08:01 -03:00

35 lines
1.1 KiB
JavaScript

'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)
})
}