Skip to content

Commit

Permalink
all modules: ensure all User-Agents are set (#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus authored and callmehiphop committed Sep 9, 2016
1 parent a60e822 commit 7e1f526
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-language/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"language"
],
"dependencies": {
"@google-cloud/common": "^0.4.0",
"@google-cloud/common": "^0.5.0",
"arguejs": "^0.2.3",
"arrify": "^1.0.1",
"extend": "^3.0.0",
Expand Down
4 changes: 1 addition & 3 deletions packages/google-cloud-language/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ var util = require('util');
*/
var Document = require('./document.js');

var PKG = require('../package.json');

/**
* <p class="notice">
* **This is a Beta release of Google Cloud Natural Language.** This API is
Expand Down Expand Up @@ -79,7 +77,7 @@ function Language(options) {
scopes: [
'https://www.googleapis.com/auth/cloud-platform'
],
userAgent: PKG.name + '/' + PKG.version
packageJson: require('../package.json')
};

common.GrpcService.call(this, config, options);
Expand Down
4 changes: 1 addition & 3 deletions packages/google-cloud-language/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ var googleProtoFiles = require('google-proto-files');
var proxyquire = require('proxyquire');
var util = require('@google-cloud/common').util;

var PKG = require('../package.json');

var fakeUtil = extend(true, {}, util);

function FakeDocument() {
Expand Down Expand Up @@ -98,7 +96,7 @@ describe('Language', function() {
scopes: [
'https://www.googleapis.com/auth/cloud-platform'
],
userAgent: PKG.name + '/' + PKG.version
packageJson: require('../package.json')
});
});
});
Expand Down

0 comments on commit 7e1f526

Please sign in to comment.