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

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.2 to 1.0.3

10

dist/index.js
'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

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