You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

stack-base-iterator

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stack-base-iterator - npm Package Compare versions

Comparing version
0.1.3
to
0.1.4
+2
-7
lib/StackBaseIterator.js

@@ -35,6 +35,2 @@ var FIFO = require('fifo');

this.end(err);
this.options = null;
this.processors = null;
this.queued = null;
this.stack = null;
};

@@ -49,3 +45,3 @@

StackBaseIterator.prototype.end = function end(err) {
// if (this.done) console.log('Already ended');
if (this.done) return;
this.done = true;

@@ -97,7 +93,6 @@ while (this.processors.length) this.processors.pop()(err || true);

var processor = createProcesor(this.next.bind(this), options, function processorCallback(err, done) {
var processor = createProcesor(this.next.bind(this), options, function processorCallback(err) {
if (!self.destroyed) fifoRemove(self.processors, processor);
processor = null;
options = null;
if ((err || done) && !self.done) self.end(err);
return callback(err, self.done ? true : !self.stack.length);

@@ -104,0 +99,0 @@ });

{
"name": "stack-base-iterator",
"version": "0.1.3",
"version": "0.1.4",
"description": "Base iterator for values retrieved using a stack of async functions returning values",

@@ -5,0 +5,0 @@ "keywords": [