Socket
Socket
Sign inDemoInstall

@absolunet/fss

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@absolunet/fss - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

9

lib/helpers/utils.js

@@ -14,2 +14,7 @@ //--------------------------------------------------------

get defaultCompressionLevel() {
return zlib.constants.Z_BEST_COMPRESSION;
}
ensureContainingFolder(file) {

@@ -35,5 +40,5 @@ const dir = path.dirname(file);

writeMaybeCompressedFile(file, data, { compress = false } = {}) {
writeMaybeCompressedFile(file, data, { compress = false, compressionLevel = this.defaultCompressionLevel } = {}) {
if (file.endsWith('.gz') || compress) {
gracefulFs.writeFileSync(file, zlib.gzipSync(data));
gracefulFs.writeFileSync(file, zlib.gzipSync(data, { level:compressionLevel }));
} else {

@@ -40,0 +45,0 @@ gracefulFs.writeFileSync(file, data);

{
"name": "@absolunet/fss",
"version": "1.3.1",
"version": "1.3.2",
"description": "graceful-fs / fs-extra sync wrapper with goodies",

@@ -5,0 +5,0 @@ "definition": "",

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