Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@google-cloud/translate

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/translate - npm Package Compare versions

Comparing version 0.5.1 to 0.6.0

4

package.json
{
"name": "@google-cloud/translate",
"version": "0.5.1",
"version": "0.6.0",
"author": "Google Inc.",

@@ -53,3 +53,3 @@ "description": "Google Translate API Client Library for Node.js",

"dependencies": {
"@google-cloud/common": "^0.8.0",
"@google-cloud/common": "^0.9.0",
"arrify": "^1.0.0",

@@ -56,0 +56,0 @@ "extend": "^3.0.0",

@@ -1,2 +0,2 @@

# @google-cloud/translate
# @google-cloud/translate ([Alpha][versioning])
> Google Translate API Client Library for Node.js

@@ -65,14 +65,8 @@

### On Google Compute Engine
### On Google Cloud Platform
If you are running this client on Google Compute Engine, we handle authentication for you with no configuration. You just need to make sure that when you [set up the GCE instance][gce-how-to], you add the correct scopes for the APIs you want to access.
If you are running this client on Google Cloud Platform, we handle authentication for you with no configuration. You just need to make sure that when you [set up the GCE instance][gce-how-to], you add the correct scopes for the APIs you want to access.
``` js
// Authenticating on a global basis.
var projectId = process.env.GCLOUD_PROJECT; // E.g. 'grape-spaceship-123'
var translate = require('@google-cloud/translate')({
projectId: projectId
});
var translate = require('@google-cloud/translate')();
// ...you're good to go!

@@ -83,3 +77,3 @@ ```

If you are not running this client on Google Compute Engine, you need a Google Developers service account. To create a service account:
If you are not running this client on Google Cloud Platform, you need a Google Developers service account. To create a service account:

@@ -133,2 +127,4 @@ 1. Visit the [Google Developers Console][dev-console].

[versioning]: https://github.com/GoogleCloudPlatform/google-cloud-node#versioning
[google-cloud]: https://github.com/GoogleCloudPlatform/google-cloud-node/

@@ -135,0 +131,0 @@ [api-key-howto]: https://cloud.google.com/translate/v2/using_rest#auth

@@ -40,6 +40,2 @@ /*!

*
* Google Translate API is available as a paid service. See the
* [Pricing](https://cloud.google.com/translate/v2/pricing.html) and
* [FAQ](https://cloud.google.com/translate/v2/faq.html) pages for details.
*
* @constructor

@@ -51,4 +47,2 @@ * @alias module:translate

*
* @throws {Error} If an API key is not provided.
*
* @param {object} options - [Configuration object](#/docs).

@@ -55,0 +49,0 @@ * @param {string=} options.key - An API key.

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