Files
FrenoCorp/node_modules/level-supports/index.js
Michael Freno 7c684a42cc FRE-600: Fix code review blockers
- Consolidated duplicate UndoManagers to single instance
- Fixed connection promise to only resolve on 'connected' status
- Fixed WebSocketProvider import (WebsocketProvider)
- Added proper doc.destroy() cleanup
- Renamed isPresenceInitialized property to avoid conflict

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-25 00:08:01 -04:00

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