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

limitd-client

Package Overview
Dependencies
Maintainers
2
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

limitd-client - npm Package Compare versions

Comparing version 2.7.0 to 2.7.1

2

package.json
{
"name": "limitd-client",
"version": "2.7.0",
"version": "2.7.1",
"description": "limitd client for node.js",

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

@@ -120,19 +120,9 @@ const LimitdClient = require('./client');

ShardClient.prototype.ping = function(type, prefix, callback) {
async.map(this.clients, (client, callback) => {
client.ping((err) => {
if (err) {
return callback(null, { error: err });
}
callback();
});
}, (err, responses) => {
if (err) { return callback(err); }
callback(null, {
errors: responses.map(r => r.error).filter(e => e)
});
});
ShardClient.prototype.ping = function(callback) {
async.applyEach(
this.clients,
(client, callback) => client.ping(callback),
callback);
};
module.exports = ShardClient;
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