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

hypercore-xsalsa20-onwrite-hook

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hypercore-xsalsa20-onwrite-hook - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

4

index.js

@@ -7,3 +7,3 @@ const xsalsa20 = require('xsalsa20')

function createHook(opts) {
if (!opts || 'object' !== typeof opts) {
if (opts && 'object' !== typeof opts) {
throw new TypeError('Expecting options to be an object.')

@@ -40,3 +40,3 @@ }

// update the buffer in place
if (feed.writable || !peer || !Buffer.isBuffer(data)) {
if (!opts.key || feed.writable || !peer || !Buffer.isBuffer(data)) {
done(null)

@@ -43,0 +43,0 @@ } else {

{
"name": "hypercore-xsalsa20-onwrite-hook",
"version": "0.1.1",
"version": "0.1.2",
"description": "A write hook to decrypt data using a XSalsa20 cipher into a hypercore storage when replicating from peers",

@@ -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