New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

multifeed

Package Overview
Dependencies
Maintainers
2
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multifeed - npm Package Compare versions

Comparing version 4.1.11 to 4.2.0

16

mux.js

@@ -16,2 +16,6 @@ var protocol = require('hypercore-protocol')

// errors
var ERR_VERSION_MISMATCH = 'ERR_VERSION_MISMATCH'
var ERR_CLIENT_MISMATCH = 'ERR_CLIENT_MISMATCH'
// XXX: hypercore-protocol currently requires extensions be specified in

@@ -64,3 +68,7 @@ // alphabetical order.

debug(self._id + ' [REPLICATION] aborting; version mismatch (us='+PROTOCOL_VERSION+')')
self._finalize(new Error('protocol version mismatch! us='+PROTOCOL_VERSION + ' them=' + header.version))
var err = new Error('protocol version mismatch! us='+PROTOCOL_VERSION + ' them=' + header.version)
err.code = ERR_VERSION_MISMATCH
err.usVersion = PROTOCOL_VERSION
err.themVersion = header.version
self._finalize(err)
return

@@ -71,3 +79,7 @@ }

debug(self._id + ' [REPLICATION] aborting; Client mismatch! expected ', MULTIFEED, 'but got', header.client)
self._finalize(new Error('Client mismatch! expected ' + MULTIFEED + ' but got ' + header.client))
var err = new Error('Client mismatch! expected ' + MULTIFEED + ' but got ' + header.client)
err.code = ERR_CLIENT_MISMATCH
err.usClient = MULTIFEED
err.themClient = header.client
self._finalize(err)
return

@@ -74,0 +86,0 @@ }

2

package.json

@@ -5,3 +5,3 @@ {

"author": "Stephen Whitmore <sww@eight.net>",
"version": "4.1.11",
"version": "4.2.0",
"repository": {

@@ -8,0 +8,0 @@ "url": "git://github.com/noffle/multifeed.git"

@@ -120,2 +120,17 @@ # multifeed

# Errors
The duplex stream returned by `.replicate()` can emit, in addition to regular
stream errors, two fatal errors specific to multifeed:
- `ERR_VERSION_MISMATCH`
- `err.code = 'ERR_VERSION_MISMATCH'`
- `err.usVersion = 'X.Y.Z'` (semver)
- `err.themVersion = 'A.B.C'` (semver)
- `ERR_CLIENT_MISMATCH`
- `err.code = 'ERR_CLIENT_MISMATCH'`
- `err.usClient = 'MULTIFEED'`
- `err.themClient = '???'`
## Install

@@ -122,0 +137,0 @@

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