Skip to content

Releases: nishantapps/node-bard

v1.5.5

Choose a tag to compare

@npmnishantsharma npmnishantsharma released this 03 Dec 08:59
8edda2c

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

Choose a tag to compare

@npmnishantsharma npmnishantsharma released this 02 Dec 05:40
3075ee3
  • 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

Choose a tag to compare

@npmnishantsharma npmnishantsharma released this 26 Nov 10:58
51c03ff

Solve Publish issues

First Release

Choose a tag to compare

@npmnishantsharma npmnishantsharma released this 26 Nov 10:48