Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

reliable-get

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reliable-get - npm Package Compare versions

Comparing version 0.1.18 to 0.1.19

5

index.js

@@ -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) {

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc