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

gh-release-fetch

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gh-release-fetch - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

3

dist/index.js

@@ -13,2 +13,3 @@ "use strict";

const mkdirp = require("mkdirp");
const node_fetch_1 = require("node-fetch");
function fetchLatest(release) {

@@ -30,3 +31,3 @@ return __awaiter(this, void 0, void 0, function* () {

return __awaiter(this, void 0, void 0, function* () {
const res = yield fetch(`https://api.github.com/repos/${repository}/releases/latest`);
const res = yield node_fetch_1.default(`https://api.github.com/repos/${repository}/releases/latest`);
const json = yield res.json();

@@ -33,0 +34,0 @@ return json.tag_name;

{
"name": "gh-release-fetch",
"version": "1.0.0",
"version": "1.0.1",
"description": "A library to fetch release binaries from GitHub Releases",

@@ -23,5 +23,7 @@ "main": "dist/index.js",

"@types/mkdirp": "^0.5.2",
"@types/node-fetch": "^2.1.6",
"download": "^7.1.0",
"mkdirp": "^0.5.1"
"mkdirp": "^0.5.1",
"node-fetch": "^2.3.0"
}
}
import * as download from 'download';
import * as mkdirp from 'mkdirp';
import fetch from 'node-fetch';

@@ -4,0 +5,0 @@ export interface Release {

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