Socket
Socket
Sign inDemoInstall

ng-http-rate-limiter

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-http-rate-limiter - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

CHANGELOG.md

@@ -0,1 +1,7 @@

1.0.3
-----
* As a CommonJS module, this exports its module name.
* Remove requirement of having Array#find available.
1.0.2

@@ -2,0 +8,0 @@ -----

12

ng-http-rate-limiter.js

@@ -9,2 +9,3 @@ (function(root, factory) {

}
module.exports = 'ngHttpRateLimiter';
} else if (typeof define === 'function' && define.amd) {

@@ -124,5 +125,10 @@ // AMD

request: function(config) {
var limiter = rateLimiterConfig.getLimiters().find(function(l) {
return l.matches(config.url);
});
var limiters = rateLimiterConfig.getLimiters();
var limiter;
for (var i = 0; i < limiters.length; i++) {
if (limiters[i].matches(config.url)) {
limiter = limiters[i];
break;
}
}

@@ -129,0 +135,0 @@ if (limiter) {

{
"name": "ng-http-rate-limiter",
"version": "1.0.2",
"version": "1.0.3",
"description": "$http rate limiting in Angular",

@@ -5,0 +5,0 @@ "main": "ng-http-rate-limiter.js",

Sorry, the diff of this file is not supported yet

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