Socket
Socket
Sign inDemoInstall

@elastic/transport

Package Overview
Dependencies
Maintainers
77
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elastic/transport - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

12

lib/Transport.js

@@ -247,6 +247,10 @@ "use strict";

var _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11;
const connectionParams = {
method: params.method,
path: params.path
};
const meta = {
context: null,
request: {
params: params,
params: connectionParams,
options: options,

@@ -284,6 +288,2 @@ id: (_y = options.id) !== null && _y !== void 0 ? _y : this[symbols_1.kGenerateRequestId](params, options)

};
const connectionParams = {
method: params.method,
path: params.path
};
// We should not retry if we are sending a stream body, because we should store in memory

@@ -352,4 +352,2 @@ // a copy of the stream to be able to send it again, but since we don't know in advance

// if (options.asStream === true) params.asStream = true
meta.request.params = params;
meta.request.options = options;
// handle compression

@@ -356,0 +354,0 @@ if (connectionParams.body !== '' && connectionParams.body != null) {

@@ -5,3 +5,3 @@ /// <reference types="node" />

import * as http from 'http';
import { Connection, ConnectionOptions } from './connection';
import { Connection, ConnectionOptions, ConnectionRequestParams } from './connection';
import { TransportRequestParams, TransportRequestOptions } from './Transport';

@@ -20,3 +20,3 @@ export declare type Context = Record<string, unknown> | null;

request: {
params: TransportRequestParams;
params: ConnectionRequestParams;
options: TransportRequestOptions;

@@ -23,0 +23,0 @@ id: any;

{
"name": "@elastic/transport",
"version": "0.0.13",
"version": "0.0.14",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc