Skip to content

Commit 028b9b7

Browse files
authored
feat: use small HTTP dependency (#153)
feat: use small HTTP dependency
1 parent 258d8ce commit 028b9b7

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

handwritten/logging-winston/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
"request": "^2.88.0",
115115
"rimraf": "^2.6.2",
116116
"source-map-support": "^0.5.6",
117+
"teeny-request": "^3.6.0",
117118
"tmp": "0.0.33",
118119
"typescript": "^3.0.0",
119120
"winston": "^2.2.0"

handwritten/logging-winston/system-test/errors-transport.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
import * as common from '@google-cloud/common';
18-
import * as request from 'request';
18+
import {teenyRequest} from 'teeny-request';
1919
const packageJson = require('../../package.json');
2020

2121
export interface ServiceContext {
@@ -48,7 +48,8 @@ export class ErrorsApiTransport extends common.Service {
4848
baseUrl: 'https://clouderrorreporting.googleapis.com/v1beta1',
4949
scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5050
packageJson,
51-
requestModule: request
51+
// tslint:disable-next-line:no-any
52+
requestModule: teenyRequest as any
5253
});
5354
}
5455

0 commit comments

Comments
 (0)