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

unirest

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unirest - npm Package Compare versions

Comparing version 0.1.1 to 0.1.4

5

index.js

@@ -199,2 +199,3 @@ /**

: mime.lookup(type));
return $this;
},

@@ -732,3 +733,3 @@

'followRedirect', 'followAllRedirects', 'maxRedirects', 'encoding', 'pool', 'timeout', 'proxy', 'oauth', 'hawk',
'ssl:strictSSL', 'strictSSL', 'jar', 'cookies:jar', 'aws', 'httpSignature', 'localAddress', 'ip:localAddress'
'ssl:strictSSL', 'strictSSL', 'jar', 'cookies:jar', 'aws', 'httpSignature', 'localAddress', 'ip:localAddress', 'secureProtocol'
]

@@ -807,2 +808,2 @@ };

module.exports = exports = Unirest;
module.exports = exports = Unirest;

4

package.json
{
"name": "unirest",
"version": "0.1.1",
"version": "0.1.4",
"description": "Lightweight HTTP Request library.",

@@ -11,3 +11,3 @@ "main": "index.js",

"mime": "~1.2.11",
"request": "~2.27.0",
"request": "~2.33.0",
"should": "~2.0.1"

@@ -14,0 +14,0 @@ },

@@ -375,2 +375,3 @@ # Unirest for Node.js [![Build Status](https://travis-ci.org/Mashape/unirest-nodejs.png?branch=master)](https://travis-ci.org/Mashape/unirest-nodejs)

* `strictSSL` (`Boolean`) - Default `true`; See `Request.strictSSL()` below.
* `secureProtocol` (`String`) - See `Request.secureProtocol()` below.
* `jar` (`Boolean` | `Jar`) - See `Request.jar()` below.

@@ -484,2 +485,14 @@ * `aws` (`Object`) - See `Request.aws()` below.

#### Request.secureProtocol(String)
Sets the secure protocol to use:
```js
Request.secureProtocol('SSLv2_method');
// or
Request.secureProtocol('SSLv3_client_method');
```
See [openssl.org](https://www.openssl.org/docs/ssl/SSL_CTX_new.html) for all possible values.
#### Request.aws(Object)

@@ -486,0 +499,0 @@

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