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

Commit 2671d66

Browse files
chore: remove @types/request (#750)
1 parent ea59132 commit 2671d66

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
"@types/nock": "^10.0.0",
7676
"@types/node": "~10.14.0",
7777
"@types/proxyquire": "^1.3.28",
78-
"@types/request": "^2.48.1",
7978
"@types/semver": "^6.0.0",
8079
"@types/uuid": "^3.4.4",
8180
"codecov": "^3.0.4",

src/agent/controller.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import {ServiceObject} from '@google-cloud/common';
2222
import * as assert from 'assert';
2323
import * as qs from 'querystring';
24-
import * as request from 'request'; // Only for type declarations.
24+
import * as t from 'teeny-request';
2525

2626
import {URL} from 'url';
2727

@@ -97,7 +97,7 @@ export class Controller extends ServiceObject {
9797
debuggee: Debuggee,
9898
callback: (
9999
err: Error | null,
100-
response?: request.Response,
100+
response?: t.Response,
101101
body?: stackdriver.ListBreakpointsResponse
102102
) => void
103103
): void {
@@ -125,7 +125,7 @@ export class Controller extends ServiceObject {
125125
} else if (response.statusCode === 404) {
126126
// The v2 API returns 404 (google.rpc.Code.NOT_FOUND) when the agent
127127
// registration expires. We should re-register.
128-
callback(null, (response as {}) as request.Response);
128+
callback(null, (response as {}) as t.Response);
129129
return;
130130
} else if (response.statusCode !== 200) {
131131
callback(
@@ -137,7 +137,7 @@ export class Controller extends ServiceObject {
137137
} else {
138138
body = body || {};
139139
that.nextWaitToken = body.nextWaitToken;
140-
callback(null, (response as {}) as request.Response, body);
140+
callback(null, (response as {}) as t.Response, body);
141141
}
142142
}
143143
);

0 commit comments

Comments
 (0)