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

volos-quota-common

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

volos-quota-common - npm Package Compare versions

Comparing version 0.9.2 to 0.9.3

17

lib/quota-express.js

@@ -59,9 +59,7 @@ /****************************************************************************

function(err, reply) {
if (err) {
if (debugEnabled) { debug('Quota apply error: ' + err); }
return resp.send(500, { error: 'error applying quota' });
}
if (err) { return next(err); }
if (!reply.isAllowed) {
if (debugEnabled) { debug('Quota exceeded: ' + id); }
return resp.send(403, { error: 'exceeded quota ' });
resp.statusCode = 403;
return resp.end(JSON.stringify({ error: 'exceeded quota' }));
}

@@ -87,9 +85,6 @@ next();

function(err, reply) {
if (err) {
if (debugEnabled) { debug('Quota apply error: ' + err); }
return resp.send(500, { error: 'error applying quota' });
}
if (err) { return next(err); }
if (!reply.isAllowed) {
if (debugEnabled) { debug('Quota exceeded: ' + options.identifier); }
return resp.send(403, { error: 'exceeded quota ' });
resp.statusCode = 403;
return resp.end(JSON.stringify({ error: 'exceeded quota' }));
}

@@ -96,0 +91,0 @@ next();

{
"name": "volos-quota-common",
"version": "0.9.2",
"version": "0.9.3",
"main": "lib/quota.js",

@@ -12,3 +12,5 @@ "license": "MIT",

],
"dependencies": {},
"dependencies": {
"underscore": "1.6.x"
},
"devDependencies": {},

@@ -15,0 +17,0 @@ "repository": {

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