Skip to content

Commit

Permalink
add dev dependencies to language API (#1484)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus authored and callmehiphop committed Aug 12, 2016
1 parent 0a8a135 commit a35e83c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 3 additions & 1 deletion packages/google-cloud-language/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@
},
"devDependencies": {
"mocha": "^2.1.0",
"proxyquire": "^1.7.10"
"node-uuid": "^1.4.7",
"proxyquire": "^1.7.10",
"through2": "^2.0.1"
},
"scripts": {
"publish-module": "node ../../scripts/publish.js language",
Expand Down
13 changes: 6 additions & 7 deletions packages/google-cloud-language/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@

'use strict';

var common = require('@google-cloud/common');
var extend = require('extend');
var is = require('is');
var GrpcService = require('@google-cloud/common').GrpcService;
var googleProtoFiles = require('google-proto-files');
var nodeutil = require('util');
var util = require('@google-cloud/common').util;
var is = require('is');
var util = require('util');

/**
* @type {module:language/document}
Expand Down Expand Up @@ -70,7 +69,7 @@ var PKG = require('../package.json');
*/
function Language(options) {
if (!(this instanceof Language)) {
options = util.normalizeArguments(this, options);
options = common.util.normalizeArguments(this, options);
return new Language(options);
}

Expand All @@ -90,10 +89,10 @@ function Language(options) {
userAgent: PKG.name + '/' + PKG.version
};

GrpcService.call(this, config, options);
common.GrpcService.call(this, config, options);
}

nodeutil.inherits(Language, GrpcService);
util.inherits(Language, common.GrpcService);

/**
* Run an annotation of a block of text.
Expand Down

0 comments on commit a35e83c

Please sign in to comment.