Releases: nishantapps/node-bard
Releases · nishantapps/node-bard
Release list
v1.5.5
Changelog
• Solved re-translation issue
• Made module into ejs module
Code:
import {setConfig,createText} from '@nishantapps/node-bard'
const config = {
userid:'userid',
key:'makersuite.google.com key',
apikey:'rapidapi key'
};
setConfig(config);
async function main() {
console.log(await createText('Привет братан'))
}
main();Major fix change
- Introduced a separate translateText function for better code organization.
- Renamed version function to getVersion for clean & understandable.
- Combined the config object with the new configuration in setConfig using the spread operator.
- Extended error handling with more informative error messages. So, everyone can understand what they are doing.
- Exposed the translateText and requestApi functions for potential external use. (External)
- Used the try/catch block for better error handling in asynchronous code.
- Made use of modern JavaScript features like object spread and async/await.
Minor Fix
First Release
Full Changelog: https://github.com/nishantapps/node-bard/commits/1.0