Socket
Socket
Sign inDemoInstall

download-tarball

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

download-tarball - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

9

dist/index.js

@@ -37,7 +37,8 @@ 'use strict';

module.exports = (0, _promisifyFunction2.default)(function (_ref, callback) {
var url = _ref.url;
var gotOpts = _ref.gotOpts;
var dir = _ref.dir;
var url = _ref.url,
gotOpts = _ref.gotOpts,
extractOpts = _ref.extractOpts,
dir = _ref.dir;
(0, _pump2.default)(_got2.default.stream(url, (0, _objectAssign2.default)({ agent: getAgent(url) }, gotOpts)), (0, _gunzipMaybe2.default)(), (0, _tarFs.extract)(dir), callback);
(0, _pump2.default)(_got2.default.stream(url, (0, _objectAssign2.default)({ agent: getAgent(url) }, gotOpts)), (0, _gunzipMaybe2.default)(), (0, _tarFs.extract)(dir, extractOpts), callback);
});

@@ -14,9 +14,9 @@ import got from 'got';

module.exports = promisify(({url, gotOpts, dir}, callback) => {
module.exports = promisify(({url, gotOpts, extractOpts, dir}, callback) => {
pipe(
got.stream(url, assign({agent: getAgent(url)}, gotOpts)),
gunzipMaybe(),
extract(dir),
extract(dir, extractOpts),
callback
);
});
{
"name": "download-tarball",
"version": "1.0.3",
"version": "1.1.0",
"description": "Download a tarball (optionally gzipped) to a folder & extract it in the process. Uses the wonderful & super quick tar-fs & gunzip-maybe libraries.",

@@ -33,3 +33,3 @@ "main": "dist/index.js",

"then-fs": "^2.0.0",
"tmp": "0.0.28",
"tmp": "0.0.29",
"xo": "^0.16.0"

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