Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Ezequiel Fabbroni Assum committed Nov 28, 2024
1 parent c7cae3e commit 54ce43d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ export async function isPackageAvailable(packageName) {
try {
// Dynamically import the package
await import(packageName);
console.log(`Package ${packageName} is available`);
return true;
} catch (error) {
console.log(error);
console.log(`Package ${packageName} is not available`);
return false;
}
}

0 comments on commit 54ce43d

Please sign in to comment.