download-tarball
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10262
113