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 1.1.0 to 1.2.0

5

CHANGELOG.md
# Changelog
## v1.2.0 2018-09-07
* `DEFAULT_EXT` and `DEFAULT_PART` are static readonly properties of
`FsBlobStorage` class.
## v1.1.0 2018-09-07

@@ -4,0 +9,0 @@

2

lib/fs-blob-storage.d.ts

@@ -34,2 +34,4 @@ /// <reference types="node" />

export declare class FsBlobStorage {
static readonly DEFAULT_EXT: string;
static readonly DEFAULT_PART: string;
protected ext: string;

@@ -36,0 +38,0 @@ protected part: string;

8

lib/fs-blob-storage.js

@@ -10,8 +10,6 @@ "use strict";

const promisify = require('util.promisify');
const DEFAULT_EXT = '';
const DEFAULT_PART = '.part';
class FsBlobStorage {
constructor(options = {}) {
this.ext = options.ext !== undefined ? options.ext : DEFAULT_EXT;
this.part = options.part !== undefined ? options.part : DEFAULT_PART;
this.ext = options.ext !== undefined ? options.ext : FsBlobStorage.DEFAULT_EXT;
this.part = options.part !== undefined ? options.part : FsBlobStorage.DEFAULT_PART;
this.writeFlags = options.exclusive ? 'wx' : 'w';

@@ -74,3 +72,5 @@ this.fs = options.fs || fs_1.default;

}
FsBlobStorage.DEFAULT_EXT = '';
FsBlobStorage.DEFAULT_PART = '.part';
exports.FsBlobStorage = FsBlobStorage;
exports.default = FsBlobStorage;
{
"name": "fs-blob-storage",
"version": "1.1.0",
"version": "1.2.0",
"description": "Blob storage on filesystem, with streams and promises API",

@@ -5,0 +5,0 @@ "main": "lib/fs-blob-storage.js",

@@ -58,2 +58,10 @@ # fs-blob-storage

### DEFAULT_EXT
The default `ext` option is `''`
### DEFAULT_PART
The default `part` option is `'.part'`
### constructor

@@ -67,5 +75,6 @@

* `ext` is a default `ext` argument for methods (optional, default: `''`)
* `ext` is a default `ext` argument for methods (optional, default:
`DEFAULT_EXT`)
* `part` is a default `part` argument for methods (optional, default:
`'.part'`)
`DEFAULT_PART`)
* `exclusive` if is true then can't create new object if already exists with

@@ -72,0 +81,0 @@ the same key (optional, default: `false`)

@@ -47,6 +47,6 @@ /// <reference types="node" />

const DEFAULT_EXT = ''
const DEFAULT_PART = '.part'
export class FsBlobStorage {
static readonly DEFAULT_EXT = ''
static readonly DEFAULT_PART = '.part'
export class FsBlobStorage {
protected ext: string

@@ -61,4 +61,4 @@ protected part: string

constructor (options: FsBlobStorageOptions = {}) {
this.ext = options.ext !== undefined ? options.ext : DEFAULT_EXT
this.part = options.part !== undefined ? options.part : DEFAULT_PART
this.ext = options.ext !== undefined ? options.ext : FsBlobStorage.DEFAULT_EXT
this.part = options.part !== undefined ? options.part : FsBlobStorage.DEFAULT_PART
this.writeFlags = options.exclusive ? 'wx' : 'w'

@@ -65,0 +65,0 @@ this.fs = options.fs || fs

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