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

hypercore-protocol

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hypercore-protocol - npm Package Compare versions

Comparing version 7.7.1 to 7.8.0

4

index.js

@@ -370,2 +370,6 @@ const SHP = require('simple-hypercore-protocol')

get remoteAddress () {
return this._readableState.pipeTo && this._readableState.pipeTo.remoteAddress
}
get publicKey () {

@@ -372,0 +376,0 @@ return this.state.publicKey

2

package.json
{
"name": "hypercore-protocol",
"version": "7.7.1",
"version": "7.8.0",
"description": "Stream that implements the hypercore protocol",

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

@@ -52,3 +52,3 @@ # hypercore-protocol

{
encrypt: true, // set to false to disable encryption if you are already piping through a encrypted stream
encrypted: true, // set to false to disable encryption if you are already piping through a encrypted stream
timeout: 20000, // stream timeout. set to 0 or false to disable.

@@ -96,2 +96,6 @@ keyPair: { publicKey, secretKey }, // use this keypair for the stream authentication

#### `stream.remoteAddress`
The remote peers IP if piped over a TCP or UTP stream.
#### `const bool = stream.remoteVerified(key)`

@@ -98,0 +102,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