@opentranslate2/baidu-domain
Advanced tools
Comparing version 1.4.6 to 1.4.8
@@ -25,3 +25,4 @@ "use strict"; | ||
const { appid, key, domain } = config; | ||
const res = await this.request(endpoint, { | ||
const res = await this.request({ | ||
url: endpoint, | ||
params: { | ||
@@ -28,0 +29,0 @@ from: BaiduDomain.langMap.get(from), |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "1.4.6", | ||
"version": "1.4.8", | ||
"description": "Baidu domain translator with OpenTranslate API.", | ||
@@ -27,4 +27,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@opentranslate2/translator": "^1.4.6" | ||
"@opentranslate2/translator": "^1.4.7" | ||
} | ||
} |
@@ -58,3 +58,4 @@ import { | ||
BaiduDomainTranslateResult | BaiduDomainTranslateError | ||
>(endpoint, { | ||
>({ | ||
url: endpoint, | ||
params: { | ||
@@ -61,0 +62,0 @@ from: BaiduDomain.langMap.get(from), |
Sorry, the diff of this file is not supported yet
16191
297