download-tarball
Advanced tools
Comparing version 1.0.2 to 1.0.3
'use strict'; | ||
var _bluebird = require('bluebird'); | ||
var _bluebird2 = _interopRequireDefault(_bluebird); | ||
var _got = require('got'); | ||
@@ -29,2 +25,6 @@ | ||
var _promisifyFunction = require('promisify-function'); | ||
var _promisifyFunction2 = _interopRequireDefault(_promisifyFunction); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -37,3 +37,3 @@ | ||
module.exports = _bluebird2.default.promisify(function (_ref, callback) { | ||
module.exports = (0, _promisifyFunction2.default)(function (_ref, callback) { | ||
var url = _ref.url; | ||
@@ -40,0 +40,0 @@ var gotOpts = _ref.gotOpts; |
@@ -1,2 +0,1 @@ | ||
import Promise from 'bluebird'; | ||
import got from 'got'; | ||
@@ -8,2 +7,3 @@ import pipe from 'pump'; | ||
import assign from 'object-assign'; | ||
import promisify from 'promisify-function'; | ||
@@ -15,3 +15,3 @@ const getAgent = httpHttpsAgent({ | ||
module.exports = Promise.promisify(({url, gotOpts, dir}, callback) => { | ||
module.exports = promisify(({url, gotOpts, dir}, callback) => { | ||
pipe( | ||
@@ -18,0 +18,0 @@ got.stream(url, assign({agent: getAgent(url)}, gotOpts)), |
{ | ||
"name": "download-tarball", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Download a tarball (optionally gzipped) to a folder & extract it in the process. Uses the wonderful & super quick tar-fs & gunzip-maybe libraries.", | ||
@@ -37,3 +37,2 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"bluebird": "^3.4.1", | ||
"got": "^6.3.0", | ||
@@ -43,2 +42,3 @@ "gunzip-maybe": "^1.3.1", | ||
"object-assign": "^4.1.0", | ||
"promisify-function": "^1.3.2", | ||
"pump": "^1.0.1", | ||
@@ -45,0 +45,0 @@ "tar-fs": "^1.13.0" |
@@ -68,3 +68,2 @@ # download-tarball | ||
- [bluebird](https://github.com/petkaantonov/bluebird): Full featured Promises/A+ implementation with exceptionally good performance | ||
- [got](https://github.com/sindresorhus/got): Simplified HTTP requests | ||
@@ -74,2 +73,3 @@ - [gunzip-maybe](https://github.com/mafintosh/gunzip-maybe): Transform stream that gunzips its input if it is gzipped and just echoes it if not | ||
- [object-assign](https://github.com/sindresorhus/object-assign): ES2015 Object.assign() ponyfill | ||
- [promisify-function](https://github.com/jcollado/promisify-function): Turn a callback-style function into a function that returns a promise | ||
- [pump](https://github.com/mafintosh/pump): pipe streams together and close all of them if one of them closes | ||
@@ -76,0 +76,0 @@ - [tar-fs](https://github.com/mafintosh/tar-fs): filesystem bindings for tar-stream |
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
10185
+ Addedpromisify-function@^1.3.2
+ Addedpromisify-function@1.3.2(transitive)
- Removedbluebird@^3.4.1
- Removedbluebird@3.7.2(transitive)