New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

untar

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

untar - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

29

index.js

@@ -10,3 +10,2 @@

, Result = require('result')
, all = require('when-all')

@@ -39,3 +38,3 @@ /**

if (file.type == 'Directory') return mkdir(file.path)
return write(file.path, file.text)
return write(file.path, file.buf)
})

@@ -81,21 +80,21 @@ })

.on('entry', function(entry){
var file = new Result
files.push(file)
var buf = ''
entry.on('data', function(data){
buf += data
files.push(entry)
var buf = []
entry
.on('data', function(chunk){
buf.push(chunk)
})
.on('end', function(){
entry.text = buf
file.write(entry)
.on('end', function(){
entry.buf = Buffer.concat(buf)
})
.on('error', function(e){ file.error(e) })
.on('error', error)
})
.on('error', function(e){ result.error(e) })
.on('error', error)
.on('end', function(){
all(files).then(
function(v){ result.write(v) },
function(e){ result.error(e) })
result.write(files)
})
function error(e){
result.error(e)
}
return result
}
{
"name": "untar",
"version": "0.2.2",
"version": "0.2.3",
"description": "a simple tar file unpacker",

@@ -21,3 +21,2 @@ "keywords": [

"resultify": "0.2.4",
"when-all": "0.4.4",
"mkdirp": "0.3.5",

@@ -24,0 +23,0 @@ "result": "0.3.1",

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