@google-cloud/prediction
Advanced tools
Comparing version 0.3.1 to 0.4.0
{ | ||
"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
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
41384
109
+ Added@google-cloud/common@0.9.1(transitive)
- Removed@google-cloud/common@0.8.1(transitive)
Updated@google-cloud/common@^0.9.0