Socket
Socket
Sign inDemoInstall

download-github-release

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-github-release - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

test.js

2

lib/download.js

@@ -19,3 +19,3 @@ 'use strict';

function download(url, w) {
var progress = arguments.length <= 2 || arguments[2] === undefined ? function () {} : arguments[2];
var progress = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function () {};

@@ -22,0 +22,0 @@ return new Promise(function (resolve, reject) {

@@ -50,4 +50,4 @@ 'use strict';

function downloadRelease(user, repo, outputdir) {
var filterRelease = arguments.length <= 3 || arguments[3] === undefined ? pass : arguments[3];
var filterAsset = arguments.length <= 4 || arguments[4] === undefined ? pass : arguments[4];
var filterRelease = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : pass;
var filterAsset = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : pass;

@@ -54,0 +54,0 @@ var bars = new _multiProgress2.default(process.stdout);

@@ -12,4 +12,4 @@ "use strict";

function getLatest(releases) {
var filterRelease = arguments.length <= 1 || arguments[1] === undefined ? pass : arguments[1];
var filterAsset = arguments.length <= 2 || arguments[2] === undefined ? pass : arguments[2];
var filterRelease = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : pass;
var filterAsset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : pass;

@@ -16,0 +16,0 @@ var filtered = releases.filter(filterRelease);

'use strict';
module.exports = require('./downloadRelease');
var _downloadRelease = require('./downloadRelease');
var _downloadRelease2 = _interopRequireDefault(_downloadRelease);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = _downloadRelease2.default;
{
"name": "download-github-release",
"version": "0.1.3",
"version": "0.2.0",
"description": "",

@@ -40,3 +40,3 @@ "main": "lib/index.js",

"multi-progress": "^2.0.0",
"superagent": "^2.1.0"
"superagent": "^3.5.2"
},

@@ -43,0 +43,0 @@ "devDependencies": {

@@ -6,2 +6,3 @@ # Download Github Release

[![Build Status](https://travis-ci.org/stephan83/download-github-release.svg?branch=master)](https://travis-ci.org/stephan83/download-github-release)
[![codecov](https://codecov.io/gh/stephan83/download-github-release/branch/master/graph/badge.svg)](https://codecov.io/gh/stephan83/download-github-release)
[![Build Status](https://david-dm.org/stephan83/download-github-release.svg)](https://david-dm.org/stephan83/download-github-release)

@@ -81,3 +82,3 @@

console.log('All done!');
});
})
.catch(function(err) {

@@ -84,0 +85,0 @@ console.error(err.message);

Sorry, the diff of this file is not supported yet

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