Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@smithy/fetch-http-handler

Package Overview
Dependencies
Maintainers
2
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 3.0.0 to 3.0.1

13

dist-cjs/index.js

@@ -100,8 +100,15 @@ var __defProp = Object.defineProperty;

const body = method === "GET" || method === "HEAD" ? void 0 : request.body;
const requestOptions = { body, headers: new Headers(request.headers), method };
const requestOptions = {
body,
headers: new Headers(request.headers),
method
};
if (body) {
requestOptions.duplex = "half";
}
if (typeof AbortController !== "undefined") {
requestOptions["signal"] = abortSignal;
requestOptions.signal = abortSignal;
}
if (keepAliveSupport.supported) {
requestOptions["keepalive"] = keepAlive;
requestOptions.keepalive = keepAlive;
}

@@ -108,0 +115,0 @@ const fetchRequest = new Request(url, requestOptions);

@@ -53,8 +53,15 @@ import { HttpResponse } from "@smithy/protocol-http";

const body = method === "GET" || method === "HEAD" ? undefined : request.body;
const requestOptions = { body, headers: new Headers(request.headers), method: method };
const requestOptions = {
body,
headers: new Headers(request.headers),
method: method,
};
if (body) {
requestOptions.duplex = "half";
}
if (typeof AbortController !== "undefined") {
requestOptions["signal"] = abortSignal;
requestOptions.signal = abortSignal;
}
if (keepAliveSupport.supported) {
requestOptions["keepalive"] = keepAlive;
requestOptions.keepalive = keepAlive;
}

@@ -61,0 +68,0 @@ const fetchRequest = new Request(url, requestOptions);

{
"name": "@smithy/fetch-http-handler",
"version": "3.0.0",
"version": "3.0.1",
"description": "Provides a way to make requests",

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

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