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.6 to 11.0.0-alpha.7

.github/workflows/test-node.yaml

4

index.js

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

function onblobs () {
self.entry(name).then(onnode, cb)
self.entry(normalizePath(name)).then(onnode, cb)
}

@@ -408,3 +408,3 @@

if (err) return cb(err)
self.files.put(name, { executable, linkname: null, blob: ws.id, metadata }).then(() => cb(null), cb)
self.files.put(normalizePath(name), { executable, linkname: null, blob: ws.id, metadata }).then(() => cb(null), cb)
}

@@ -411,0 +411,0 @@

{
"name": "hyperdrive",
"version": "11.0.0-alpha.6",
"version": "11.0.0-alpha.7",
"description": "Hyperdrive is a secure, real-time distributed file system",

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

"dependencies": {
"hyperbee": "^2.0.0",
"hyperbee": "^2.1.1",
"hyperblobs": "^2.0.0",

@@ -23,0 +23,0 @@ "is-options": "^1.0.2",

@@ -383,4 +383,4 @@ const fs = require('fs')

for await (const diff of drive.diff(drive.core.length - 2)) {
if (diff.right) t.is(diff.right.key, relpath)
if (diff.left) t.is(diff.left.key, relpath + '.old')
if (diff.right) t.is(diff.right.key, relpath.replace(/\\/g, '/'))
if (diff.left) t.is(diff.left.key, relpath.replace(/\\/g, '/') + '.old')
}

@@ -654,2 +654,13 @@ })

test('batch.list()', async (t) => {
const { drive } = await testenv(t.teardown)
const nil = Buffer.from('nil')
await drive.put('/x', nil)
const batch = drive.batch()
for await (const entry of batch.list()) {
t.is(entry.key, '/x')
}
await batch.flush()
})
test('drive.close()', async (t) => {

@@ -656,0 +667,0 @@ t.plan(2)

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