Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dev dependencies to language API #1484

Merged
merged 1 commit into from
Aug 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/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": "../../scripts/publish.js language",
Expand Down
13 changes: 6 additions & 7 deletions packages/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