Socket
Socket
Sign inDemoInstall

tar-stream

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tar-stream - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

15

extract.js
var util = require('util');
var bl = require('bl');
var xtend = require('xtend');
var headers = require('./headers');

@@ -41,2 +42,3 @@

this._pax = null;
this._paxGlobal = null;

@@ -70,5 +72,13 @@ var self = this;

var onpaxglobalheader = function() {
var size = self._header.size;
self._paxGlobal = headers.decodePax(b.slice(0, size));
b.consume(size);
onstreamend();
}
var onpaxheader = function() {
var size = self._header.size;
self._pax = headers.decodePax(b.slice(0, size));
if (self._paxGlobal) self._pax = xtend(self._paxGlobal, self._pax);
b.consume(size);

@@ -92,2 +102,7 @@ onstreamend();

}
if (header.type === 'pax-global-header') {
self._parse(header.size, onpaxglobalheader);
oncontinue();
return;
}
if (header.type === 'pax-header') {

@@ -94,0 +109,0 @@ self._parse(header.size, onpaxheader);

2

headers.js

@@ -35,2 +35,4 @@ var ZEROS = '0000000000000000000';

return 'pax-header';
case 55:
return 'pax-global-header'
}

@@ -37,0 +39,0 @@

5

package.json
{
"name": "tar-stream",
"version": "0.4.0",
"version": "0.4.1",
"description": "tar-stream is a streaming tar parser and generator and nothing else. It is streams2 and operates purely using streams which means you can easily extract/parse tarballs without ever hitting the file system.",

@@ -13,3 +13,4 @@ "repository": "git://github.com:mafintosh/tar-stream.git",

"end-of-stream": "~0.1.3",
"readable-stream": "~1.0.26-4"
"readable-stream": "~1.0.26-4",
"xtend": "^3.0.0"
},

@@ -16,0 +17,0 @@ "devDependencies": {

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