Skip to content

Commit

Permalink
Merge pull request #52 from mapbox/upgrade
Browse files Browse the repository at this point in the history
upgrade requestretry
  • Loading branch information
Emily C. McAfee committed Jul 16, 2017
2 parents f781281 + 492f10f commit 2394550
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

# v1.0.4
### v1.1.0

* Upgraded requestretry dependency, which fixed a bug in retry attempts

### v1.0.4

* Updated dependencies to tiletype
2 changes: 1 addition & 1 deletion lib/tilejson.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ TileJSON.prototype.get = function(url, callback) {
timeout: this.timeout,
headers: {Connection: 'Keep-Alive'},
agent: url.indexOf('https:') === 0 ? httpsagent : agent,
maxAttempts: 1,
maxAttempts: 2,
retryDelay: 0
}, function (err, res, buffer) {
if (!err && res.statusCode !== 200) {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "@mapbox/tilejson",
"description": "Tile source backend for online tile sources",
"version": "1.0.4",
"version": "1.1.0",
"author": "Mapbox (https://www.mapbox.com)",
"license": "BSD-2-Clause",
"contributors": [
"Konstantin Käfer <kkaefer@gmail.com>"
],
"dependencies": {
"@mapbox/tiletype": "~0.3.1",
"agentkeepalive": "2.0.2",
"requestretry": "1.4.0",
"@mapbox/tiletype": "~0.3.1"
"requestretry": "^1.12.0"
},
"devDependencies": {
"eslint": "^0.24.0",
Expand Down
2 changes: 1 addition & 1 deletion test/tilejson.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ tape('findID', function(assert) {
tape('should abort when the server takes too long', function(assert) {
tilejson.getTile(1, 0, 0, function(err, data, headers) {
assert.ok(err);
assert.equal(err.message, 'ETIMEDOUT');
assert.equal(err.message, 'ESOCKETTIMEDOUT');
assert.end();
});
});
Expand Down

0 comments on commit 2394550

Please sign in to comment.