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

@aofl/middleware

Package Overview
Dependencies
Maintainers
3
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aofl/middleware - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"name": "@aofl/middleware",
"version": "1.1.0",
"version": "1.1.1",
"description": "",

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

@@ -38,3 +38,3 @@ /**

getMiddlewareIterator(hook = 'post') {
let collection = this.middleware[hook];
const collection = this.middleware[hook];
let nextIndex = 0;

@@ -44,5 +44,12 @@

next() {
return nextIndex < collection.length ?
{value: collection[nextIndex++], done: false} :
{done: true};
if (nextIndex < collection.length) {
return {
value: collection[nextIndex++],
done: false
};
}
return {
done: true
};
}

@@ -60,5 +67,5 @@ };

return new Promise((resolve, reject) => {
let iterator = this.getMiddlewareIterator(hook);
const iterator = this.getMiddlewareIterator(hook);
let mw = null;
let next = (response = null) => {
const next = (response = null) => {
mw = iterator.next();

@@ -65,0 +72,0 @@ if (mw.done !== true) {

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