Comparing version 0.9.1 to 0.9.2
{ | ||
"name": "rerun", | ||
"description": "A retry library for node.js", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"author": "BigPanda <noam@bigpanda.io>", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -8,4 +8,4 @@ var Q = require('q'); | ||
var retries = options.retries || 3; | ||
var timeout = options.timeout || 50; | ||
var factor = options.factor || 1; | ||
var timeout = options.retryTimeout || 50; | ||
var factor = options.retryFactor || 1; | ||
@@ -12,0 +12,0 @@ function _succeed(returned) { |
@@ -71,3 +71,3 @@ var chai = require('chai'); | ||
var scope = nock('http://localhost:3027').post('/test', JSON.stringify({ objects: array })).reply(200); | ||
var promise = request({ url: 'http://localhost:3027/test', json: { objects: array }, retries: 5, factor: 2, timeout: 10, method: 'POST' }); | ||
var promise = request({ url: 'http://localhost:3027/test', json: { objects: array }, retries: 5, retryFactor: 2, retryTimeout: 10, method: 'POST' }); | ||
var timeBefore = new Date().getTime(); | ||
@@ -74,0 +74,0 @@ promise.then(function () { |
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
16525