20
20
21
21
'use strict' ;
22
22
23
+ var common = require ( '@google-cloud/common' ) ;
23
24
var extend = require ( 'extend' ) ;
24
- var is = require ( 'is' ) ;
25
- var GrpcService = require ( '@google-cloud/common' ) . GrpcService ;
26
25
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' ) ;
29
28
30
29
/**
31
30
* @type {module:language/document }
@@ -70,7 +69,7 @@ var PKG = require('../package.json');
70
69
*/
71
70
function Language ( options ) {
72
71
if ( ! ( this instanceof Language ) ) {
73
- options = util . normalizeArguments ( this , options ) ;
72
+ options = common . util . normalizeArguments ( this , options ) ;
74
73
return new Language ( options ) ;
75
74
}
76
75
@@ -90,10 +89,10 @@ function Language(options) {
90
89
userAgent : PKG . name + '/' + PKG . version
91
90
} ;
92
91
93
- GrpcService . call ( this , config , options ) ;
92
+ common . GrpcService . call ( this , config , options ) ;
94
93
}
95
94
96
- nodeutil . inherits ( Language , GrpcService ) ;
95
+ util . inherits ( Language , common . GrpcService ) ;
97
96
98
97
/**
99
98
* Run an annotation of a block of text.
0 commit comments