@transcend-io/penumbra
Advanced tools
Comparing version 4.4.4 to 4.4.5
@@ -64,3 +64,3 @@ /** | ||
/** The iv that was used to encrypt the file */ | ||
iv: Buffer; | ||
iv?: Buffer; | ||
}; | ||
@@ -67,0 +67,0 @@ /** |
{ | ||
"name": "@transcend-io/penumbra", | ||
"version": "4.4.4", | ||
"version": "4.4.5", | ||
"description": "Crypto streams for the browser.", | ||
@@ -5,0 +5,0 @@ "main": "build/penumbra.js", |
@@ -306,3 +306,3 @@ /* eslint-disable max-lines */ | ||
// We stream the encryption if supported by the browser | ||
if (writableStreamsSupported && false) { | ||
if (writableStreamsSupported) { | ||
// WritableStream constructor supported | ||
@@ -323,5 +323,3 @@ const worker = await getWorker(); | ||
// enter worker thread and grab the metadata | ||
const metadata = await (new EncryptionChannel() as Promise< | ||
PenumbraWorkerAPI | ||
>).then( | ||
await (new EncryptionChannel() as Promise<PenumbraWorkerAPI>).then( | ||
/** | ||
@@ -355,3 +353,3 @@ * PenumbraWorkerAPI.encrypt calls require('./encrypt').encrypt() | ||
...files[i], | ||
iv: metadata[i].iv, | ||
// iv: metadata[i].iv, | ||
stream: stream.readable as ReadableStream, | ||
@@ -358,0 +356,0 @@ size: sizes[i], |
@@ -76,3 +76,3 @@ /* eslint-disable max-lines */ | ||
/** The iv that was used to encrypt the file */ | ||
iv: Buffer; | ||
iv?: Buffer; | ||
}; | ||
@@ -79,0 +79,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
8598866
43512