Skip to content

Commit a9ee771

Browse files
add dev dependencies to language API (googleapis#1484)
1 parent a7e15b6 commit a9ee771

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

packages/language/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@
6363
},
6464
"devDependencies": {
6565
"mocha": "^2.1.0",
66-
"proxyquire": "^1.7.10"
66+
"node-uuid": "^1.4.7",
67+
"proxyquire": "^1.7.10",
68+
"through2": "^2.0.1"
6769
},
6870
"scripts": {
6971
"publish-module": "node ../../scripts/publish.js language",

packages/language/src/index.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@
2020

2121
'use strict';
2222

23+
var common = require('@google-cloud/common');
2324
var extend = require('extend');
24-
var is = require('is');
25-
var GrpcService = require('@google-cloud/common').GrpcService;
2625
var googleProtoFiles = require('google-proto-files');
27-
var nodeutil = require('util');
28-
var util = require('@google-cloud/common').util;
26+
var is = require('is');
27+
var util = require('util');
2928

3029
/**
3130
* @type {module:language/document}
@@ -70,7 +69,7 @@ var PKG = require('../package.json');
7069
*/
7170
function Language(options) {
7271
if (!(this instanceof Language)) {
73-
options = util.normalizeArguments(this, options);
72+
options = common.util.normalizeArguments(this, options);
7473
return new Language(options);
7574
}
7675

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

93-
GrpcService.call(this, config, options);
92+
common.GrpcService.call(this, config, options);
9493
}
9594

96-
nodeutil.inherits(Language, GrpcService);
95+
util.inherits(Language, common.GrpcService);
9796

9897
/**
9998
* Run an annotation of a block of text.

0 commit comments

Comments
 (0)