hyperdrive
Advanced tools
Comparing version 10.12.1 to 10.12.2
@@ -30,3 +30,3 @@ const pathRoot = require('path') | ||
const STDIO_CAP = 20 | ||
const WRITEFILE_BLOCK_SIZE = 524288 | ||
const WRITE_STREAM_BLOCK_SIZE = 524288 | ||
@@ -492,3 +492,3 @@ module.exports = (...args) => new Hyperdrive(...args) | ||
// TODO: revert the content feed if this fails!!!! (add an option to the write stream for this (atomic: true)) | ||
const stream = contentState.feed.createWriteStream() | ||
const stream = contentState.feed.createWriteStream({ maxBlockSize: WRITE_STREAM_BLOCK_SIZE }) | ||
@@ -563,3 +563,3 @@ proxy.on('close', ondone) | ||
// Make sure that the buffer is chunked into blocks of 0.5MB. | ||
let stream = this.createWriteStream(name, { ...opts, maxBlockSize: WRITEFILE_BLOCK_SIZE }) | ||
let stream = this.createWriteStream(name, opts) | ||
@@ -566,0 +566,0 @@ // TODO: Do we need to maintain the error state? What's triggering 'finish' after 'error'? |
{ | ||
"name": "hyperdrive", | ||
"version": "10.12.1", | ||
"version": "10.12.2", | ||
"description": "Hyperdrive is a secure, real time distributed file system", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
194862