then-request
Advanced tools
Comparing version 5.0.0 to 6.0.0
@@ -89,3 +89,3 @@ 'use strict'; | ||
if (!body) { | ||
body = new Buffer(0); | ||
body = Buffer.alloc(0); | ||
} | ||
@@ -165,3 +165,3 @@ if (!Buffer.isBuffer(body)) { | ||
res.body.pipe(concat(function (body) { | ||
resolve(new GenericResponse(res.statusCode, res.headers, Array.isArray(body) ? new Buffer(0) : body, res.url)); | ||
resolve(new GenericResponse(res.statusCode, res.headers, Array.isArray(body) ? Buffer.alloc(0) : body, res.url)); | ||
})); | ||
@@ -168,0 +168,0 @@ }); |
{ | ||
"name": "then-request", | ||
"version": "5.0.0", | ||
"version": "6.0.0", | ||
"description": "A request library that returns promises, inspired by request", | ||
@@ -20,3 +20,3 @@ "keywords": [], | ||
"form-data": "^2.2.0", | ||
"http-basic": "^6.0.0", | ||
"http-basic": "^7.0.0", | ||
"http-response-object": "^3.0.1", | ||
@@ -50,2 +50,5 @@ "promise": "^8.0.0", | ||
}, | ||
"engines": { | ||
"node": ">=6.0.0" | ||
}, | ||
"repository": { | ||
@@ -52,0 +55,0 @@ "type": "git", |
@@ -85,2 +85,3 @@ # then-request | ||
- `maxRedirects` - sets the maximum number of redirects to follow before erroring on node.js (default: `Infinity`) | ||
- `allowRedirectHeaders` (default: `null`) - an array of headers allowed for redirects (none if `null`). | ||
- `gzip` - defaults to `true` but can be explicitly set to `false` on node.js to prevent then-request automatically supporting the gzip encoding on responses. | ||
@@ -87,0 +88,0 @@ - `agent` - (default: `false`) - An `Agent` to controll keep-alive. When set to `false` use an `Agent` with default values. |
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
29712
136
+ Added@types/node@9.6.61(transitive)
+ Addedhttp-basic@7.0.0(transitive)
- Removed@types/node@7.10.14(transitive)
- Removedhttp-basic@6.0.0(transitive)
Updatedhttp-basic@^7.0.0