Comparing version 5.0.4 to 5.0.5
@@ -11,4 +11,7 @@ // Get the appropriate flag to use for creating files | ||
const isWindows = platform === 'win32' | ||
const fs = require('fs') | ||
const fs = global.__FAKE_TESTING_FS__ || require('fs') | ||
/* istanbul ignore next */ | ||
const { O_CREAT, O_TRUNC, O_WRONLY, UV_FS_O_FILEMAP = 0 } = fs.constants | ||
const fMapEnabled = isWindows && !!UV_FS_O_FILEMAP | ||
@@ -15,0 +18,0 @@ const fMapLimit = 512 * 1024 |
@@ -78,2 +78,3 @@ 'use strict' | ||
this.portable = !!opt.portable | ||
this.zip = null | ||
@@ -83,2 +84,4 @@ if (opt.gzip) { | ||
opt.gzip = {} | ||
if (this.portable) | ||
opt.gzip.portable = true | ||
this.zip = new zlib.Gzip(opt.gzip) | ||
@@ -92,3 +95,2 @@ this.zip.on('data', chunk => super.write(chunk)) | ||
this.portable = !!opt.portable | ||
this.noDirRecurse = !!opt.noDirRecurse | ||
@@ -95,0 +97,0 @@ this.follow = !!opt.follow |
@@ -5,3 +5,3 @@ { | ||
"description": "tar for node", | ||
"version": "5.0.4", | ||
"version": "5.0.5", | ||
"repository": { | ||
@@ -23,3 +23,3 @@ "type": "git", | ||
"minipass": "^3.0.0", | ||
"minizlib": "^2.0.0", | ||
"minizlib": "^2.1.0", | ||
"mkdirp": "^0.5.0", | ||
@@ -26,0 +26,0 @@ "yallist": "^4.0.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
147670
3232
Updatedminizlib@^2.1.0