Socket
Socket
Sign inDemoInstall

token-dealer

Package Overview
Dependencies
3
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.2.0

1

index.js

@@ -133,1 +133,2 @@ 'use strict';

module.exports.getTokensUsage = getTokensUsage;
module.exports.defaultLru = defaultLru;

2

package.json
{
"name": "token-dealer",
"version": "1.1.1",
"version": "1.2.0",
"description": "Circumvent API rate limits by having several API tokens and let the dealer manage and give them to you",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -48,3 +48,3 @@ # token-dealer

tokenDealer(tokens, (token, exhaust) => {
const handleRateLimit = (response, err) => {
const handleResponse = (response, err) => {
const headers = response.headers;

@@ -51,0 +51,0 @@

{
"env": {
"mocha": true
},
"rules": {
"no-unused-expressions": 0
}
}

@@ -329,2 +329,8 @@ 'use strict';

});
describe('.defaultLru', () => {
it('should be the default lru', () => {
expect(tokenDealer.defaultLru).to.be.ok;
});
});
});
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc