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.4.2 to 2.4.3

12

client.js

@@ -272,2 +272,6 @@ const url = require('url');

if (typeof key !== 'string') {
key = '';
}
const request = {

@@ -312,2 +316,6 @@ 'id': this.nextId(),

if (typeof key !== 'string') {
key = '';
}
const request = {

@@ -335,2 +343,6 @@ 'id': this.nextId(),

LimitdClient.prototype.status = function (type, key, done) {
if (typeof key !== 'string') {
key = '';
}
const request = {

@@ -337,0 +349,0 @@ 'id': this.nextId(),

2

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

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

@@ -101,2 +101,15 @@ const LimitdClient = require('../');

it('should send type "" if undefined', function (done) {
server.once('request', function (request) {
assert.isNumber(request.id);
assert.equal(request.method, 'STATUS');
assert.equal(request.type, 'ip');
assert.equal(request.key, '');
done();
});
client.status('ip', undefined, function () {});
});
it('should be able to parse the response of TAKE', function (done) {

@@ -103,0 +116,0 @@

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