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

autobase

Package Overview
Dependencies
Maintainers
0
Versions
90
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.5.7 to 6.5.8

13

lib/core.js

@@ -13,2 +13,3 @@ const { EventEmitter } = require('events')

SESSION_CLOSED,
REQUEST_CANCELLED,
BLOCK_NOT_AVAILABLE

@@ -250,4 +251,6 @@ } = require('hypercore/errors')

opts = { activeRequests: this.activeRequests, valueEncoding: this.valueEncoding, ...opts }
const onwait = autocoreOnWait.bind(this, opts && opts.onwait)
opts = { activeRequests: this.activeRequests, valueEncoding: this.valueEncoding, ...opts, onwait }
// check if we indexed this already

@@ -316,3 +319,4 @@ if (index < this.indexedLength) {

// TODO: clear active requests also!
const core = this.getBackingCore().session
if (core.replicator) core.replicator.clearRequests(this.activeRequests)

@@ -905,1 +909,6 @@ this.emit('close', false)

}
function autocoreOnWait (fn, index, core) {
if (this.closing) throw REQUEST_CANCELLED()
if (fn) return fn(index, this)
}

2

package.json
{
"name": "autobase",
"version": "6.5.7",
"version": "6.5.8",
"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