Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorForrest L Norvell <forrest@npmjs.com>2014-10-17 09:16:03 +0400
committerForrest L Norvell <forrest@npmjs.com>2014-10-17 09:16:03 +0400
commit8e2703f78d280d1edeb749e257dda1f288bad6e3 (patch)
tree6f343c0da93dca01dd56174b619e0109c979aef3 /node_modules/retry
parentc87b00f82f92434ee77831915012c77a6c244c39 (diff)
retry@0.6.1 / npm-registry-client@3.2.4
Retry changed owners; npm-registry-client had an explicit dependency on 0.6.0.
Diffstat (limited to 'node_modules/retry')
-rw-r--r--node_modules/retry/Readme.md8
-rw-r--r--node_modules/retry/package.json28
2 files changed, 28 insertions, 8 deletions
diff --git a/node_modules/retry/Readme.md b/node_modules/retry/Readme.md
index 2bb865097..ba6602205 100644
--- a/node_modules/retry/Readme.md
+++ b/node_modules/retry/Readme.md
@@ -14,7 +14,7 @@ This module has been tested and is ready to be used.
The example below will retry a potentially failing `dns.resolve` operation
`10` times using an exponential backoff strategy. With the default settings, this
-means the last attempt is made after `34 minutes and 7 seconds`.
+means the last attempt is made after `17 minutes and 3 seconds`.
``` javascript
var dns = require('dns');
@@ -29,7 +29,7 @@ function faultTolerantResolve(address, cb) {
return;
}
- cb(operation.mainError(), addresses);
+ cb(err ? operation.mainError() : null, addresses);
});
});
}
@@ -69,8 +69,8 @@ milliseconds. If `options` is an array, a copy of that array is returned.
* `retries`: The maximum amount of times to retry the operation. Default is `10`.
* `factor`: The exponential factor to use. Default is `2`.
-* `minTimeout`: The amount of time before starting the first retry. Default is `1000`.
-* `maxTimeout`: The maximum amount of time between two retries. Default is `Infinity`.
+* `minTimeout`: The number of milliseconds before starting the first retry. Default is `1000`.
+* `maxTimeout`: The maximum number of milliseconds between two retries. Default is `Infinity`.
* `randomize`: Randomizes the timeouts by multiplying with a factor between `1` to `2`. Default is `false`.
The formula used to calculate the individual timeouts is:
diff --git a/node_modules/retry/package.json b/node_modules/retry/package.json
index 8f5e6d21f..130fcae13 100644
--- a/node_modules/retry/package.json
+++ b/node_modules/retry/package.json
@@ -6,11 +6,11 @@
},
"name": "retry",
"description": "Abstraction for exponential and custom retry strategies for failed operations.",
- "version": "0.6.0",
+ "version": "0.6.1",
"homepage": "https://github.com/tim-kos/node-retry",
"repository": {
"type": "git",
- "url": "git://github.com/felixge/node-retry.git"
+ "url": "git://github.com/tim-kos/node-retry.git"
},
"directories": {
"lib": "./lib"
@@ -24,6 +24,26 @@
"fake": "0.2.0",
"far": "0.0.1"
},
- "_id": "retry@0.6.0",
- "_from": "retry"
+ "bugs": {
+ "url": "https://github.com/tim-kos/node-retry/issues"
+ },
+ "_id": "retry@0.6.1",
+ "_shasum": "fdc90eed943fde11b893554b8cc63d0e899ba918",
+ "_from": "retry@>=0.6.1 <0.7.0",
+ "_npmVersion": "1.4.9",
+ "_npmUser": {
+ "name": "tim-kos",
+ "email": "tim@debuggable.com"
+ },
+ "maintainers": [
+ {
+ "name": "tim-kos",
+ "email": "tim@debuggable.com"
+ }
+ ],
+ "dist": {
+ "shasum": "fdc90eed943fde11b893554b8cc63d0e899ba918",
+ "tarball": "http://registry.npmjs.org/retry/-/retry-0.6.1.tgz"
+ },
+ "_resolved": "https://registry.npmjs.org/retry/-/retry-0.6.1.tgz"
}