fs-blob-storage
Advanced tools
Comparing version 0.2.1 to 0.3.0
# Changelog | ||
## v0.3.0 2018-05-13 | ||
* Typescript: return fs.WriteStream or fs.ReadStream. | ||
## v0.2.1 2018-05-13 | ||
@@ -4,0 +8,0 @@ |
/// <reference types="node" /> | ||
import { Readable, Writable } from 'stream' | ||
import fs from 'fs' | ||
@@ -36,4 +36,4 @@ export interface FsBlobStorageOptions { | ||
createWriteStream (key: string, options?: FsBlobStorageWriteStreamOptions): Promise<Writable> | ||
createReadStream (key: string, options?: FsBlobStorageReadStreamOptions): Promise<Readable> | ||
createWriteStream (key: string, options?: FsBlobStorageWriteStreamOptions): Promise<fs.WriteStream> | ||
createReadStream (key: string, options?: FsBlobStorageReadStreamOptions): Promise<fs.ReadStream> | ||
commit (key: string, options?: FsBlobStorageCommitOptions): Promise<void> | ||
@@ -40,0 +40,0 @@ remove (key: string, options?: FsBlobStorageRemoveOptions): Promise<void> |
{ | ||
"name": "fs-blob-storage", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Blob storage on filesystem with promises API", | ||
@@ -5,0 +5,0 @@ "main": "lib/fs-blob-storage.js", |
@@ -20,3 +20,2 @@ 'use strict' | ||
const PromiseWritable = require('promise-writable') | ||
const { Readable, Writable } = require('stream') | ||
@@ -69,3 +68,3 @@ const STORAGEDIR = '/tmp/storage' | ||
Then('created Writable should not be null', () => { | ||
writable.should.be.an.instanceof(Writable) | ||
writable.should.be.an.instanceof(fs.WriteStream) | ||
}) | ||
@@ -114,3 +113,3 @@ | ||
Then('created Readable should not be null', () => { | ||
readable.should.be.an.instanceof(Readable) | ||
readable.should.be.an.instanceof(fs.ReadStream) | ||
}) | ||
@@ -117,0 +116,0 @@ |
38176
1000