Skip to content

Commit

Permalink
chore(deps): update dependency typescript to ~3.2.0 (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and JustinBeckwith committed Nov 30, 2018
1 parent eedb820 commit d13489b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 28 deletions.
5 changes: 2 additions & 3 deletions packages/google-cloud-translate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,14 @@
"docs": "jsdoc -c .jsdoc.js",
"generate-scaffolding": "repo-tools generate all && repo-tools generate lib_samples_readme -l samples/ --config ../.cloud-repo-tools.json",
"lint": "npm run check && eslint samples/",
"prettier": "prettier --write samples/*.js samples/*/*.js",
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
"system-test": "mocha build/system-test --timeout 600000",
"test-no-cover": "mocha build/test",
"test": "npm run cover",
"check": "gts check",
"clean": "gts clean",
"compile": "tsc -p .",
"fix": "gts fix && eslint --fix 'samples/**/*.js' && npm run prettier",
"fix": "gts fix && eslint --fix 'samples/**/*.js'",
"prepare": "npm run compile",
"pretest": "npm run compile",
"presystem-test": "npm run compile"
Expand Down Expand Up @@ -81,6 +80,6 @@
"prettier": "^1.13.5",
"proxyquire": "^2.0.1",
"source-map-support": "^0.5.6",
"typescript": "~3.1.0"
"typescript": "~3.2.0"
}
}
7 changes: 3 additions & 4 deletions packages/google-cloud-translate/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@
* limitations under the License.
*/

'use strict';

import * as arrify from 'arrify';
import {Service, util} from '@google-cloud/common';
import {promisifyAll} from '@google-cloud/promisify';
import {GoogleAuthOptions} from 'google-auth-library';
import * as arrify from 'arrify';
import * as extend from 'extend';
import {GoogleAuthOptions} from 'google-auth-library';
import * as is from 'is';

const isHtml = require('is-html');
import {DecorateRequestOptions, BodyResponseCallback} from '@google-cloud/common/build/src/util';
import * as r from 'request';
Expand Down
6 changes: 0 additions & 6 deletions packages/google-cloud-translate/system-test/.eslintrc.yml

This file was deleted.

2 changes: 0 additions & 2 deletions packages/google-cloud-translate/system-test/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
*/

'use strict';

import * as assert from 'assert';
import {Translate} from '../src';

Expand Down
5 changes: 0 additions & 5 deletions packages/google-cloud-translate/test/.eslintrc.yml

This file was deleted.

18 changes: 10 additions & 8 deletions packages/google-cloud-translate/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
* limitations under the License.
*/

'use strict';

import {DecorateRequestOptions, util} from '@google-cloud/common';
import {BodyResponseCallback, MakeRequestConfig} from '@google-cloud/common/build/src/util';
import * as pfy from '@google-cloud/promisify';
import * as assert from 'assert';
import * as extend from 'extend';
import * as proxyquire from 'proxyquire';
import {util} from '@google-cloud/common';
import * as pfy from '@google-cloud/promisify';
import * as orig from '../src';
import * as r from 'request';

import * as orig from '../src';

const pkgJson = require('../../package.json');

// tslint:disable-next-line no-any
Expand All @@ -38,11 +38,13 @@ const fakePromisify = extend({}, pfy, {
});

const fakeUtil = extend({}, util, {
makeRequest() {
makeRequest(
opts: DecorateRequestOptions, cfg: MakeRequestConfig,
cb: BodyResponseCallback) {
if (makeRequestOverride) {
return makeRequestOverride.apply(null, arguments);
return makeRequestOverride(opts, cfg, cb);
}
return util.makeRequest.apply(null, arguments);
return util.makeRequest(opts, cfg, cb);
},
});
const originalFakeUtil = extend(true, {}, fakeUtil);
Expand Down

0 comments on commit d13489b

Please sign in to comment.