-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with @terascope/fetch-github-release
#6309
Comments
Merged
Reproduction const { downloadRelease } = require("@terascope/fetch-github-release");
const user = "colinhacks";
const repo = "zod";
const outputdir = "./downloads";
const leaveZipped = false;
const disableLogging = false;
// Define a function to filter releases.
function filterRelease(release) {
// Filter out prereleases.
return release.prerelease === false;
}
// Define a function to filter assets.
function filterAsset(asset) {
// Select assets that contain the string 'windows'.
return asset.name.includes("windows");
}
downloadRelease(
user,
repo,
outputdir,
filterRelease,
filterAsset,
leaveZipped,
disableLogging
)
.then(function () {
console.log("All done!");
})
.catch(function (err) {
// console.log(`ERROR`);
console.log(err);
console.error(err.message);
}); Error
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! I'm trying to use this module https://github.com/terascope/fetch-github-release but it just gives an error :(
Is something just not compatible with Bun yet? Or am I just stupid and didn't make it work properly?
Originally reported on Discord:
Need help with Nodejs module on Bun
The text was updated successfully, but these errors were encountered: