Skip to content

Commit

Permalink
release: v2.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
plainheart committed Nov 18, 2023
1 parent 403f2c3 commit 31dbafe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bing-translate-api",
"version": "2.9.2",
"version": "2.10.0",
"description": "A simple and free API for Bing Translator for Node.js",
"main": "src/index.js",
"typings": "index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion scripts/generate-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const DEFAULT_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKi
;(async () => {
const { body } = await got('https://bing.com/translator', {
headers: {
'Accept-Language': 'en-US,en'
'Accept-Language': 'en-US,en',
'User-Agent': DEFAULT_USER_AGENT
}
})

Expand Down
1 change: 0 additions & 1 deletion src/lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ function isCorrectable(lang) {

module.exports = {
LANGS,
LANGS_CORRECTABLE,
getLangCode,
isSupported,
isCorrectable
Expand Down

0 comments on commit 31dbafe

Please sign in to comment.