Skip to content

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.