hyperdrive
Advanced tools
Comparing version 11.0.0-alpha.9 to 11.0.0-alpha.10
@@ -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 |
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20864
368
250
6
9
+ Addedmirror-drive@^1.2.0
+ Addedbinary-stream-equals@1.0.0(transitive)
+ Addedmirror-drive@1.4.0(transitive)
+ Addedsame-data@1.0.0(transitive)