Socket
Socket
Sign inDemoInstall

hyperdrive

Package Overview
Dependencies
Maintainers
5
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 11.0.0-alpha.9 to 11.0.0-alpha.10

5

index.js

@@ -7,2 +7,3 @@ const Hyperbee = require('hyperbee')

const unixPathResolve = require('unix-path-resolve')
const MirrorDrive = require('mirror-drive')

@@ -294,2 +295,6 @@ module.exports = class Hyperdrive extends EventEmitter {

mirror (out, opts) {
return new MirrorDrive(this, out, opts)
}
createReadStream (name, opts) {

@@ -296,0 +301,0 @@ const self = this

4

package.json
{
"name": "hyperdrive",
"version": "11.0.0-alpha.9",
"version": "11.0.0-alpha.10",
"description": "Hyperdrive is a secure, real-time distributed file system",

@@ -27,2 +27,3 @@ "main": "index.js",

"is-options": "^1.0.2",
"mirror-drive": "^1.2.0",
"streamx": "^2.12.4",

@@ -34,2 +35,3 @@ "unix-path-resolve": "^1.0.2"

"@hyperswarm/testnet": "^3.0.0",
"b4a": "^1.6.0",
"brittle": "^3.1.0",

@@ -36,0 +38,0 @@ "corestore": "^6.1.1",

@@ -202,2 +202,6 @@ # Hyperdrive

#### `await drive.downloadRange(dbRanges, blobRanges)`
Downloads the entries and blobs stored in the [ranges][core-range-docs] `dbRanges` and `blobRanges`.
#### `const stream = drive.list(folder, [options])`

@@ -227,6 +231,8 @@

#### `await downloadRange(dbRanges, blobRanges)`
#### `const mirror = drive.mirror(out, [options])`
Downloads the entries and blobs stored in the [ranges][core-range-docs] `dbRanges` and `blobRanges`.
Efficiently mirror this drive into another. Returns a [`MirrorDrive`](https://github.com/holepunchto/mirror-drive#api) instance constructed with `options`.
Call `await mirror.done()` to wait for the mirroring to finish.
#### `const batch = drive.batch()`

@@ -233,0 +239,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