Comparing version 0.1.7 to 0.1.8
14
index.js
@@ -704,3 +704,2 @@ /** | ||
Unirest.request = require('request'); | ||
Unirest.jar = Unirest.request.jar; | ||
Unirest.cookie = Unirest.request.cookie; | ||
@@ -710,2 +709,15 @@ Unirest.pipe = Unirest.request.pipe; | ||
/** | ||
* Expose cookie store (tough-cookie) | ||
* @return {Function} Cookie Store | ||
*/ | ||
Unirest.jar = function () { | ||
var jar = Unirest.request.jar(); | ||
jar.add = jar.setCookie; | ||
jar.toString = jar.getCookieString; | ||
return jar; | ||
}; | ||
/** | ||
* Enum Structures | ||
@@ -712,0 +724,0 @@ * |
{ | ||
"name": "unirest", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Lightweight HTTP Request library.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47178
787