Socket
Socket
Sign inDemoInstall

tar

Package Overview
Dependencies
Maintainers
4
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 3.1.1 to 3.1.2

lib/winchars.js

7

lib/unpack.js

@@ -10,2 +10,3 @@ 'use strict'

const mkdirSync = mkdir.sync
const winchars = require('./winchars.js')

@@ -52,2 +53,5 @@ const ONENTRY = Symbol('onEntry')

// turn ><?| in filenames into 0xf000-higher encoded forms
this.win32 = !!opt.win32 || process.platform === 'win32'
// do not unpack over files that are newer than what's in the archive

@@ -106,2 +110,5 @@ this.newer = !!opt.newer

if (this.win32)
entry.path = winchars.encode(entry.path)
if (path.isAbsolute(entry.path))

@@ -108,0 +115,0 @@ entry.absolute = entry.path

3

lib/write-entry.js

@@ -26,2 +26,3 @@ 'use strict'

const warner = require('./warn-mixin.js')
const winchars = require('./winchars.js')

@@ -58,3 +59,3 @@ const WriteEntry = warner(class WriteEntry extends MiniPass {

if (this.win32) {
this.path = this.path.replace(/\\/g, '/')
this.path = winchars.decode(this.path.replace(/\\/g, '/'))
p = p.replace(/\\/g, '/')

@@ -61,0 +62,0 @@ }

@@ -5,3 +5,3 @@ {

"description": "tar for node",
"version": "3.1.1",
"version": "3.1.2",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -552,2 +552,5 @@ # node-tar

in this implementation, and modes are set by default already.
- `win32` True if on a windows platform. Causes behavior where
filenames containing `<|>?` chars are converted to
windows-compatible values while being unpacked.

@@ -657,3 +660,5 @@ ### class tar.Unpack.Sync

- `win32` True if on a windows platform. Causes behavior where paths
replace `\` with `/`.
replace `\` with `/` and filenames containing the windows-compatible
forms of `<|>?` characters are converted to actual `<|>?` characters
in the archive.
- `noPax` Suppress pax extended headers. Note that this means that

@@ -660,0 +665,0 @@ long paths and linkpaths will be truncated, and large or negative

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