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

tar-fs

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tar-fs - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

4

index.js

@@ -117,3 +117,3 @@ var tar = require('tar-stream')

pump(mapStream(rs), entry)
pump(mapStream(rs, header), entry)
}

@@ -232,3 +232,3 @@

pump(mapStream(stream), ws, function(err) {
pump(mapStream(stream, header), ws, function(err) {
if (err) return next(err)

@@ -235,0 +235,0 @@ ws.on('close', stat)

{
"name": "tar-fs",
"version": "1.2.0",
"version": "1.3.0",
"description": "filesystem bindings for tar-stream",

@@ -5,0 +5,0 @@ "repository": {

@@ -52,3 +52,3 @@ # tar-fs

var extract = tar.pack('./my-directory', {
var extract = tar.extract('./my-directory', {
map: function(header) {

@@ -65,4 +65,7 @@ header.name = 'another-prefix/'+header.name

var pack = tar.pack('./my-directory', {
mapStream: function(fileStream) {
return fileStream.pipe(someTransform)
mapStream: function(fileStream, header) {
if (path.extname(header.file) === '.js') {
return fileStream.pipe(someTransform)
}
return fileStream;
}

@@ -72,4 +75,7 @@ })

var extract = tar.extract('./my-directory', {
mapStream: function(fileStream) {
return fileStream.pipe(someTransform)
mapStream: function(fileStream, header) {
if (path.extname(header.file) === '.js') {
return fileStream.pipe(someTransform)
}
return fileStream;
}

@@ -76,0 +82,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