New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

inst

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inst - npm Package Compare versions

Comparing version
1.1.0
to
2.0.0
+14
-20
lib/tar/win.js
var path = require('path'),
fs = require('fs'),
tar = require('tar'),
fstream = require('fstream');
tar = require('tar');

@@ -20,13 +19,9 @@

var dest = fs.createWriteStream(pkg);
var packer = tar.Pack({noProprietary: true})
.on('error', _cb)
.on('end', _cb);
fstream.Reader({path: dir, type: 'Directory'})
.pipe(packer)
.pipe(dest)
.on('error', _cb)
.on('end', _cb);
tar.c({
cwd: path.dirname(dir),
file: pkg,
portable: true
}, [path.basename(dir)]).then(function() {
_cb();
}).catch(_cb);
};

@@ -43,9 +38,8 @@

var extractor = tar.Extract({path: dir})
.on('error', _cb)
.on('end', _cb);
fs.createReadStream(pkg)
.on('error', _cb)
.pipe(extractor);
tar.x({
cwd: dir,
file: pkg
}).then(function() {
_cb();
}).catch(_cb);
};
{
"name": "inst",
"version": "1.1.0",
"version": "2.0.0",
"publishConfig": {

@@ -9,5 +9,4 @@ "registry": "https://registry.npmjs.org/"

"commander": "^2.9.0",
"fstream": "^1.0.8",
"npm": "^2.14.13",
"tar": "^2.2.1"
"tar": "^7.5.9"
},

@@ -45,4 +44,4 @@ "description": "Faster npm installs via caching whole node_module dir",

"engines": {
"node": "^4.2"
"node": ">=14"
}
}

@@ -15,3 +15,3 @@ var assert = require('assert'),

fs.mkdirSync(base, 0755);
fs.mkdirSync(base, 0o755);
fs.writeFileSync(base + '/1.tar', 'data');

@@ -18,0 +18,0 @@ setTimeout(function() {

Sorry, the diff of this file is not supported yet