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.5.1 to 11.5.2

2

index.js

@@ -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])`

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