You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@smithy/node-http-handler

Package Overview
Dependencies
Maintainers
3
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithy/node-http-handler - npm Package Compare versions

Comparing version
4.4.9
to
4.4.10
+9
-2
dist-cjs/index.js

@@ -165,4 +165,11 @@ 'use strict';

if (body) {
if (Buffer.isBuffer(body) || typeof body === "string") {
httpRequest.end(body);
const isBuffer = Buffer.isBuffer(body);
const isString = typeof body === "string";
if (isBuffer || isString) {
if (isBuffer && body.byteLength === 0) {
httpRequest.end();
}
else {
httpRequest.end(body);
}
return;

@@ -169,0 +176,0 @@ }

@@ -40,4 +40,11 @@ import { Readable } from "stream";

if (body) {
if (Buffer.isBuffer(body) || typeof body === "string") {
httpRequest.end(body);
const isBuffer = Buffer.isBuffer(body);
const isString = typeof body === "string";
if (isBuffer || isString) {
if (isBuffer && body.byteLength === 0) {
httpRequest.end();
}
else {
httpRequest.end(body);
}
return;

@@ -44,0 +51,0 @@ }

+1
-1
{
"name": "@smithy/node-http-handler",
"version": "4.4.9",
"version": "4.4.10",
"description": "Provides a way to make requests",

@@ -5,0 +5,0 @@ "scripts": {