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 2.1.4 to 3.0.0

7

CHANGELOG.md
# Changelog
## v3.0.0 2020-10-05
- `DEFAULT_EXT` and `DEFAULT_PART` are constant strings.
- Requires Node >= 10.
- Correct typings for updates @types/node.
- Converted from tslint to eslint.
## v2.1.4 2019-10-08

@@ -4,0 +11,0 @@

4

lib/fs-blob-storage.d.ts

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

}
export declare const DEFAULT_EXT = "";
export declare const DEFAULT_PART = ".part";
export declare class FsBlobStorage {
static readonly DEFAULT_EXT = "";
static readonly DEFAULT_PART = ".part";
protected ext: string;

@@ -39,0 +39,0 @@ protected part: string;

"use strict";
/// <reference types="node" />
Object.defineProperty(exports, "__esModule", { value: true });
exports.FsBlobStorage = exports.DEFAULT_PART = exports.DEFAULT_EXT = void 0;
const tslib_1 = require("tslib");
const fs_1 = tslib_1.__importDefault(require("fs"));
const fs_mkdir_shim_1 = tslib_1.__importDefault(require("fs.mkdir-shim"));
const path_1 = tslib_1.__importDefault(require("path"));
const util_1 = tslib_1.__importDefault(require("util"));
const fs_mkdir_shim_1 = tslib_1.__importDefault(require("fs.mkdir-shim"));
exports.DEFAULT_EXT = "";
exports.DEFAULT_PART = ".part";
class FsBlobStorage {
constructor(options = {}) {
this.ext = options.ext !== undefined ? options.ext : FsBlobStorage.DEFAULT_EXT;
this.part = options.part !== undefined ? options.part : FsBlobStorage.DEFAULT_PART;
this.ext = options.ext !== undefined ? options.ext : exports.DEFAULT_EXT;
this.part = options.part !== undefined ? options.part : exports.DEFAULT_PART;
this.writeFlags = options.exclusive ? "wx" : "w";

@@ -67,5 +70,3 @@ this.fs = options.fs || fs_1.default;

exports.FsBlobStorage = FsBlobStorage;
FsBlobStorage.DEFAULT_EXT = "";
FsBlobStorage.DEFAULT_PART = ".part";
exports.default = FsBlobStorage;
//# sourceMappingURL=fs-blob-storage.js.map
{
"name": "fs-blob-storage",
"version": "2.1.4",
"version": "3.0.0",
"description": "Blob storage on filesystem, with streams and promises API",

@@ -24,37 +24,38 @@ "main": "lib/fs-blob-storage.js",

"engines": {
"node": ">=8.0.0"
"node": ">=10.0.0"
},
"dependencies": {
"fs.mkdir-shim": "^1.1.1",
"tslib": "^1.10.0"
"tslib": "^2.0.1"
},
"devDependencies": {
"@types/chai": "^4.2.3",
"@types/chai": "^4.2.12",
"@types/dirty-chai": "^2.0.2",
"@types/mocha": "^5.2.7",
"@types/node": "^12.7.11",
"@types/mocha": "^8.0.3",
"@types/node": "^12.12.62",
"@typescript-eslint/eslint-plugin": "^4.3.0",
"@typescript-eslint/eslint-plugin-tslint": "^4.3.0",
"@typescript-eslint/parser": "^4.3.0",
"chai": "^4.2.0",
"changelog-parser": "^2.8.0",
"coveralls": "^3.0.6",
"cross-env": "^6.0.3",
"coveralls": "^3.1.0",
"cross-env": "^7.0.2",
"dirty-chai": "^2.0.1",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-promise": "^4.2.1",
"make-dir": "^3.0.0",
"markdownlint-cli": "^0.18.0",
"mocha": "^6.2.1",
"eslint": "^7.10.0",
"eslint-config-prettier": "^6.12.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsdoc": "^30.6.3",
"eslint-plugin-node": "^11.1.0",
"make-dir": "^3.1.0",
"markdownlint-cli": "^0.24.0",
"mocha": "^8.1.3",
"mocha-steps": "^1.3.0",
"nyc": "^14.1.1",
"prettier": "^1.18.2",
"promise-readable": "^5.0.3",
"promise-writable": "^5.0.3",
"nyc": "^15.1.0",
"prettier": "^2.1.2",
"promise-readable": "^6.0.0",
"promise-writable": "^6.0.0",
"shx": "^0.3.2",
"stream.pipeline-shim": "^1.1.0",
"ts-node": "^8.4.1",
"tslint": "^5.20.0",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.6.3"
"ts-node": "^9.0.0",
"typescript": "^4.0.3"
},

@@ -66,3 +67,9 @@ "scripts": {

"clean:coverage": "shx rm -rf coverage .nyc_output",
"lint": "npm run compile && tsc --pretty -p examples && tsc --pretty -p test && eslint . && tslint -t stylish -p . && tslint -t stylish -p examples && tslint -t stylish -p test && prettier --ignore-path .gitignore --list-different '**/*.{js,json,md,ts,yml}' && markdownlint \"*.md\"",
"lint": "npm run lint:tsc:src && npm run lint:tsc:test && npm run lint:tsc:examples && npm run lint:eslint && npm run lint:prettier && npm run lint:markdownlint",
"lint:tsc:examples": "tsc --noEmit --pretty --project examples",
"lint:tsc:src": "tsc --noEmit --pretty --project .",
"lint:tsc:test": "tsc --noEmit --pretty --project test",
"lint:eslint": "eslint --ext .js,.ts .",
"lint:prettier": "prettier --ignore-path .gitignore --list-different '**/*.{js,json,md,ts,yml}'",
"lint:markdownlint": "markdownlint \"*.md\"",
"postpublish": "node -e \"require(\\\"changelog-parser\\\")(\\\"CHANGELOG.md\\\").then(ch => console.log(ch.versions.filter(v => v.version === \\\"$npm_package_version\\\").map(v => \\\"v$npm_package_version\\n\\n\\\" + v.body).concat(\\\"Release v$npm_package_version\\\")[0]))\" | xargs -0 git tag v$npm_package_version -a -m && git push --tags",

@@ -69,0 +76,0 @@ "prepack": "npm run compile",

@@ -22,3 +22,3 @@ # fs-blob-storage

This module requires Node >= 8.
This module requires Node >= 10.

@@ -40,3 +40,3 @@ ## Installation

```js
const {FsBlobStorage} = require("fs-blob-storage")
const {FsBlobStorage, DEFAULT_EXT, DEFAULT_PART} = require("fs-blob-storage")
```

@@ -49,3 +49,3 @@

// or
import {FsBlobStorage} from "fs-blob-storage"
import {FsBlobStorage, DEFAULT_EXT, DEFAULT_PART} from "fs-blob-storage"
```

@@ -160,4 +160,4 @@

Copyright (c) 2018-2019 Piotr Roszatycki <piotr.roszatycki@gmail.com>
Copyright (c) 2018-2020 Piotr Roszatycki <piotr.roszatycki@gmail.com>
[MIT](https://opensource.org/licenses/MIT)
/// <reference types="node" />
import fs from "fs"
import mkdir from "fs.mkdir-shim"
import path from "path"
import util from "util"
import mkdir from "fs.mkdir-shim"
export interface FsBlobStorageOptions {

@@ -45,6 +46,6 @@ ext?: string

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

@@ -59,4 +60,4 @@ protected part: string

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

@@ -63,0 +64,0 @@ this.fs = options.fs || fs

@@ -6,3 +6,3 @@ {

"importHelpers": true,
"lib": ["es2017"],
"lib": ["es2018"],
"module": "commonjs",

@@ -16,3 +16,3 @@ "noImplicitAny": true,

"strict": true,
"target": "es2017",
"target": "es2018",
"typeRoots": ["node_modules/@types"]

@@ -19,0 +19,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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