disconnect
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -0,1 +1,5 @@ | ||
1.1.0 / 2017-02-23 | ||
================== | ||
* Implemented new Discogs rate limiting headers. The rate limit param in a callback now looks like: `{ limit: 240, used: 1, remaining: 239 }` | ||
1.0.2 / 2016-11-10 | ||
@@ -2,0 +6,0 @@ ================== |
@@ -207,8 +207,7 @@ 'use strict'; | ||
// Find and add rate limiting when present | ||
if(res.headers['x-ratelimit-type']){ | ||
if(res.headers['x-discogs-ratelimit']){ | ||
rateLimit = { | ||
type: res.headers['x-ratelimit-type'], | ||
limit: res.headers['x-ratelimit-limit'], | ||
reset: res.headers['x-ratelimit-reset'], | ||
remaining: res.headers['x-ratelimit-remaining'] | ||
limit: parseInt(res.headers['x-discogs-ratelimit'], 10), | ||
used: parseInt(res.headers['x-discogs-ratelimit-used'], 10), | ||
remaining: parseInt(res.headers['x-discogs-ratelimit-remaining'], 10) | ||
}; | ||
@@ -215,0 +214,0 @@ } |
{ | ||
"name": "disconnect", | ||
"description": "A full featured Discogs API v2.0 client library", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"keywords": ["discogs", "api", "client", "oauth"], | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/bartve/disconnect", |
Sorry, the diff of this file is not supported yet
63795
1382