Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
fix(deps): update @google-cloud/common to ^0.23.0 (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicKramer committed Aug 27, 2018
1 parent d023735 commit f67d1af
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -56,15 +56,14 @@
"once": "^1.4.0",
"post-install-check": "0.0.1",
"proxyquire": "^2.0.0",
"request": "^2.81.0",
"rimraf": "^2.6.2",
"source-map-support": "^0.5.6",
"tmp": "0.0.33",
"tslint": "^5.4.3",
"typescript": "~2.9.1"
},
"dependencies": {
"@google-cloud/common": "^0.20.3",
"@google-cloud/common": "^0.23.0",
"acorn": "^5.0.3",
"coffeescript": "^2.0.0",
"console-log-level": "^1.4.0",
Expand All @@ -73,6 +72,7 @@
"gcp-metadata": "^0.7.0",
"lodash": "^4.12.0",
"p-limit": "^2.0.0",
"request": "^2.81.0",
"semver": "^5.5.0",
"source-map": "^0.6.1",
"split": "^1.0.0",
Expand Down
11 changes: 7 additions & 4 deletions src/agent/controller.ts
Expand Up @@ -20,9 +20,8 @@

import {ServiceObject} from '@google-cloud/common';
import * as assert from 'assert';
import * as http from 'http';
import * as qs from 'querystring';
import {Response} from 'request';
import * as request from 'request';

import {Debug} from '../client/stackdriver/debug';
import {Debuggee} from '../debuggee';
Expand All @@ -38,7 +37,11 @@ export class Controller extends ServiceObject {
* @constructor
*/
constructor(debug: Debug) {
super({parent: debug, baseUrl: '/controller'});
super({
requestModule: request,
parent: debug,
baseUrl: '/controller'
});

/** @private {string} */
this.nextWaitToken = null;
Expand Down Expand Up @@ -83,7 +86,7 @@ export class Controller extends ServiceObject {
listBreakpoints(
debuggee: Debuggee,
callback:
(err: Error|null, response?: Response,
(err: Error|null, response?: request.Response,
body?: stackdriver.ListBreakpointsResponse) => void): void {
const that = this;
assert(debuggee.id, 'should have a registered debuggee');
Expand Down
2 changes: 2 additions & 0 deletions src/client/stackdriver/debug.ts
Expand Up @@ -15,6 +15,7 @@
*/

import {GoogleAuthOptions, Service} from '@google-cloud/common';
import * as request from 'request';

export interface PackageInfo {
name: string;
Expand Down Expand Up @@ -56,6 +57,7 @@ export class Debug extends Service {
}

const config = {
requestModule: request,
projectIdRequired: false,
baseUrl: 'https://clouddebugger.googleapis.com/v2',
scopes: ['https://www.googleapis.com/auth/cloud_debugger'],
Expand Down
7 changes: 6 additions & 1 deletion test/debugger.ts
Expand Up @@ -22,6 +22,7 @@ import {ServiceObject} from '@google-cloud/common';
import {Debug} from '../src/client/stackdriver/debug';
import {Debuggee} from '../src/debuggee';
import * as stackdriver from '../src/types/stackdriver';
import * as request from 'request';

// TODO: Verify these types are correct.
const qs: {
Expand All @@ -43,7 +44,11 @@ export class Debugger extends ServiceObject {
* @constructor
*/
constructor(debug: Debug) {
super({parent: debug, baseUrl: '/debugger'});
super({
requestModule: request,
parent: debug,
baseUrl: '/debugger'
});

/** @private {string} */
this.nextWaitToken = null;
Expand Down

0 comments on commit f67d1af

Please sign in to comment.