Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hyperdrive

Package Overview
Dependencies
Maintainers
5
Versions
273
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.17 to 11.0.0-alpha.18

36

index.js

@@ -196,4 +196,2 @@ const Hyperbee = require('hyperbee')

const diffing = !!(opts && opts.diff)
let node = null

@@ -207,17 +205,7 @@

const infoBefore = diffing === true
? await this.blobs.core.info({ storage: true })
: null
if (node !== null && this.blobs !== null) {
await this.blobs.clear(node.value.blob)
if (node === null || this.blobs === null) {
return (opts && opts.diff) ? { blocks: 0 } : null
}
if (diffing === false) return null
const infoAfter = await this.blobs.core.info({ storage: true })
return {
blocks: infoBefore.storage.blocks - infoAfter.storage.blocks
}
return this.blobs.clear(node.value.blob, opts)
}

@@ -228,19 +216,7 @@

const diffing = !!(opts && opts.diff)
const infoBefore = diffing === true
? await this.blobs.core.info({ storage: true })
: null
if (this.blobs !== null) {
await this.blobs.core.clear(0, this.blobs.core.length)
if (this.blobs === null) {
return (opts && opts.diff) ? { blocks: 0 } : null
}
if (diffing === false) return null
const infoAfter = await this.blobs.core.info({ storage: true })
return {
blocks: infoBefore.storage.blocks - infoAfter.storage.blocks
}
return this.blobs.core.clear(0, this.blobs.core.length, opts)
}

@@ -247,0 +223,0 @@

4

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

@@ -25,3 +25,3 @@ "main": "index.js",

"hyperbee": "^2.1.1",
"hyperblobs": "^2.1.0",
"hyperblobs": "^2.3.0",
"is-options": "^1.0.2",

@@ -28,0 +28,0 @@ "mirror-drive": "^1.2.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