New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gohttp

Package Overview
Dependencies
Maintainers
1
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gohttp - npm Package Compare versions

Comparing version 4.1.3-beta to 4.1.3-beta2

22

bodymaker.js

@@ -9,3 +9,3 @@ 'use strict';

var bodymaker = function (options = {}) {
if (!(this instanceof bodymaker)) return new bodymaker(options);

@@ -159,3 +159,5 @@

let fd = -1;
//let fd = -1;
let fh = null;
let fret;

@@ -165,4 +167,9 @@ for(let f in bodyfi) {

try {
fd = await fsp.open(f);
await new Promise((rv, rj) => {
fh = await fsp.open(f);
fret = await fh.read(bodyData, seek, bodyfi[f].length, 0)
seek += fret.bytesRead;
/* await new Promise((rv, rj) => {
fs.read(fd, bodyData, seek, bodyfi[f].length, 0, (err, bytesRead, buffer) => {

@@ -176,9 +183,10 @@ if (err) {

});
});
}); */
} catch (err) {
throw err;
} finally {
if (fd > 0) {
fh && fh.close && fh.close();
/* if (fd > 0) {
fs.close(fd, err => {});
}
} */
}

@@ -185,0 +193,0 @@ }

{
"name": "gohttp",
"version": "4.1.3-beta",
"version": "4.1.3-beta2",
"description": "http & https client for HTTP/1.1 and HTTP/2",

@@ -5,0 +5,0 @@ "main": "index.js",

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