@elastic/transport
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -6,5 +6,6 @@ /// <reference types="node" /> | ||
import { ResurrectEvent } from './pool'; | ||
import { DiagnosticResult } from './types'; | ||
import { DiagnosticResult, DiagnosticResultResponse } from './types'; | ||
export declare type DiagnosticListener = (err: ElasticsearchClientError | null, meta: any | null) => void; | ||
export declare type DiagnosticListenerFull = (err: ElasticsearchClientError | null, meta: DiagnosticResult | null) => void; | ||
export declare type DiagnosticListenerFullResponse = (err: ElasticsearchClientError | null, meta: DiagnosticResultResponse | null) => void; | ||
export declare type DiagnosticListenerLight = (err: ElasticsearchClientError | null, meta: ConnectionRequestOptions | null) => void; | ||
@@ -22,3 +23,3 @@ export declare type DiagnosticListenerResurrect = (err: ElasticsearchClientError | null, meta: ResurrectEvent | null) => void; | ||
on(event: 'request', listener: DiagnosticListenerFull): this; | ||
on(event: 'response', listener: DiagnosticListenerFull): this; | ||
on(event: 'response', listener: DiagnosticListenerFullResponse): this; | ||
on(event: 'serialization', listener: DiagnosticListenerFull): this; | ||
@@ -29,3 +30,3 @@ on(event: 'sniff', listener: DiagnosticListenerFull): this; | ||
once(event: 'request', listener: DiagnosticListenerFull): this; | ||
once(event: 'response', listener: DiagnosticListenerFull): this; | ||
once(event: 'response', listener: DiagnosticListenerFullResponse): this; | ||
once(event: 'serialization', listener: DiagnosticListenerFull): this; | ||
@@ -32,0 +33,0 @@ once(event: 'sniff', listener: DiagnosticListenerFull): this; |
@@ -32,2 +32,3 @@ /// <reference types="node" /> | ||
} | ||
export declare type DiagnosticResultResponse<TResponse = unknown, TContext = unknown> = Required<DiagnosticResult<TResponse, TContext>>; | ||
export interface TransportResult<TResponse = unknown, TContext = unknown> extends DiagnosticResult<TResponse, TContext> { | ||
@@ -34,0 +35,0 @@ body: TResponse; |
{ | ||
"name": "@elastic/transport", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "Transport classes and utilities shared among Node.js Elastic client libraries", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
222525
3484