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

http4js

Package Overview
Dependencies
Maintainers
2
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http4js - npm Package Compare versions

Comparing version 4.2.5 to 4.2.6

6

client/HttpsClient.js

@@ -63,3 +63,3 @@ "use strict";

promise = new Promise(function (resolve) {
https.request(reqOptions, function (res) {
var clientRequest = https.request(reqOptions, function (res) {
var inStream = new stream_1.Readable({ read: function () { } });

@@ -74,3 +74,5 @@ res.on('error', function (err) {

});
}).end();
});
clientRequest.write(req.bodyString());
clientRequest.end();
});

@@ -77,0 +79,0 @@ return [2 /*return*/, promise];

@@ -21,3 +21,3 @@ import * as https from "https";

const promise: Promise<Res> = new Promise(resolve => {
https.request(reqOptions, (res) => {
let clientRequest = https.request(reqOptions, (res) => {
const inStream = new Readable({ read() {} });

@@ -32,3 +32,5 @@ res.on('error', (err: any) => {

});
}).end();
});
clientRequest.write(req.bodyString());
clientRequest.end();
});

@@ -35,0 +37,0 @@

{
"name": "http4js",
"version": "4.2.5",
"version": "4.2.6",
"description": "A lightweight HTTP toolkit",

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

@@ -6,4 +6,3 @@ {

"declaration": true,
"strict": true,
"strictPropertyInitialization": false
"strict": true
},

@@ -10,0 +9,0 @@ "include": [

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