google-translate-api
Advanced tools
Comparing version 2.2.2 to 2.3.0
@@ -75,3 +75,3 @@ var querystring = require('querystring'); | ||
body[0].forEach(function (obj) { | ||
if (obj[0] !== undefined) { | ||
if (obj[0]) { | ||
result.text += obj[0]; | ||
@@ -88,3 +88,3 @@ } | ||
if (body[7] !== undefined && body[7][0] !== undefined) { | ||
if (body[7] && body[7][0]) { | ||
var str = body[7][0]; | ||
@@ -91,0 +91,0 @@ |
@@ -13,2 +13,3 @@ /** | ||
'sq': 'Albanian', | ||
'am': 'Amharic', | ||
'ar': 'Arabic', | ||
@@ -98,3 +99,3 @@ 'hy': 'Armenian', | ||
'es': 'Spanish', | ||
'su': 'Sudanese', | ||
'su': 'Sundanese', | ||
'sw': 'Swahili', | ||
@@ -101,0 +102,0 @@ 'sv': 'Swedish', |
{ | ||
"name": "google-translate-api", | ||
"version": "2.2.2", | ||
"version": "2.3.0", | ||
"description": "A free and unlimited API for Google Translate", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
# google-translate-api [![Build Status](https://travis-ci.org/matheuss/google-translate-api.svg?branch=master)](https://travis-ci.org/matheuss/google-translate-api) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) [![Coverage Status](https://coveralls.io/repos/github/matheuss/google-translate-api/badge.svg?branch=master)](https://coveralls.io/github/matheuss/google-translate-api?branch=master) [![codecov](https://codecov.io/gh/matheuss/google-translate-api/branch/master/graph/badge.svg)](https://codecov.io/gh/matheuss/google-translate-api) [![Known Vulnerabilities](https://snyk.io/test/npm/google-translate-api/badge.svg)](https://snyk.io/test/npm/google-translate-api) | ||
# google-translate-api [![Build Status](https://travis-ci.org/matheuss/google-translate-api.svg?branch=master)](https://travis-ci.org/matheuss/google-translate-api) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) [![Coverage Status](https://coveralls.io/repos/github/matheuss/google-translate-api/badge.svg?branch=master)](https://coveralls.io/github/matheuss/google-translate-api?branch=master) [![Known Vulnerabilities](https://snyk.io/test/npm/google-translate-api/badge.svg)](https://snyk.io/test/npm/google-translate-api) | ||
@@ -3,0 +3,0 @@ A **free** and **unlimited** API for Google Translate :dollar::no_entry_sign: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
365
18018