Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tar

Package Overview
Dependencies
Maintainers
9
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tar - npm Package Compare versions

Comparing version 5.0.4 to 5.0.5

5

lib/get-write-flag.js

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

4

lib/pack.js

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

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