Inspect Connection (#784)
Handles `console.log` and `utils.inspect` invocations for a better debugging experience. `agent` and `ssl` are hidden since they made the logs very hard to read. The user can still access them with `instance.agent` and `instance.ssl`.
This commit is contained in:
committed by
delvedor
parent
4d551319dd
commit
dc5102d30b
2
lib/Connection.d.ts
vendored
2
lib/Connection.d.ts
vendored
@ -20,6 +20,7 @@
|
||||
/// <reference types="node" />
|
||||
|
||||
import { URL } from 'url';
|
||||
import { inspect, InspectOptions } from 'util';
|
||||
import * as http from 'http';
|
||||
import { SecureContextOptions } from 'tls';
|
||||
|
||||
@ -73,6 +74,7 @@ export default class Connection {
|
||||
setRole(role: string, enabled: boolean): Connection;
|
||||
status: string;
|
||||
buildRequestObject(params: any): http.ClientRequestArgs;
|
||||
[inspect.custom](object: any, options: InspectOptions): string;
|
||||
}
|
||||
|
||||
export {};
|
||||
|
||||
Reference in New Issue
Block a user