@hqoss/http-client
Advanced tools
Comparing version 0.1.17-0 to 0.1.18-0
@@ -40,5 +40,7 @@ "use strict"; | ||
telemetry === null || telemetry === void 0 ? void 0 : telemetry.emit(telemetry_1.EventType.SocketObtained, new telemetry_1.TelemetryEvent(telemetry_1.EventType.SocketObtained)); | ||
socket.once("connect", () => { | ||
telemetry === null || telemetry === void 0 ? void 0 : telemetry.emit(telemetry_1.EventType.ConnectionEstablished, new telemetry_1.TelemetryEvent(telemetry_1.EventType.ConnectionEstablished)); | ||
}); | ||
if (socket.connecting) { | ||
socket.once("connect", () => { | ||
telemetry === null || telemetry === void 0 ? void 0 : telemetry.emit(telemetry_1.EventType.ConnectionEstablished, new telemetry_1.TelemetryEvent(telemetry_1.EventType.ConnectionEstablished)); | ||
}); | ||
} | ||
}); | ||
@@ -45,0 +47,0 @@ req.once("response", (res) => { |
@@ -99,8 +99,10 @@ import { EventEmitter } from "events"; | ||
socket.once("connect", () => { | ||
telemetry?.emit( | ||
EventType.ConnectionEstablished, | ||
new TelemetryEvent(EventType.ConnectionEstablished), | ||
); | ||
}); | ||
if (socket.connecting) { | ||
socket.once("connect", () => { | ||
telemetry?.emit( | ||
EventType.ConnectionEstablished, | ||
new TelemetryEvent(EventType.ConnectionEstablished), | ||
); | ||
}); | ||
} | ||
}); | ||
@@ -107,0 +109,0 @@ |
{ | ||
"name": "@hqoss/http-client", | ||
"version": "0.1.17-0", | ||
"version": "0.1.18-0", | ||
"description": "A light-weight, performant, composable blueprint for writing consistent and re-usable Node.js HTTP clients", | ||
@@ -5,0 +5,0 @@ "main": "./dist/lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
181102
1139