Socket
Socket
Sign inDemoInstall

hyperdrive

Package Overview
Dependencies
Maintainers
1
Versions
271
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperdrive - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

17

index.js

@@ -5,2 +5,3 @@ var constants = require('constants')

var fs = require('fs')
var mkdirp = require('mkdirp')
var bulk = require('bulk-write-stream')

@@ -111,4 +112,16 @@ var rabin = require('rabin')

}
feed.removeListener('put', kick)
cb(null)
var dest = join(self.directory, entry.name)
fs.stat(dest, function (_, st) {
feed.removeListener('put', kick)
// the size check probably isn't nessary here...
if (st && st.size === entry.size) return cb(null)
// duplicate - just copy it in
mkdirp(path.dirname(dest), function () {
pump(self.createFileStream(entry), fs.createWriteStream(dest), cb)
})
})
}

@@ -115,0 +128,0 @@ }

2

package.json
{
"name": "hyperdrive",
"version": "2.2.0",
"version": "2.2.1",
"description": "A file sharing network based on rabin file chunking and append only feeds of data verified by merkle trees.",

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