Socket
Socket
Sign inDemoInstall

httpreq

Package Overview
Dependencies
0
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

12

lib/httpreq.js

@@ -30,4 +30,5 @@ /*

var fs = require ('fs');
var tls = require('tls');
var defaultCiphers = tls.DEFAULT_CIPHERS.split(':');
/**

@@ -281,2 +282,11 @@ * Generate multipart boundary

if (isHttps && o.shuffleCiphers) {
var shuffledChiphers = defaultCiphers.slice(0);
for (let i = shuffledChiphers.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[shuffledChiphers[i], shuffledChiphers[j]] = [shuffledChiphers[j], shuffledChiphers[i]];
}
requestoptions.ciphers = shuffledChiphers.join(':');
}
if (isHttps && o.passphrase) {

@@ -283,0 +293,0 @@ requestoptions.passphrase = o.passphrase;

2

package.json
{
"name": "httpreq",
"description": "node-httpreq is a node.js library to do HTTP(S) requests the easy way",
"version": "1.0.0",
"version": "1.1.0",
"author": {

@@ -6,0 +6,0 @@ "name": "Sam Decrock",

@@ -8,6 +8,13 @@ node-httpreq

This module helps you fight [TLS fingerprinting](https://httptoolkit.com/blog/tls-fingerprinting-node-js/)! See the `shuffleCiphers` option below.
## Donate
Feel free [to buy me a pizza 🍕](https://www.buymeacoffee.com/samdecrock)
If you've benefited from this module in any way, please consider donating!
[![](https://neat.be/paypal-donate-button.png)](https://www.paypal.com/donate/?hosted_button_id=2CKNJLZJBW8ZC)
Thank you for your support!
## Install

@@ -96,2 +103,4 @@

- timeout: (default: __none__ ). Adds a timeout to the http(s) request. Should be in milliseconds.
- ciphers: Change the TLS ciphers if needed.
- shuffleCiphers: Set to `true` if you want to shuffle the TLS ciphers to fight [TLS fingerprinting](https://httptoolkit.com/blog/tls-fingerprinting-node-js/).
- proxy, if you want to pass your request through a http(s) proxy server:

@@ -98,0 +107,0 @@ - host: eg: "192.168.0.1"

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc