reliable-get
Advanced tools
Comparing version 0.1.18 to 0.1.19
@@ -8,7 +8,5 @@ 'use strict'; | ||
var _ = require('lodash'); | ||
var http = require('http'); | ||
var utils = require('./lib/utils'); | ||
var EventEmitter = require('events').EventEmitter; | ||
var CacheFactory = require('./lib/cache/cacheFactory'); | ||
var DEFAULT_MAX_SOCKETS = 100; | ||
@@ -18,3 +16,2 @@ function ReliableGet(config) { | ||
var cache = CacheFactory.getCache(config.cache); | ||
var keepAliveAgent = new http.Agent({ keepAlive: !!config.keepAlive, maxSockets: config.maxSockets || DEFAULT_MAX_SOCKETS }); | ||
@@ -58,3 +55,3 @@ this.get = function(options, next) { | ||
request({url: options.url, agent: keepAliveAgent, timeout: options.timeout, headers: options.headers, followRedirect: followRedirect }) | ||
request({url: options.url, agent: false, timeout: options.timeout, headers: options.headers, followRedirect: followRedirect }) | ||
.on('error', handleError) | ||
@@ -61,0 +58,0 @@ .on('data', function(data) { |
{ | ||
"name": "reliable-get", | ||
"version": "0.1.18", | ||
"version": "0.1.19", | ||
"description": "A circuit breaker and cached wrapper for GET requests (enables reliable external service interaction).", | ||
@@ -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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
1
33626727
1048