UNPKG

dtrim

Version:

A tool for trimming deep/lenghty javascript structures. Some potential usages are: debugging, logging or data sanitization.

400 lines (399 loc) 13.3 kB
/// <reference types="node" /> declare const _default: { config: { transformRequest: {}; transformResponse: {}; timeout: number; xsrfCookieName: string; xsrfHeaderName: string; maxContentLength: number; headers: { Accept: string; 'Content-Type': string; 'user-agent': string; 'x-request-id': string; authorization: string; }; method: string; baseURL: string; url: string; data: { _overheadLength: number; _valueLength: number; _valuesToMeasure: never[]; writable: boolean; readable: boolean; dataSize: number; maxDataSize: number; pauseStreams: boolean; _released: boolean; _streams: never[]; _currentStream: null; _boundary: string; _events: {}; _eventsCount: number; }; }; request: { domain: null; _events: {}; _eventsCount: number; output: never[]; outputEncodings: never[]; outputCallbacks: never[]; outputSize: number; writable: boolean; _last: boolean; chunkedEncoding: boolean; shouldKeepAlive: boolean; useChunkedEncodingByDefault: boolean; sendDate: boolean; _removedConnection: boolean; _removedContLen: boolean; _removedTE: boolean; _contentLength: null; _hasBody: boolean; _trailer: string; finished: boolean; _headerSent: boolean; socket: { connecting: boolean; _hadError: boolean; _handle: { reading: boolean; onconnection: null; }; _parent: null; _host: string; _readableState: { objectMode: boolean; highWaterMark: number; buffer: { head: null; tail: null; length: number; }; length: number; pipes: null; pipesCount: number; flowing: boolean; ended: boolean; endEmitted: boolean; reading: boolean; sync: boolean; needReadable: boolean; emittedReadable: boolean; readableListening: boolean; resumeScheduled: boolean; emitClose: boolean; destroyed: boolean; defaultEncoding: string; awaitDrain: number; readingMore: boolean; decoder: null; encoding: null; }; readable: boolean; domain: null; _events: { close: null[]; }; _eventsCount: number; _writableState: { objectMode: boolean; highWaterMark: number; finalCalled: boolean; needDrain: boolean; ending: boolean; ended: boolean; finished: boolean; destroyed: boolean; decodeStrings: boolean; defaultEncoding: string; length: number; writing: boolean; corked: number; sync: boolean; bufferProcessing: boolean; writecb: null; writelen: number; bufferedRequest: null; lastBufferedRequest: null; pendingcb: number; prefinished: boolean; errorEmitted: boolean; emitClose: boolean; bufferedRequestCount: number; corkedRequestsFree: { next: { next: null; entry: null; }; entry: null; }; }; writable: boolean; allowHalfOpen: boolean; _sockname: null; _pendingData: null; _pendingEncoding: string; server: null; _server: null; parser: null; _httpMessage: string; }; connection: string; _header: string; agent: { domain: null; _events: {}; _eventsCount: number; defaultPort: number; protocol: string; options: { path: null; }; requests: {}; sockets: { 'example.xyz:80:': string[]; }; freeSockets: {}; keepAliveMsecs: number; keepAlive: boolean; maxSockets: null; maxFreeSockets: number; }; method: string; path: string; _ended: boolean; res: { _readableState: { objectMode: boolean; highWaterMark: number; buffer: { head: null; tail: null; length: number; }; length: number; pipes: null; pipesCount: number; flowing: boolean; ended: boolean; endEmitted: boolean; reading: boolean; sync: boolean; needReadable: boolean; emittedReadable: boolean; readableListening: boolean; resumeScheduled: boolean; emitClose: boolean; destroyed: boolean; defaultEncoding: string; awaitDrain: number; readingMore: boolean; decoder: null; encoding: null; }; readable: boolean; domain: null; _events: { end: null[]; }; _eventsCount: number; socket: string; connection: string; httpVersionMajor: number; httpVersionMinor: number; httpVersion: string; complete: boolean; headers: { 'content-type': string; date: string; 'content-length': string; connection: string; }; rawHeaders: string[]; trailers: {}; rawTrailers: never[]; aborted: boolean; upgrade: boolean; url: string; method: null; statusCode: number; statusMessage: string; client: string; _consuming: boolean; _dumped: boolean; req: string; responseUrl: string; redirects: never[]; }; timeoutCb: null; upgradeOrConnect: boolean; parser: null; maxHeadersCount: null; _redirectable: { _writableState: { objectMode: boolean; highWaterMark: number; finalCalled: boolean; needDrain: boolean; ending: boolean; ended: boolean; finished: boolean; destroyed: boolean; decodeStrings: boolean; defaultEncoding: string; length: number; writing: boolean; corked: number; sync: boolean; bufferProcessing: boolean; writecb: null; writelen: number; bufferedRequest: null; lastBufferedRequest: null; pendingcb: number; prefinished: boolean; errorEmitted: boolean; emitClose: boolean; bufferedRequestCount: number; corkedRequestsFree: { next: null; entry: null; }; }; writable: boolean; domain: null; _events: {}; _eventsCount: number; _options: { protocol: string; maxRedirects: number; maxBodyLength: number; path: string; method: string; headers: string; hostname: string; port: null; nativeProtocols: { 'http:': { METHODS: string[]; STATUS_CODES: { 100: string; 101: string; 102: string; 103: string; 200: string; 201: string; 202: string; 203: string; 204: string; 205: string; 206: string; 207: string; 208: string; 226: string; 300: string; 301: string; 302: string; 303: string; 304: string; 305: string; 307: string; 308: string; 400: string; 401: string; 402: string; 403: string; 404: string; 405: string; 406: string; 407: string; 408: string; 409: string; 410: string; 411: string; 412: string; 413: string; 414: string; 415: string; 416: string; 417: string; 418: string; 421: string; 422: string; 423: string; 424: string; 425: string; 426: string; 428: string; 429: string; 431: string; 451: string; 500: string; 501: string; 502: string; 503: string; 504: string; 505: string; 506: string; 507: string; 508: string; 509: string; 510: string; 511: string; }; globalAgent: string; }; 'https:': { globalAgent: { domain: null; _events: {}; _eventsCount: number; defaultPort: number; protocol: string; options: { path: null; }; requests: {}; sockets: {}; freeSockets: {}; keepAliveMsecs: number; keepAlive: boolean; maxSockets: null; maxFreeSockets: number; maxCachedSessions: number; _sessionCache: { map: { 's3-ap-southeast-2.amazonaws.com:443::::::::::::::::': { type: string; data: Buffer; }; }; list: string[]; }; }; }; }; pathname: string; }; _redirectCount: number; _redirects: string; _requestBodyLength: number; _requestBodyBuffers: never[]; _currentRequest: string; _currentUrl: string; }; }; response: { status: number; statusText: string; headers: string; config: string; request: string; data: string; }; }; export default _default;