Socket
Socket
Sign inDemoInstall

@aws-sdk/node-http-handler

Package Overview
Dependencies
5
Maintainers
5
Versions
140
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.342.0 to 3.344.0

4

dist-cjs/write-request-body.js

@@ -10,9 +10,11 @@ "use strict";

const expect = headers["Expect"] || headers["expect"];
let timeoutId = -1;
if (expect === "100-continue") {
await Promise.race([
new Promise((resolve) => {
setTimeout(resolve, Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs));
timeoutId = Number(setTimeout(resolve, Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
}),
new Promise((resolve) => {
httpRequest.on("continue", () => {
clearTimeout(timeoutId);
resolve();

@@ -19,0 +21,0 @@ });

@@ -6,9 +6,11 @@ import { Readable } from "stream";

const expect = headers["Expect"] || headers["expect"];
let timeoutId = -1;
if (expect === "100-continue") {
await Promise.race([
new Promise((resolve) => {
setTimeout(resolve, Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs));
timeoutId = Number(setTimeout(resolve, Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
}),
new Promise((resolve) => {
httpRequest.on("continue", () => {
clearTimeout(timeoutId);
resolve();

@@ -15,0 +17,0 @@ });

{
"name": "@aws-sdk/node-http-handler",
"version": "3.342.0",
"version": "3.344.0",
"description": "Provides a way to make requests",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc