Socket
Socket
Sign inDemoInstall

hypercore-crypto

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hypercore-crypto - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

8

index.js

@@ -137,4 +137,12 @@ const sodium = require('./sodium')

if (sodium.sodium_free) {
exports.free = function (secureBuf) {
if (secureBuf.secure) sodium.sodium_free(secureBuf)
}
} else {
exports.free = function () {}
}
function encodeUInt64 (n) {
return uint64be.encode(n, Buffer.allocUnsafe(8))
}

2

package.json
{
"name": "hypercore-crypto",
"version": "2.0.2",
"version": "2.1.0",
"description": "The crypto primitives used in hypercore, extracted into a separate module",

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