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.0.1 to 2.0.2

4

CHANGELOG.md
# Changelog
## v2.0.2 2019-05-15
* Use @types/util.promisify.
## v2.0.1 2019-05-08

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

7

lib/fs-blob-storage.js

@@ -8,4 +8,3 @@ "use strict";

const path_1 = tslib_1.__importDefault(require("path"));
// tslint:disable-next-line:no-var-requires
const promisify = require('util.promisify');
const util_promisify_1 = tslib_1.__importDefault(require("util.promisify"));
class FsBlobStorage {

@@ -19,5 +18,5 @@ constructor(options = {}) {

this.fsPromises = {};
this.fsPromises.mkdir = promisify(fs_mkdir_shim_1.default);
this.fsPromises.mkdir = util_promisify_1.default(fs_mkdir_shim_1.default);
for (const method of ['close', 'open', 'rename', 'stat', 'unlink']) {
this.fsPromises[method] = promisify(this.fs[method]);
this.fsPromises[method] = util_promisify_1.default(this.fs[method]);
}

@@ -24,0 +23,0 @@ }

{
"name": "fs-blob-storage",
"version": "2.0.1",
"version": "2.0.2",
"description": "Blob storage on filesystem, with streams and promises API",

@@ -27,3 +27,3 @@ "main": "lib/fs-blob-storage.js",

"dependencies": {
"fs.mkdir-shim": "^1.0.1",
"fs.mkdir-shim": "^1.1.0",
"tslib": "^1.9.3",

@@ -36,3 +36,4 @@ "util.promisify": "^1.0.0"

"@types/mocha": "^5.2.6",
"@types/node": "^12.0.0",
"@types/node": "^12.0.2",
"@types/util.promisify": "^1.0.1",
"chai": "^4.2.0",

@@ -47,10 +48,10 @@ "chai-as-promised": "^7.1.1",

"make-dir": "^3.0.0",
"markdownlint-cli": "^0.15.0",
"markdownlint-cli": "^0.16.0",
"mocha": "^6.1.4",
"nyc": "^14.1.0",
"prettier": "^1.17.0",
"promise-readable": "^3.1.5",
"promise-writable": "^3.1.2",
"nyc": "^14.1.1",
"prettier": "^1.17.1",
"promise-readable": "^4.2.0",
"promise-writable": "^4.1.0",
"shx": "^0.3.2",
"stream.pipeline-shim": "^1.0.4",
"stream.pipeline-shim": "^1.1.0",
"ts-node": "^8.1.0",

@@ -66,4 +67,4 @@ "tslint": "^5.16.0",

"postpublish": "git tag v$npm_package_version -a -m \"Release v$npm_package_version\" && git push --tags",
"prepublishOnly": "npm run build",
"pretest": "npm run build && 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' '**/*.ts' '**/*.yaml' && markdownlint \"*.md\"",
"prepack": "npm run build",
"pretest": "npm run build && 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' '**/*.ts' '**/*.yml' && markdownlint \"*.md\"",
"test": "npm run test:spec",

@@ -70,0 +71,0 @@ "test:spec": "npm run ts-mocha -- \"test/*.ts\"",

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

```js
const { FsBlobStorage } = require('fs-blob-storage')
const {FsBlobStorage} = require('fs-blob-storage')
```

@@ -56,3 +56,3 @@

```ts
import FsBlobStorage from 'fs-blob-storage'
import {FsBlobStorage} from 'fs-blob-storage'
```

@@ -59,0 +59,0 @@

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

import path from 'path'
import util from 'util'
import promisify from 'util.promisify'
// tslint:disable-next-line:no-var-requires
const promisify = require('util.promisify') as typeof util.promisify
export interface FsBlobStorageOptions {

@@ -13,0 +10,0 @@ ext?: string

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