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

fs-gzip-blob-storage

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-gzip-blob-storage - npm Package Compare versions

Comparing version 2.1.3 to 3.0.0

6

CHANGELOG.md
# Changelog
## v3.0.0 2020-10-07
- `DEFAULT_EXT`, `DEFAULT_PART` and `DEFAULT_GZIP_EXT` are constant strings.
- Requires Node >= 10.
- Converted from tslint to eslint.
## v2.1.3 2019-10-07

@@ -4,0 +10,0 @@

5

lib/fs-gzip-blob-storage.d.ts

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

}
export { DEFAULT_EXT, DEFAULT_PART } from "fs-blob-storage";
export declare const DEFAULT_GZIP_EXT = ".gz";
export declare class FsGzipBlobStorage {
static readonly DEFAULT_EXT = "";
static readonly DEFAULT_PART = ".part";
static readonly DEFAULT_GZIP_EXT = ".gz";
private storage;

@@ -25,0 +24,0 @@ private ext;

14

lib/fs-gzip-blob-storage.js
"use strict";
/// <reference types="node" />
Object.defineProperty(exports, "__esModule", { value: true });
exports.FsGzipBlobStorage = exports.DEFAULT_GZIP_EXT = exports.DEFAULT_PART = exports.DEFAULT_EXT = void 0;
const tslib_1 = require("tslib");
const zlib_1 = tslib_1.__importDefault(require("zlib"));
const pumpify_1 = tslib_1.__importDefault(require("pumpify"));
const zlib_1 = tslib_1.__importDefault(require("zlib"));
const fs_blob_storage_1 = require("fs-blob-storage");
var fs_blob_storage_2 = require("fs-blob-storage");
Object.defineProperty(exports, "DEFAULT_EXT", { enumerable: true, get: function () { return fs_blob_storage_2.DEFAULT_EXT; } });
Object.defineProperty(exports, "DEFAULT_PART", { enumerable: true, get: function () { return fs_blob_storage_2.DEFAULT_PART; } });
exports.DEFAULT_GZIP_EXT = ".gz";
class FsGzipBlobStorage {
constructor(options = {}) {
this.storage = new fs_blob_storage_1.FsBlobStorage(options);
this.ext = options.ext !== undefined ? options.ext : FsGzipBlobStorage.DEFAULT_EXT;
this.gzipExt = options.gzipExt !== undefined ? options.gzipExt : FsGzipBlobStorage.DEFAULT_GZIP_EXT;
this.ext = options.ext !== undefined ? options.ext : fs_blob_storage_1.DEFAULT_EXT;
this.gzipExt = options.gzipExt !== undefined ? options.gzipExt : exports.DEFAULT_GZIP_EXT;
this.gzipOptions = options.gzipOptions || {};

@@ -45,6 +50,3 @@ }

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

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

"engines": {
"node": ">=8.0.0"
"node": ">=10.0.0"
},
"dependencies": {
"fs-blob-storage": "^2.1.3",
"fs-blob-storage": "^3.1.0",
"pumpify": "^2.0.1",
"tslib": "^1.10.0"
"tslib": "^2.0.2"
},
"devDependencies": {
"@types/chai": "^4.2.3",
"@types/chai": "^4.2.13",
"@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.64",
"@types/pumpify": "^1.4.1",
"@typescript-eslint/eslint-plugin": "^4.4.0",
"@typescript-eslint/eslint-plugin-tslint": "^4.4.0",
"@typescript-eslint/parser": "^4.4.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",
"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",
"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"
},

@@ -67,3 +68,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",

@@ -74,6 +81,5 @@ "prepack": "npm run compile",

"test": "npm run test:spec",
"test:spec": "npm run ts-mocha -- \"test/*.ts\"",
"test:coverage": "npm run clean:coverage && cross-env NYC=\"nyc --no-clean --reporter=lcov\" npm run test:spec && nyc report --reporter=text-summary --color",
"ts-mocha": "$NYC mocha --use_strict --throw-deprecation --require source-map-support/register --require ts-node/register --timeout 90000"
"test:spec": "$NYC mocha \"test/*.ts\"",
"test:coverage": "npm run clean:coverage && cross-env NYC=\"nyc --no-clean --reporter=lcov\" npm run test:spec && nyc report --reporter=text-summary --color"
}
}

@@ -16,3 +16,3 @@ # fs-gzip-blob-storage

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

@@ -148,4 +148,4 @@ ## Installation

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 Pumpify from "pumpify"
import {Readable, Writable} from "stream"
import zlib from "zlib"
import Pumpify from "pumpify"
import {

@@ -14,2 +15,3 @@ FsBlobStorage,

FsBlobStorageWriteStreamOptions,
DEFAULT_EXT,
} from "fs-blob-storage"

@@ -33,8 +35,7 @@

export class FsGzipBlobStorage {
static readonly DEFAULT_EXT = FsBlobStorage.DEFAULT_EXT
static readonly DEFAULT_PART = FsBlobStorage.DEFAULT_PART
export {DEFAULT_EXT, DEFAULT_PART} from "fs-blob-storage"
static readonly DEFAULT_GZIP_EXT = ".gz"
export const DEFAULT_GZIP_EXT = ".gz"
export class FsGzipBlobStorage {
private storage: FsBlobStorage

@@ -47,4 +48,4 @@ private ext: string

this.storage = new FsBlobStorage(options)
this.ext = options.ext !== undefined ? options.ext : FsGzipBlobStorage.DEFAULT_EXT
this.gzipExt = options.gzipExt !== undefined ? options.gzipExt : FsGzipBlobStorage.DEFAULT_GZIP_EXT
this.ext = options.ext !== undefined ? options.ext : DEFAULT_EXT
this.gzipExt = options.gzipExt !== undefined ? options.gzipExt : DEFAULT_GZIP_EXT
this.gzipOptions = options.gzipOptions || {}

@@ -51,0 +52,0 @@ }

@@ -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