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

autobase

Package Overview
Dependencies
Maintainers
3
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autobase - npm Package Compare versions

Comparing version 6.1.1 to 6.1.2

14

index.js

@@ -503,2 +503,3 @@ const b4a = require('b4a')

if (this._primaryBootstrap) await this._primaryBootstrap.close()
for (const w of this.activeWriters) await w.close()
await this.corePool.clear()

@@ -980,2 +981,4 @@ await this.store.close()

_addLocalHeads () {
if (!this.localWriter.idle()) return null
const nodes = new Array(this._appending.length)

@@ -1552,3 +1555,3 @@ for (let i = 0; i < this._appending.length; i++) {

const sysView = this.system.core._source
const sysInfo = { key, length }
const sysInfo = { key, length, systemIndex: -1 }

@@ -1589,4 +1592,3 @@ views.set(sysView, sysInfo)

views.set(view, v)
view.systemIndex = i
views.set(view, { key: v.key, length: v.length, systemIndex: i })
}

@@ -1600,4 +1602,6 @@

for (const view of this._viewStore.opened.values()) {
if (!views.has(view)) continue
await view.catchup(views.get(view))
const info = views.get(view)
if (!info) continue
await view.catchup(info)
}

@@ -1604,0 +1608,0 @@

@@ -502,2 +502,6 @@ const { EventEmitter } = require('events')

_close () {
return this.core.close()
}
async _ensureUserData (core, force) {

@@ -825,5 +829,6 @@ await core.setUserData('referrer', this.base.key)

async catchup ({ key, length }) {
async catchup ({ key, length, systemIndex }) {
if (!this.opened) await this.ready()
await this._ensureCore(key, length)
if (systemIndex !== -1) this.systemIndex = systemIndex
}

@@ -830,0 +835,0 @@

@@ -87,2 +87,11 @@ const b4a = require('b4a')

close () {
const closing = []
for (const core of this.opened.values()) {
closing.push(core.close())
}
return Promise.all(closing)
}
static getBlockKey (bootstrap, encryptionKey, name) {

@@ -89,0 +98,0 @@ return getBlockKey(bootstrap, encryptionKey, name)

{
"name": "autobase",
"version": "6.1.1",
"version": "6.1.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

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