hyperdrive
Advanced tools
Comparing version 11.5.1 to 11.5.2
@@ -10,3 +10,3 @@ const Hyperbee = require('hyperbee') | ||
const safetyCatch = require('safety-catch') | ||
const { BLOCK_NOT_AVAILABLE } = require('hypercore/errors') | ||
const { BLOCK_NOT_AVAILABLE } = require('hypercore-errors') | ||
@@ -13,0 +13,0 @@ const keyEncoding = new SubEncoder('files', 'utf-8') |
{ | ||
"name": "hyperdrive", | ||
"version": "11.5.1", | ||
"version": "11.5.2", | ||
"description": "Hyperdrive is a secure, real-time distributed file system", | ||
@@ -26,2 +26,3 @@ "main": "index.js", | ||
"hyperblobs": "^2.3.0", | ||
"hypercore-errors": "^1.0.0", | ||
"is-options": "^1.0.2", | ||
@@ -28,0 +29,0 @@ "mirror-drive": "^1.2.0", |
@@ -119,3 +119,3 @@ # Hyperdrive | ||
#### `const buffer = await drive.get(path)` | ||
#### `const buffer = await drive.get(path, [options])` | ||
@@ -126,2 +126,10 @@ Returns the blob at `path` in the drive. If no blob exists, returns `null`. | ||
`options` include: | ||
```js | ||
{ | ||
wait: true, // Wait for block to be downloaded | ||
timeout: 0 // Wait at max some milliseconds (0 means no timeout) | ||
} | ||
``` | ||
#### `const entry = await drive.entry(path, [options])` | ||
@@ -151,3 +159,5 @@ | ||
{ | ||
follow: false // Follow symlinks, 16 max or throws an error | ||
follow: false, // Follow symlinks, 16 max or throws an error | ||
wait: true, // Wait for block to be downloaded | ||
timeout: 0 // Wait at max some milliseconds (0 means no timeout) | ||
} | ||
@@ -227,3 +237,3 @@ ``` | ||
`range` and `options` are the same as `Hyperbee().createReadStream([range], [options])`. | ||
`options` are the same as `Hyperbee().createReadStream([range], [options])`. | ||
@@ -230,0 +240,0 @@ #### `const mirror = drive.mirror(out, [options])` |
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
36675
381
10
+ Addedhypercore-errors@^1.0.0