Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@onfleet/node-onfleet

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onfleet/node-onfleet - npm Package Compare versions

Comparing version 1.0.9 to 1.1.0

13

lib/Methods.js

@@ -22,5 +22,7 @@ const Bottleneck = require('bottleneck');

const reassignRate = (newRate) => {
limiter.updateSettings({
reservoirRefreshAmount: newRate,
});
if (newRate > 0) {
limiter.updateSettings({
reservoirRefreshAmount: newRate,
});
}
};

@@ -102,5 +104,6 @@

}).then((res) => {
// On response, update the rate
reassignRate(res.headers.get('x-ratelimit-remaining'));
if (res.ok) {
// On response, update the rate
reassignRate(res.headers.get('x-ratelimit-remaining'));
// Return status code for deletion as the API does, else, return the body of the response

@@ -107,0 +110,0 @@ return operations === 'DELETE' ? res.status : res.json();

{
"name": "@onfleet/node-onfleet",
"version": "1.0.9",
"version": "1.1.0",
"description": "Official client library for accessing the Onfleet API",

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

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