Socket
Socket
Sign inDemoInstall

@elastic/transport

Package Overview
Dependencies
6
Maintainers
77
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.14 to 0.0.15

7

lib/Diagnostic.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc