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.8 to 3.1.9

12

lib/parse.js

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

const ABORTED = Symbol('aborted')
const DONE = Symbol('onDone')

@@ -65,6 +66,10 @@ const noop = _ => true

constructor (opt) {
const start = process.hrtime()
opt = opt || {}
super(opt)
if (opt.ondone)
this.on(DONE, opt.ondone)
else
this.on(DONE, _ => (this.emit('end'), this.emit('close')))
this.strict = !!opt.strict

@@ -74,2 +79,5 @@ this.maxMetaEntrySize = opt.maxMetaEntrySize || maxMetaEntrySize

// have to set this so that streams are ok piping into it
this.writable = true
this[QUEUE] = new Yallist()

@@ -327,3 +335,3 @@ this[BUFFER] = null

}
this[EMIT]('end')
this[EMIT](DONE)
}

@@ -330,0 +338,0 @@ }

12

lib/unpack.js

@@ -35,13 +35,15 @@ 'use strict'

constructor (opt) {
super(opt)
if (!opt)
opt = {}
this[PENDING] = 0
this[ENDED] = false
this.on('end', _ => {
opt.ondone = _ => {
this[ENDED] = true
this[MAYBECLOSE]()
})
}
super(opt)
this[PENDING] = 0
this[ENDED] = false
this.dirCache = opt.dirCache || new Map()

@@ -48,0 +50,0 @@

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

"description": "tar for node",
"version": "3.1.8",
"version": "3.1.9",
"repository": {

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

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