New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

disconnect

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

disconnect - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

4

HISTORY.md

@@ -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 @@ ==================

9

lib/client.js

@@ -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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc