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

gh-release-fetch

Package Overview
Dependencies
Maintainers
20
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 2.0.2 to 2.0.3

.github/.kodiak.toml

7

CHANGELOG.md
# Changelog
### [2.0.3](https://www.github.com/netlify/gh-release-fetch/compare/v2.0.2...v2.0.3) (2021-09-13)
### Bug Fixes
* **deps:** update dependency node-fetch to v2.6.2 ([#106](https://www.github.com/netlify/gh-release-fetch/issues/106)) ([07a50b2](https://www.github.com/netlify/gh-release-fetch/commit/07a50b2cb7261c4ba7676dd84ea127848b606c57))
### [2.0.2](https://www.github.com/netlify/gh-release-fetch/compare/v2.0.1...v2.0.2) (2021-07-26)

@@ -4,0 +11,0 @@

8

dist/index.js

@@ -45,3 +45,3 @@ "use strict";

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

@@ -57,4 +57,4 @@ if (res.status === 403 && typeof json.message === 'string' && json.message.includes('API rate limit exceeded')) {

const url = `https://github.com/${release.repository}/releases/download/${release.version}/${release.package}`;
yield make_dir_1.default(release.destination);
yield download_1.default(url, release.destination, {
yield (0, make_dir_1.default)(release.destination);
yield (0, download_1.default)(url, release.destination, {
extract: release.extract,

@@ -88,4 +88,4 @@ agent: agent,

const normalizedCurrentVersion = currentVersion.replace(/^v/, '');
return semver_1.gt(normalizedLatestVersion, normalizedCurrentVersion);
return (0, semver_1.gt)(normalizedLatestVersion, normalizedCurrentVersion);
}
exports.newerVersion = newerVersion;
{
"name": "gh-release-fetch",
"version": "2.0.2",
"version": "2.0.3",
"description": "A library to fetch release binaries from GitHub Releases",

@@ -41,3 +41,3 @@ "main": "dist/index.js",

"devDependencies": {
"@netlify/eslint-config-node": "^3.1.9",
"@netlify/eslint-config-node": "^3.2.6",
"@types/jest": "^26.0.0",

@@ -44,0 +44,0 @@ "@types/node": "^14.0.0",

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