New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@opentranslate/baidu

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentranslate/baidu - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

5

dist/index.js

@@ -86,7 +86,6 @@ "use strict";

async textToSpeech(text, lang) {
return `http://tts.baidu.com/text2audio?${qs_1.default.stringify({
return `https://fanyi.baidu.com/gettts?${qs_1.default.stringify({
lan: Baidu.langMap.get(lang !== "auto" ? lang : "zh-CN") || "zh",
ie: "UTF-8",
text,
spd: 5,
text
})}`;

@@ -93,0 +92,0 @@ }

6

package.json

@@ -7,3 +7,3 @@ {

},
"version": "1.4.1",
"version": "1.4.2",
"description": "Baidu translator with OpenTranslate API.",

@@ -27,3 +27,3 @@ "main": "dist/index.js",

"dependencies": {
"@opentranslate/translator": "^1.4.1",
"@opentranslate/translator": "^1.4.2",
"@types/md5": "^2.1.33",

@@ -34,3 +34,3 @@ "@types/qs": "^6.5.3",

},
"gitHead": "2be2c69401f6f1b5aed78604b4e7cc89a2c8ed5c"
"gitHead": "f87484a9161a19d970e9dbb5cc29422db2366216"
}

@@ -137,11 +137,10 @@ import {

async textToSpeech(text: string, lang: Language): Promise<string> {
return `http://tts.baidu.com/text2audio?${qs.stringify({
return `https://fanyi.baidu.com/gettts?${qs.stringify({
lan: Baidu.langMap.get(lang !== "auto" ? lang : "zh-CN") || "zh",
ie: "UTF-8",
text,
spd: 5,
text
})}`;
}
}
}
export default Baidu;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc