Socket
Socket
Sign inDemoInstall

translatte

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

translatte - npm Package Compare versions

Comparing version 2.2.2 to 2.2.3

13

index.js

@@ -109,3 +109,4 @@ const querystring = require('querystring');

},
json: true
json: true,
timeout: 10000
});

@@ -143,3 +144,4 @@ for (const translation of body.translations) {

},
json: true
json: true,
timeout: 10000
});

@@ -168,3 +170,3 @@ for (const translation of body) {

try {
const {body} = await got(url, {json: true});
const {body} = await got(url, {json: true, timeout: 10000});
for (const translation of body.text) {

@@ -196,3 +198,4 @@ result.text += result.text

},
json: true
json: true,
timeout: 10000
});

@@ -272,3 +275,3 @@ for (const translation of body.translations) {

try {
translate = await got(url, {...opts.proxy, json: true, headers: opts.headers});
translate = await got(url, {...opts.proxy, json: true, timeout: 10000, headers: opts.headers});
} catch (e) {

@@ -275,0 +278,0 @@ return Promise.reject(errors[4]);

{
"name": "translatte",
"version": "2.2.2",
"version": "2.2.3",
"description": "A free and unlimited translate for NodeJS",

@@ -5,0 +5,0 @@ "main": "index.js",

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