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

ghdl

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

ghdl - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

26

ghdl.js

@@ -1,16 +0,1 @@

/**
* ghdl.js
*
* Copyright (c) 2016 Mawni Maghsoudlou
* Released under the MIT license
*/
/**
* ghdl (github download) is a tiny module to get download info
* of a github release. It searches all github repositories for a given
* repository name and returns an object or an array of objects that
* each object contain download info of all tags of the given repo.
*
*/
'use strict';

@@ -26,3 +11,3 @@

function search(reponame, opts, cb) {
function _search(reponame, opts, cb) {
got(`https://api.github.com/search/repositories?q=${reponame}`, opts).then(res => {

@@ -91,5 +76,5 @@ if (res.body.total_count > 0) {

});
} else {
return callback();
}
} else {
return callback();
}
}, (err) => {

@@ -118,3 +103,3 @@ if (err) {

search(reponame, opts, (err, repos) => {
_search(reponame, opts, (err, repos) => {
if (err) {

@@ -156,2 +141,1 @@ return cb(err, null);

module.exports = ghdl;

12

package.json
{
"name": "ghdl",
"version": "2.0.1",
"version": "2.0.2",
"description": "get download info of a github release by just providing the name of a github repository",
"main": "ghdl.js",
"scripts": {
"test": "./node_modules/.bin/mocha --reporter spec test/"
"test": "mocha"
},

@@ -19,3 +19,3 @@ "keywords": [

],
"author": "Mawni Maghsoudlou",
"author": "Mani Maghsoudlou",
"license": "MIT",

@@ -32,8 +32,8 @@ "dependencies": {

"type": "git",
"url": "git+https://github.com/mawni/ghdl.git"
"url": "git+https://github.com/manidlou/ghdl.git"
},
"bugs": {
"url": "https://github.com/mawni/ghdl/issues"
"url": "https://github.com/manidlou/ghdl/issues"
},
"homepage": "https://github.com/mawni/ghdl#readme"
"homepage": "https://github.com/manidlou/ghdl#readme"
}
#ghdl
[![travis][travis-img]][travis-url] [![npm](https://img.shields.io/npm/v/ghdl.svg?maxAge=2592000?style=flat-square)](https://npmjs.org/package/ghdl)
[![npm](https://img.shields.io/npm/v/ghdl.svg?maxAge=2592000?style=flat-square)](https://www.npmjs.com/package/ghdl) [![travis][travis-img]][travis-url]

@@ -9,3 +9,3 @@ `ghdl` (github download) is a [node](https://nodejs.org) module that searches github repositories using the [github api](https://developer.github.com/v3/) for a given repository name and returns download info of all tags of the given repo name if it is a real github repo with valid release(s) that have some file(s) to download because otherwise the api returns empty `assets` for the repo.

If you are looking for a convenient front-end to get download info af a github release on your terminal and don't want to deal with the api, you can use [ghdl-cli](https://github.com/mawni/ghdl-cli).
If you are looking for a convenient front-end to get download info af a github release on your terminal and don't want to deal with the api, you can use [ghdl-cli](https://github.com/manidlou/ghdl-cli).

@@ -70,3 +70,3 @@ **`ghdl` web interface: https://ghdl.herokuapp.com**

headers: {
'user-agent': 'https://github.com/mawni/ghdl'
'user-agent': 'https://github.com/manidlou/ghdl'
}

@@ -103,3 +103,3 @@ };

// use the default user-agent (https://github.com/mawni/ghdl)
// use the default user-agent (https://github.com/manidlou/ghdl)
// just provide the github token

@@ -134,4 +134,3 @@

[travis-img]: https://img.shields.io/travis/mawni/ghdl/master.svg
[travis-url]: https://travis-ci.org/mawni/ghdl
[travis-img]: https://travis-ci.org/manidlou/ghdl.svg?branch=master
[travis-url]: https://travis-ci.org/manidlou/ghdl

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