gh-release-fetch
Advanced tools
Comparing version 2.0.2 to 2.0.3
# 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 @@ |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21219
22