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

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.3.0 to 0.3.1

2

extract.js

@@ -82,3 +82,3 @@ var stream = require('stream');

} catch (err) {
self.emit('error', err)
self.emit('error', err);
}

@@ -85,0 +85,0 @@ b.consume(512);

@@ -199,21 +199,19 @@ var ZEROS = '0000000000000000000';

//valid checksum
if (c === decodeOct(buf, 148))
return {
name: name,
mode: mode,
uid: uid,
gid: gid,
size: size,
mtime: new Date(1000 * mtime),
type: toType(typeflag),
linkname: linkname,
uname: uname,
gname: gname,
devmajor: devmajor,
devminor: devminor
};
if (c !== decodeOct(buf, 148)) throw new Error('invalid header');
//invalid checksum
throw new Error('invalid header');
return {
name: name,
mode: mode,
uid: uid,
gid: gid,
size: size,
mtime: new Date(1000 * mtime),
type: toType(typeflag),
linkname: linkname,
uname: uname,
gname: gname,
devmajor: devmajor,
devminor: devminor
};
};
{
"name": "tar-stream",
"version": "0.3.0",
"version": "0.3.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.",

@@ -11,9 +11,9 @@ "repository": "git://github.com:mafintosh/tar-stream.git",

"dependencies": {
"bl": "~0.6.0",
"end-of-stream": "~0.1.3",
"bl": "~0.6.0"
"readable-stream": "~1.0.26-4"
},
"devDependencies": {
"tap": "~0.4.6",
"concat-stream": "~1.2.1",
"readable-stream": "~1.1.9"
"concat-stream": "~1.2.1"
},

@@ -20,0 +20,0 @@ "scripts": {

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