@elastic/transport
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
222206
3482