teeny-request
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -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": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Like request, but smaller.", | ||
"main": ".build/src/index.js", | ||
"main": "./build/src/index.js", | ||
"scripts": { | ||
@@ -7,0 +7,0 @@ "test": "mocha build/test", |
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