Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@live-change/db-web

Package Overview
Dependencies
Maintainers
1
Versions
221
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@live-change/db-web - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

11

lib/backend.js
function createBackend(config) {
if(config.backend == 'mem') {
return {
levelup: require('levelup'),
memdown: require('memdown'),
subleveldown: require('subleveldown'),
encoding: require('encoding-down'),
Store: require('@live-change/db-store-level'),
Store: require('@live-change/db-store-rbtree'),
createDb(path, options) {
const db = this.levelup(this.memdown(options), options)
const db = {}
db.path = path

@@ -22,4 +18,3 @@ return db

createStore(db, name, options) {
return new this.Store(this.subleveldown(db, name,
{ ...options, keyEncoding: 'ascii', valueEncoding: 'json' }))
return new this.Store()
},

@@ -26,0 +21,0 @@ closeStore(store) {

{
"name": "@live-change/db-web",
"version": "0.1.8",
"version": "0.1.9",
"author": {

@@ -36,8 +36,5 @@ "email": "michal@laszczewski.com",

"@live-change/db-store-level": "^0.1.13",
"debug": "^4.1.1",
"encoding-down": "^6.3.0",
"levelup": "^4.4.0",
"memdown": "^5.1.0",
"subleveldown": "^5.0.1"
"@live-change/db-store-rbtree": "^0.1.1",
"debug": "^4.1.1"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc