New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fs-blob-storage

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-blob-storage - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

4

CHANGELOG.md
# Changelog
## v0.3.0 2018-05-13
* Typescript: return fs.WriteStream or fs.ReadStream.
## v0.2.1 2018-05-13

@@ -4,0 +8,0 @@

6

lib/fs-blob-storage.d.ts
/// <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 @@

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