@hyperswarm/secret-stream
Advanced tools
Comparing version 6.1.0 to 6.1.1
const { Pull, Push, HEADERBYTES, KEYBYTES, ABYTES } = require('sodium-secretstream') | ||
const sodium = require('sodium-universal') | ||
const crypto = require('hypercore-crypto') | ||
const { Duplex } = require('streamx') | ||
const { Duplex, getStreamError } = require('streamx') | ||
const b4a = require('b4a') | ||
@@ -383,3 +383,3 @@ const Timeout = require('timeout-refresh') | ||
if (this.rawStream) { | ||
const error = this._readableState.error || this._writableState.error | ||
const error = getStreamError(this) | ||
this.rawStream.destroy(error) | ||
@@ -386,0 +386,0 @@ } |
{ | ||
"name": "@hyperswarm/secret-stream", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "Secret stream backed by Noise and libsodium's secretstream", | ||
@@ -13,3 +13,3 @@ "main": "index.js", | ||
"sodium-universal": "^3.0.4", | ||
"streamx": "^2.10.2", | ||
"streamx": "^2.13.0", | ||
"timeout-refresh": "^2.0.0" | ||
@@ -16,0 +16,0 @@ }, |
@@ -61,3 +61,3 @@ # @hyperswarm/secret-stream | ||
rx, | ||
handshakeHash, | ||
hash, | ||
publicKey, | ||
@@ -64,0 +64,0 @@ remotePublicKey |
31583
Updatedstreamx@^2.13.0