Socket
Socket
Sign inDemoInstall

eh-api-client

Package Overview
Dependencies
52
Maintainers
2
Versions
97
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.33.1 to 0.34.0

2

index.js

@@ -10,3 +10,3 @@ var

// because node http server default timeout is 120 seconds, close socket before its timeout
keepAliveTimeout: 110000
freeSocketKeepAliveTimeout: 110000
};

@@ -13,0 +13,0 @@

{
"name": "eh-api-client",
"version": "0.33.1",
"version": "0.34.0",
"description": "Node.js rest client",

@@ -19,3 +19,3 @@ "main": "index.js",

"dependencies": {
"agentkeepalive": "^2.2.0",
"agentkeepalive": "^3.3.0",
"bluebird": "^3.3.5",

@@ -22,0 +22,0 @@ "lodash": "^3.9.3",

@@ -28,3 +28,3 @@ var

this.timeout(10000);
describe("use without retry if network error", function() {
describe.skip("use without retry if network error", function() {
var client = new Factory(url);

@@ -42,3 +42,3 @@ // disable retry if network error

simpleResponse(s);
s.timeout = SERVER_TIMEOUT;
s.setTimeout(SERVER_TIMEOUT)
done();

@@ -51,3 +51,3 @@ });

it("should got an ECONNRESET", function(done) {
it("should get an ECONNRESET", function(done) {
async.timesSeries(100, function(n, next) {

@@ -68,3 +68,3 @@ client.get("/", function(err, data, res) {

describe("use with retry if network error(Default behavior)", function() {
describe.skip("use with retry if network error(Default behavior)", function() {
var client = new Factory(url);

@@ -110,3 +110,3 @@ var s;

describe("POST use with retry if network error(Default behavior)", function() {
describe.skip("POST use with retry if network error(Default behavior)", function() {
var client = new Factory(url);

@@ -194,5 +194,5 @@ var s;

requestsProcessed.should.equal(30);
factory.getPoolStats().should.equal("localhost:" + SERVER_PORT + "::: 1");
factory.getPoolStats().should.equal("localhost:" + SERVER_PORT + ":: 1");
});
});
});

@@ -85,3 +85,3 @@ var

err.name.should.equal("NetworkError");
err.message.should.equal("ETIMEDOUT");
err.message.should.equal("ESOCKETTIMEDOUT");
err.retryInfo.try.should.be.greaterThan(1);

@@ -91,3 +91,3 @@ err.retryInfo.strategySupported.should.equal(true);

err.retryInfo.tryErrorHistory.forEach(function(err) {
err.message.should.equal("ETIMEDOUT");
err.message.should.equal("ESOCKETTIMEDOUT");
});

@@ -94,0 +94,0 @@ done();

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc