2020
2121'use strict' ;
2222
23+ var common = require ( '@google-cloud/common' ) ;
2324var extend = require ( 'extend' ) ;
24- var is = require ( 'is' ) ;
25- var GrpcService = require ( '@google-cloud/common' ) . GrpcService ;
2625var 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 */
7170function 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