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

@google-cloud/prediction

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/prediction - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

10

package.json
{
"name": "@google-cloud/prediction",
"version": "0.3.1",
"version": "0.4.0",
"author": "Google Inc.",

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

"dependencies": {
"@google-cloud/common": "^0.8.0",
"@google-cloud/common": "^0.9.0",
"JSONStream": "^1.0.7",

@@ -66,7 +66,7 @@ "arrify": "^1.0.0",

"@google-cloud/storage": "*",
"async": "^1.4.2",
"async": "^2.1.4",
"concat-stream": "^1.5.0",
"mocha": "^3.0.1",
"node-uuid": "^1.4.3",
"proxyquire": "^1.7.10"
"proxyquire": "^1.7.10",
"uuid": "^3.0.1"
},

@@ -73,0 +73,0 @@ "scripts": {

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

# @google-cloud/prediction
# @google-cloud/prediction ([Alpha][versioning])
> Google Prediction 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 prediction = require('@google-cloud/prediction')({
projectId: projectId
});
var prediction = require('@google-cloud/prediction')();
// ...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:

@@ -111,2 +105,3 @@ 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/

@@ -113,0 +108,0 @@ [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using

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