teeny-request
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -22,2 +22,9 @@ 'use strict'; | ||
function teenyRequest(reqOpts, callback) { | ||
reqOpts.timeout = reqOpts.timeout || 60000; | ||
reqOpts.gzip = reqOpts.gzip || true; | ||
reqOpts.forever = reqOpts.forever || true; | ||
if (!reqOpts.pool) { | ||
reqOpts.pool = {}; | ||
} | ||
reqOpts.pool.maxSockets = reqOpts.pool.maxSockets || Infinity; | ||
const [uri, options] = requestToFetchOptions(reqOpts); | ||
@@ -24,0 +31,0 @@ node_fetch_1.default(uri, options) |
{ | ||
"name": "teeny-request", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "Like request, but smaller.", | ||
@@ -5,0 +5,0 @@ "main": "./build/src/index.js", |
Sorry, the diff of this file is not supported yet
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
17030
48